Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: class GlobalVehicleBreaksConstraint
Note: This documentation is automatically generated.
GlobalVehicleBreaksConstraint ensures breaks constraints are enforced on
all vehicles in the dimension passed to its constructor.
It is intended to be used for dimensions representing time.
A break constraint ensures break intervals fit on the route of a vehicle.
For a given vehicle, it forces break intervals to be disjoint from visit
intervals, where visit intervals start at CumulVar(node) and last for
node_visit_transit[node]. Moreover, it ensures that there is enough time
between two consecutive nodes of a route to do transit and vehicle breaks,
i.e. if Next(nodeA) = nodeB, CumulVar(nodeA) = tA and CumulVar(nodeB) = tB,
then SlackVar(nodeA) >= sum_{breaks \subseteq [tA, tB)} duration(break).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["`GlobalVehicleBreaksConstraint` ensures that break constraints are applied to all vehicles within a specific dimension, typically representing time."],["This constraint guarantees that break intervals do not overlap with visit intervals and that there's enough time for transit and breaks between consecutive nodes in a route."],["It is implemented within the OR-Tools constraint solver and offers methods for debugging, initialization, and constraint posting."]]],["`GlobalVehicleBreaksConstraint` enforces break constraints on all vehicles within a specified dimension, typically representing time. It ensures break intervals are disjoint from vehicle visit intervals, defined by `CumulVar(node)` and `node_visit_transit[node]`. It also mandates sufficient time between consecutive nodes for transit and breaks. Key methods include: `GlobalVehicleBreaksConstraint` for initialization with a `RoutingDimension`, `Post` to add constraints, `InitialPropagate` for initial constraint propagation, and `DebugString` to return a debug string.\n"]]