Lastprognose entkoppelt, an den Optimierer wird jetzt nur das Array

übergeben. So sind unterschiedliche / eigenen Prognosen möglich
This commit is contained in:
Bla Bla
2024-07-30 10:51:26 +02:00
parent 5e842d5ee4
commit b5ff38fb03
4 changed files with 39 additions and 27 deletions

View File

@@ -22,13 +22,13 @@ def visualisiere_ergebnisse(gesamtlast, pv_forecast, strompreise, ergebnisse, d
plt.subplot(3, 3, 1)
stunden = np.arange(0, prediction_hours)
gesamtlast_array = np.array(gesamtlast)
# Einzellasten plotten
for name, last_array in gesamtlast.lasten.items():
plt.plot(stunden, last_array, label=f'{name} (Wh)', marker='o')
#for name, last_array in gesamtlast.lasten.items():
plt.plot(stunden, gesamtlast_array, label=f'Last (Wh)', marker='o')
# Gesamtlast berechnen und plotten
gesamtlast_array = gesamtlast.gesamtlast_berechnen()
gesamtlast_array = np.array(gesamtlast)
plt.plot(stunden, gesamtlast_array, label='Gesamtlast (Wh)', marker='o', linewidth=2, linestyle='--')
plt.xlabel('Stunde')
plt.ylabel('Last (Wh)')