this should be max
This commit is contained in:
parent
4acb9545d4
commit
e04eead569
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user