mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fixed issue with existing gshp and added test
This commit is contained in:
parent
2aecf27900
commit
2f3d49dff4
2 changed files with 4 additions and 2 deletions
|
|
@ -109,7 +109,8 @@ class CostOptimiser:
|
|||
self.m.optimize()
|
||||
|
||||
if self.m.status == OptimizationStatus.INFEASIBLE:
|
||||
logger.info("We have an infeasible model, setting up slack model")
|
||||
# Turn off logging - too noisy
|
||||
# logger.info("We have an infeasible model, setting up slack model")
|
||||
self.setup_slack()
|
||||
self.m.optimize()
|
||||
|
||||
|
|
|
|||
|
|
@ -133,7 +133,8 @@ class GainOptimiser:
|
|||
(self.m.status == OptimizationStatus.OPTIMAL) and not len(solution)
|
||||
):
|
||||
if self.allow_slack:
|
||||
logger.info("We have an infeasible model, setting up slack model")
|
||||
# Turn off logging - too noisy
|
||||
# logger.info("We have an infeasible model, setting up slack model")
|
||||
self.setup_slack()
|
||||
self.m.optimize()
|
||||
solution = [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue