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
|
from lib.errors.item_generation_error import ItemGenerationError
|
||||||
|
|
||||||
|
|
||||||
def build_constraints(solver_run: SolverRun, problem: LpProblem,
|
def build_constraints(solver_run: SolverRun, problem: LpProblem,
|
||||||
items: list[Item], bundles: list[Bundle]) -> LpProblem:
|
items: list[Item], bundles: list[Bundle]) -> LpProblem:
|
||||||
logging.info('Creating Constraints...')
|
logging.info('Creating Constraints...')
|
||||||
@ -23,8 +22,6 @@ def build_constraints(solver_run: SolverRun, problem: LpProblem,
|
|||||||
min = constraint.minimum
|
min = constraint.minimum
|
||||||
max = constraint.maximum
|
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':
|
if attribute.type == 'metadata':
|
||||||
logging.info('Metadata Constraint Generating...')
|
logging.info('Metadata Constraint Generating...')
|
||||||
con = dict(
|
con = dict(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user