-
Notifications
You must be signed in to change notification settings - Fork 2.2k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Driver Breaks #2193
Comments
did you try master ? v7.5 is quite old and IIRC there was some dev on break recently... |
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 |
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 ) |
I would like to know whether a basic one-break with one vehicle case works using time_dimension.SetBreakIntervalsOfVehicle |
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: |
Any ideas? When vehicles start after t=0, defining breaks based on an absolute start time does not work ... |
Is this a feature to be supported? or a possible to trick to support on 7.X ? |
so using a duration dimension like explaining in another thread won't make it ? |
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? |
move: If you want to. I will keep both systems in parallel to
understand trends and preferences.
Laurent Perron | Operations Research | [email protected] | (33) 1 42 68 53
00
Le ven. 4 déc. 2020 à 15:30, GMan <[email protected]> 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>
.
|
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. 😞 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
The text was updated successfully, but these errors were encountered: