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