sasoptpy.Model.get_grouped_variables

Model.get_grouped_variables(self)[source]

Returns an ordered dictionary of variables

Returns
grouped_varsOrderedDict

Dictionary of variables and variable groups in the model

Examples

>>> m1 = so.Model(name='test_copy_model_1')
>>> x = m1.add_variable(name='x')
>>> y = m1.add_variables(2, name='y')
>>> vars = OrderedDict([('x', x), ('y', y)])
>>> self.assertEqual(m1.get_grouped_variables(), vars)
True