Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

How to explicitly define which solver to use in Cplex (Matlab API) ?

  • 1.  How to explicitly define which solver to use in Cplex (Matlab API) ?

    Posted 07/17/14 04:02 PM

    Originally posted by: OverflowChu


    I knew we can define different solving techniques/algorithms in Cplex to solve some particular problems, but I'm wondering if it is possible to indicate solver (e.g. NLP, IP,LP) for different types of problem? Now the way I deal with different optimization problems is solely defining variable types (e.g. cplex.addCols([1 1]', [], [0 0]', [inf inf]', 'II',['X1', 'X2'] ) and solve it with cplex.solve(). Then I got integer solution for X1 and X2.

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: How to explicitly define which solver to use in Cplex (Matlab API) ?

    Posted 07/17/14 04:21 PM

    There is some nice documentation on this here.  If you're using the Matlab Cplex Class API (as with Java and C++ API's) there is only one solve() method.  Depending on how you set the parameters the particular optimizer will be called automatically.  With the Matlab Cplex Toolbox API (as with the Callable C API), there are functions for each optimizer type (e.g., cplexlp, cplexqp, cplexmiqp, etc.).


    #CPLEXOptimizers
    #DecisionOptimization