segmentValue

OPL function (scheduling) to return the value of a segment of a cumulative or state function.

Purpose

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

context type
Model files (.mod) — postprocessing
int

Syntax

segmentValue(f, i);

Where:

int i;
cumulFunction f;
stateFunction f

Description

This function returns the value 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.