Skip to content

Add support for vehicle breaks in routing - #88

Open
MarkSpit wants to merge 1 commit into
ankane:masterfrom
MarkSpit:routing-breaks
Open

Add support for vehicle breaks in routing#88
MarkSpit wants to merge 1 commit into
ankane:masterfrom
MarkSpit:routing-breaks

Conversation

@MarkSpit

@MarkSpit MarkSpit commented Sep 6, 2026

Copy link
Copy Markdown

Adds bindings for vehicle breaks in the routing solver, mirroring Python's
SetBreakIntervalsOfVehicle and the official vrp_breaks sample:

  • RoutingDimension#set_break_intervals_of_vehicle(breaks, vehicle, node_visit_transits)
  • RoutingSolver#fixed_duration_interval_var(start_min, start_max, duration, optional, name)
  • Assignment#start_value, #end_value, #performed_value to read breaks from a solution

The node_visit_transits overload is the one Python exposes; the pre/post-travel
evaluator overload can be added later if wanted. Includes a test; the full suite passes.

Adds RoutingDimension#set_break_intervals_of_vehicle, a fixed_duration_interval_var overload with a start range, and Assignment#start_value, #end_value and #performed_value to read the scheduled breaks from a solution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant