ParD1 Class

A 1-dimensional (array) parameter symbol.

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 ParD1
Inheritance
Object    ParD1

Properties

Definition Definition of the variable.
Dimension Dimension of the parameter symbol.
Item Returns the parameter's value at the i-th position. Note that the index can be any scalar (constant for the mathematical model) expression.

Consider for instance

C#
double[] demandPerTime = ...;
Set t = ...;
ParD1 demand = Parameter("demand").Represents("demand at time t").HasIndices(t).HasValues(demandPerTime);
Then:
  • demand[0] is the demand at time 0,
  • demand[t] is the demand at time t,
  • demand[t + 1] is the demand at time t + 1.
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