Wallbox Leistung wird von der Lastprognose abgezogen

This commit is contained in:
Bla Bla
2024-08-30 11:49:44 +02:00
parent 5d5514c901
commit 65ecf4cf3c
6 changed files with 442 additions and 204 deletions

264
test.py
View File

@@ -21,7 +21,9 @@ import random
import os
start_hour = 8
start_hour = 11
pv_forecast= [
0,
@@ -31,46 +33,46 @@ pv_forecast= [
0,
0,
0,
46.0757222688471,
474.780954810247,
1049.36036517475,
1676.86962934168,
2037.0885036865,
2600.03233682621,
5307.79424852068,
5214.54927119013,
5392.8995394438,
4229.09283442043,
3568.84965239262,
2627.95972505784,
1618.04209206715,
718.733713468062,
102.060092599437,
35.4104640357043,
436.191574979506,
734.585613834398,
914.346108603927,
1019.5228214119,
1766.84136350058,
5980.60975052259,
6236.00681862336,
5893.38154543782,
4309.88538120413,
3338.29004915145,
2177.55660706753,
1091.00542545193,
437.819525591319,
44.2226537829726,
0,
0,
0,
0,
-0.0269415125679914,
0,
-0.068771006309608,
0,
0.0275649587447597,
0,
53.980235336087,
543.602674801833,
852.52597210804,
964.253104261402,
1043.15079499546,
1333.69973977172,
6901.19158127423,
6590.62442617817,
6161.97317306069,
4530.33886807194,
3535.37982191984,
2388.65608163334,
1365.10812389941,
557.452392556485,
82.376303341511,
0.026903650788687,
0,
25.5745140893473,
494.188146846569,
943.821134036728,
1458.66413119635,
1819.46147983229,
2127.45430524539,
2267.78128099068,
5944.86706099518,
5337.1322153025,
4376.56125932204,
3020.00212091936,
2414.53994231359,
1373.626161377,
517.764497317134,
35.619750070296,
0,
0
]
temperature_forecast= [
@@ -125,104 +127,104 @@ temperature_forecast= [
]
strompreis_euro_pro_wh = [
0.00031540228,
0.00031000228,
0.00029390228,
0.00028410228,
0.00028840228,
0.00028800228,
0.00030930228,
0.00031390228,
0.00031540228,
0.00028120228,
0.00022820228,
0.00022310228,
0.00021500228,
0.00020770228,
0.00020670228,
0.00021200228,
0.00021540228,
0.00023000228,
0.00029530228,
0.00032990228,
0.00036840228,
0.00035900228,
0.00033140228,
0.00031370228,
0.00031540228,
0.00031000228,
0.00029390228,
0.00028410228,
0.00028840228,
0.00028800228,
0.00030930228,
0.00031390228,
0.00031540228,
0.00028120228,
0.00022820228,
0.00022310228,
0.00021500228,
0.00020770228,
0.00020670228,
0.00021200228,
0.00021540228,
0.00023000228,
0.00029530228,
0.00032990228,
0.00036840228,
0.00035900228,
0.00033140228,
0.00031370228
0.00033840228,
0.00033180228,
0.00032840228,
0.00032830228,
0.00032890228,
0.00033340228,
0.00032900228,
0.00033020228,
0.00030420228,
0.00024300228,
0.00022800228,
0.00022120228,
0.00020930228,
0.00018790228,
0.00018380228,
0.00020040228,
0.00021980228,
0.00022700228,
0.00029970228,
0.00031950228,
0.00030810228,
0.00029690228,
0.00029210228,
0.00027800228,
0.00033840228,
0.00033180228,
0.00032840228,
0.00032830228,
0.00032890228,
0.00033340228,
0.00032900228,
0.00033020228,
0.00030420228,
0.00024300228,
0.00022800228,
0.00022120228,
0.00020930228,
0.00018790228,
0.00018380228,
0.00020040228,
0.00021980228,
0.00022700228,
0.00029970228,
0.00031950228,
0.00030810228,
0.00029690228,
0.00029210228,
0.00027800228
]
gesamtlast= [
723.794862683391,
743.491222629184,
836.32034938972,
870.858204290382,
877.988917620097,
857.94124236693,
535.7468553632,
658.119336334815,
955.15298014833,
2636.705125629,
1321.53672393798,
1488.77669263834,
1129.61536474922,
1261.47022563591,
1308.42804416213,
1740.76791896787,
989.769241971553,
1291.60060799951,
1360.9198505883,
1290.04968399465,
989.968377880823,
1121.41872787695,
1250.64584231737,
852.708926147066,
723.492531379247,
743.121389279149,
835.959858325763,
870.44547874543,
878.758616187391,
858.773385266073,
535.600426631561,
658.438388271842,
955.420012089818,
2636.68835629389,
1321.54382666298,
1489.13090434992,
1129.80079639256,
1262.0092664333,
1308.72647023183,
1741.92058921559,
990.700392687782,
1293.57876397944,
1363.67698321638,
1291.28280716443,
990.277508651153,
1121.16294287294,
1250.20143586737,
852.488808763652
546.16318964697,
893.072526185525,
448.7325491406,
460.696954446666,
497.688171532182,
468.186120420737,
424.440426628658,
454.341890696582,
1070.45287392313,
1096.46234344204,
1199.71317588613,
1294.39989535284,
1459.42631059004,
1295.23757474948,
1304.65748778424,
1187.47511606455,
1309.49984671163,
1106.60773651081,
1098.98136451936,
2112.82264661039,
1143.37118921705,
858.863135790621,
787.018517493612,
693.683533270357,
545.860858342826,
892.702692835489,
448.372058076642,
460.284228901714,
498.457870099476,
469.01826331988,
424.293997897019,
454.660942633609,
1070.71990586461,
1096.44557410693,
1199.72027861112,
1294.75410706442,
1459.61174223338,
1295.77661554687,
1304.95591385395,
1188.62778631227,
1310.43099742786,
1108.58589249073,
1101.73849714744,
2114.05576978017,
1143.68031998738,
858.607350786608,
786.574111043611,
693.463415886943
]
start_solution= [
@@ -323,7 +325,7 @@ start_solution= [
1,
1
]
parameter= {'pv_soc': 92.4052, 'pv_akku_cap': 30000, 'year_energy': 4100000, 'einspeiseverguetung_euro_pro_wh': 7e-05, 'max_heizleistung': 1000,"gesamtlast":gesamtlast, 'pv_forecast': pv_forecast, "temperature_forecast":temperature_forecast, "strompreis_euro_pro_wh":strompreis_euro_pro_wh, 'eauto_min_soc': 100, 'eauto_cap': 60000, 'eauto_charge_efficiency': 0.95, 'eauto_charge_power': 6900, 'eauto_soc': 30, 'pvpowernow': 211.137503624, 'start_solution': start_solution, 'haushaltsgeraet_wh': 937, 'haushaltsgeraet_dauer': 0}
parameter= {"preis_euro_pro_wh_akku": 30e-05,'pv_soc': 60.4052, 'pv_akku_cap': 30000, 'year_energy': 4100000, 'einspeiseverguetung_euro_pro_wh': 7e-05, 'max_heizleistung': 1000,"gesamtlast":gesamtlast, 'pv_forecast': pv_forecast, "temperature_forecast":temperature_forecast, "strompreis_euro_pro_wh":strompreis_euro_pro_wh, 'eauto_min_soc': 80, 'eauto_cap': 60000, 'eauto_charge_efficiency': 0.95, 'eauto_charge_power': 7590, 'eauto_soc': 53, 'pvpowernow': 211.137503624, 'start_solution': start_solution, 'haushaltsgeraet_wh': 937, 'haushaltsgeraet_dauer': 0}