this should be max

This commit is contained in:
Adrian Manteza 2022-03-23 13:12:16 +00:00
parent 4acb9545d4
commit e04eead569

View File

@ -48,7 +48,7 @@ def build_constraints(solver_run: SolverRun, problem: LpProblem,
[
con[item.id] * items[item.id] for item in solver_run.unbundled_items()
]
) <= round(total_form_items * (min / 100)), f'{attribute.id} - {attribute.value} - max'
) <= round(total_form_items * (max / 100)), f'{attribute.id} - {attribute.value} - max'
elif attribute.type == 'bundle':
logging.info('Bundles Constraint Generating...')
# TODO: account for many different bundle types, since the id condition in L33 could yield duplicates