Skip to content

Add support for vehicle breaks in routing - #88

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

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

Conversation

@MarkSpit

@MarkSpit MarkSpit commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

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.
@ankane ankane closed this in 729d155 Sep 14, 2026
@ankane

ankane commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Hi @MarkSpit, thanks for the PR. Added support in the commit above in a way that more closely matches the Python example.

@MarkSpit

Copy link
Copy Markdown
Contributor Author

@ankane Thank you for adding the support.

@MarkSpit
MarkSpit deleted the routing-breaks branch September 18, 2026 11:49
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.

2 participants