sasoptpy.Model.drop_variable¶
-
Model.
drop_variable
(self, variable)[source]¶ Drops a variable from the model
- Parameters
- variable
Variable
The variable to be dropped from the model
- variable
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