Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Using win32 and win64 Cplex on the same 64bit machine

  • 1.  Using win32 and win64 Cplex on the same 64bit machine

    Posted Thu May 02, 2013 05:26 AM

    Originally posted by: hllsen


    Is there any other way except changing the environment variable "CPLEX_STUDIO_DIR125" manually to "C:\Program Files\...." from "C:\Program Files (x86)\...." and vice versa? Because, right now, I am doing this "env. var. switch" to compile&run 32-bit and 64-bit Cplex codes on a 64-bit machine.

    Does it work if I just copy the "x86_windows_vs2010" libraries from the folders of CPLEX_Studio125 (32bit) to the corresponding folders of CPLEX_Studio125 (64bit)?

    Isn't it possible to attach the program version (i.e. x86 vs. x64)  into the name of the environment variables (e.g. CPLEX_STUDIO_X86_DIR125 vs. CPLEX_STUDIO_X64_DIR125)?

    Or, am I totally lost and doing something wrong?

    Cheers,

    h.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Using win32 and win64 Cplex on the same 64bit machine

    Posted Mon May 06, 2013 03:20 AM

    I think there are two different steps here:

    1. Compiling code/building the application. For this step you should just replace CPLEX_STUDIO_DIR125 by a custom environment variable and set this variable properly when building the application.
    2. Running the application: CPLEX_STUDIO_DIR125 is used to update the PATH environment variable so that the runtime system can find the cplex125.dll. You can just update the PATH environment variable yourself so that the system will first look into other directories. You may then not be able to run 32bit and 64bit applications in the exact same environment but I guess this is not an issue?

    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Using win32 and win64 Cplex on the same 64bit machine

    Posted Mon May 06, 2013 04:30 AM

    Originally posted by: hllsen


    Thank you Daniel, I'll continue to set the environment variable then.


    #CPLEXOptimizers
    #DecisionOptimization