Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Invalid Mex-file cplexlink124.mex32

    Posted 03/22/12 06:10 AM

    Originally posted by: SystemAdmin


    Hi,

    I am using CPLEX 12.4, Win XP SP3, Matlab 7.9.0 (2009b). I installed the CPLEX\MATLAB plugin and works perfect from the matlab command line, i.e. I am able to run the cplex examples. On the other hand, I am not able to run an executable (I call cplexmilp) that I have created with mcc compiler, always face the following problem:

    MATLAB:invalidMEXFile
    {??? Error using ==> cplexmilp at 328
    Invalid MEX-file
    'C:\DOCUME~1\KOSTAS~1.E4~\LOCALS~1\Temp\mcrCache7.11\Optimi5\CPLEX_Optimizer\cplex\matlab\x86_win32\cplexlink124.mexw32':
    The specified module could not be found.

    Any advice is welcome

    thanks in advance
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Invalid Mex-file cplexlink124.mex32

    Posted 03/22/12 07:02 AM

    Originally posted by: SystemAdmin


    Solved!!!

    I opened the executable that I have created with dependency walker and I found that (for some strange reason because I have had installed C++ 2005 redistributable package) msvcr80.dll is missing. In fact, msvcr80.dll was visible from some dependencies while invisible from some others. In my system, msvcr80.dll was not visible from mclmcrrt711.dll located at C:\MATLAB\R2009b\runtime\win32.

    Concluding, I put msvcr80.dll in the same directory with my executable and the problem solved.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Invalid Mex-file cplexlink124.mex32

    Posted 03/22/12 07:58 AM

    Originally posted by: John Cui


    Nice!

    John Cui
    #CPLEXOptimizers
    #DecisionOptimization