sasoptpy.Model.get_implicit_variables

Model.get_implicit_variables(self)[source]

Returns a list of implicit variables

Returns
implicit_variableslist

List of implicit variables in the model

Examples

>>> m = so.Model(name='test_add_impvar')
>>> x = m.add_variables(5, name='x')
>>> y = m.add_implicit_variable((i * x[i] + x[i] ** 2 for i in range(5)),
                            name='y')
>>> assertEqual([y], m.get_implicit_variables())
True