We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
build_nl
1 parent 7536567 commit 1a024bcCopy full SHA for 1a024bc
employee_scheduling.py
@@ -250,6 +250,7 @@ def build_nl(
250
251
# Create availability constant
252
availability_list = [availability[employee] for employee in employees]
253
+ # Boost objective value of preferred shifts from 2 to 100
254
for i, sublist in enumerate(availability_list):
255
availability_list[i] = [a if a != 2 else 100 for a in sublist]
256
availability_const = model.constant(availability_list)
0 commit comments