Model Methods

Fabrica Bolos GLPK

Collapse imageExpand ImageCopy imageCopyHover image

The Model type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAbs
Returns an Expression object respresenting the absolute value of the specified expression.
Public methodAddAlternativeConstraintGroups
Public methodAddAlternativeConstraints
Public methodAddConstraint(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.
Public methodAddConstraint(String, Double, Double, Expression)
Adds a new constraint to this model instance if it is consistent.
Public methodAddConstraints
Adds a set of constraint to this model instance if it is consistent.
Public methodAddObjective(Objective)
Adds objective to this model instance if it is consistent.
Public methodAddObjective(Expression, String, ObjectiveSense)
Adds a new objective to this model instance if it is consistent.
Public methodAddObjectives
Adds a set of objectives to this model instance if it is consistent.
Public methodAddSOS
Adds an SOS Constraint of the given SOSType
Public methodAddSOS1
Adds an SOS1 constraint
Public methodAddSOS2
Adds an SOS2 constraint
Public methodAddSOS3
Adds an SOS3 constraint
Public methodAddVariable(IVariable)
Adds variable to this model instance if it is consistent.
Public methodAddVariable(String, Double, Double, VariableType)
Adds a new variable to this model instance if it is consistent.
Public methodAddVariables
Adds a set of variables to this model instance if it is consistent. //TODO: discuss: What do we mean by "consistent"?
Public methodStatic memberCeil
Returns an Expression object respresenting the ceil roundoff of the specified expression.
Public methodClear
Removes all variables, constraints, objectives and scenarios from this model instance.
Public methodContainsConstraint
Contains this model instance a constraint named name?
Public methodContainsObjective
Contains this model instance an objective named name?
Public methodContainsVariable
Contains this model instance a variable named name?
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFloor
Returns an Expression object respresenting the floor roundoff of the specified expression.
Public methodGetConstraint
Returns the constraint named name, or null if this model instance contains no such constraint.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetObjective
Returns the objective named name, or null if this model instance contains no such objective.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetVariable
Returns the variable named name, or null if this model instance contains no such variable.
Public methodLoad
Loads the specified file.
Public methodStatic memberMax
Returns an Expression object representing the maximum of the specified expresssions.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberMin
Returns an Expression object respresenting the minimum of the specified expressions.
Public methodRemoveConstraint
Removes the constraint named name from this model instance, or does nothing if this model instance contains no such constraint.
Public methodRemoveConstraints
Removes a set of constraints from this model instance.
Public methodRemoveObjective
Removes the objective named name from this model instance, or does nothing if this model instance contains no such objective.
Public methodRemoveObjectives
Removes a set of objectives from this model instance.
Public methodRemoveVariable
Removes the variable named name from this model instance, or does nothing if this model instance contains no such variable.
Public methodRemoveVariables
Removes a set of variables from this model instance.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodWrite
Writes the model to the specified filestream.

See Also