- discharge hour penalty from start_hour

- Inverter: Frist try of small self consumption rate (fixed) for better discharge_hour results
This commit is contained in:
Andreas
2024-12-21 14:57:11 +01:00
committed by Andreas
parent 79ecf71353
commit 653f4f8d9f
2 changed files with 31 additions and 17 deletions
+1 -1
View File
@@ -361,7 +361,7 @@ class optimization_problem:
# Small Penalty for not discharging
gesamtbilanz += sum(
0.01 for i in range(self.prediction_hours) if discharge_hours_bin[i] == 0.0
0.01 for i in range(start_hour, self.prediction_hours) if discharge_hours_bin[i] == 0.0
)
# Penalty for not meeting the minimum SOC (State of Charge) requirement