Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  MIP instance with indicator constraints

    Posted 08/25/15 09:31 PM

    Originally posted by: Uonly


    Hi cplex community,

     

    Can I output the linearized mip instance with indicator constraints?

     

    Thanks


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: MIP instance with indicator constraints

    Posted 08/26/15 04:30 AM

    In the C API you can grab the presolved model and output that in LP file format. That will give you the model that CPLEX actually solves. Note that this may still contain indicator constraints since CPLEX may choose to handle some indicator constraints directly without explicitly linearizing them.

    In the above approach you can also disable presolve (CPX_PARAM_PREIND=0). In that case CPLEX will only do the minimal presolve required, in your case this means linearizing the indicator constraints.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: MIP instance with indicator constraints

    Posted 08/26/15 05:33 PM

    Originally posted by: Uonly


    Thanks Daniel!

    Is that possible even to disable the minimal presolve?

    I did some search but it seems there is no API for that.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: MIP instance with indicator constraints

    Posted 08/27/15 03:26 AM

    What exactly are you trying to do here? You said you want to see the "linearized MIP". If you disable the minimal presolve then you will disable linearization of indicator constraints and you will thus only see the original MIP. If you don't want any presolve then just dump the original model.


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: MIP instance with indicator constraints

    Posted 08/27/15 10:36 AM

    Originally posted by: Uonly


    Thanks . I think I was just curious about the granularity of the cplex api


    #CPLEXOptimizers
    #DecisionOptimization