Class ModelTransformation
This class offers functionality to transform a model that contains special OperatorExpressions or OperatorConstraints as, e.g.,
Min, Max, Ceil, Floor, Abs, Not, Or, Implicationinto a form where these expressions vanish in the sense that they are modelled through new Variables and Constraints. This transformation may re-establish linearity of the model.
Inheritance
Inherited Members
Namespace: OPTANO.Modeling.Optimization
Assembly: Optimization.dll
Syntax
public class ModelTransformation
Methods
RestoreCurrentModel()
If the User
specified to RestoreUserModelAfterSolve, the original
Model (i.e. Constraints, Variables, ...) will be restored.
Declaration
public IEnumerable<string> RestoreCurrentModel()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | The System.Collections.Generic.IEnumerable<T>. |
TransformCurrentModel()
Can transform the constraints of the model that contain OperatorExpressions as, e.g., Min into new expressions where these expressions are
replaced by new variables and constraints. This means that in the model also some implicit variables marking
new representing variables are set.
Furthermore, the operator constraints can be translated into common Constraints, so that they can be handled by default MIP solvers.
The resulting constraints will be added to the current model.
Each individual operator (for expressions and
constraints) can be controlled via the System.Enum properties in SolverBase.
Declaration
public void TransformCurrentModel()