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

C#
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.

Definition

Namespace: Orx.MathProg
Assembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
C#
public Var this[
	Sca i,
	Sca j,
	Sca k
] { get; }

Parameters

i  Sca
First index of the variable.
j  Sca
Second index of the variable.
k  Sca
Third index of the variable.

Return Value

Var

See Also