VRP - Vehicle Breaks not working properly #2956
Replies: 6 comments
-
Try using this src: https://github.com/google/or-tools/blob/master/examples/cpp/cvrptw_with_breaks.cc |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm using C#, is this limited to py? How do we define: vector<IntervalVar*>? Otherwise, must we use all sorts of tricks to support breaks? |
Beta Was this translation helpful? Give feedback.
-
@270ajay thanks for the hint but I get similar results when using In one of my tests I inserted three non optional breaks before the Order could be delivered. The assignment says that the breaks were performed and the Order delivered but the delivered time is the same as the one without breaks! I don't know if this is a bug or not, I'm just trying to figure it out. @GuyBenhaim with just one break I get some logic results, but with multiple it starts to give weird results... |
Beta Was this translation helpful? Give feedback.
-
@alvesdotcom have you tried to increase the penalty for dropping a node to a high amount? That might help avoid the jobs being dropped? |
Beta Was this translation helpful? Give feedback.
-
@arvsr1988 unfortunately, increasing the penalties doesn't have an effect in the results |
Beta Was this translation helpful? Give feedback.
-
@Mizux |
Beta Was this translation helpful? Give feedback.
-
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:
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!
Beta Was this translation helpful? Give feedback.
All reactions