accurate comment and result tif/tcc verbage

This commit is contained in:
Josh Burman 2021-12-18 07:49:07 +00:00
parent b3bf662c2f
commit d731b901ff
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ def solution_to_file(buffer, total_form_items, forms):
row = [form.status]
for result in form.tif_results + form.tcc_results:
row += [f'value - {result.value}\nresult - {round(result.result, 2)}']
row += [f'target - {result.value}\nresult - {round(result.result, 2)}']
# provide generated items and cut score
row += [round(form.cut_score, 2)] + [item.id for item in form.items]

View File

@ -78,7 +78,7 @@ class LoftService(Base):
# dynamic constraints
problem = solver_helper.build_constraints(self.solver_run, problem, items)
# multi-objective functions and constraints
# multi-objective constraints
for target in self.solver_run.objective_function.tif_targets:
problem += lpSum([item.iif(self.solver_run, target.theta)*items[item.id]
for item in self.solver_run.items]) <= target.value, f'min tif theta ({target.theta}) target value {target.value}'