I have a table of the workload for each specific hour of the day of the week. I have a certain number (24) of the employees which I can assign to the shift. Starting of the shift is flexible. Once the shift starts employee works for 8 hours. After the end of the shift, they can be called back to work a after minimum of 16 hours. Weekly hours of work cannot exceed 40 for each employee. What libraries in Python can help me to solve this? Are there any ready solutions? I want to label each worker as “a”,”b”,”c” and so on and generate a table where I can see each hour of the days within the week when the certain employee should be at work. I want to distribute my resources in the most efficient way to tackle with workload we have.
The problem is I could not manage to show the sum of total number of employees present at work when late shift goes to the next day. It should affect to the number of employees that I call to work as there is no reason to have an excessive number of workers to be present at work at certain time. It will affect to the end of the day when I will have a shortage of labor force but I will no have resources anymore.
Thanks for your help in advance.
I tried some codings with pulp and ortools but could not manage it. I tried to generate the table where the 1st column is days of the week, the 2nd hours and the rest employees. As a value, I tried to show the hours when they should be at work. I am trying to figure out it for several days but no results. In some cases I hade all zero values, in some cases, daily worker number exceeded 24, or weekly working hours were over 40, and so on.
Shahobiddin Davlatov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.