sasoptpy.Expression.copy¶
-
Expression.
copy
(self, name=None)[source]¶ Returns a copy of the
Expression
object- Parameters
- namestring, optional
Name for the copy
- Returns
- r
Expression
Copy of the object
- r
Examples
>>> x = so.Variable(name='x') >>> y = so.VariableGroup(1, name='y') >>> e = so.Expression(7 * x - y[0], name='e') >>> print(repr(e)) sasoptpy.Expression(exp = - y[0] + 7.0 * x , name='e') >>> f = e.copy(name='f') >>> print(repr(f)) sasoptpy.Expression(exp = - y[0] + 7.0 * x , name='f')