Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

MATLAB API: Some inequality constraints as equality with slack variables(12.6)

  • 1.  MATLAB API: Some inequality constraints as equality with slack variables(12.6)

    Posted Tue January 07, 2014 07:19 PM

    Originally posted by: AnORDude


    When writing a MIP model with the CPLEX API in MATLAB (CPLEX 12.6) and exporting a .lp file, some inequality constraints are written as inequality constraints, and others are written as equality constraints with slack variables.

    Is there a way to control this?

    The constraints are still of course correct, but for reading and debugging an exported model I would rather have constraints written as I would expect to read them (inequalities).

     

    Thank you!


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: MATLAB API: Some inequality constraints as equality with slack variables(12.6)

    Posted Fri January 10, 2014 01:35 AM

    That sounds rather strange. Could you give an example of such an inequality, how you specify it in matlab and how it appears in the LP file?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: MATLAB API: Some inequality constraints as equality with slack variables(12.6)

    Posted Fri January 10, 2014 12:55 PM

    Originally posted by: AnORDude


    Thanks for the reply. I will work on making a small example that exhibits the behavior and post it.


    #CPLEXOptimizers
    #DecisionOptimization