Skip to content

Commit b6c835a

Browse files
authored
test: add feed-in cap recovery case for grid export limit (#93)
Covers the German 70% feed-in rule scenario from evcc-io/evcc#23042: with a grid export cap the battery charges into the PV peak to recover energy that would otherwise be curtailed, staying feasible.
1 parent a18b8b3 commit b6c835a

1 file changed

Lines changed: 109 additions & 0 deletions

File tree

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"request": {
3+
"grid": {
4+
"p_max_exp": 2000
5+
},
6+
"batteries": [
7+
{
8+
"charge_from_grid": false,
9+
"discharge_to_grid": false,
10+
"s_min": 0,
11+
"s_max": 10000,
12+
"s_initial": 0,
13+
"c_min": 0,
14+
"c_max": 6000,
15+
"d_max": 0,
16+
"p_a": 0.0001
17+
}
18+
],
19+
"time_series": {
20+
"dt": [
21+
3600,
22+
3600,
23+
3600,
24+
3600
25+
],
26+
"gt": [
27+
0,
28+
0,
29+
0,
30+
0
31+
],
32+
"ft": [
33+
0,
34+
6000,
35+
0,
36+
0
37+
],
38+
"p_N": [
39+
0.3,
40+
0.3,
41+
0.3,
42+
0.3
43+
],
44+
"p_E": [
45+
0.1,
46+
0.1,
47+
0.1,
48+
0.1
49+
]
50+
},
51+
"eta_c": 0.95,
52+
"eta_d": 0.95
53+
},
54+
"expected_response": {
55+
"status": "Optimal",
56+
"objective_value": 200.38,
57+
"limit_violations": {
58+
"grid_import_limit_exceeded": false,
59+
"grid_export_limit_hit": false
60+
},
61+
"batteries": [
62+
{
63+
"charging_power": [
64+
0.0,
65+
4000.0,
66+
0.0,
67+
0.0
68+
],
69+
"discharging_power": [
70+
0.0,
71+
0.0,
72+
0.0,
73+
0.0
74+
],
75+
"state_of_charge": [
76+
0.0,
77+
3800.0,
78+
3800.0,
79+
3800.0
80+
]
81+
}
82+
],
83+
"grid_import": [
84+
0.0,
85+
0.0,
86+
0.0,
87+
0.0
88+
],
89+
"grid_export": [
90+
0.0,
91+
2000.0,
92+
0.0,
93+
0.0
94+
],
95+
"flow_direction": [
96+
0,
97+
1,
98+
0,
99+
0
100+
],
101+
"grid_import_overshoot": [],
102+
"grid_export_overshoot": [
103+
0.0,
104+
0.0,
105+
0.0,
106+
0.0
107+
]
108+
}
109+
}

0 commit comments

Comments
 (0)