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
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.
Namespace: Orx.MathProgAssembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
public Sca this[
Sca i
] { get; }
- i Sca
- First index of the parameter.
Sca