This commit is contained in:
Joshua Burman
2023-11-10 19:12:25 -05:00
parent 1dbf672383
commit 07af0ac0ac
4 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ class Problem(BaseModel):
except ValueError as error:
logging.error(error)
raise ItemGenerationError(
"Bundle min and/or max larger than bundle amount provided",
error.msg,
error.args[0])

View File

@ -28,4 +28,4 @@ class TccTarget(Target):
problem_handler.solver_items_var[item.id]
for item in problem_handler.items
]) <= self.maximum(
), f'Max TCC theta({self.theta}) at target {self.value} with a drift % of {self.drift}'
), f'Max TCC theta({self.theta}) at target {self.value} with a drift % of {self.drift}'

View File

@ -28,4 +28,4 @@ class TifTarget(Target):
problem_handler.solver_items_var[item.id]
for item in problem_handler.items
]) <= self.maximum(
), f'Max TIF theta({self.theta}) at target {self.value} with a drift % of {self.drift}'
), f'Max TIF theta({self.theta}) at target {self.value} with a drift % of {self.drift}'