label it and add to the problem
This commit is contained in:
parent
0b41c341b7
commit
20a2f5dd81
@ -108,9 +108,11 @@ class LoftService(Base):
|
|||||||
] + [
|
] + [
|
||||||
item.iif(self.solver_run, target.theta) * items[item.id]
|
item.iif(self.solver_run, target.theta) * items[item.id]
|
||||||
for item in self.solver_run.items
|
for item in self.solver_run.items
|
||||||
])
|
]) <= target.value, f'min tif theta {target.theta} target for form {form_number}'
|
||||||
|
|
||||||
|
problem += tif
|
||||||
problem_objective_functions.append(tif)
|
problem_objective_functions.append(tif)
|
||||||
|
|
||||||
e = LpAffineExpression(
|
e = LpAffineExpression(
|
||||||
[(bundles[bundle.id],
|
[(bundles[bundle.id],
|
||||||
bundle.tif(self.solver_run.irt_model, target.theta))
|
bundle.tif(self.solver_run.irt_model, target.theta))
|
||||||
@ -133,7 +135,9 @@ class LoftService(Base):
|
|||||||
] + [
|
] + [
|
||||||
item.irf(self.solver_run, target.theta) * items[item.id]
|
item.irf(self.solver_run, target.theta) * items[item.id]
|
||||||
for item in self.solver_run.items
|
for item in self.solver_run.items
|
||||||
])
|
]) <= target.value, f'min tcc theta {target.theta} target for form {form_number}'
|
||||||
|
|
||||||
|
problem += tcc
|
||||||
problem_objective_functions.append(tcc)
|
problem_objective_functions.append(tcc)
|
||||||
|
|
||||||
e = LpAffineExpression(
|
e = LpAffineExpression(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user