Skip to main content
PREV CLASS NEXT CLASS

 

Class IloCumulFunctionExpr

IloCumulFunctionExpr

Description:

An OPL class that uses the cumulative function (scheduling).

Example:
An example using the cumulative function is provided with your installation. See:
<Install_dir>\opl\examples\opl\sched_cumul\sched_cumul.mod

Method Summary
Method Attributes Method Name and Description
postprocessing
Returns the number of segments of a cumulative function.
postprocessing
Returns the end of a segment of a cumulative function.
postprocessing
Returns the start of a segment of a cumulative function.
postprocessing
Returns the value of a segment of a cumulative function.
postprocessing
Returns the value of a cumulative function at a given point.
Method Detail
getNumberOfSegments
{int} getNumberOfSegments()
Returns the number of segments of a cumulative function.
Returns:
The number of segments of the corresponding stepwise non-negative function. A segment is an interval [start, end) on which the value of the function is constant.
Available for:
postprocessing

getSegmentEnd
{int} getSegmentEnd(i)
Returns the end of a segment of a cumulative function.
Parameters:
i - Segment position
Returns:
The end of the ith segment of the corresponding stepwise non-negative function.
Available for:
postprocessing

getSegmentStart
{int} getSegmentStart(i)
Returns the start of a segment of a cumulative function.
Parameters:
i - Segment position
Returns:
The start of the ith segment of the corresponding stepwise non-negative function.
Available for:
postprocessing

getSegmentValue
{int} getSegmentValue(i)
Returns the value of a segment of a cumulative function.
Parameters:
i - Segment position
Returns:
The value of the ith segment of the corresponding stepwise non-negative function.
Available for:
postprocessing

getValue
{int} getValue(i)
Returns the value of a cumulative function at a given point.
Parameters:
i - A point
Returns:
The value of the corresponding stepwise non-negative function at point i.
Available for:
postprocessing

©Copyright IBM Corp. 1987-2011.