mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added adjust cost differences
This commit is contained in:
parent
4c57b74d96
commit
af66744979
1 changed files with 26 additions and 0 deletions
|
|
@ -527,6 +527,32 @@ class Recommendations:
|
|||
new_heat_demand
|
||||
)
|
||||
|
||||
# We now estimate the adjusted cost savings for the recommendation
|
||||
predicted_heating_cost_reduction = (
|
||||
heating_cost_phase_impact[heating_cost_phase_impact["phase"] == previous_phase][
|
||||
"adjusted_cost"
|
||||
].values[0] - new_heating_cost
|
||||
)
|
||||
predicted_heating_cost_reduction = (
|
||||
0 if predicted_heating_cost_reduction < 0 else predicted_heating_cost_reduction
|
||||
)
|
||||
|
||||
predicted_hot_water_cost_reduction = (
|
||||
hot_water_cost_phase_impact[hot_water_cost_phase_impact["phase"] == previous_phase][
|
||||
"adjusted_cost"
|
||||
].values[0] - new_hot_water_cost
|
||||
)
|
||||
predicted_hot_water_cost_reduction = (
|
||||
0 if predicted_hot_water_cost_reduction < 0 else predicted_hot_water_cost_reduction
|
||||
)
|
||||
|
||||
# Only lighting recommendations can have an impact here
|
||||
predicted_lighting_cost_reduction = 0 if rec["type"] != "lighting" else (
|
||||
lighting_cost_phase_impact[lighting_cost_phase_impact["phase"] == previous_phase][
|
||||
"adjusted_cost"
|
||||
].values[0] - new_lighting_cost
|
||||
)
|
||||
|
||||
if rec["type"] == "low_energy_lighting":
|
||||
# For the moment, we cap the number of SAP points that can be achieved by ventilation at 2
|
||||
rec["sap_points"] = min(predicted_sap_points, LightingRecommendations.SAP_LIMIT)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue