mardi 9 août 2022

Randomize Working Days of 24 workers for a Roster [closed]

I have the following problem:

I want to create a roster for a hospital where there are 24 doctor residents which have to decide who works which nights in a month. The idea is to randomize the solution with some constraints.

  • There has to be at least "3" residents each night
  • A resident must work at least "2" nights in the month

I have no idea how to create randomness, I want to build the code in Python as EXCEL doesn't accept more than 200 variables

Other ideas:

Giving different scores to days of the week or holiday nights and adding another constraint to SUM(score_Resident)




Aucun commentaire:

Enregistrer un commentaire