sasoptpy.Model.get_variables

Model.get_variables(self)[source]

Returns a list of variables

Returns
variableslist

List of variables in the model

Examples

>>> x = m.add_variables(2, name='x')
>>> y = m.add_variable(name='y')
>>> print(m.get_variables())
[sasoptpy.Variable(name='x_0',  vartype='CONT'),
 sasoptpy.Variable(name='x_1',  vartype='CONT'),
 sasoptpy.Variable(name='y',  vartype='CONT')]