ParD1Item Property

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.

Definition

Namespace: Orx.MathProg
Assembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
C#
public Sca this[
	Sca i
] { get; }

Parameters

i  Sca
First index of the parameter.

Return Value

Sca

See Also