C++ Reference: class CumulBoundsPropagator

Note: 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_t

Arguments: int index

CumulMin

Return type: int64_t

Arguments: int index

dimension

Return type: const RoutingDimension&

PropagateCumulBounds

Return type: bool

Arguments: const std::function<int64_t(int64_t)>& next_accessor, int64_t 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.