ParD2Item Property

Returns the parametr's value at the (i,j)-th position. Note that the indices can be any scalar (constant for the mathematical model) expression.

Consider for instance

C#
Set i = ...;
Set j = ...;
ParD2 cost = Parameter("cost").Represents("cost of unit flow on arc (i,j)").HasIndices(i, j).HasValues(1);
Then:
  • cost[0, 1] is the unit flow cost of arc (0, 1),
  • cost[i, j] is the unit flow cost of arc (i, j),
  • cost[0, j] is the unit flow cost of arc (0, j),
  • cost[source[c], j] is the unit flow cost of 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 Sca this[
	Sca i,
	Sca j
] { get; }

Parameters

i  Sca
First index of the parameter.
j  Sca
Second index of the parameter.

Return Value

Sca

See Also