Show / Hide Table of Contents

    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, Implication

    into 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
    System.Object
    ModelTransformation
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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()

    Extension Methods

    ReflectionHelper.GetFieldValue(Object, String)
    ReflectionHelper.SetFieldValue(Object, String, Object)
    ExtensionMethods.Clone<T>(T)
    ExtensionMethods.ThrowIfArgumentIsNull<T>(T, String)
    Back to top Copyright © OPTANO GmbH generated with DocFX
    Privacy Policy | Impressum – Legal Notice