sasoptpy.Model.drop_constraints¶
-
Model.
drop_constraints
(self, *constraints)[source]¶ Drops a constraint group from the model
- Parameters
- constraints
Constraint
orConstraintGroup
Arbitrary number of constraints to be dropped
- constraints
Examples
>>> c1 = m.add_constraints((x[i] + y <= 15 for i in [0, 1]), name='c1') >>> print(m.get_constraints()) [sasoptpy.Constraint( x[0] + y <= 15, name='c1_0'), sasoptpy.Constraint( x[1] + y <= 15, name='c1_1')] >>> m.drop_constraints(c1) >>> print(m.get_constraints()) []