Employee Roster - Copy this React, Tailwind Component to your project
Generate an employee roster for 21 days starting from today. Roster solving will adhere to the following constraints: Employee constraints: Each employee should have at most 1 task per shift Each employee should only work maximum of 5 consecutive days. Each employee should have a minimum of 90 hours for the duration of the roster and a maximum of 120 hours. Each employee must have the qualification for the task in a shift. Each shift should have at least 1 supervisor Shift constraint: Each task should have at most 1 qualified employee. Each shift should have 1 supervisor. Details of employees skillset: Niel Skill: cold,expo,grill Massa= supervisor Skill:cold,expo,grill Jed Skill:expo,grill Elina= supervisor Skill:cold Juhanni Skill:cold Jimi Skill:cold,expo,grill Mikko= supervisor Skill:expo,grill Pete= supervisor Skill:expo Shift details: Morning shift= 09:00 16:00 Tasks= cold,expo,grill Evening shift= 16:00 22:00 Tasks= cold,expo,grill We should also consider day off request from each employee.
