Skip to content

Commit c31eb8d

Browse files
committed
feat: Update envs data that use thermal limits
Signed-off-by: ralfcortes <ralf.cortesdonascimento@rte-france.com>
1 parent 64dd384 commit c31eb8d

14 files changed

Lines changed: 1221 additions & 831 deletions

File tree

grid2op/data/educ_case14_redisp/config.py

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@
55
from grid2op.Chronics import GridStateFromFileWithForecasts
66
from grid2op.Backend import PandaPowerBackend
77

8+
thermal_limits = {
9+
"0_1_0": 541.0,
10+
"0_4_1": 450.0,
11+
"1_2_2": 375.0,
12+
"1_3_3": 636.0,
13+
"1_4_4": 175.0,
14+
"2_3_5": 285.0,
15+
"3_4_6": 335.0,
16+
"5_10_7": 657.0,
17+
"5_11_8": 496.0,
18+
"5_12_9": 827.0,
19+
"8_9_10": 442.0,
20+
"8_13_11": 641.0,
21+
"9_10_12": 840.0,
22+
"11_12_13": 156.0,
23+
"12_13_14": 664.0,
24+
"3_6_15": 235.0,
25+
"3_8_16": 119.0,
26+
"4_5_17": 179.0,
27+
"6_7_18": 1986.0,
28+
"6_8_19": 1572.0,
29+
}
30+
831
config = {
932
"backend": PandaPowerBackend,
1033
"action_class": PowerlineChangeAndDispatchAction,
@@ -14,27 +37,6 @@
1437
"chronics_class": Multifolder,
1538
"grid_value_class": GridStateFromFileWithForecasts,
1639
"volagecontroler_class": None,
17-
"thermal_limits": [
18-
541.0,
19-
450.0,
20-
375.0,
21-
636.0,
22-
175.0,
23-
285.0,
24-
335.0,
25-
657.0,
26-
496.0,
27-
827.0,
28-
442.0,
29-
641.0,
30-
840.0,
31-
156.0,
32-
664.0,
33-
235.0,
34-
119.0,
35-
179.0,
36-
1986.0,
37-
1572.0,
38-
],
40+
"thermal_limits": thermal_limits,
3941
"names_chronics_to_grid": None,
4042
}

grid2op/data/educ_case14_storage/config.py

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@
55
from grid2op.Chronics import GridStateFromFileWithForecasts
66
from grid2op.Backend import PandaPowerBackend
77

8+
thermal_limits = {
9+
"0_1_0": 541.0,
10+
"0_4_1": 450.0,
11+
"1_2_2": 375.0,
12+
"1_3_3": 636.0,
13+
"1_4_4": 175.0,
14+
"2_3_5": 285.0,
15+
"3_4_6": 335.0,
16+
"5_10_7": 657.0,
17+
"5_11_8": 496.0,
18+
"5_12_9": 827.0,
19+
"8_9_10": 442.0,
20+
"8_13_11": 641.0,
21+
"9_10_12": 840.0,
22+
"11_12_13": 156.0,
23+
"12_13_14": 664.0,
24+
"3_6_15": 235.0,
25+
"3_8_16": 119.0,
26+
"4_5_17": 179.0,
27+
"6_7_18": 1986.0,
28+
"6_8_19": 1572.0,
29+
}
30+
831
config = {
932
"backend": PandaPowerBackend,
1033
"action_class": PowerlineChangeDispatchAndStorageAction,
@@ -14,27 +37,6 @@
1437
"chronics_class": Multifolder,
1538
"grid_value_class": GridStateFromFileWithForecasts,
1639
"volagecontroler_class": None,
17-
"thermal_limits": [
18-
541.0,
19-
450.0,
20-
375.0,
21-
636.0,
22-
175.0,
23-
285.0,
24-
335.0,
25-
657.0,
26-
496.0,
27-
827.0,
28-
442.0,
29-
641.0,
30-
840.0,
31-
156.0,
32-
664.0,
33-
235.0,
34-
119.0,
35-
179.0,
36-
1986.0,
37-
1572.0,
38-
],
40+
"thermal_limits": thermal_limits,
3941
"names_chronics_to_grid": None,
4042
}

grid2op/data/l2rpn_case14_sandbox_diff_grid/config.py

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,30 @@
55
from grid2op.Chronics import GridStateFromFileWithForecasts
66
from grid2op.Backend import PandaPowerBackend
77

8+
9+
th_limits = {
10+
"0_1_0": 541.0,
11+
"0_4_1": 450.0,
12+
"1_2_2": 375.0,
13+
"1_3_3": 636.0,
14+
"1_4_4": 175.0,
15+
"2_3_5": 285.0,
16+
"3_4_6": 335.0,
17+
"5_10_7": 657.0,
18+
"5_11_8": 496.0,
19+
"5_12_9": 827.0,
20+
"8_9_10": 442.0,
21+
"8_13_11": 641.0,
22+
"9_10_12": 840.0,
23+
"11_12_13": 156.0,
24+
"12_13_14": 664.0,
25+
"3_6_15": 235.0,
26+
"3_8_16": 119.0,
27+
"4_5_17": 179.0,
28+
"6_7_18": 1986.0,
29+
"6_8_19": 1572.0,
30+
}
31+
832
config = {
933
"backend": PandaPowerBackend,
1034
"action_class": PlayableAction,
@@ -14,27 +38,6 @@
1438
"chronics_class": Multifolder,
1539
"grid_value_class": GridStateFromFileWithForecasts,
1640
"volagecontroler_class": None,
17-
"thermal_limits": [
18-
541.0,
19-
450.0,
20-
375.0,
21-
636.0,
22-
175.0,
23-
285.0,
24-
335.0,
25-
657.0,
26-
496.0,
27-
827.0,
28-
442.0,
29-
641.0,
30-
840.0,
31-
156.0,
32-
664.0,
33-
235.0,
34-
119.0,
35-
179.0,
36-
1986.0,
37-
1572.0,
38-
],
39-
"names_chronics_to_grid": None
41+
"thermal_limits": th_limits,
42+
"names_chronics_to_grid": None,
4043
}

grid2op/data/l2rpn_icaps_2021/config.py

Lines changed: 69 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@
1414
from grid2op.Action import PlayableAction
1515
from grid2op.Observation import CompleteObservation
1616
import warnings
17-
warnings.warn("The grid2op version you are trying to use is too old for this environment. Please upgrade it.")
17+
18+
warnings.warn(
19+
"The grid2op version you are trying to use is too old for this environment. Please upgrade it."
20+
)
1821
ActionICAPS2021 = PlayableAction
1922
ObservationICAPS2021 = CompleteObservation
20-
21-
23+
24+
2225
lines_attacked = [
2326
"62_58_180",
2427
"62_63_160",
@@ -39,6 +42,68 @@
3942
)
4043
opponent_init_budget = 144.0 # no need to attack straightfully, it can attack starting at midday the first day
4144

45+
thermal_limits = {
46+
"34_35_110": 60.900001525878906,
47+
"34_36_111": 231.89999389648438,
48+
"32_36_112": 272.6000061035156,
49+
"33_35_113": 212.8000030517578,
50+
"33_36_114": 749.2000122070312,
51+
"36_38_115": 332.3999938964844,
52+
"36_39_116": 348.0,
53+
"38_39_119": 414.3999938964844,
54+
"39_40_120": 310.1000061035156,
55+
"39_41_121": 371.3999938964844,
56+
"40_41_122": 401.20001220703125,
57+
"42_43_123": 124.30000305175781,
58+
"33_42_124": 298.5,
59+
"43_44_125": 86.4000015258789,
60+
"44_45_126": 213.89999389648438,
61+
"45_46_127": 160.8000030517578,
62+
"45_47_128": 112.19999694824219,
63+
"46_48_130": 291.3999938964844,
64+
"41_48_131": 489.0,
65+
"41_48_132": 489.0,
66+
"44_48_133": 124.5999984741211,
67+
"47_48_134": 196.6999969482422,
68+
"48_49_135": 191.89999389648438,
69+
"48_50_136": 238.39999389648438,
70+
"50_51_137": 174.1999969482422,
71+
"51_52_138": 105.5999984741211,
72+
"52_53_139": 143.6999969482422,
73+
"48_53_141": 293.3999938964844,
74+
"48_53_142": 288.8999938964844,
75+
"53_54_143": 107.69999694824219,
76+
"53_55_144": 415.5,
77+
"54_55_145": 148.1999969482422,
78+
"55_56_146": 124.19999694824219,
79+
"49_56_147": 154.39999389648438,
80+
"55_57_148": 85.9000015258789,
81+
"50_57_149": 106.5,
82+
"53_58_150": 142.0,
83+
"55_58_152": 124.0,
84+
"55_58_153": 130.1999969482422,
85+
"54_58_154": 86.19999694824219,
86+
"58_59_155": 278.1000061035156,
87+
"58_60_156": 182.0,
88+
"59_60_157": 592.0999755859375,
89+
"59_61_158": 173.10000610351562,
90+
"60_61_159": 249.8000030517578,
91+
"62_63_160": 441.0,
92+
"37_64_161": 344.20001220703125,
93+
"63_64_163": 722.7999877929688,
94+
"48_65_164": 494.6000061035156,
95+
"48_65_165": 494.6000061035156,
96+
"61_65_166": 196.6999969482422,
97+
"61_66_167": 151.8000030517578,
98+
"65_66_168": 263.3999938964844,
99+
"46_68_169": 364.1000061035156,
100+
"48_68_170": 327.0,
101+
"37_36_179": 370.5,
102+
"62_58_180": 441.0,
103+
"63_60_181": 300.29998779296875,
104+
"64_65_182": 656.2000122070312,
105+
}
106+
42107
config = {
43108
"backend": PandaPowerBackend,
44109
"action_class": ActionICAPS2021,
@@ -49,67 +114,7 @@
49114
"grid_value_class": GridStateFromFileWithForecasts,
50115
"volagecontroler_class": None,
51116
"names_chronics_to_grid": None,
52-
"thermal_limits": [
53-
60.9,
54-
231.9,
55-
272.6,
56-
212.8,
57-
749.2,
58-
332.4,
59-
348.0,
60-
414.4,
61-
310.1,
62-
371.4,
63-
401.2,
64-
124.3,
65-
298.5,
66-
86.4,
67-
213.9,
68-
160.8,
69-
112.2,
70-
291.4,
71-
489.0,
72-
489.0,
73-
124.6,
74-
196.7,
75-
191.9,
76-
238.4,
77-
174.2,
78-
105.6,
79-
143.7,
80-
293.4,
81-
288.9,
82-
107.7,
83-
415.5,
84-
148.2,
85-
124.2,
86-
154.4,
87-
85.9,
88-
106.5,
89-
142.0,
90-
124.0,
91-
130.2,
92-
86.2,
93-
278.1,
94-
182.0,
95-
592.1,
96-
173.1,
97-
249.8,
98-
441.0,
99-
344.2,
100-
722.8,
101-
494.6,
102-
494.6,
103-
196.7,
104-
151.8,
105-
263.4,
106-
364.1,
107-
327.0,
108-
370.5,
109-
441.0,
110-
300.3,
111-
656.2,
112-
],
117+
"thermal_limits": thermal_limits,
113118
"opponent_attack_cooldown": opponent_attack_cooldown,
114119
"opponent_attack_duration": opponent_attack_duration,
115120
"opponent_budget_per_ts": opponent_budget_per_ts,

0 commit comments

Comments
 (0)