SystemObject Extreme.Mathematics.OptimizationOptimizationModelEntity Extreme.Mathematics.OptimizationDecisionVariable Extreme.Mathematics.OptimizationLinearProgramVariable
Namespace:
Extreme.Mathematics.Optimization
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public class DecisionVariable : OptimizationModelEntity
Public Class DecisionVariable
Inherits OptimizationModelEntity
public ref class DecisionVariable : public OptimizationModelEntity
type DecisionVariable =
class
inherit OptimizationModelEntity
end
The DecisionVariable type exposes the following members.
Top
| Name | Description |
---|
 | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
 | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
 | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
 | GetType | Gets the Type of the current instance. (Inherited from Object.) |
 | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
 | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Top
The DecisionVariable class represents a variable
in a OptimizationModel. DecisionVariable
objects are created using the linear program's
AddVariable(String, Double, Double)
method of the OptimizationModel class.
They may also be created when a constraint is added using
the [o:OptimizationModel.AddLinearConstraint] method.
Each variable has a Name, which may be generated automatically.
The LowerBound and UpperBound properties
specify the lower and upper bounds.
After the solution of the model has been computed, the
Value property returns the value of the variable in the optimal solution.
Reference