I would like to plan shifts with a month frequency

Specifications

It’s a custom nurse rostering problem.

    1. N is a set of nurses
    2. S is the set of shift-type (morning, afternoon, night, rest)
    3. nMorning is the number of nurses required every day to cover a morning
    4. nAfternoon is the number of nurses required every day to cover an afternoon
    5. nNight is the number of nurses required every day to cover a night
    6. Every shift lasts 8 hours
    7. Every nurse can work only for one shift in a day
    8. After every night a nurse must have a rest day
    9. Rest at the weekend and on holiday have to be balanced between all nurses
    10. I would like that after every morning there will be an afternoon, after an afternoon a night and after a night a rest day



I would like that after every morning there will be an afternoon, after an afternoon a night and after a night a rest day

We implemented everything with hard constraints.
Implementing some of them with soft constraints would be a hassle since it would be necessary to consider, for example, a sequence of an Afternoon followed by a Morning.



Rest at the weekend and on holiday have to be balanced between all nurses

Do trial and error by changing the values in the table below.





Prohibit consecutive 6 working days across the next month

You don’t need to prohibit the six consecutive working patterns because the working sequence is always three days pattern.



Load the Project File

File → Open Project File from GitHub