Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  trouble with new install

    Posted 01/21/13 07:04 PM

    Originally posted by: PaulBerglund


    I just installed CPLEX 12.5 and tried to invoke one of the samples from MATLAB to see if it was working.

    I get the error message:

    Undefined function or method 'cplexlink125' for input arguments of type 'double'.

    There is a file cplexlink125.mexw32 which is in my path. Is this the file that was being looked for, and if so, why couldn't it be found?

    Paul Berglund
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: trouble with new install

    Posted 01/22/13 01:48 AM

    Originally posted by: SystemAdmin


    Does it help to add the folder containing cplexlink125.mexw32 to the environment variables PATH and/or MATLABPATH?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: trouble with new install

    Posted 01/22/13 06:46 PM

    Originally posted by: PaulBerglund


    OK, I figured it out.

    There were two different problems. One was that I had carelessly installed the 32-bit cplex when I needed the 64-bit.

    The other was that I needed to add the directory with cplex's matlab source to my path.

    I did that, and the examples ran fine.

    Paul Berglund
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: trouble with new install

    Posted 11/01/13 01:16 AM

    Originally posted by: Huy Doan


    Hi Paul,

    Could you tell me how can you fix the problem "Undefined function or method 'cplexlink125' for input arguments of type 'double'"?

    I already run the following code in matlab:

    path(path,'C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio_Preview125\cplex\matlab\x86_win32')

    path(path,'C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio_Preview125\cplex\examples\src\matlab')

    and then I try the example cplexlpex but it still appears that error.

    Thanks,

    Huy


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: trouble with new install

    Posted 11/06/13 02:33 AM

    Are you sure you need 32bit CPLEX? If your OS or matlab version is 64bit then you may need 64bit CPLEX.


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: trouble with new install

    Posted 11/06/13 02:40 AM

    Originally posted by: Huy Doan


    I only have the 32bit CPLEX. Does it mean that I cannot use my CPLEX on the 64bit OS or Matlab?

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: trouble with new install

    Posted 01/22/14 02:10 AM

    Like Paul said a few posts above: The versions of matlab and CPLEX must match. So for 64bit matlab you need 64bit CPLEX and for 32bit matlab you need 32bit CPLEX.


    #CPLEXOptimizers
    #DecisionOptimization