Gets all cumul functions in the current model.

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

Syntax

C#
public virtual ICumulFunctionExpr[] GetAllConstrainedICumulFunctionExprs()
Visual Basic
Public Overridable Function GetAllConstrainedICumulFunctionExprs As ICumulFunctionExpr()

Remarks

This method returns an array of all the cumulative function expressions extracted by the invoking CP Optimizer engine whose heights are constrained:

  • on whole definition interval using operator constraints Le and Ge,
  • during certain intervals using constraint AlwaysIn (alwaysIn in CPO language).

If the current model was not extracted or if it was changed since last extraction, this method will (re)extract it.

Note that if a cumulative function is used only in expressions such as HeightAtStart (heightAtStart in CPO language) then it is not included.

The cumulative function expressions returned by this method can be used, for example, to query solution values using functions such as GetValue(ICumulFunctionExpr, Int32), GetNumberOfSegments(ICumulFunctionExpr), GetSegmentStart(ICumulFunctionExpr, Int32), GetSegmentEnd(ICumulFunctionExpr, Int32), GetSegmentValue(ICumulFunctionExpr, Int32).

See Also