Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

error when running cplex examples using visual studio

  • 1.  error when running cplex examples using visual studio

    Posted Wed March 20, 2013 07:10 AM

    Originally posted by: SystemAdmin


    Hi,
    when i try to run Cplex examples as writing in this link : C:\ILOG\CPLEX_Studio_Preview122\cplex\c_cpp.html

    i have this error : ( screenshot in the file attached )

    :-(
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: error when running cplex examples using visual studio

    Posted Wed March 20, 2013 08:39 AM

    Originally posted by: SystemAdmin


    It looks like you set up the PATH in a wrong way. It must point to the folder containing the DLL, not to the dll itself.
    Try this
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC> set PATH=%PATH%;C:\ILOG\CPLEX_Studio_Preview122\cplex\bin\x86_win32\
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC> C:\ILOG\CPLEX_Studio_Preview122\cplex\examples\x86_windows_vs2008\stat_mta\blend
    

    It looks like you are using CPLEX 12.2? This is pretty old. Any reason not to use a more recent version (12.5 is the newest)?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: error when running cplex examples using visual studio

    Posted Thu March 21, 2013 03:30 AM

    Originally posted by: SystemAdmin


    Hi,

    i added cplex122.dll to the file "system" (C:\windows\system) , and it worked.

    think's a lot
    #CPLEXOptimizers
    #DecisionOptimization