Consecutive shift sequences with scope
complete
M
Matej Cimbora (Solutions)
The consecutive constraints in the model currently operate with the day granularity only. That means, if we have the following shifts assigned to an employee:
- Day 1, 18:00 - 22:00
- Day 3 02:00 - 06:00
- Day 4 02:00 - 06:00
This produces 2 daily sequences [Day 1], [Day 3, Day 4], because we look at shift's start times.
Some use cases treat sequences differently. There is a scope (for example 36 hours). If the shifts are not separated by more than the 36-hour limit, they are treated as a single sequence.
In the example above, the shifts would be consecutive, since "Day 1" and "Day 3" shifts are separated by 28 hours.
This is a request to introduce the new scope concept to the "consecutive shifts worked" rules, so that we can express rules like "Maximum 7 consecutive shifts in a sequence".
Moreover, the constraint ideally supports "filtering" case too, such as "Maximum 7 consecutive shifts in a sequence containing one or more night shifts".
Log In
Jurriaan Persyn
marked this post as
complete
We’re excited to let you know that this feature is now available since our last release.
Thank you for sharing your feedback, it helps us make Timefold even better for you.
To start using the feature, see https://feedback.timefold.ai/changelog/demand-shift-generation-infeasibility-handling-and-more-improvements-v130 for more details. If you have any questions or further suggestions, feel free to reach out!
Jurriaan Persyn
VP Product
Jurriaan Persyn
marked this post as
under review