Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Removing constraints

    Posted 05/03/12 03:58 PM

    Originally posted by: Michael_D


    Under what circumstances is it possible to use

    cplex.getModel().remove(<some_constraint>)?
    


    Is this also possible within an incumbent or a branch callback?
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Removing constraints

    Posted 05/03/12 06:22 PM

    Originally posted by: SystemAdmin


    Modifying the model within a callback will either cause the universe to implode spectacularly, result in an exception, or maybe have no effect until the solver is exited (I lean toward an exception being thrown). AFAIK you cannot directly modify the model on the fly. (Adding user cuts/lazy constraints via callbacks does not actually modify the model; they're handled on the side.)

    Paul

    Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Removing constraints

    Posted 05/05/12 01:04 AM

    Originally posted by: SystemAdmin


    You are right Paul, directly modifying a model from a callback is not supported.
    And removing constraints from a model in a callback would break the whole algorithm since that constraint may have been used to fix variables etc.
    #CPLEXOptimizers
    #DecisionOptimization