sizeEval
OPL numerical expression (scheduling) used to evaluate a piecewise linear function on the size of an interval
Purpose
OPL numerical expression (scheduling) used to evaluate a piecewise linear function on the size of an interval.
context | type |
---|---|
Model files (.mod) |
dexpr float |
Syntax
dexpr float sizeEval (a,f[,dval]); Where: pwlFunction f; dvar interval a; float dval;
Description
This numerical expression is used to evaluate a piecewise linear function on the size of an interval (see size for definition of interval size and length). Special care must be taken for optional intervals: in this case a float value dval must be specified, to represent the value of the expression when the interval is absent. If this value is omitted, it is considered to be 0.
For an example of using an evaluation expression, see endEval.