typeOfNext
An OPL function (scheduling) that returns the type of the next interval in a given sequence.
Purpose
An OPL function (scheduling) that returns the type of the next interval in a given sequence.
| context | type |
|---|---|
| Model files (.mod) |
dexpr int |
Syntax
dexpr int t = typeOfNext (p, a ,nVal [,absVal]); where: int nVal; int absVal;
Description
This
function returns an integer expression that represents the type of
the interval variable that is next to interval a in
sequence variable p. When interval a is present and is the last interval of sequence p, the function returns the constant integer value nVal. When interval a is
absent, the function returns the constant integer value absVal.
If the value absVal is omitted, it is considered
to be 0.