Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 24 additions & 22 deletions grid2op/data/educ_case14_redisp/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,29 @@
from grid2op.Chronics import GridStateFromFileWithForecasts
from grid2op.Backend import PandaPowerBackend

thermal_limits = {
"0_1_0": 541.0,
"0_4_1": 450.0,
"1_2_2": 375.0,
"1_3_3": 636.0,
"1_4_4": 175.0,
"2_3_5": 285.0,
"3_4_6": 335.0,
"5_10_7": 657.0,
"5_11_8": 496.0,
"5_12_9": 827.0,
"8_9_10": 442.0,
"8_13_11": 641.0,
"9_10_12": 840.0,
"11_12_13": 156.0,
"12_13_14": 664.0,
"3_6_15": 235.0,
"3_8_16": 119.0,
"4_5_17": 179.0,
"6_7_18": 1986.0,
"6_8_19": 1572.0,
}

config = {
"backend": PandaPowerBackend,
"action_class": PowerlineChangeAndDispatchAction,
Expand All @@ -14,27 +37,6 @@
"chronics_class": Multifolder,
"grid_value_class": GridStateFromFileWithForecasts,
"volagecontroler_class": None,
"thermal_limits": [
541.0,
450.0,
375.0,
636.0,
175.0,
285.0,
335.0,
657.0,
496.0,
827.0,
442.0,
641.0,
840.0,
156.0,
664.0,
235.0,
119.0,
179.0,
1986.0,
1572.0,
],
"thermal_limits": thermal_limits,
"names_chronics_to_grid": None,
}
46 changes: 24 additions & 22 deletions grid2op/data/educ_case14_storage/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,29 @@
from grid2op.Chronics import GridStateFromFileWithForecasts
from grid2op.Backend import PandaPowerBackend

thermal_limits = {
"0_1_0": 541.0,
"0_4_1": 450.0,
"1_2_2": 375.0,
"1_3_3": 636.0,
"1_4_4": 175.0,
"2_3_5": 285.0,
"3_4_6": 335.0,
"5_10_7": 657.0,
"5_11_8": 496.0,
"5_12_9": 827.0,
"8_9_10": 442.0,
"8_13_11": 641.0,
"9_10_12": 840.0,
"11_12_13": 156.0,
"12_13_14": 664.0,
"3_6_15": 235.0,
"3_8_16": 119.0,
"4_5_17": 179.0,
"6_7_18": 1986.0,
"6_8_19": 1572.0,
}

config = {
"backend": PandaPowerBackend,
"action_class": PowerlineChangeDispatchAndStorageAction,
Expand All @@ -14,27 +37,6 @@
"chronics_class": Multifolder,
"grid_value_class": GridStateFromFileWithForecasts,
"volagecontroler_class": None,
"thermal_limits": [
541.0,
450.0,
375.0,
636.0,
175.0,
285.0,
335.0,
657.0,
496.0,
827.0,
442.0,
641.0,
840.0,
156.0,
664.0,
235.0,
119.0,
179.0,
1986.0,
1572.0,
],
"thermal_limits": thermal_limits,
"names_chronics_to_grid": None,
}
47 changes: 25 additions & 22 deletions grid2op/data/l2rpn_case14_sandbox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@
from grid2op.Chronics import GridStateFromFileWithForecasts
from grid2op.Backend import PandaPowerBackend

th_limits = {
"0_1_0": 541.0,
"0_4_1": 450.0,
"1_2_2": 375.0,
"1_3_3": 636.0,
"1_4_4": 175.0,
"2_3_5": 285.0,
"3_4_6": 335.0,
"5_10_7": 657.0,
"5_11_8": 496.0,
"5_12_9": 827.0,
"8_9_10": 442.0,
"8_13_11": 641.0,
"9_10_12": 840.0,
"11_12_13": 156.0,
"12_13_14": 664.0,
"3_6_15": 235.0,
"3_8_16": 119.0,
"4_5_17": 179.0,
"6_7_18": 1986.0,
"6_8_19": 1572.0,
}


config = {
"backend": PandaPowerBackend,
"action_class": PlayableAction,
Expand All @@ -14,27 +38,6 @@
"chronics_class": Multifolder,
"grid_value_class": GridStateFromFileWithForecasts,
"volagecontroler_class": None,
"thermal_limits": [
541.0,
450.0,
375.0,
636.0,
175.0,
285.0,
335.0,
657.0,
496.0,
827.0,
442.0,
641.0,
840.0,
156.0,
664.0,
235.0,
119.0,
179.0,
1986.0,
1572.0,
],
"thermal_limits": th_limits,
"names_chronics_to_grid": None,
}
49 changes: 26 additions & 23 deletions grid2op/data/l2rpn_case14_sandbox_diff_grid/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@
from grid2op.Chronics import GridStateFromFileWithForecasts
from grid2op.Backend import PandaPowerBackend


th_limits = {
"0_1_0": 541.0,
"0_4_1": 450.0,
"1_2_2": 375.0,
"1_3_3": 636.0,
"1_4_4": 175.0,
"2_3_5": 285.0,
"3_4_6": 335.0,
"5_10_7": 657.0,
"5_11_8": 496.0,
"5_12_9": 827.0,
"8_9_10": 442.0,
"8_13_11": 641.0,
"9_10_12": 840.0,
"11_12_13": 156.0,
"12_13_14": 664.0,
"3_6_15": 235.0,
"3_8_16": 119.0,
"4_5_17": 179.0,
"6_7_18": 1986.0,
"6_8_19": 1572.0,
}

config = {
"backend": PandaPowerBackend,
"action_class": PlayableAction,
Expand All @@ -14,27 +38,6 @@
"chronics_class": Multifolder,
"grid_value_class": GridStateFromFileWithForecasts,
"volagecontroler_class": None,
"thermal_limits": [
541.0,
450.0,
375.0,
636.0,
175.0,
285.0,
335.0,
657.0,
496.0,
827.0,
442.0,
641.0,
840.0,
156.0,
664.0,
235.0,
119.0,
179.0,
1986.0,
1572.0,
],
"names_chronics_to_grid": None
"thermal_limits": th_limits,
"names_chronics_to_grid": None,
}
133 changes: 69 additions & 64 deletions grid2op/data/l2rpn_icaps_2021/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
from grid2op.Action import PlayableAction
from grid2op.Observation import CompleteObservation
import warnings
warnings.warn("The grid2op version you are trying to use is too old for this environment. Please upgrade it.")

warnings.warn(
"The grid2op version you are trying to use is too old for this environment. Please upgrade it."
)
ActionICAPS2021 = PlayableAction
ObservationICAPS2021 = CompleteObservation


lines_attacked = [
"62_58_180",
"62_63_160",
Expand All @@ -39,6 +42,68 @@
)
opponent_init_budget = 144.0 # no need to attack straightfully, it can attack starting at midday the first day

thermal_limits = {
"34_35_110": 60.900001525878906,
"34_36_111": 231.89999389648438,
"32_36_112": 272.6000061035156,
"33_35_113": 212.8000030517578,
"33_36_114": 749.2000122070312,
"36_38_115": 332.3999938964844,
"36_39_116": 348.0,
"38_39_119": 414.3999938964844,
"39_40_120": 310.1000061035156,
"39_41_121": 371.3999938964844,
"40_41_122": 401.20001220703125,
"42_43_123": 124.30000305175781,
"33_42_124": 298.5,
"43_44_125": 86.4000015258789,
"44_45_126": 213.89999389648438,
"45_46_127": 160.8000030517578,
"45_47_128": 112.19999694824219,
"46_48_130": 291.3999938964844,
"41_48_131": 489.0,
"41_48_132": 489.0,
"44_48_133": 124.5999984741211,
"47_48_134": 196.6999969482422,
"48_49_135": 191.89999389648438,
"48_50_136": 238.39999389648438,
"50_51_137": 174.1999969482422,
"51_52_138": 105.5999984741211,
"52_53_139": 143.6999969482422,
"48_53_141": 293.3999938964844,
"48_53_142": 288.8999938964844,
"53_54_143": 107.69999694824219,
"53_55_144": 415.5,
"54_55_145": 148.1999969482422,
"55_56_146": 124.19999694824219,
"49_56_147": 154.39999389648438,
"55_57_148": 85.9000015258789,
"50_57_149": 106.5,
"53_58_150": 142.0,
"55_58_152": 124.0,
"55_58_153": 130.1999969482422,
"54_58_154": 86.19999694824219,
"58_59_155": 278.1000061035156,
"58_60_156": 182.0,
"59_60_157": 592.0999755859375,
"59_61_158": 173.10000610351562,
"60_61_159": 249.8000030517578,
"62_63_160": 441.0,
"37_64_161": 344.20001220703125,
"63_64_163": 722.7999877929688,
"48_65_164": 494.6000061035156,
"48_65_165": 494.6000061035156,
"61_65_166": 196.6999969482422,
"61_66_167": 151.8000030517578,
"65_66_168": 263.3999938964844,
"46_68_169": 364.1000061035156,
"48_68_170": 327.0,
"37_36_179": 370.5,
"62_58_180": 441.0,
"63_60_181": 300.29998779296875,
"64_65_182": 656.2000122070312,
}

config = {
"backend": PandaPowerBackend,
"action_class": ActionICAPS2021,
Expand All @@ -49,67 +114,7 @@
"grid_value_class": GridStateFromFileWithForecasts,
"volagecontroler_class": None,
"names_chronics_to_grid": None,
"thermal_limits": [
60.9,
231.9,
272.6,
212.8,
749.2,
332.4,
348.0,
414.4,
310.1,
371.4,
401.2,
124.3,
298.5,
86.4,
213.9,
160.8,
112.2,
291.4,
489.0,
489.0,
124.6,
196.7,
191.9,
238.4,
174.2,
105.6,
143.7,
293.4,
288.9,
107.7,
415.5,
148.2,
124.2,
154.4,
85.9,
106.5,
142.0,
124.0,
130.2,
86.2,
278.1,
182.0,
592.1,
173.1,
249.8,
441.0,
344.2,
722.8,
494.6,
494.6,
196.7,
151.8,
263.4,
364.1,
327.0,
370.5,
441.0,
300.3,
656.2,
],
"thermal_limits": thermal_limits,
"opponent_attack_cooldown": opponent_attack_cooldown,
"opponent_attack_duration": opponent_attack_duration,
"opponent_budget_per_ts": opponent_budget_per_ts,
Expand Down
Loading