Decision Optimization

 View Only
Expand all | Collapse all

Regarding output mps file using exportModel API

  • 1.  Regarding output mps file using exportModel API

    Posted Fri February 17, 2017 10:33 AM

    Originally posted by: Uonly


    We are using exportModel API shown below to output mps file. However the model output is automatically converted to minimization problem, even if the model was originally maximization problem.

     

    Is there any approach that forces Cplex to output original maximization probem in mps format (we only want mps format) ?


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Regarding output mps file using exportModel API

    Posted Tue February 21, 2017 09:36 AM

    The MPS file format does not define a way to specify direction of the objective. That is why CPLEX always writes the model as minimization problem. There is no way to change that.

    On input CPLEX accepts additional tokens to specify the objective sense, see here.


    #CPLEXOptimizers
    #DecisionOptimization