sasoptpy.Model.drop_variable

Model.drop_variable(self, variable)[source]

Drops a variable from the model

Parameters
variableVariable

The variable to be dropped from the model

Examples

>>> x = m.add_variable(name='x')
>>> y = m.add_variable(name='y')
>>> print(m.get_variable('x'))
 x
>>> m.drop_variable(x)
>>> print(m.get_variable('x'))
None