sasoptpy.Model.drop_constraint¶
-
Model.drop_constraint(self, constraint)[source]¶ Drops a constraint from the model
- Parameters
- constraint
Constraint The constraint to be dropped from the model
- constraint
Examples
>>> c1 = m.add_constraint(2 * x + y <= 15, name='c1') >>> print(m.get_constraint('c1')) 2 * x + y <= 15 >>> m.drop_constraint(c1) >>> print(m.get_constraint('c1')) None