Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Linking visual studio 2008 with CPLEX 12.4

    Posted 01/22/13 09:46 AM

    Originally posted by: SystemAdmin


    Hi all,

    I have installed CPLEX 12.4 (64 bits) on my computer running Windows 7 (64 bits). But I am unable to link CPLEX with Visual Studio 2008. I have followed the instructions given in the c_cpp.html file inside the "cplex" folder. Instead of using the instruction:

    Select Linker in the Configuration Properties tree.
    Select General and then select Additional Library Directoriess. Add the files:
    <CPLEXDIR>\lib\x86_windows_vs2008\stat_mta
    <CONCERTDIR>\lib\x86_windows_vs2008\stat_mta

    I have used:

    Select Linker in the Configuration Properties tree.
    Select General and then select Additional Library Directoriess. Add the files:
    <CPLEXDIR>\lib\x64_windows_vs2008\stat_mta
    <CONCERTDIR>\lib\x64_windows_vs2008\stat_mta

    Rest of the instruction I have followed exactly.

    When I build the project, I get the errors like "LNK2001: unresolved external symbol_imp_CPXopenCPLEX@4 "

    Actually, I want to use 64 bit CPLEX because I am solving very large linear and integer programs (with approx 300,000 binary variables and 5000 constraints). If I use the original setting, the project build is successful but I am unable to solve the linear and integer programs. There is CPLEX out of memory error.

    Please help me. I will be grateful.

    Thanks
    Faiz
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Linking visual studio 2008 with CPLEX 12.4

    Posted 01/22/13 12:13 PM

    Originally posted by: SystemAdmin


    Is your project configured for 64bit? The "solution platform" should be something like "x64". If it is not, try
    • Project->Properties and click the "Configuration manager" button.
    • Select "<New ...>" from the "Active Solution Platform" pulldown.
    • Select x64 from the list of platforms.
    • Set the x64 platform for your project, set all the variables as before (as described in c_cpp.html).
    • Try again.

    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Linking visual studio 2008 with CPLEX 12.4

    Posted 04/06/13 08:45 PM

    Originally posted by: SystemAdmin


    Thanks for your advise.

    I did what you suggested but now get the following message:
    1>------ Skipped Build: Project: TEST2, Configuration: Release Win32
    1>Project not selected to build for this solution configuration
    ========== Build: 0 succeeded or up-to-date, 0 failed, 1 skipped ==========

    What should I do?
    Thanks.
    #CPLEXOptimizers
    #DecisionOptimization