Expression¶
Constructor¶
|
Creates a mathematical expression to represent model components |
|
Represents an auxiliary expression, often as a symbolic attribute |
|
Represents a symbolic string, to be evaluated on server-side |
General methods¶
|
Specifies the name of the expression |
|
Converts a temporary expression into a permanent one |
|
Converts expression into a temporary expression to enable in-place operations |
|
Returns the name of the object |
|
Calculates and returns the value of the linear expression |
|
Returns the dual value |
Operations¶
|
Combines two expressions and produces a new one |
|
Returns a copy of the |
|
Multiplies the |
|
Returns the requested member of the expression |
Returns an ordered dictionary of elements |
|
|
Returns coefficient of requested member |
|
Returns the constant term in the expression |
|
Adds a new member or changes an existing member |
|
Changes the coefficient of the requested member |
|
Adds value to the coefficient of the requested member |
|
Multiplies the coefficient of the requested member by the specified value |
|
Copies the member of another expression |
|
Deletes the requested member from the core dictionary |
Class methods¶
Private Methods¶
|
Generates the OPTMODEL-compatible string representation of the object |
|
Checks whether the expression is composed of linear components |
|
Creates a logical relation between |
|
Returns a string representation of the object |
|
Generates a representation string that is Python-compatible |