Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Removing variables from docplex model

    Posted 11/15/18 04:04 AM

    Originally posted by: mshpd


    Hi

    I am trying to implement Column Generation for Cutting Stock Problem using DOCPLEX. Is there any way to remove columns that have been already added to the Master Problem in docplex ? 


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Removing variables from docplex model

    Posted 11/16/18 05:59 AM

    Originally posted by: Viu-Long Kong


    Hi,

     

    Removing variables is not supported in docplex models. You can set the coeffcients to 0.

     

    Best regards


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Removing variables from docplex model

    Posted 11/16/18 06:17 AM

    Another option is to fix the variable to 0 by setting its lower and upper bounds to 0.

    Or, if you not only remove variables but add some at the same time, maybe just change the meaning of an existing variable that had been "deleted" before? That is cumbersome but at least avoids the growth in model size that you get by just fixing deleted variables to 0.


    #CPLEXOptimizers
    #DecisionOptimization