rodrigo-arenas / pyworkforce

Standard tools for workforce management, queuing, scheduling, rostering and optimization problems.
https://pyworkforce.readthedocs.io
MIT License
73 stars 19 forks source link

How to handle weekly shift constraints? #37

Closed nschimmoller closed 1 year ago

nschimmoller commented 1 year ago

Hey Rodrigo,

Thanks for this great package. Had a hopefully quick question for you. Is there a way to determine the optimal scheduling with constraints on what days of the week somebody can work. My understanding is that given inputting 7 days worth of capacity need and different shift options PyWorkforce would recommend let's say 10 people every day of the week that work the morning shift.

Obviously in the real world we can't necessarily have 10 people work all 7 days consecutively. How would we best go about finding how to optimally staff to this arrival pattern?

rodrigo-arenas commented 1 year ago

Hi @nschimmoller I'm glad you find this package useful There're two ways you can approach this:

For a full example with both parameters check this tutorial: https://pyworkforce.readthedocs.io/en/stable/tutorials/rostering.html

rodrigo-arenas commented 1 year ago

I'm closing this issue, let me know if you have more questions related to this