VRP with break windows not working properly when fix_start_cumul_to_zero is false #2958
Replies: 12 comments
-
Break are known to not work (#569) as expected in any
side note: a |
Beta Was this translation helpful? Give feedback.
-
@Mizux
Run the VRP_or-tools_v7.0-beta.1_test_vehicle_break_interval.cpp, you can get I'm wondering whether I have a bad implementation or the bug is still unfixed. |
Beta Was this translation helpful? Give feedback.
-
It didn't work at first, for the interval from the depot to first order node was ignored. |
Beta Was this translation helpful? Give feedback.
-
So, for V7 breaks work? including or interval/segment from the depot, and with multiple-breaks per vehicle? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello, For #595 what do you mean "interval from the depot to the first order node was considered"? Thx |
Beta Was this translation helpful? Give feedback.
-
Breaks in For #595, codes implemented here , not started from depot node
In my scene, which consider the interval from the depot node to first node with break constraint
while the you can try the toy code here |
Beta Was this translation helpful? Give feedback.
-
7.0 is out. Can you try with the official release ?
Laurent Perron | Operations Research | [email protected] | (33) 1 42 68 53
00
Le jeu. 4 avr. 2019 à 08:34, Yuan <[email protected]> a écrit :
… @GuyBenhaim <https://github.com/GuyBenhaim>
Can you update whether this was resolved in v7.x ?
Breaks in v7.0-beta.1 not work for me
------------------------------
For #595 <#595>, codes implemented
here
<https://github.com/pmateusz/or-tools/blob/c0a9ce80cde70e3df1db45ed904e63b47d37e7e9/examples/cpp/cvrptw_with_breaks_repro.cc#L173>
, not started from depot node
int64 current_index = model->NextVar(model->Start(vehicle_))->Value();
In my scene, which consider the interval from the depot node to first node
with break constraint
for example, the transport time to the first node is 3600, while the break
interval is [1000, 2000), the supposed arrival time of the first node is
5600, after changing this:
int64 current_index = model->Start(vehicle_);
while the v7.0-beta.1 gives 4600 and sometimes results to no solution
you can try the toy code here
<https://gist.github.com/shiyuan/30e7658df7687355a21bc0e59bd16bb9>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#994 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKj17QYj-W3_jT2bAP92qKFdgUovjgleks5vdZzygaJpZM4Zhl85>
.
|
Beta Was this translation helpful? Give feedback.
-
@lperron I tried |
Beta Was this translation helpful? Give feedback.
-
can you post the new code (with 7.x) ? |
Beta Was this translation helpful? Give feedback.
-
@lperron |
Beta Was this translation helpful? Give feedback.
-
Any progress on fixing this issue ? fix_start_cumul_to_zero=False to work for fixed breaks. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use break intervals in VRP, it seems the method
RoutingDimension::SetBreakIntervalsOfVehicle
is not working properly.Building a VRP of one vehicle(with break time of [100, 1100]) and one order(400 away to depot), the arrival time of the order node should be 1400, but the code below gives 1100, it seems the method has bugs.
But, if the
fix_start_cumul_to_zero
is set to true, It gives the correct solutionIn more complicated scenes,the constraint of break intervals may end with no solution, actually there exist one, hope someone can help.
Beta Was this translation helpful? Give feedback.
All reactions