--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/361ff0c3-bcb2-473a-a68e-c0fc64693eaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So you need 1 circuit constraint per driver.Arcs correspond to transition between shifts.Each arc is attached to a Boolean literal.After each shift, you need to create a dummy shift corresponding to a 30 minutes break.Then you accumulate worked hours, in a variable bounded at 240 minutes. Then the transition going out of a break resets the variable to 0.See https://github.com/google/or-tools/blob/stable/examples/contrib/scheduling_with_transitions_sat.py
De : Manuel Cantele <manuel...@gmail.com>
Date : sam. 18 mai 2019 à 14:09
À : or-tools-discuss
Hi,--
We're struggling with some aspects of the following problem:
- a public transportation bus timetable consists of shifts (~ track sections) each with fixed start and end times
- bus drivers need to be assigned to each of those shifts
- [constraint in question] legal regulations demand that each bus driver takes a 30 min break after 4 hours of driving (i.e. after driving a certain number of shifts)
- put differently, a driver accrues driving time when driving shifts that must not exceed 4h unless the driver takes a 30 min break in which case the accrued time is "reset to zero"
This type of constraint does not seem to appear in other archetypical assignment / scheduling problems:
- job shop problems are not comparable, because shifts (tasks) can be moved arbitrarily in job shop problems
- nurse / staff scheduling don't care about specific "sequences of shifts" but focus on staff preferences or forbidden assignments
- timetabling problems care mostly about avoiding specific combinations of shifts but again don't take specific "sequences of shifts" into account
In summary, we need to track the accrued driving time of each driver in order to suppress shift assignments to enforce the 30 min break.
So my question is, how to best model the above constraint in a constraint problem with the or-tools?
Thanks in advance!
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/74d33625-05f6-47a5-ab37-13f367c1b04f%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/6a814f4f-a5da-42cc-8e86-d602b1875395%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/8be9dc89-0a39-4861-8074-f8376b7362ef%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/09f11588-8ad7-49f7-9296-ec916e3c364d%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/1c0ecece-4b31-4dc0-944a-cd290fe612c0%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/0c99da05-5c9d-4ed0-b075-2c05ca663fab%40googlegroups.com.
Reducing memory, nothing concrete.You can split the data in 2 and solve 2 models.Can you send me the large data set ?
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/c20076c3-62aa-46df-b81a-043599803cc1%40googlegroups.com.
I will try to change the model.In the meantime, yes.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/31288c66-6800-4e12-a5ef-efae55bdc3a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/d06a8be8-0559-4763-964f-4ea3061e561cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/8d82b03b-ca37-4fd9-882c-6ecba4fc671dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/fc4436df-3b7e-4743-a108-f55f6a263659n%40googlegroups.com.