C++ Reference

C++ Reference: Routing

GlobalVehicleBreaksConstraint

Detailed Description

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).

Definition at line 1851 of file routing.h.

Public Member Functions

 GlobalVehicleBreaksConstraint (const RoutingDimension *dimension)
 
std::string DebugString () const override
 
void Post () override
 
void InitialPropagate () override
 

Constructor & Destructor Documentation

◆ GlobalVehicleBreaksConstraint()

GlobalVehicleBreaksConstraint ( const RoutingDimension dimension)
explicit

Member Function Documentation

◆ DebugString()

std::string DebugString ( ) const
inlineoverride

Definition at line 1854 of file routing.h.

◆ InitialPropagate()

void InitialPropagate ( )
override

◆ Post()

void Post ( )
override

The documentation for this class was generated from the following file: