ParD2 Class

A 2-dimensional (array) parameter symbol, having two indices.

Parameters represents constants for the mathematical model, values of which can lazily be evaluated.

Definition

Namespace: Orx.MathProg
Assembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
C#
public class ParD2
Inheritance
Object    ParD2

Properties

Definition Definition of the variable.
Dimension Dimension of the parameter symbol.
Item 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.
Key Key of the variable.
ValuesDefinition Definition of source of values of the parameter.

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetHashCode
(Inherited from Object)
GetIndices Returns an immutable collection of the parameter indices.
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
ToString
(Inherited from Object)

See Also