sasoptpy.Variable.copy¶
- 
Variable.copy(self, name=None)¶
- Returns a copy of the - Expressionobject- Parameters
- namestring, optional
- Name for the copy 
 
- Returns
- rExpression
- 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')