VarD1Item Property
Returns the variable at the i-th position.
Note that the index can be any scalar (constant for the mathematical model) expression.
Consider for instance
VarD1 y = Variable("y").Represents("1 if project p is carried out; 0 ow").HasIndices(p).IsBinary();
Then:
- y[0] is the y-variable for the 0-th project,
- y[p] is the y-variable for the p-th project,
- y[p + 1] is the y-variable for the (p+1)-th project.
Namespace: Orx.MathProgAssembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
public Var this[
Sca i
] { get; }
- i Sca
- First index of the variable.
Var