Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Cplex 12.2.0.2 + VS 2010 + win 7 64 - error

    Posted 05/22/11 03:17 PM

    Originally posted by: WojciechKmiecik


    hello everyone!

    I'm having some serious trouble with combination as in post subject. I have some valid code, working great with win7 32-bit. Unfortunately with Win7 64bit program is compiling fine, but when it comes to solving cplex i get:
    "Unhandled exception at 0x000007fefdd2aa7d in dual64.exe: Microsoft C++ exception: IloCplex::Exception at memory location 0x002ef780.." with line:

    mycplex = new IloCplex((*mymodel));

    It must be problem with proper VS configuration because concert examples aren't working either, but I have no clue what's wrong. I've done everything according to c_cpp.html, with some modifications (change from x86 to x64).

    I would be very grateful for all your help.
    Best Regards!
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Cplex 12.2.0.2 + VS 2010 + win 7 64 - error

    Posted 05/23/11 10:21 AM

    Originally posted by: y82li


    I have same issue with windows 7 (64 bits) and vs 2008 (64). Any solution with it? Please let me know. Thank you very much!
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Cplex 12.2.0.2 + VS 2010 + win 7 64 - error

    Posted 05/23/11 02:00 PM

    Originally posted by: WojciechKmiecik


    Your problem is different, just open VS and go to project/properties/configuration properties/linker/advanced/target machine and set that field to X64. Should fix your problem.

    Unfortunately I still wasn't able to fix my problem.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Cplex 12.2.0.2 + VS 2010 + win 7 64 - error

    Posted 05/23/11 02:36 PM

    Originally posted by: y82li


    Thank you, WojciechKmiecik,
    When I go to project/properties/configuration properties/linker/advanced/target machine and set that field to X64, I got error:

    module machine type 'x86' conflicts with target machine type 'x64'.

    However, When I go to project/properties/configuration properties/linker/advanced/target machine and set that field to X86, I got error:

    module machine type 'x64' conflicts with target machine type 'x86'.

    Do you know why?
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Cplex 12.2.0.2 + VS 2010 + win 7 64 - error

    Posted 05/30/11 12:29 AM

    Originally posted by: SystemAdmin


    It is a long time since you posted your question. I just wonder if you ever wrapped your program into a try-catch block and printed out the exception message:
    try {
       // Your code here.
       ...
    } catch (IloException& e) {
       std::cerr << "IloException " << e << std::endl;
    }
    

    This should give you an idea about what CPLEX thinks is going wrong.
    Maybe you just did not set up the ILOG_LICENSE_FILE environment variable?
    #CPLEXOptimizers
    #DecisionOptimization