mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
getting rid of test code
This commit is contained in:
parent
c08ab7a767
commit
f4db5389f5
1 changed files with 0 additions and 22 deletions
|
|
@ -1118,28 +1118,6 @@ async def model_engine(body: PlanTriggerRequest):
|
||||||
# When the goal is Increasing EPC, we can run the funding optimiser
|
# When the goal is Increasing EPC, we can run the funding optimiser
|
||||||
if body.goal == "Increasing EPC":
|
if body.goal == "Increasing EPC":
|
||||||
|
|
||||||
solutions_no_budget = optimise_with_scenarios(
|
|
||||||
p=p,
|
|
||||||
input_measures=input_measures,
|
|
||||||
budget=None,
|
|
||||||
target_gain=gain,
|
|
||||||
enforce_heat_pump_insulation=True,
|
|
||||||
enforce_fabric_first=body.enforce_fabric_first,
|
|
||||||
already_installed_sap=already_installed_sap, # To be passed to output
|
|
||||||
)
|
|
||||||
solutions_no_budget["total_cost"]
|
|
||||||
|
|
||||||
solutions_with_budget = optimise_with_scenarios(
|
|
||||||
p=p,
|
|
||||||
input_measures=input_measures,
|
|
||||||
budget=5000,
|
|
||||||
target_gain=gain,
|
|
||||||
enforce_heat_pump_insulation=True,
|
|
||||||
enforce_fabric_first=body.enforce_fabric_first,
|
|
||||||
already_installed_sap=already_installed_sap, # To be passed to output
|
|
||||||
)
|
|
||||||
solutions_with_budget["total_cost"]
|
|
||||||
|
|
||||||
solutions = optimise_with_scenarios(
|
solutions = optimise_with_scenarios(
|
||||||
p=p,
|
p=p,
|
||||||
input_measures=input_measures,
|
input_measures=input_measures,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue