VarD1 Class

A 1-dimensional (array) variable symbol.

Definition

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

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-th position. Note that the index can be any scalar (constant for the mathematical model) expression.

Consider for instance

C#
VarD1 y = Variable("y").Represents("1 if project p is carried out; 0 ow").HasIndices(p).IsBinary();
Then:
  • y[0] is the y-variable for the 0-th project,
  • y[p] is the y-variable for the p-th project,
  • y[p + 1] is the y-variable for the (p+1)-th project.
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