How can I constrain the maximum number of consecutive work days? The continuity from the previous month must also be taken into account.
See the following patterns.
![](https://www.nurse-scheduling-software.com/images/constraint_faqs/user_17.png)
✓ is It is a complement operator(means NOT) for the shift. Since the label ‘O’ here is the day-Off, ✓O displays “Work”. Here we see consecutive six ✓O, so the constraint prohibits consecutive six work days.
DayType should capture the previous five days of last month for continuity from last month. The following figure automatically replaces this process.
![](https://www.nurse-scheduling-software.com/images/constraint_faqs/user_20.png)
See also How do you describe a maximum consecutive pattern? .
Load the Project File
File → Open Project File from GitHub
![](https://www.nurse-scheduling-software.com/images/constraint_faqs/user_19.png)