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

@@ -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
}