sasoptpy.Expression._expr

Expression._expr(self)[source]

Generates the OPTMODEL-compatible string representation of the object

Examples

>>> x = so.Variable(name='x')
>>> y = so.Variable(name='y')
>>> f = x + y ** 2
>>> print(f)
x + (y) ** (2)
>>> print(f._expr())
x + (y) ^ (2)