Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Invalid MEX-file(Cplex with matlab interface)

    Posted Wed August 18, 2010 04:56 AM

    Originally posted by: SystemAdmin


    When I use Cplex with matlab interfaces to solve very simple LP problem cplexlp(f, Aineq, bineq), an error applears:
    ??? Error using ==> cplexlp at 148
    Invalid MEX-file
    'C:\ILOG\CPLEX_Studio_Preview122\cplex\matlab\x64_win64\cplexlink122.mexw64':
    This application has failed to start because the application configuration
    is incorrect. Reinstalling the application may fix this problem.

    My Cplex version:12.2
    My matlab version: 7.9.0
    My OS :Microsoft Windows Server 2003 Enterprise x64 Edition Service Pack 2
    (I also try in another PC which is Vista Premium x64bit, the same error appears)

    Please lend a help, thanks.
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Invalid MEX-file(Cplex with matlab interface)

    Posted Wed August 18, 2010 05:03 AM

    Originally posted by: John Cui


    Did you add the cplex path to your matlab by?

    >>addpath C:\ILOG\CPLEX_Studio_Preview122\cplex\matlab\x64_win64
    >>savepath

    and if you want to run cplex examples, you need to add the path of examples to matlab's path by addpath

    >>addpath C:\ILOG\CPLEX_Studio_Preview122\cplex\examples\src\matlab
    >>savepath

    Please tell me if you still have problems.

    John Cui
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Invalid MEX-file(Cplex with matlab interface)

    Posted Wed August 18, 2010 05:34 AM

    Originally posted by: SystemAdmin


    Yes, I have add path in my .m file.
    I tried, but the error message ramain the same
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Invalid MEX-file(Cplex with matlab interface)

    Posted Wed August 18, 2010 05:57 AM

    Originally posted by: John Cui


    Ok, then can you run CPLEX interactive optimizer
    in C:\ILOG\CPLEX_Studio_Preview122\cplex\bin\x64_win64?
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Invalid MEX-file(Cplex with matlab interface)

    Posted Wed August 18, 2010 06:07 AM

    Originally posted by: SystemAdmin


    Yes, I can run cplex.exe
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Invalid MEX-file(Cplex with matlab interface)

    Posted Wed August 18, 2010 08:11 AM

    Originally posted by: John Cui


    I found a thread in matlab's website, which is used to solve your problem.
    Please try it, and tell me if it works.

    http://www.mathworks.com/support/solutions/en/data/1-2223MW/

    John Cui
    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: Invalid MEX-file(Cplex with matlab interface)

    Posted Fri February 03, 2012 04:16 AM

    Originally posted by: wwewwewwe


    could you send me cplexlink122.mexw64 ?
    email address : mk66666mk@gmail.com
    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: Invalid MEX-file(Cplex with matlab interface)

    Posted Fri February 03, 2012 04:20 AM

    Originally posted by: John Cui


    Sorry, no, if you installed cplex 122 64bits on your machine, you will get it.

    John Cui
    #CPLEXOptimizers
    #DecisionOptimization