Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Changes to CPLEX Matlab API

    Posted 11/28/16 08:48 AM

    Originally posted by: Eumpfenbach1


    I wrote some working code about 3 years ago using the CPLEX MATLAB API. It instantiated a CPLEX object like this:

     

    cplex = Cplex('cplex');
    cplex.readModel('New_MNL.lp');

     

    I am dusting off the code and trying to run it now with CPLEX Studio 1261 and it is complaining about "two mandatory arguments for object of type CPLEX." I see from the documentation that the class should now be cplexmilp, but it still won't let me create an empty object and then read in the details through the lp file. I'm trying to get this going again with as few code rewrites as possible. Any help would be appreciated. Thanks.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Changes to CPLEX Matlab API

    Posted 12/02/16 09:52 AM

    Originally posted by: Eumpfenbach1


    I guess I shouldnt expect any help on this? I've been waiting patiently but it seems this board isnt being monitored by IBM very much anymore..


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Changes to CPLEX Matlab API

    Posted 12/02/16 12:31 PM

    We do our best to help all our users who post in this forum.  There are periods when the people most active here are not available for investigating the issues raised here, though. And such was this week.  I'm sorry that you had to wait, and we'll try to help soon.


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Changes to CPLEX Matlab API

    Posted 12/02/16 02:54 PM

    Originally posted by: Eumpfenbach1


    Thanks for the response. I didn't mean to throw stones, I was just prodding to see if I should expect a response. I appreciate the help.


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Changes to CPLEX Matlab API

    Posted 12/04/16 11:52 AM

    According to the 12.6.1 reference documentation this should work and I don't see why not. Nor can I spot anything wrong with your code.

    Could you please specify the exact exception message with a backtrace? And maybe your full code? What exactly is the statement that raises this exception? Also, could you test whether the example lpex2.m that is shipped with CPLEX does work? Among other things, this example executes the two lines of code you quoted above.


    #CPLEXOptimizers
    #DecisionOptimization