Files
EOS/tests/testdata/optimize_result_2.json
Bobby Noelte 3599088dce
Some checks are pending
docker-build / platform-excludes (push) Waiting to run
docker-build / build (push) Blocked by required conditions
docker-build / merge (push) Blocked by required conditions
pre-commit / pre-commit (push) Waiting to run
Run Pytest on Pull Request / test (push) Waiting to run
chore: eosdash improve plan display (#739)
* chore: improve plan solution display

Add genetic optimization results to general solution provided by EOSdash plan display.

Add total results.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>

* fix: genetic battery and home appliance device simulation

Fix genetic solution to make ac_charge, dc_charge, discharge, ev_charge or
home appliance start time reflect what the simulation was doing. Sometimes
the simulation decided to charge less or to start the appliance at another
time and this was not brought back to e.g. ac_charge.

Make home appliance simulation activate time window for the next day if it can not be
run today.

Improve simulation speed.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>

---------

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
2025-11-08 15:42:18 +01:00

818 lines
14 KiB
JSON

{
"ac_charge": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.375,
0.0,
0.0,
0.75,
0.0,
0.75,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.75,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"dc_charge": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0
],
"discharge_allowed": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0
],
"eautocharge_hours_float": [
0.0,
0.5,
0.0,
0.5,
0.375,
1.0,
0.875,
0.375,
0.5,
1.0,
0.875,
0.875,
0.875,
0.75,
0.5,
0.625,
0.875,
0.75,
0.5,
0.0,
0.625,
0.5,
0.0,
1.0,
0.625,
0.0,
1.0,
0.625,
0.875,
0.375,
1.0,
0.375,
0.625,
0.75,
0.75,
0.0,
0.5,
0.875,
0.875,
0.75,
0.875,
0.5,
0.875,
0.0,
0.375,
0.875,
1.0,
0.5
],
"result": {
"Last_Wh_pro_Stunde": [
12105.07,
10240.91,
10497.56,
12748.03,
8907.67,
13981.82,
10393.22,
1103.78,
1129.12,
1178.71,
1050.98,
988.56,
912.38,
704.61,
516.37,
868.05,
694.34,
608.79,
556.31,
488.89,
506.91,
804.89,
1141.98,
1056.97,
992.46,
1155.99,
827.01,
1257.98,
1232.67,
871.26,
860.88,
2658.03,
1222.72,
1221.04,
949.99,
987.01,
733.99,
592.97
],
"EAuto_SoC_pro_Stunde": [
5.0,
20.294999999999998,
35.589999999999996,
50.885000000000005,
63.995000000000005,
72.735,
83.66,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955,
98.955
],
"Einnahmen_Euro_pro_Stunde": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0024471948828359577,
0.0,
0.0,
0.0,
0.0,
0.0
],
"Gesamt_Verluste": 8517.353033733361,
"Gesamtbilanz_Euro": 12.490712506647688,
"Gesamteinnahmen_Euro": 0.0024471948828359577,
"Gesamtkosten_Euro": 12.493159701530523,
"Home_appliance_wh_per_hour": [
0.0,
0.0,
0.0,
0.0,
2500.0,
2500.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"Kosten_Euro_pro_Stunde": [
2.54785212,
1.061242392,
1.0445786259999998,
2.1770732859999997,
0.53097063,
1.6959351,
1.4118501319999999,
0.0,
0.061530097476751734,
0.0,
0.0,
0.0,
0.0,
0.0,
0.174739608,
0.0,
0.0,
0.199865757,
0.182970359,
0.162995926,
0.0,
0.0,
0.0,
0.08545095,
0.007989913613567745,
0.028255713342252034,
0.025392879919306634,
0.010682755832597498,
4.174095896658514e-14,
0.0003442778967139274,
0.0,
0.3686370794492921,
0.0,
0.08231598,
0.174597189,
0.293043269,
0.0,
0.16484566
],
"Netzbezug_Wh_pro_Stunde": [
11174.789999999999,
4797.66,
4990.82,
11586.34,
2888.8500000000004,
8462.75,
6423.339999999999,
0.0,
205.30563055305882,
0.0,
0.0,
0.0,
0.0,
0.0,
516.37,
0.0,
0.0,
608.79,
556.31,
488.89,
0.0,
0.0,
0.0,
351.65,
35.04348076126204,
127.73830624887898,
121.32288542430308,
56.853410498124,
2.270998855635753e-10,
1.7179535764168035,
0.0,
1623.9518918471017,
0.0,
257.64,
566.69,
987.01,
0.0,
592.97
],
"Netzeinspeisung_Wh_pro_Stunde": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
34.959926897656544,
0.0,
0.0,
0.0,
0.0,
0.0
],
"Verluste_Pro_Stunde": [
708.0,
1083.0,
1083.0,
864.0,
276.0,
795.0,
483.0,
230.91336797704525,
73.03732433363291,
23.391818181818195,
99.72409090909093,
133.72909090909081,
124.41545454545451,
96.08318181818186,
0.0,
118.37045454545455,
94.68272727272722,
0.0,
0.0,
0.0,
69.12409090909085,
109.0704545454546,
109.96227272727276,
0.0,
11.233982308648535,
38.52740325013451,
145.08565374908358,
14.209990740225123,
538.2983999999728,
441.7178455708299,
260.56941082122324,
335.0973729783477,
58.01910018603749,
0.0,
0.0,
0.0,
100.08954545454549,
0.0
],
"akku_soc_pro_stunde": [
80.0,
67.31060606060606,
48.37121212121212,
48.37121212121212,
60.871212121212125,
60.871212121212125,
73.37121212121212,
79.18621839791953,
81.21503296274267,
80.47665486356911,
77.32879845861042,
73.10755190213659,
69.18029639249471,
66.14736767348646,
66.14736767348646,
62.41092655778397,
59.42220410599334,
59.42220410599334,
59.42220410599334,
59.42220410599334,
57.24025679194374,
53.797376282301876,
50.32634494621373,
50.32634494621373,
50.63840001034284,
51.70860565617992,
55.73876270476556,
56.133484669771825,
71.08621800310439,
83.35615815784968,
90.3128052114117,
94.62106557192135,
100.0,
100.0,
100.0,
100.0,
96.84060778236915,
96.84060778236915
],
"Electricity_price": [
0.000228,
0.0002212,
0.0002093,
0.0001879,
0.0001838,
0.0002004,
0.0002198,
0.000227,
0.0002997,
0.0003195,
0.0003081,
0.0002969,
0.0002921,
0.000278,
0.0003384,
0.0003318,
0.0003284,
0.0003283,
0.0003289,
0.0003334,
0.000329,
0.0003302,
0.0003042,
0.000243,
0.000228,
0.0002212,
0.0002093,
0.0001879,
0.0001838,
0.0002004,
0.0002198,
0.000227,
0.0002997,
0.0003195,
0.0003081,
0.0002969,
0.0002921,
0.000278
]
},
"eauto_obj": {
"device_id": "ev1",
"hours": 48,
"charge_array": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.875,
0.875,
0.875,
0.75,
0.5,
0.625,
0.875,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"discharge_array": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"discharging_efficiency": 1.0,
"capacity_wh": 60000,
"charging_efficiency": 0.95,
"max_charge_power_w": 11040,
"soc_wh": 59373.0,
"initial_soc_percentage": 5
},
"start_solution": [
0.0,
4.0,
13.0,
17.0,
14.0,
12.0,
9.0,
9.0,
17.0,
13.0,
15.0,
12.0,
9.0,
18.0,
14.0,
18.0,
14.0,
9.0,
2.0,
8.0,
10.0,
12.0,
10.0,
10.0,
14.0,
8.0,
7.0,
2.0,
6.0,
4.0,
7.0,
10.0,
8.0,
2.0,
5.0,
0.0,
2.0,
4.0,
5.0,
14.0,
10.0,
18.0,
11.0,
1.0,
0.0,
5.0,
13.0,
1.0,
0.0,
2.0,
0.0,
2.0,
1.0,
6.0,
5.0,
1.0,
2.0,
6.0,
5.0,
5.0,
5.0,
4.0,
2.0,
3.0,
5.0,
4.0,
2.0,
0.0,
3.0,
2.0,
0.0,
6.0,
3.0,
0.0,
6.0,
3.0,
5.0,
1.0,
6.0,
1.0,
3.0,
4.0,
4.0,
0.0,
2.0,
5.0,
5.0,
4.0,
5.0,
2.0,
5.0,
0.0,
1.0,
5.0,
6.0,
2.0,
14.0
],
"washingstart": 14
}