Skip to content

Commit 1a024bc

Browse files
committed
add comment to clarify changing of assignment value from 2 to 100 in build_nl
1 parent 7536567 commit 1a024bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

employee_scheduling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ def build_nl(
250250

251251
# Create availability constant
252252
availability_list = [availability[employee] for employee in employees]
253+
# Boost objective value of preferred shifts from 2 to 100
253254
for i, sublist in enumerate(availability_list):
254255
availability_list[i] = [a if a != 2 else 100 for a in sublist]
255256
availability_const = model.constant(availability_list)

0 commit comments

Comments
 (0)