This commit is contained in:
Laurent Perron
2021-12-29 16:47:49 +01:00
parent 565b672c71
commit 6f24d2a0ea

View File

@@ -215,11 +215,11 @@ def solve_shift_scheduling(params, output_proto):
# Request: (employee, shift, day, weight)
# A negative weight indicates that the employee desire this assignment.
requests = [
# Employee 3 does not want the first shift on the first Saturday (negative weight).
# Employee 3 does not want to work on the first Saturday (negative weight for the Off shift).
(3, 0, 5, -2),
# Employee 5 does not want a night shift on the second Thursday (negative weight).
# Employee 5 wants a night shift on the second Thursday (negative weight).
(5, 3, 10, -2),
# Employee 2 does want a night shift on the first Friday.
# Employee 2 does not want a night shift on the first Friday (positive weight).
(2, 3, 4, 4)
]