feat(optimization): model battery LCOS and probabilistic bypass

This commit is contained in:
Andreas
2026-07-15 09:23:29 +02:00
parent 8ddb7ce754
commit bed1f0f275
27 changed files with 1362 additions and 890 deletions
+313 -272
View File
@@ -111,8 +111,8 @@
0,
0,
0,
1,
0,
1,
0,
0,
0,
@@ -123,6 +123,23 @@
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
@@ -130,87 +147,71 @@
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"battery_grid_export_allowed": [],
"eautocharge_hours_float": [
0.875,
0.75,
0.5,
1.0,
0.625,
0.625,
0.875,
0.625,
0.875,
0.875,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.375,
0.375,
0.875,
1.0,
0.5,
0.625,
1.0,
0.75,
0.5,
0.875,
0.625,
0.375,
0.5,
0.625,
0.625,
0.5,
0.625,
0.625,
0.0,
0.625,
0.5,
0.5,
1.0,
0.375,
0.625,
0.875,
0.5,
0.5,
0.75,
0.75,
0.75,
0.375,
0.1,
0.0,
0.875,
0.75,
1.0,
1.0,
0.75,
0.625,
0.875,
0.5,
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
],
"result": {
"Last_Wh_pro_Stunde": [
1053.07,
11551.91,
6564.5599999999995,
7687.03,
14151.67,
11542.82,
6460.22,
7658.78,
4986.07,
4996.91,
12997.56,
14120.029999999999,
10340.67,
7731.82,
5149.22,
5036.78,
5062.12,
1178.71,
2227.51,
1050.98,
988.56,
912.38,
@@ -242,43 +243,43 @@
],
"EAuto_SoC_pro_Stunde": [
5.0,
5.0,
22.48,
31.22,
42.144999999999996,
59.62499999999999,
72.735,
81.475,
92.4,
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
11.555,
18.11,
33.405,
50.885000000000005,
66.18,
77.105,
83.66,
90.215,
96.77,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518,
98.518
],
"Einnahmen_Euro_pro_Stunde": [
0.0,
@@ -320,13 +321,11 @@
0.0,
0.0
],
"Gesamt_Verluste": 7647.623819992857,
"Gesamtbilanz_Euro": 7.824605715847156,
"Gesamt_Verluste": 8404.44594732788,
"Gesamtbilanz_Euro": 7.836546975121494,
"Gesamteinnahmen_Euro": 0.0,
"Gesamtkosten_Euro": 7.824605715847156,
"Gesamtkosten_Euro": 7.836546975121494,
"Home_appliance_wh_per_hour": [
0.0,
0.0,
0.0,
0.0,
2500.0,
@@ -362,23 +361,19 @@
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
],
"Kosten_Euro_pro_Stunde": [
0.027996119999999992,
1.351235592,
1.1423217259999998,
1.226111386,
1.4948178300000001,
1.2071595,
0.9248695241652183,
0.8749092776800845,
1.5678286259999998,
2.4348720859999995,
0.8528744919675278,
0.5282751491259897,
0.0,
1.0534661399999998,
0.0,
0.0,
0.0,
0.0,
0.0,
0.19588158,
0.4965507655670841,
0.0,
0.0,
0.0,
@@ -387,10 +382,6 @@
0.0,
0.0,
0.0,
0.01995551999999987,
0.08545095,
0.007989913613567745,
0.012219458233588571,
0.0,
0.0,
0.0,
@@ -398,6 +389,16 @@
0.0,
0.0,
0.0,
0.11338560853163265,
0.04079284310894048,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0021886029750169123,
0.0,
0.0,
0.0,
0.0,
0.0,
@@ -405,20 +406,14 @@
0.0
],
"Netzbezug_Wh_pro_Stunde": [
122.78999999999996,
6108.66,
5457.82,
6525.34,
8132.85,
6023.75,
4056.445281426396,
3955.2860654615033,
7490.82,
12958.339999999998,
4640.231185895146,
2636.103538552843,
0.0,
4640.82,
0.0,
0.0,
0.0,
0.0,
0.0,
704.61,
2187.4483064629258,
0.0,
0.0,
0.0,
@@ -427,10 +422,6 @@
0.0,
0.0,
0.0,
65.59999999999957,
351.65,
35.04348076126204,
55.24167375040041,
0.0,
0.0,
0.0,
@@ -438,6 +429,16 @@
0.0,
0.0,
0.0,
466.6074425170068,
178.91597854798454,
0.0,
0.0,
0.0,
0.0,
0.0,
9.957247384062384,
0.0,
0.0,
0.0,
0.0,
0.0,
@@ -485,20 +486,20 @@
0.0
],
"Verluste_Pro_Stunde": [
0.0,
1152.0,
276.0,
345.0,
207.07863377116755,
207.1951278553804,
1083.0,
552.0,
414.0,
615.5918181818183,
345.0,
632.3249999999998,
23.391818181818195,
99.72409090909093,
133.72909090909081,
521.2057423074175,
395.8024246263412,
458.55183787620945,
227.23539677555112,
640.3849261442235,
253.88850337853552,
106.80230977350088,
133.7321802766326,
124.41545454545451,
0.0,
96.08318181818186,
70.41409090909087,
118.37045454545455,
94.68272727272722,
@@ -506,63 +507,63 @@
75.86045454545456,
66.66681818181814,
69.12409090909085,
109.0704545454546,
101.01681818181828,
0.0,
11.233982308648535,
48.41330768174522,
161.62968357967037,
21.962728535423857,
538.2984000000038,
441.95211196761403,
260.56941082122324,
171.99990368477063,
62.214291413756285,
35.132727272727266,
77.27590909090907,
109.07302361034766,
116.99491129525349,
31.990721833371907,
73.82223834331725,
123.8591383343284,
171.42744837680007,
116.9350623689079,
538.2984000000001,
441.9538395103232,
261.1952696860876,
184.66788225469543,
131.21108264656203,
111.78035844493081,
90.18403329253945,
134.59227272727276,
100.08954545454549,
80.85954545454547
],
"akku_soc_pro_stunde": [
80.0,
80.0,
61.06060606060606,
61.06060606060606,
61.06060606060606,
61.06060606060606,
61.06060606060606,
50.341167355371894,
50.341167355371894,
36.91550447658402,
36.17712637741047,
33.0292699724518,
28.808023415977967,
24.88076790633609,
24.88076790633609,
22.658100895316807,
18.921659779614323,
15.932937327823693,
13.312456955922865,
10.917871900826448,
8.813490013774107,
6.63154269972452,
3.1886621900826473,
0.0,
0.0,
0.3120550641291261,
1.07020564583707,
4.578139530578446,
4.728141236897871,
19.68087457022947,
31.94341995234899,
38.90006700591099,
42.674787887051245,
43.17025540478875,
42.06126780148296,
39.622002994320425,
35.373509537020155,
32.214117319389295
80.00218427142131,
80.00760448962633,
61.06821055023239,
61.06821055023239,
62.12948116988288,
63.5406596317257,
58.120614791285504,
58.682709146161926,
45.22651624410048,
39.85140827675753,
36.67674043670639,
32.45548217808278,
28.528226668440908,
25.495297949432643,
23.27263093841336,
19.53618982271088,
16.54746737092025,
13.926986999019423,
11.532401943923004,
9.428020056870663,
7.2460727428210765,
3.8031825018727887,
0.30551238333016156,
0.6197802647075666,
1.5052110988161542,
2.736047696034607,
7.125981603698244,
7.346947276543289,
22.29968060987662,
34.57523424809509,
41.83065840604197,
46.49642400356206,
47.884563842022054,
46.48524430245792,
43.99708508544073,
39.74859162814045,
36.5891994105096
],
"Electricity_price": [
0.000228,
@@ -603,6 +604,46 @@
0.0002969,
0.0002921,
0.000278
],
"Feed_in_tariff": [
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05,
7e-05
]
},
"eauto_obj": {
@@ -619,16 +660,16 @@
0.0,
0.0,
0.0,
0.0,
0.375,
0.375,
0.875,
1.0,
0.5,
0.625,
1.0,
0.75,
0.5,
0.875,
0.625,
0.375,
0.0,
0.375,
0.375,
0.1,
0.0,
0.0,
0.0,
@@ -712,26 +753,26 @@
"capacity_wh": 60000,
"charging_efficiency": 0.95,
"max_charge_power_w": 11040,
"soc_wh": 59373.0,
"soc_wh": 59110.8,
"initial_soc_percentage": 5
},
"start_solution": [
2.0,
1.0,
2.0,
0.0,
2.0,
0.0,
1.0,
2.0,
1.0,
0.0,
1.0,
2.0,
2.0,
1.0,
1.0,
0.0,
0.0,
1.0,
0.0,
0.0,
0.0,
0.0,
1.0,
0.0,
1.0,
@@ -739,6 +780,23 @@
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,
0.0,
1.0,
1.0,
@@ -748,71 +806,54 @@
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,
5.0,
4.0,
2.0,
6.0,
3.0,
3.0,
5.0,
3.0,
5.0,
5.0,
0.0,
6.0,
2.0,
3.0,
6.0,
4.0,
2.0,
3.0,
1.0,
2.0,
3.0,
3.0,
2.0,
3.0,
3.0,
0.0,
3.0,
2.0,
2.0,
6.0,
1.0,
3.0,
5.0,
1.0,
1.0,
1.0,
5.0,
6.0,
5.0,
3.0,
1.0,
1.0,
1.0,
1.0,
4.0,
2.0,
6.0,
5.0,
5.0,
3.0,
2.0,
2.0,
4.0,
4.0,
6.0,
5.0,
2.0,
5.0,
4.0,
0.0,
4.0,
1.0,
0.0,
0.0,
5.0,
4.0,
6.0,
6.0,
4.0,
0.0,
0.0,
2.0,
3.0,
5.0,
4.0,
4.0,
2.0,
5.0,
14.0
3.0,
12.0
],
"washingstart": 14
"washingstart": 12
}