that was inaccurate
This commit is contained in:
parent
bacc478b3e
commit
c65c78ded6
@ -9,7 +9,6 @@ from models.item import Item
|
||||
|
||||
from lib.errors.item_generation_error import ItemGenerationError
|
||||
|
||||
|
||||
def build_constraints(solver_run: SolverRun, problem: LpProblem,
|
||||
items: list[Item], bundles: list[Bundle]) -> LpProblem:
|
||||
logging.info('Creating Constraints...')
|
||||
@ -23,8 +22,6 @@ def build_constraints(solver_run: SolverRun, problem: LpProblem,
|
||||
min = constraint.minimum
|
||||
max = constraint.maximum
|
||||
|
||||
# ToDo: Should we always respect BOTH metadata and bundle constraints?,
|
||||
# in cases where both of them are present?
|
||||
if attribute.type == 'metadata':
|
||||
logging.info('Metadata Constraint Generating...')
|
||||
con = dict(
|
||||
|
Loading…
x
Reference in New Issue
Block a user