Skip to content

VRP - Vehicle Breaks not working properly #833

@alvesdotcom

Description

@alvesdotcom

I'm trying to implement Vehicles breaks without success.

I have implemented a simple case were only one order and one vehicle exists.
There are no Time Windows defined, so the order can be delivered from time 0 to kHorizon (48h).
The travel time from depot to the order is 40k seconds (11.1h).
There are two mandatory vehicle breaks:

  • The first one starts at 1h and has a duration of 6h
  • The second one starts at 12h and has a duration of 3h

Considering this data, the vehicle should be able to arrive at the order around 20.1h as follows:
1h (T) + 6h (B) + 5h (T) + 3h (B) + 5.1h (T)
where T = Travel Time and B = Break Time

But the order is dropped by the routing solver.
If one of the breaks is removed the order is delivered correctly.

I created the following gist with this sample: https://gist.github.com/alvesdotcom/fda7074daf6e9540c3aa05828586adff

Can someone confirm if this issue is in OrTools or in my gist?

Thank you!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions