typo in bundle constraint descriptor
This commit is contained in:
@ -27,7 +27,7 @@ def build_constraints(solver_run, problem, items):
|
||||
selected_bundles = sample(bundles, total_bundles)
|
||||
|
||||
for bundle in selected_bundles:
|
||||
problem += lpSum([items[item.id] for item in solver_run.items if item.passage == bundle['id']]) == bundle['count'], f'Bundle constrain for {bundle["type"]} ({bundle["id"]})'
|
||||
problem += lpSum([items[item.id] for item in solver_run.items if item.passage == bundle['id']]) == bundle['count'], f'Bundle constraint for {bundle["type"]} ({bundle["id"]})'
|
||||
|
||||
|
||||
return problem
|
||||
|
Reference in New Issue
Block a user