Driver Breaks #2982
Replies: 11 comments
-
|
did you try master ? v7.5 is quite old and IIRC there was some dev on break recently... |
Beta Was this translation helpful? Give feedback.
-
|
Changed to v7.8 and used this: break_intervals[vehicle] = model.solver().MakeFixedDurationIntervalVar(
0, end_time, 10000, false, "vehicle " + vehicle.ToString());
time_dimension.SetBreakIntervalsOfVehicle(break_intervals, vehicle, -1,-1);With the SetBreakIntervalsOfVehicle condition solver seems to push the visits to be as late as possible, i.e. the solution always visits the end point at the latest possibe (end time = 60000). This occurs even when setting IntervalVar Duration=0. For example if visits with the condition are 57000 > 58000 > 59000 > 60000 |
Beta Was this translation helpful? Give feedback.
-
|
Probing IntervalVar: It is performed and gets start and end values assigned to it, but only pushes the visit times (i.e. no effect on time between node and total solution time ) |
Beta Was this translation helpful? Give feedback.
-
|
I would like to know whether a basic one-break with one vehicle case works using time_dimension.SetBreakIntervalsOfVehicle |
Beta Was this translation helpful? Give feedback.
-
|
Is there a way for the vehicle break to start certain T time-units after the vehicle's start time, which is Either by setting the intervalvar's min_start and max_start parameters, using start: Or by adding a proper constraint: |
Beta Was this translation helpful? Give feedback.
-
|
Any ideas? When vehicles start after t=0, defining breaks based on an absolute start time does not work ... |
Beta Was this translation helpful? Give feedback.
-
|
Is this a feature to be supported? or a possible to trick to support on 7.X ? |
Beta Was this translation helpful? Give feedback.
-
|
so using a duration dimension like explaining in another thread won't make it ? |
Beta Was this translation helpful? Give feedback.
-
|
Should work as long as no is added Slack in the time-dimension. BTW: I saw Laurent's earlier request. Should we move all discussion to GitHub? |
Beta Was this translation helpful? Give feedback.
-
|
move: If you want to. I will keep both systems in parallel to
understand trends and preferences.
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53
00
Le ven. 4 déc. 2020 à 15:30, GMan <notifications@github.com> a écrit :
… Should work as long as no is added Slack in the time-dimension.
BTW: I saw Laurent's earlier request. Should we move all discussion to
GitHub?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2193 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3ORBZYSEQSNPJXZX3LSTDW6PANCNFSM4SIL4VHQ>
.
|
Beta Was this translation helpful? Give feedback.
-
|
Since break is a hot and specific topic, I like github issue since you can have several labels while discussion seems to be one category only. 😞 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
For Google.OrTools.7.5.7466 in .Net, using Routing
I'm checking Breaks using IntervalVar. Aiming for one break per vehicle, that occurs anytime within a certain time-window.
With a small set (1 vehicle, 2 nodes: P + D) adding the breaks does not seem to change the solution times at all. I do get a solution.
I used the newer version of the API:
To simplify I set the last two parameters to -1 (which should make these return 0 for pre and post times).
Anyone successful with implementing such case? (i.e. getting a correct and consistent solution)
Can this API work, are we forced to use wacky fake-nodes?
p.s. Posted also in GitHub
Thanks
Beta Was this translation helpful? Give feedback.
All reactions