sasoptpy.Model.drop_variables¶
-
Model.
drop_variables
(self, *variables)[source]¶ Drops a variable group from the model
- Parameters
- variables
VariableGroup
The variable group to be dropped from the model
- variables
Examples
>>> x = m.add_variables(3, name='x') >>> print(m.get_variables()) [sasoptpy.Variable(name='x_0', vartype='CONT'), sasoptpy.Variable(name='x_1', vartype='CONT')] >>> m.drop_variables(x) >>> print(m.get_variables()) []