VarD3 Class

A 3-dimensional variable symbol, having three indices.

Definition

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

Properties

BoundsType Bounds type of the variable.
Definition Definition of the variable.
Dimension Dimension of the variable symbol.
Item 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.
Key Key of the variable.
VariableType Type of the variable: Continuous, Binary or Integer.

Methods

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

Fields

Bounds Bounds of the variable.

See Also