C++ Reference: class CumulBoundsPropagator

This documentation is automatically generated.

Utility class used in the core optimizer to tighten the cumul bounds as much as possible based on the model precedences.
Method
CumulBoundsPropagator

Return type: explicit

Arguments: const RoutingDimension* dimension

CumulMax

Return type: int64

Arguments: int index

CumulMin

Return type: int64

Arguments: int index

dimension

Return type: const RoutingDimension&

PropagateCumulBounds

Return type: bool

Arguments: const std::function<int64(int64)>& next_accessor, int64 cumul_offset

Tightens the cumul bounds starting from the current cumul var min/max, and propagating the precedences resulting from the next_accessor, and the dimension's precedence rules. Returns false iff the precedences are infeasible with the given routes. Otherwise, the user can call CumulMin() and CumulMax() to retrieve the new bounds of an index.