segmentEnd

OPL function (scheduling) to return the end of the indexed segment of a cumulative function or a state function in the solution.

context type
Model files (.mod) — postprocessing
int

Syntax

segmentEnd(f, i);

Where:

int i;
cumulFunction f;
stateFunction f;

Description

This function returns the end time of the segment referenced by the index i of a cumulative function or a state function f in the solution. This function is available when a solution exists.