Optimize states (#256)

* optimization states for AC, DC and IDLE now similar probab. Also AC states taken from config. Maybe a single config option for AC and E-Auto States is sensefull.
 * Ruff
 * test_class_optimize: Update testdata
 * Write pdf and json to test/testdata/new.... so it can be analyzed
   manually or just copied as new expected result.
 * workflow: Upload pytest optimization result artifacts (pdf, json)

---------

Co-authored-by: Andreas <drbacke@gmx.de>
This commit is contained in:
Dominique Lasserre
2024-12-16 13:37:16 +01:00
committed by GitHub
parent da419dbf39
commit 3d8a97e128
8 changed files with 842 additions and 871 deletions

View File

@@ -37,9 +37,7 @@ def compare_dict(actual: dict[str, Any], expected: dict[str, Any]):
("optimize_input_2.json", "optimize_result_2_full.json", 400),
],
)
@patch("akkudoktoreos.optimization.genetic.visualisiere_ergebnisse")
def test_optimize(
visualisiere_ergebnisse_patch,
fn_in: str,
fn_out: str,
ngen: int,
@@ -53,8 +51,12 @@ def test_optimize(
input_data = OptimizationParameters(**json.load(f_in))
file = DIR_TESTDATA / fn_out
with file.open("r") as f_out:
expected_result = OptimizeResponse(**json.load(f_out))
# In case a new test case is added, we don't want to fail here, so the new output is written to disk before
try:
with file.open("r") as f_out:
expected_result = OptimizeResponse(**json.load(f_out))
except FileNotFoundError:
pass
opt_class = optimization_problem(tmp_config, fixed_seed=42)
start_hour = 10
@@ -62,15 +64,34 @@ def test_optimize(
if ngen > 10 and not is_full_run:
pytest.skip()
# Call the optimization function
ergebnis = opt_class.optimierung_ems(parameters=input_data, start_hour=start_hour, ngen=ngen)
# with open(f"new_{fn_out}", "w") as f_out:
# f_out.write(ergebnis.model_dump_json(indent=4, exclude_unset=True))
visualize_filename = str((DIR_TESTDATA / f"new_{fn_out}").with_suffix(".pdf"))
# Assert that the output contains all expected entries.
# This does not assert that the optimization always gives the same result!
# Reproducibility and mathematical accuracy should be tested on the level of individual components.
compare_dict(ergebnis.model_dump(), expected_result.model_dump())
def visualize_to_file(*args, **kwargs):
from akkudoktoreos.visualize import visualisiere_ergebnisse
# The function creates a visualization result PDF as a side-effect.
visualisiere_ergebnisse_patch.assert_called_once()
# Write test output pdf to file, so we can look at it manually
kwargs["filename"] = visualize_filename
return visualisiere_ergebnisse(*args, **kwargs)
with patch(
"akkudoktoreos.optimization.genetic.visualisiere_ergebnisse", side_effect=visualize_to_file
) as visualisiere_ergebnisse_patch:
# Call the optimization function
ergebnis = opt_class.optimierung_ems(
parameters=input_data, start_hour=start_hour, ngen=ngen
)
# Write test output to file, so we can take it as new data on intended change
with open(DIR_TESTDATA / f"new_{fn_out}", "w") as f_out:
f_out.write(ergebnis.model_dump_json(indent=4, exclude_unset=True))
assert ergebnis.result.Gesamtbilanz_Euro == pytest.approx(
expected_result.result.Gesamtbilanz_Euro
)
# Assert that the output contains all expected entries.
# This does not assert that the optimization always gives the same result!
# Reproducibility and mathematical accuracy should be tested on the level of individual components.
compare_dict(ergebnis.model_dump(), expected_result.model_dump())
# The function creates a visualization result PDF as a side-effect.
visualisiere_ergebnisse_patch.assert_called_once()

View File

@@ -1,5 +1,24 @@
{
"ac_charge": [
0.75,
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.75,
0.0,
0.0,
0.0,
@@ -20,26 +39,7 @@
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.875,
0.0,
0.0,
0.0,
@@ -100,30 +100,21 @@
1.0
],
"discharge_allowed": [
1,
1,
1,
1,
0,
0,
1,
0,
1,
0,
1,
1,
1,
0,
1,
0,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
@@ -132,22 +123,31 @@
0,
0,
0,
0,
0,
1,
1,
0,
1,
1,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0
1
],
"eautocharge_hours_float": null,
"result": {
@@ -237,7 +237,7 @@
0.0,
0.0,
0.0,
0.19546715971074372,
0.212927386983471,
0.19275619999999996,
0.1339926,
0.0569765,
@@ -260,7 +260,7 @@
0.0,
0.0,
0.0,
0.19167938450413202,
0.1512260012396691,
0.257789,
0.1516669,
0.09915009999999999,
@@ -271,10 +271,10 @@
0.0,
0.0
],
"Gesamt_Verluste": 1859.6205371900821,
"Gesamtbilanz_Euro": 1.3505190567851246,
"Gesamteinnahmen_Euro": 1.3143154442148755,
"Gesamtkosten_Euro": 2.664834501,
"Gesamt_Verluste": 2071.900103305785,
"Gesamtbilanz_Euro": 0.9349588927768602,
"Gesamteinnahmen_Euro": 1.2913222882231399,
"Gesamtkosten_Euro": 2.226281181,
"Home_appliance_wh_per_hour": [
null,
null,
@@ -317,8 +317,8 @@
],
"Kosten_Euro_pro_Stunde": [
0.0,
0.004569992000000018,
0.0,
0.04475252599999999,
0.0,
0.0,
0.0,
@@ -326,16 +326,16 @@
0.0,
0.0,
0.05480703000000003,
0.0,
0.225316611,
0.291163892,
0.0,
0.26650619799999997,
0.19588158,
0.174739608,
0.0,
0.0,
0.28801899,
0.22802125600000003,
0.199865757,
0.182970359,
0.162995926,
0.0,
0.0,
0.16677339,
0.26411047,
0.0,
@@ -350,15 +350,15 @@
0.0,
0.0,
0.08231598,
0.174597189,
0.0,
0.293043269,
0.0,
0.16484566
0.0
],
"Netzbezug_Wh_pro_Stunde": [
0.0,
20.660000000000082,
0.0,
213.81999999999994,
0.0,
0.0,
0.0,
@@ -366,16 +366,16 @@
0.0,
0.0,
171.54000000000008,
0.0,
731.31,
980.68,
0.0,
912.38,
704.61,
516.37,
0.0,
0.0,
868.05,
694.34,
608.79,
556.31,
488.89,
0.0,
0.0,
506.91,
799.85,
0.0,
@@ -390,10 +390,10 @@
0.0,
0.0,
257.64,
566.69,
0.0,
987.01,
0.0,
592.97
0.0
],
"Netzeinspeisung_Wh_pro_Stunde": [
0.0,
@@ -401,7 +401,7 @@
0.0,
0.0,
0.0,
2792.3879958677676,
3041.819814049586,
2753.66,
1914.18,
813.95,
@@ -424,7 +424,7 @@
0.0,
0.0,
0.0,
2738.2769214876007,
2160.371446280987,
3682.7,
2166.67,
1416.43,
@@ -437,20 +437,11 @@
],
"Verluste_Pro_Stunde": [
16.744090909090914,
2.817272727272737,
0.0,
29.157272727272726,
3.5592000000000112,
582.6179999999995,
185.98344049586785,
0.0,
0.0,
0.0,
0.0,
99.72409090909093,
0.0,
124.41545454545451,
0.0,
70.41409090909087,
156.0516223140496,
0.0,
0.0,
0.0,
@@ -458,62 +449,71 @@
0.0,
0.0,
0.0,
0.0,
0.0,
118.37045454545455,
94.68272727272722,
0.0,
75.86045454545456,
66.66681818181814,
0.0,
0.0,
109.96227272727276,
0.0,
15.439199999999985,
53.855999999999995,
159.6443999999999,
21.032399999999996,
209.70516942148788,
279.0538264462814,
0.0,
0.0,
0.0,
0.0,
0.0,
77.27590909090907,
0.0,
134.59227272727276,
100.08954545454549,
0.0
80.85954545454547
],
"akku_soc_pro_stunde": [
79.4714617768595,
79.4714617768595,
78.55109331955923,
78.6499599862259,
94.83379331955922,
100.0,
100.0,
100.0,
100.0,
100.0,
96.85214359504131,
96.85214359504131,
92.92488808539943,
92.92488808539943,
90.70222107438015,
90.70222107438015,
90.70222107438015,
90.70222107438015,
90.70222107438015,
90.70222107438015,
90.70222107438015,
90.70222107438015,
87.231189738292,
87.231189738292,
87.66005640495867,
89.15605640495866,
93.59062307162533,
94.17485640495867,
79.38253271349862,
79.38253271349862,
79.48139938016529,
95.66523271349861,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
97.56073519283747,
97.56073519283747,
94.40134297520663,
94.40134297520663
100.0,
100.0,
100.0,
100.0,
96.26355888429752,
93.27483643250687,
93.27483643250687,
90.88025137741046,
88.7758694903581,
88.7758694903581,
88.7758694903581,
85.30483815426996,
85.30483815426996,
85.73370482093662,
87.22970482093662,
91.66427148760329,
92.24850482093663,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
95.75150654269973,
92.59211432506888,
90.0397296831956
]
},
"eauto_obj": {
@@ -626,106 +626,54 @@
"start_soc_prozent": 54
},
"start_solution": [
1.0,
1.0,
1.0,
1.0,
18.0,
18.0,
9.0,
13.0,
4.0,
7.0,
9.0,
8.0,
0.0,
12.0,
10.0,
10.0,
14.0,
8.0,
7.0,
11.0,
6.0,
4.0,
18.0,
3.0,
4.0,
3.0,
5.0,
14.0,
14.0,
10.0,
13.0,
3.0,
7.0,
11.0,
6.0,
14.0,
9.0,
14.0,
8.0,
3.0,
2.0,
5.0,
9.0,
19.0,
1.0,
0.0,
0.0,
1.0,
1.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.0,
0.0,
1.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
6.0,
10.0,
4.0,
2.0,
7.0,
11.0,
10.0
],
"washingstart": null
}

View File

@@ -2,50 +2,50 @@
"ac_charge": [
0.0,
0.0,
0.2,
0.4,
0.0,
0.4,
0.625,
0.0,
0.8,
1.0,
0.6,
0.0,
0.8,
1.0,
0.6,
1.0,
0.0,
0.4,
1.0,
0.8,
0.2,
0.0,
1.0,
0.8,
0.8,
0.4,
0.6,
0.2,
0.6,
0.2,
0.8,
0.2,
0.625,
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,
1.0,
0.8,
0.4,
0.0,
1.0,
1.0,
0.2,
0.0,
1.0,
0.4,
0.6,
0.2,
1.0,
0.6,
0.0,
0.0
],
@@ -100,6 +100,42 @@
1.0
],
"discharge_allowed": [
0,
0,
1,
0,
0,
1,
1,
1,
0,
1,
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,
@@ -111,104 +147,68 @@
0,
0,
1,
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,
1,
1
0
],
"eautocharge_hours_float": [
0.0,
0.5,
0.0,
0.5,
0.375,
1.0,
0.875,
0.375,
0.5,
0.75,
1.0,
1.0,
0.875,
0.0,
1.0,
0.375,
0.875,
0.875,
0.75,
1.0,
1.0,
0.5,
0.625,
0.875,
0.75,
0.5,
0.0,
0.625,
0.5,
1.0,
1.0,
0.375,
0.375,
0.375,
0.75,
0.5,
1.0,
0.875,
0.875,
0.5,
0.75,
0.0,
0.875,
0.875,
0.5,
0.75,
0.75,
0.375,
0.75,
0.375,
1.0,
1.0,
0.625,
0.75,
0.5,
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.0
0.375,
0.875,
1.0,
0.5
],
"result": {
"Last_Wh_pro_Stunde": [
11541.07,
8996.91,
14186.56,
17120.03,
14608.281570247937,
7731.82,
6460.22,
3041.7799999999997,
12105.07,
10240.91,
10497.56,
12748.03,
8907.67,
13981.82,
10393.22,
1730.78,
1129.12,
1178.71,
1050.98,
@@ -232,7 +232,7 @@
1232.67,
871.26,
860.88,
1158.03,
4027.009545454555,
1222.72,
1221.04,
949.99,
@@ -241,13 +241,13 @@
592.97
],
"EAuto_SoC_pro_Stunde": [
22.48,
29.035,
42.144999999999996,
59.62499999999999,
77.105,
88.03,
96.77,
20.294999999999998,
35.589999999999996,
50.885000000000005,
63.995000000000005,
72.735,
83.66,
98.955,
100.0,
100.0,
100.0,
@@ -289,7 +289,6 @@
0.0,
0.0,
0.0,
0.0569765,
0.0,
0.0,
0.0,
@@ -305,14 +304,15 @@
0.0,
0.0,
0.0,
0.009006199999999989,
0.03141599999999999,
0.0931259,
0.012268899999999998,
0.31400739999999994,
0.257789,
0.1516669,
0.09915009999999999,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0348376,
0.0,
0.0,
@@ -320,17 +320,17 @@
0.0,
0.0
],
"Gesamt_Verluste": 5357.560661157026,
"Gesamtbilanz_Euro": 13.87138792561157,
"Gesamteinnahmen_Euro": 1.0602444999999998,
"Gesamtkosten_Euro": 14.93163242561157,
"Gesamt_Verluste": 8823.859090909093,
"Gesamtbilanz_Euro": 12.348447740818184,
"Gesamteinnahmen_Euro": 0.0348376,
"Gesamtkosten_Euro": 12.383285340818183,
"Home_appliance_wh_per_hour": [
0.0,
0.0,
0.0,
2500.0,
2500.0,
0.0,
2500.0,
2500.0,
0.0,
0.0,
0.0,
@@ -365,29 +365,29 @@
0.0
],
"Kosten_Euro_pro_Stunde": [
1.2792601199999998,
1.759349592,
2.737606326,
2.9985720859999994,
1.5787430366115707,
0.44343509999999997,
0.547376732,
0.005407139999999934,
2.54785212,
0.928522392,
0.9189986259999999,
2.1770732859999997,
0.53097063,
1.6959351,
1.4118501319999999,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.05480703000000003,
0.225316611,
0.291163892,
0.26650619799999997,
0.19588158,
0.174739608,
0.28801899,
0.22802125600000003,
0.0,
0.0,
0.199865757,
0.182970359,
0.162995926,
0.16677339,
0.26411047,
0.24530383800000005,
0.0,
0.0,
0.0,
0.08545095,
0.0,
0.0,
@@ -396,38 +396,38 @@
0.0,
0.0,
0.0,
0.0,
0.651258356818184,
0.0,
0.08231598,
0.174597189,
0.293043269,
0.0,
0.0
0.16484566
],
"Netzbezug_Wh_pro_Stunde": [
5610.789999999999,
7953.66,
13079.82,
15958.339999999998,
8589.461570247937,
2212.75,
2490.34,
23.81999999999971,
11174.789999999999,
4197.66,
4390.82,
11586.34,
2888.8500000000004,
8462.75,
6423.339999999999,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
171.54000000000008,
731.31,
980.68,
912.38,
704.61,
516.37,
868.05,
694.34,
0.0,
0.0,
608.79,
556.31,
488.89,
506.91,
799.85,
806.3900000000001,
0.0,
0.0,
0.0,
351.65,
0.0,
0.0,
@@ -436,13 +436,13 @@
0.0,
0.0,
0.0,
0.0,
2868.979545454555,
0.0,
257.64,
566.69,
987.01,
0.0,
0.0
592.97
],
"Netzeinspeisung_Wh_pro_Stunde": [
0.0,
@@ -453,7 +453,6 @@
0.0,
0.0,
0.0,
813.95,
0.0,
0.0,
0.0,
@@ -469,14 +468,15 @@
0.0,
0.0,
0.0,
128.65999999999985,
448.79999999999995,
1330.3700000000001,
175.26999999999998,
4485.82,
3682.7,
2166.67,
1416.43,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
497.68000000000006,
0.0,
0.0,
@@ -485,84 +485,84 @@
0.0
],
"Verluste_Pro_Stunde": [
1233.818181818182,
687.0,
1014.0,
912.0,
606.7933884297523,
345.0,
708.0,
1164.818181818182,
1164.818181818182,
864.0,
276.0,
102.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,
795.0,
483.0,
187.4616000000001,
97.67399999999998,
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,
15.439199999999985,
53.855999999999995,
159.6443999999999,
21.032399999999996,
538.2984000000001,
441.924,
260.0003999999999,
514.2491454545468,
0.0,
0.0,
0.0,
0.0,
100.08954545454549,
80.85954545454547
0.0
],
"akku_soc_pro_stunde": [
58.47796143250689,
71.81129476584022,
88.47796143250687,
98.47796143250687,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
86.25,
64.72796143250687,
43.20592286501377,
55.70592286501377,
55.70592286501377,
68.20592286501376,
68.20592286501376,
72.49652286501377,
75.20968953168044,
74.47131143250688,
71.32345502754819,
67.10220847107436,
63.17495296143248,
60.14202424242422,
60.14202424242422,
56.40558312672175,
53.41686067493111,
53.41686067493111,
53.41686067493111,
53.41686067493111,
51.23491336088152,
47.792032851239654,
44.3210015151515,
44.3210015151515,
44.749868181818165,
46.24586818181816,
50.68043484848482,
51.264668181818166,
66.21740151515148,
78.49306818181815,
85.71530151515148,
100.0,
100.0,
100.0,
100.0,
100.0,
96.84060778236915,
94.28822314049587
96.84060778236915
]
},
"eauto_obj": {
@@ -676,102 +676,102 @@
},
"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,
3.0,
4.0,
5.0,
14.0,
10.0,
18.0,
11.0,
1.0,
3.0,
0.0,
5.0,
13.0,
1.0,
5.0,
6.0,
4.0,
0.0,
2.0,
0.0,
2.0,
1.0,
5.0,
6.0,
4.0,
6.0,
0.0,
3.0,
6.0,
5.0,
1.0,
2.0,
0.0,
6.0,
5.0,
5.0,
3.0,
5.0,
4.0,
2.0,
3.0,
5.0,
4.0,
2.0,
5.0,
2.0,
0.0,
6.0,
5.0,
3.0,
0.0,
6.0,
6.0,
2.0,
0.0,
6.0,
3.0,
4.0,
2.0,
6.0,
4.0,
1.0,
1.0,
0.0,
1.0,
5.0,
1.0,
2.0,
4.0,
6.0,
6.0,
5.0,
0.0,
6.0,
1.0,
4.0,
6.0,
6.0,
3.0,
2.0,
6.0,
6.0,
1.0,
1.0,
1.0,
4.0,
2.0,
6.0,
5.0,
5.0,
2.0,
4.0,
0.0,
5.0,
5.0,
2.0,
4.0,
4.0,
1.0,
4.0,
1.0,
6.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,
3.0,
0.0,
0.0,
0.0,
13.0
5.0,
6.0,
2.0,
14.0
],
"washingstart": 13
"washingstart": 14
}

View File

@@ -1,30 +1,34 @@
{
"ac_charge": [
0.2,
0.6,
0.0,
0.0,
0.875,
0.0,
1.0,
0.8,
0.6,
0.0,
0.6,
0.0,
0.6,
0.0,
0.0,
0.0,
0.2,
1.0,
0.4,
0.4,
0.4,
0.8,
1.0,
0.6,
0.8,
0.8,
0.6,
0.4,
0.0,
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,
@@ -38,11 +42,7 @@
0.0,
0.0,
0.0,
0.6,
0.0,
1.0,
0.2,
0.4,
0.0,
0.0,
0.0,
@@ -100,6 +100,7 @@
1.0
],
"discharge_allowed": [
1,
0,
0,
1,
@@ -107,7 +108,6 @@
0,
0,
1,
0,
1,
0,
1,
@@ -115,16 +115,12 @@
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
@@ -141,39 +137,43 @@
0,
1,
0,
1,
1,
0,
1,
0,
1,
1,
1,
1,
1,
1
],
"eautocharge_hours_float": [
0.625,
0.875,
1.0,
0.0,
0.875,
0.375,
0.875,
1.0,
0.375,
1.0,
0.0,
0.0,
1.0,
1.0,
1.0,
1.0,
0.75,
0.75,
0.5,
0.0,
1.0,
0.625,
0.0,
0.875,
0.75,
1.0,
0.0,
0.75,
1.0,
1.0,
1.0,
0.375,
0.75,
0.5,
0.5,
1.0,
0.625,
0.875,
0.625,
1.0,
0.875,
0.375,
0.625,
0.375,
0.375,
0.0,
0.0,
0.0,
@@ -202,13 +202,13 @@
"result": {
"Last_Wh_pro_Stunde": [
1053.07,
1063.91,
8929.91,
11808.56,
15120.029999999999,
19151.67,
11823.38146694215,
11620.03,
14151.67,
7609.82,
9082.22,
7658.78,
6347.78,
1756.12,
1178.71,
1050.98,
@@ -229,7 +229,7 @@
1155.99,
827.01,
1257.98,
1999.9845041322394,
1232.67,
871.26,
860.88,
1158.03,
@@ -242,12 +242,12 @@
],
"EAuto_SoC_pro_Stunde": [
5.0,
5.0,
22.48,
39.96,
57.440000000000005,
74.92,
88.03,
18.11,
35.589999999999996,
53.06999999999999,
70.55,
77.105,
90.215,
98.955,
100.0,
100.0,
@@ -289,7 +289,6 @@
0.0,
0.0,
0.0,
0.013086500000000003,
0.0,
0.0,
0.0,
@@ -310,27 +309,28 @@
0.0,
0.0,
0.0,
0.257789,
0.1516669,
0.09915009999999999,
0.0348376,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"Gesamt_Verluste": 5838.775971074382,
"Gesamtbilanz_Euro": 11.51451054883471,
"Gesamteinnahmen_Euro": 0.5565300999999999,
"Gesamtkosten_Euro": 12.07104064883471,
"Gesamt_Verluste": 7248.648818181819,
"Gesamtbilanz_Euro": 8.568052366,
"Gesamteinnahmen_Euro": 0.0,
"Gesamtkosten_Euro": 8.568052366,
"Home_appliance_wh_per_hour": [
0.0,
0.0,
0.0,
2500.0,
2500.0,
0.0,
2500.0,
2500.0,
0.0,
0.0,
0.0,
@@ -366,20 +366,12 @@
],
"Kosten_Euro_pro_Stunde": [
0.0,
0.004569992000000018,
1.7445291920000001,
2.2398909259999997,
2.6227720859999994,
2.41381783,
1.263384017975207,
1.9651220859999998,
1.4948178300000001,
0.0,
1.1236923319999998,
1.0534661399999998,
0.0,
0.05480703000000003,
0.225316611,
0.291163892,
0.26650619799999997,
0.19588158,
0.174739608,
0.0,
0.0,
0.0,
@@ -393,7 +385,15 @@
0.0,
0.0,
0.0,
0.14103240585950558,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
@@ -406,20 +406,12 @@
],
"Netzbezug_Wh_pro_Stunde": [
0.0,
20.660000000000082,
7886.66,
10701.82,
13958.339999999998,
13132.85,
6304.31146694215,
10458.34,
8132.85,
0.0,
5112.339999999999,
4640.82,
0.0,
171.54000000000008,
731.31,
980.68,
912.38,
704.61,
516.37,
0.0,
0.0,
0.0,
@@ -433,7 +425,15 @@
0.0,
0.0,
0.0,
767.3145041322393,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
@@ -453,7 +453,6 @@
0.0,
0.0,
0.0,
186.95000000000005,
0.0,
0.0,
0.0,
@@ -474,10 +473,11 @@
0.0,
0.0,
0.0,
3682.7,
2166.67,
1416.43,
497.68000000000006,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
@@ -486,20 +486,20 @@
],
"Verluste_Pro_Stunde": [
16.744090909090914,
0.0,
552.0,
672.0,
1152.0,
571.027376033058,
414.0,
345.0,
33.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
552.0,
552.0,
552.0,
492.1022727272725,
414.0,
730.0663636363638,
55.434,
23.391818181818195,
99.72409090909093,
133.72909090909081,
124.41545454545451,
96.08318181818186,
70.41409090909087,
118.37045454545455,
94.68272727272722,
83.01681818181817,
@@ -513,11 +513,11 @@
53.855999999999995,
159.6443999999999,
21.032399999999996,
630.3761404958689,
0.0,
0.0,
0.0,
0.0,
538.2984000000001,
441.924,
260.0003999999999,
169.97160000000008,
59.721600000000024,
35.132727272727266,
77.27590909090907,
134.59227272727276,
@@ -528,41 +528,41 @@
79.4714617768595,
79.4714617768595,
79.4714617768595,
82.80479511019283,
99.4714617768595,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
100.0,
96.26355888429752,
93.27483643250687,
90.65435606060605,
88.25977100550962,
86.15538911845726,
83.97344180440768,
80.5305612947658,
77.05952995867766,
75.54588498622586,
75.97475165289252,
77.47075165289253,
81.9053183195592,
82.48955165289253,
100.0,
100.0,
100.0,
100.0,
100.0,
98.89101239669421,
96.45174758953168,
92.20325413223141,
89.04386191460057,
86.4914772727273
79.4714617768595,
79.4714617768595,
70.47202134986226,
70.47202134986226,
56.13911845730028,
56.76228512396694,
56.02390702479339,
52.876050619834714,
48.654804063360885,
44.72754855371902,
41.69461983471075,
39.47195282369147,
35.73551170798899,
32.746789256198355,
30.126308884297526,
27.731723829201112,
25.627341942148767,
23.445394628099184,
20.002514118457306,
16.531482782369153,
15.017837809917364,
15.446704476584031,
16.94270447658403,
21.377271143250695,
21.961504476584032,
36.91423780991737,
49.189904476584026,
56.41213780991736,
61.133571143250684,
62.79250447658402,
61.68351687327823,
59.2442520661157,
54.99575860881543,
51.836366391184576,
49.28398174931129
]
},
"eauto_obj": {
@@ -675,78 +675,78 @@
"start_soc_prozent": 5
},
"start_solution": [
2.0,
12.0,
4.0,
1.0,
19.0,
9.0,
20.0,
14.0,
6.0,
9.0,
8.0,
19.0,
7.0,
2.0,
2.0,
1.0,
3.0,
8.0,
14.0,
11.0,
10.0,
9.0,
10.0,
12.0,
11.0,
13.0,
11.0,
8.0,
10.0,
10.0,
9.0,
11.0,
13.0,
7.0,
8.0,
7.0,
1.0,
7.0,
2.0,
11.0,
11.0,
14.0,
11.0,
5.0,
10.0,
9.0,
13.0,
10.0,
9.0,
8.0,
4.0,
4.0,
2.0,
0.0,
6.0,
3.0,
0.0,
5.0,
4.0,
6.0,
0.0,
4.0,
6.0,
6.0,
6.0,
1.0,
4.0,
1.0,
4.0,
1.0,
0.0,
0.0,
2.0,
2.0,
6.0,
3.0,
3.0,
3.0,
5.0,
6.0,
4.0,
5.0,
5.0,
4.0,
3.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,
4.0,
1.0,
6.0,
2.0,
3.0,
1.0,
1.0,
1.0,
1.0,
1.0,
3.0,
5.0,
6.0,
0.0,
5.0,
1.0,
5.0,
6.0,
1.0,
6.0,
0.0,
0.0,
6.0,
6.0,
6.0,
6.0,
4.0,
3.0,
6.0,
5.0,
1.0,
3.0,
1.0,
1.0,
0.0,
0.0,
0.0,
@@ -771,7 +771,7 @@
0.0,
0.0,
0.0,
13.0
14.0
],
"washingstart": 13
"washingstart": 14
}