SystemObject Extreme.Mathematics.OptimizationOptimizationModelEntity Extreme.Mathematics.OptimizationDecisionVariable Extreme.Mathematics.OptimizationLinearProgramVariable
Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public class LinearProgramVariable : DecisionVariable
Public Class LinearProgramVariable
public ref class LinearProgramVariable : public DecisionVariable
type LinearProgramVariable =
The LinearProgramVariable type exposes the following members.
|Equals| (Inherited from Object.)
Determines whether the specified Object
is equal to the current Object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Serves as a hash function for a particular type. (Inherited from Object.)
|GetType| (Inherited from Object.)
Gets the Type
of the current instance.
|MemberwiseClone| (Inherited from Object.)
Creates a shallow copy of the current Object
Returns a string that represents the current object. (Inherited from Object.)
The DecisionVariable class represents a variable in a LinearProgram.
DecisionVariable objects are created using the linear program's AddVariable(String, Double)
method of the OptimizationModel class.
They may also be created when a constraint is added using the AddLinearConstraint(IListDecisionVariable, IListDouble, ConstraintType, Double) method.
Each variable has a Name, which may be generated automatically.
The LowerBound and UpperBound properties
specify the lower and upper bounds. The Cost property specifies the cost associated with the variable.
This is the coefficient of the variable in the objective function.
After the solution of the linear program has been computed, the
Value property returns the value of the variable in the optimal solution.
Supported in: 6.0, 5.x, 4.x