Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  hide a constraint

    Posted 07/11/08 12:15 PM

    Originally posted by: SystemAdmin


    [namsu said:]

    Dear all

    I'm using concert in cplex 11.

    I want to name a certain constraint and,
    I need to solve two cases.
    First one is without a constraint, and the other one is with a constraint.

    That is, in c++, how can I remove/add a constraint?

    thanks.


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: hide a constraint

    Posted 07/11/08 02:19 PM

    Originally posted by: SystemAdmin


    [Jenny said:]

    Maybe you can write two models, one with the constraint and one without, and then use cplex to solve them seperately.



    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: hide a constraint

    Posted 07/11/08 07:59 PM

    Originally posted by: SystemAdmin


    [prubin said:]

    [quote author=namsu link=topic=393.msg1121#msg1121 date=1215760523]
    That is, in c++, how can I remove/add a constraint?


    1.  IloModel::remove() deletes the constraint (IloRange) from the model but does not destroy the IloRange object.

    2.  IloRange::end() removes the constraint from any models containing it and then destroys it (frees up its memory).

    3.  IloRange::setLB() and/or IloRange::setUB() can be used to make the constraint vacuous (e.g., change x + y <= 5 to x + y <= infinity but leave it in the model).<br />
    /Paul

    #CPLEXOptimizers
    #DecisionOptimization