This method assumes that the cumul function expression f is fixed. It returns the value of the ith segment of the cumul function expression f.

Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)

Syntax

C#
public int GetSegmentValue(
	ICumulFunctionExpr f,
	int i
)

Parameters

f
Type: ILOG.Concert..::..ICumulFunctionExpr
i
Type: System..::..Int32

Remarks

A segment is an interval [start, end) on which the value of f is constant. If n is the number of segments of the function segments are indexed starting from 0 so index i should belong to the range [0,n). An exception is thrown if i is not a valid segment index or f is not fixed.

See Also