VarD3Item Property
Returns the variable at the (i,j,k)-th position.
Note that the indices can be any scalar (constant for the mathematical model) expression.
Consider for instance
VarD3 x = Variable("x").Represents("flow of commodity c on arc (i, j)").HasIndices(c, i, j).IsContinuous().IsNonnegative();
Then:
- x[2, 0, 1] is the x-variable for commodity 2 on arc (0, 1),
- x[c, i, j] is the x-variable for commodity c on arc (i, j),
- x[c, 0, j] is the x-variable for commodity c on arc (0, j),
- x[c, source[c], j] is the x-variable for commodity c on arc (source[c], j), where source[c] is the source node of commodity c.
Namespace: Orx.MathProgAssembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
public Var this[
Sca i,
Sca j,
Sca k
] { get; }
- i Sca
- First index of the variable.
- j Sca
- Second index of the variable.
- k Sca
- Third index of the variable.
Var