docplex 2.25.236

pull/85/head
Vincent Beraudier 2023-01-16 15:47:34 +01:00
parent a2c5a5d7e9
commit e6c07dae97
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: