Skip to content
This repository was archived by the owner on Mar 19, 2026. It is now read-only.

Commit 2e90bae

Browse files
authored
Merge pull request #85 from IBMDecisionOptimization/vberaudi-16Jan2023
docplex 2.25.236
2 parents a2c5a5d + e6c07da commit 2e90bae

4 files changed

Lines changed: 59 additions & 50 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
.DS_Store
1 KB
Binary file not shown.

examples/mp/jupyter/nurses_scheduling.ipynb

Lines changed: 56 additions & 50 deletions
Large diffs are not rendered by default.

examples/mp/modeling/nurses.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ def setup_constraints(model):
402402
"high_req_min_{0!s}_{1}".format(s, demand_min))
403403
model.add_constraint(total_assigned <= demand_max,
404404
"medium_req_max_{0!s}_{1}".format(s, demand_max))
405+
model.add_constraint(total_assigned >= 1, "mandatory_presence_{0!s}".format(s))
405406

406407
for (dept, skill, required) in model.skill_requirements:
407408
if required > 0:

0 commit comments

Comments
 (0)