







![]() ![]() ![]() |
Optimization Framework |
Model Members |
Model Class Constructors Methods Properties See Also Send Feedback |
The Model type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
![]() ![]() | Abs |
Returns an Expression object respresenting the absolute value of the specified expression.
|
![]() | AddAlternativeConstraintGroups | |
![]() | AddAlternativeConstraints | |
![]() | AddConstraint(Constraint, String) |
Adds constraint to this model instance if it is consistent. If you choose to provide a name, the name of the constraint will be overridden.
You need to make sure that the name of the constraint is unique.
|
![]() | AddConstraint(String, Double, Double, Expression) |
Adds a new constraint to this model instance if it is consistent.
|
![]() | AddConstraints |
Adds a set of constraint to this model instance if it is consistent.
|
![]() | AddObjective(Objective) |
Adds objective to this model instance if it is consistent.
|
![]() | AddObjective(Expression, String, ObjectiveSense) |
Adds a new objective to this model instance if it is consistent.
|
![]() | AddObjectives |
Adds a set of objectives to this model instance if it is consistent.
|
![]() | AddSOS |
Adds an SOS Constraint of the given SOSType
|
![]() | AddSOS1 |
Adds an SOS1 constraint
|
![]() | AddSOS2 |
Adds an SOS2 constraint
|
![]() | AddSOS3 |
Adds an SOS3 constraint
|
![]() | AddVariable(IVariable) |
Adds variable to this model instance if it is consistent.
|
![]() | AddVariable(String, Double, Double, VariableType) |
Adds a new variable to this model instance if it is consistent.
|
![]() | AddVariables |
Adds a set of variables to this model instance if it is consistent. //TODO: discuss: What do we mean by "consistent"?
|
![]() ![]() | Ceil |
Returns an Expression object respresenting the ceil roundoff of the specified expression.
|
![]() | Clear |
Removes all variables, constraints, objectives and scenarios from this model instance.
|
![]() | ContainsConstraint |
Contains this model instance a constraint named name?
|
![]() | ContainsObjective |
Contains this model instance an objective named name?
|
![]() | ContainsVariable |
Contains this model instance a variable named name?
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | Floor |
Returns an Expression object respresenting the floor roundoff of the specified expression.
|
![]() | GetConstraint |
Returns the constraint named name, or null if this model instance contains no such constraint.
|
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetObjective |
Returns the objective named name, or null if this model instance contains no such objective.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetVariable |
Returns the variable named name, or null if this model instance contains no such variable.
|
![]() | Load |
Loads the specified file.
|
![]() ![]() | Max |
Returns an Expression object representing the maximum of the specified expresssions.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Min |
Returns an Expression object respresenting the minimum of the specified expressions.
|
![]() | RemoveConstraint |
Removes the constraint named name from this model instance, or does nothing if this model instance contains no such constraint.
|
![]() | RemoveConstraints |
Removes a set of constraints from this model instance.
|
![]() | RemoveObjective |
Removes the objective named name from this model instance, or does nothing if this model instance contains no such objective.
|
![]() | RemoveObjectives |
Removes a set of objectives from this model instance.
|
![]() | RemoveVariable |
Removes the variable named name from this model instance, or does nothing if this model instance contains no such variable.
|
![]() | RemoveVariables |
Removes a set of variables from this model instance.
|
![]() | ToString | (Inherited from Object.) |
![]() | Write |
Writes the model to the specified filestream.
|
Properties
Name | Description | |
---|---|---|
![]() | AreAllConstraintsLinear |
Have all constraints in this model instance linear expressions?
|
![]() | AreAllObjectivesLinear |
Have all objectives in this model instance linear expressions?
|
![]() | AreAllVariablesBinary |
Are all variables in this model instance of type integer and their lower bound equal to zero and their upper bound equal to 1?
|
![]() | AreAllVariablesContinuous |
Are variables in this model instance of type continuous?
|
![]() | AreAllVariablesInteger |
Are all variables in this model instance of type integer?
|
![]() | Constraints |
Constraints in this model instance.
|
![]() | ConstraintsCount |
Count of constraints in this model instance.
|
![]() | ModelBehavior |
Gets or sets the behavior of the model. Available options are "Automatic" and "Manual"
In automatic mode, the model takes care of adding and removing variables when constraints and objectives get added. In manual mode you need to take care of this yourself.
|
![]() | Name |
Name of this model instance.
|
![]() | Objectives |
Objectives in this model instance.
|
![]() | ObjectivesCount |
Count of objectives in this model instance.
|
![]() | SOS1Sets |
Sets of SOS1 variables in this model instance.
|
![]() | SOS2Sets |
Sets of SOS2 variables in this model instance.
|
![]() | SOS3Sets |
Sets of SOS3 variables in this model instance.
|
![]() | Variables |
Variables in this model instance.
|
![]() | VariablesCount |
Count of variables in this model instance.
|