Merge pull request #85 from IBMDecisionOptimization/vberaudi-16Jan2023

docplex 2.25.236
master
Vincent Beraudier 2023-01-24 11:01:45 +01:00 committed by GitHub
commit 2e90baee03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 50 deletions

2
.gitignore vendored 100644
View File

@ -0,0 +1,2 @@
.DS_Store

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -402,6 +402,7 @@ def setup_constraints(model):
"high_req_min_{0!s}_{1}".format(s, demand_min))
model.add_constraint(total_assigned <= demand_max,
"medium_req_max_{0!s}_{1}".format(s, demand_max))
model.add_constraint(total_assigned >= 1, "mandatory_presence_{0!s}".format(s))
for (dept, skill, required) in model.skill_requirements:
if required > 0: