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.



✓ 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.



See also How do you describe a maximum consecutive pattern? .



Load the Project File

File → Open Project File from GitHub