© J. Christopher Beck Lecture 18: Timetabling with Workforce Capacity
© J. Christopher Beck Outline Adding Workforce Capacity to Timetabling Examples 9.4.1, Bin Packing Example 9.4.3, 9.4.4
© J. Christopher Beck Workforce Capacity n activities Processing time of activity j is p j No pre-emption An infinite number of resources Each activity requires W j workers You only have W workers Find a schedule that minimizes makespan
© J. Christopher Beck Example W = 10 Find a lower bound on the makespan Find minimum makespan schedule activities pjpj WjWj
© J. Christopher Beck Special Case: Exam Scheduling (Example 9.4.2) All exams have the same duration One exam room with capacity W Course j has W j students All students in course j must write the exam at the same time Find a timetable for all n exams in the minimum amount of time
© J. Christopher Beck Special Case = Bin Packing … Each bin has capacity = W W1W1 W2W2 W3W3 W4W4 W5W5 W6W6 W7W7 W8W8 Pack the objects into the bins to minimize the number of that are used
© J. Christopher Beck Special Case = Bin Packing … Each bin has capacity = W W1W1 W2W2 W3W3 W4W4 W5W5 W6W6 W8W8 Pack the objects into the bins to minimize the number of that are used W7W7
© J. Christopher Beck Example Find a lower bound on the number of bins Find an upper bound on the number of bins Find a solution – is it optimal? activities1…67…1213…18 WjWj W = 2100
© J. Christopher Beck Bin Packing Heuristics First Fit (FF) Order items arbitrarily Put item into lowest number bin that it will fit into First Fit Descending (FFD) Order items in descending order Put item into lowest number bin that it will fit into
© J. Christopher Beck Example Find FF solution Find FFD solution Is either solution optimal? activities1…67…1213…18 WjWj W = 2100
© J. Christopher Beck Example Find LB & UB Find FF solution Find FFD solution Find optimal solution activities1…67…1213…1819…30 WjWj W = 1000