diff --git a/grid2op/data/educ_case14_redisp/config.py b/grid2op/data/educ_case14_redisp/config.py index 5ac8794aa..d8b7aaa78 100644 --- a/grid2op/data/educ_case14_redisp/config.py +++ b/grid2op/data/educ_case14_redisp/config.py @@ -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, @@ -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, } diff --git a/grid2op/data/educ_case14_storage/config.py b/grid2op/data/educ_case14_storage/config.py index afefe03d4..2df7135fe 100644 --- a/grid2op/data/educ_case14_storage/config.py +++ b/grid2op/data/educ_case14_storage/config.py @@ -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, @@ -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, } diff --git a/grid2op/data/l2rpn_case14_sandbox/config.py b/grid2op/data/l2rpn_case14_sandbox/config.py index fd7587536..816171c64 100644 --- a/grid2op/data/l2rpn_case14_sandbox/config.py +++ b/grid2op/data/l2rpn_case14_sandbox/config.py @@ -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, @@ -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, } diff --git a/grid2op/data/l2rpn_case14_sandbox_diff_grid/config.py b/grid2op/data/l2rpn_case14_sandbox_diff_grid/config.py index bbd08721f..d055902a9 100644 --- a/grid2op/data/l2rpn_case14_sandbox_diff_grid/config.py +++ b/grid2op/data/l2rpn_case14_sandbox_diff_grid/config.py @@ -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, @@ -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, } diff --git a/grid2op/data/l2rpn_icaps_2021/config.py b/grid2op/data/l2rpn_icaps_2021/config.py index d424242d1..c36bdb571 100644 --- a/grid2op/data/l2rpn_icaps_2021/config.py +++ b/grid2op/data/l2rpn_icaps_2021/config.py @@ -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", @@ -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, @@ -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, diff --git a/grid2op/data/l2rpn_idf_2023/config.py b/grid2op/data/l2rpn_idf_2023/config.py index 733829b90..223130054 100644 --- a/grid2op/data/l2rpn_idf_2023/config.py +++ b/grid2op/data/l2rpn_idf_2023/config.py @@ -13,60 +13,238 @@ 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 to at least grid2op 1.9.1") + + warnings.warn( + "The grid2op version you are trying to use is too old for this environment. Please upgrade it to at least grid2op 1.9.1" + ) ActionIDF2023 = PlayableAction ObservationIDF2023 = CompleteObservation -lines_attacked = [["26_31_106", - "21_22_93", - "17_18_88", - "4_10_162", - "12_14_68", - "29_37_117", - ], - ["62_58_180", - "62_63_160", - "48_50_136", - "48_53_141", - "41_48_131", - "39_41_121", - "43_44_125", - "44_45_126", - "34_35_110", - "54_58_154", - ], - ["74_117_81", - "93_95_43", - "88_91_33", - "91_92_37", - "99_105_62", - "102_104_61", - ]] +lines_attacked = [ + [ + "26_31_106", + "21_22_93", + "17_18_88", + "4_10_162", + "12_14_68", + "29_37_117", + ], + [ + "62_58_180", + "62_63_160", + "48_50_136", + "48_53_141", + "41_48_131", + "39_41_121", + "43_44_125", + "44_45_126", + "34_35_110", + "54_58_154", + ], + [ + "74_117_81", + "93_95_43", + "88_91_33", + "91_92_37", + "99_105_62", + "102_104_61", + ], +] opponent_attack_duration = 96 # 8 hours at maximum attack_every_xxx_hour = 32 # can still change average_attack_duration_hour = 2 # can still change # after modifications for infeasibility -th_lim = [ 349., 546., 1151., 581., 743., 613., 69., 801., 731., 953., - 463. , 291. , 876. , 649. , 461. , 916., 281. , 204. , 97. , 251., - 1901., 1356., 601., 793., 351., 509., 409., 566., 339., 899., - 356. , 673. , 543. , 1313. , 411. , 551., 633. , 244. , 589. , 285., - 646. , 418. , 479. , 327. , 1043. , 951., 429. , 871. , 449. , 1056., - 939. , 946. , 759. , 716. , 629. , 486., 409. , 296. , 893. , 411., - 99. , 326. , 506. , 993. , 646. , 257. , 493. , 263. , 323. , 513., - 629. , 566. , 1379. , 659. , 3566. , 423., 306. , 479. , 279. , 376., - 336. , 836. , 759. , 151. , 1143. , 851., 236. , 846. , 397. , 483., - 559. , 216. , 219. , 130. , 1533. , 1733., 916. , 1071. , 513. , 289., - 796. , 773. , 849. , 359. , 566. , 273., 252. , 1119. , 535. , 581., - 83. , 353. , 541. , 316. ,1033. , 379. , 316. ,1221. , 599. , 313., - 371. , 301. , 346. , 449. , 571. , 169., 273. , 88. , 113. , 549., - 446. , 589. , 589. , 279. , 256. , 157., 195. , 221. , 119. , 256.9, - 287.5, 326. , 376.6, 179.5, 927.9, 223., 90. , 119. , 75. , 79., - 317.9, 921. , 236. , 249. , 118. , 693., 671. , 453. , 318.5, 427.2, - 689. , 701. , 372. , 721. , 616. , 616., 108.7, 340.2, 223. , 384., - 409. , 309. , 696. , 1393. , 1089. , 1751., 341. , 883. , 791. , 661., - 689. , 397. , 1019. , 2063. , 2056. , 1751., ] + +thermal_limits = { + "0_1_0": 349.0, + "0_2_1": 546.0, + "10_11_2": 1151.0, + "69_70_3": 581.0, + "23_71_4": 743.0, + "70_71_5": 613.0, + "70_72_6": 69.0, + "69_73_7": 801.0, + "69_74_8": 731.0, + "68_74_9": 953.0, + "73_74_10": 463.0, + "75_76_11": 291.0, + "68_76_12": 876.0, + "1_11_13": 649.0, + "74_76_14": 461.0, + "76_77_15": 916.0, + "77_78_16": 281.0, + "76_79_17": 204.0, + "76_79_18": 97.0, + "78_79_19": 251.0, + "76_81_20": 1901.0, + "81_82_21": 1356.0, + "82_83_22": 601.0, + "82_84_23": 793.0, + "2_11_24": 351.0, + "83_84_25": 509.0, + "84_85_26": 409.0, + "84_87_27": 566.0, + "84_88_28": 339.0, + "87_88_29": 899.0, + "88_89_30": 356.0, + "88_89_31": 673.0, + "89_90_32": 543.0, + "88_91_33": 1313.0, + "88_91_34": 411.0, + "6_11_35": 551.0, + "90_91_36": 633.0, + "91_92_37": 244.0, + "91_93_38": 589.0, + "92_93_39": 285.0, + "93_94_40": 646.0, + "79_95_41": 418.0, + "81_95_42": 479.0, + "93_95_43": 327.0, + "79_96_44": 1043.0, + "79_97_45": 951.0, + "10_12_46": 429.0, + "79_98_47": 871.0, + "91_99_48": 449.0, + "93_99_49": 1056.0, + "94_95_50": 939.0, + "95_96_51": 946.0, + "97_99_52": 759.0, + "98_99_53": 716.0, + "99_100_54": 629.0, + "91_101_55": 486.0, + "100_101_56": 409.0, + "11_13_57": 296.0, + "99_102_58": 893.0, + "99_103_59": 411.0, + "102_103_60": 99.0, + "102_104_61": 326.0, + "99_105_62": 506.0, + "103_104_63": 993.0, + "104_105_64": 646.0, + "104_106_65": 257.0, + "104_107_66": 493.0, + "105_106_67": 263.0, + "12_14_68": 323.0, + "107_108_69": 513.0, + "102_109_70": 629.0, + "108_109_71": 566.0, + "109_110_72": 1379.0, + "109_111_73": 659.0, + "16_112_74": 3566.0, + "31_112_75": 423.0, + "31_113_76": 306.0, + "26_114_77": 479.0, + "113_114_78": 279.0, + "13_14_79": 376.0, + "11_116_80": 336.0, + "74_117_81": 836.0, + "75_117_82": 759.0, + "11_15_83": 151.0, + "14_16_84": 1143.0, + "3_4_85": 851.0, + "15_16_86": 236.0, + "16_17_87": 846.0, + "17_18_88": 397.0, + "18_19_89": 483.0, + "14_18_90": 559.0, + "19_20_91": 216.0, + "20_21_92": 219.0, + "21_22_93": 130.0, + "22_23_94": 1533.0, + "22_24_95": 1733.0, + "2_4_96": 916.0, + "24_26_97": 1071.0, + "26_27_98": 513.0, + "27_28_99": 289.0, + "7_29_100": 796.0, + "25_29_101": 773.0, + "16_30_102": 849.0, + "28_30_103": 359.0, + "22_31_104": 566.0, + "30_31_105": 273.0, + "26_31_106": 252.0, + "4_5_107": 1119.0, + "14_32_108": 535.0, + "18_33_109": 581.0, + "34_35_110": 83.0, + "34_36_111": 353.0, + "32_36_112": 541.0, + "33_35_113": 316.0, + "33_36_114": 1033.0, + "36_38_115": 379.0, + "36_39_116": 316.0, + "29_37_117": 1221.0, + "5_6_118": 599.0, + "38_39_119": 313.0, + "39_40_120": 371.0, + "39_41_121": 301.0, + "40_41_122": 346.0, + "42_43_123": 449.0, + "33_42_124": 571.0, + "43_44_125": 169.0, + "44_45_126": 273.0, + "45_46_127": 88.0, + "45_47_128": 113.0, + "7_8_129": 549.0, + "46_48_130": 446.0, + "41_48_131": 589.0, + "41_48_132": 589.0, + "44_48_133": 279.0, + "47_48_134": 256.0, + "48_49_135": 157.0, + "48_50_136": 195.0, + "50_51_137": 221.0, + "51_52_138": 119.0, + "52_53_139": 256.8999938964844, + "8_9_140": 287.5, + "48_53_141": 326.0, + "48_53_142": 376.6000061035156, + "53_54_143": 179.5, + "53_55_144": 927.9000244140625, + "54_55_145": 223.0, + "55_56_146": 90.0, + "49_56_147": 119.0, + "55_57_148": 75.0, + "50_57_149": 79.0, + "53_58_150": 317.8999938964844, + "3_10_151": 921.0, + "55_58_152": 236.0, + "55_58_153": 249.0, + "54_58_154": 118.0, + "58_59_155": 693.0, + "58_60_156": 671.0, + "59_60_157": 453.0, + "59_61_158": 318.5, + "60_61_159": 427.20001220703125, + "62_63_160": 689.0, + "37_64_161": 701.0, + "4_10_162": 372.0, + "63_64_163": 721.0, + "48_65_164": 616.0, + "48_65_165": 616.0, + "61_65_166": 108.69999694824219, + "61_66_167": 340.20001220703125, + "65_66_168": 223.0, + "46_68_169": 384.0, + "48_68_170": 409.0, + "68_69_171": 309.0, + "23_69_172": 696.0, + "7_4_173": 1393.0, + "25_24_174": 1089.0, + "80_79_175": 1751.0, + "86_85_176": 341.0, + "115_67_177": 883.0, + "29_16_178": 791.0, + "37_36_179": 661.0, + "62_58_180": 689.0, + "63_60_181": 397.0, + "64_65_182": 1019.0, + "64_67_183": 2063.0, + "67_68_184": 2056.0, + "80_67_185": 1751.0, +} this_rules = RulesByArea([[0, 1, 2, 3, 10, 11, 116, 13, 12, 14, 4, 5, 6, 15, 7, 8, 9, @@ -89,14 +267,15 @@ "reward_class": RedispReward, "gamerules_class": this_rules, "chronics_class": Multifolder, - "data_feeding_kwargs":{"gridvalueClass": GridStateFromFileWithForecastsWithMaintenance, - "h_forecast": [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60] - }, + "data_feeding_kwargs": { + "gridvalueClass": GridStateFromFileWithForecastsWithMaintenance, + "h_forecast": [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60], + }, "volagecontroler_class": None, "names_chronics_to_grid": None, - "thermal_limits": th_lim, - "opponent_budget_per_ts": 0.17 * 3., - "opponent_init_budget": 1000., + "thermal_limits": thermal_limits, + "opponent_budget_per_ts": 0.17 * 3.0, + "opponent_init_budget": 1000.0, "opponent_attack_cooldown": 0, "opponent_attack_duration": 96, "opponent_action_class": PowerlineSetAction, @@ -107,7 +286,7 @@ "attack_every_xxx_hour": attack_every_xxx_hour, "average_attack_duration_hour": average_attack_duration_hour, "minimum_attack_duration_hour": 1, - "pmax_pmin_ratio": 4 + "pmax_pmin_ratio": 4, }, - "other_rewards": {"alert": AlertReward} + "other_rewards": {"alert": AlertReward}, } diff --git a/grid2op/data/l2rpn_neurips_2020_track1/config.py b/grid2op/data/l2rpn_neurips_2020_track1/config.py index c198e789a..bb8cf1d85 100644 --- a/grid2op/data/l2rpn_neurips_2020_track1/config.py +++ b/grid2op/data/l2rpn_neurips_2020_track1/config.py @@ -13,11 +13,14 @@ from grid2op.Action import TopologyAndDispatchAction 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." + ) ActionNeurips2020 = TopologyAndDispatchAction ObservationNeurips2020 = CompleteObservation - - + + lines_attacked = [ "62_58_180", "62_63_160", @@ -37,6 +40,69 @@ 0.16667 # opponent_attack_duration / opponent_attack_cooldown + epsilon ) 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": ActionNeurips2020, @@ -47,67 +113,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, diff --git a/grid2op/data/l2rpn_neurips_2020_track2/x1/config.py b/grid2op/data/l2rpn_neurips_2020_track2/x1/config.py index 269b0b8ab..ae3c70e49 100644 --- a/grid2op/data/l2rpn_neurips_2020_track2/x1/config.py +++ b/grid2op/data/l2rpn_neurips_2020_track2/x1/config.py @@ -10,11 +10,204 @@ from grid2op.Action import TopologyAndDispatchAction 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." + ) ActionNeurips2020 = TopologyAndDispatchAction ObservationNeurips2020 = CompleteObservation - - + + +thermal_limits = { + "0_1_0": 220.6999969482422, + "0_2_1": 334.20001220703125, + "10_11_2": 470.3999938964844, + "69_70_3": 422.1000061035156, + "23_71_4": 445.6000061035156, + "70_71_5": 427.0, + "70_72_6": 7.400000095367432, + "69_73_7": 546.2999877929688, + "69_74_8": 566.5999755859375, + "68_74_9": 539.2999877929688, + "73_74_10": 344.79998779296875, + "75_76_11": 285.3999938964844, + "68_76_12": 591.5, + "1_11_13": 393.79998779296875, + "74_76_14": 334.6000061035156, + "76_77_15": 645.0, + "77_78_16": 336.8999938964844, + "76_79_17": 282.0, + "76_79_18": 132.8000030517578, + "78_79_19": 182.6999969482422, + "76_81_20": 1185.0999755859375, + "81_82_21": 907.9000244140625, + "82_83_22": 400.3999938964844, + "82_84_23": 528.2000122070312, + "2_11_24": 213.0, + "83_84_25": 336.8999938964844, + "84_85_26": 264.79998779296875, + "84_87_27": 430.20001220703125, + "84_88_28": 251.0, + "87_88_29": 473.6000061035156, + "88_89_30": 242.39999389648438, + "88_89_31": 460.6000061035156, + "89_90_32": 317.3999938964844, + "88_91_33": 659.7999877929688, + "88_91_34": 206.5, + "6_11_35": 361.5, + "90_91_36": 321.5, + "91_92_37": 178.5, + "91_93_38": 261.6000061035156, + "92_93_39": 144.10000610351562, + "93_94_40": 481.20001220703125, + "79_95_41": 296.20001220703125, + "81_95_42": 525.4000244140625, + "93_95_43": 201.10000610351562, + "79_96_44": 581.7000122070312, + "79_97_45": 561.7999877929688, + "10_12_46": 346.79998779296875, + "79_98_47": 486.79998779296875, + "91_99_48": 176.0, + "93_99_49": 826.0, + "94_95_50": 546.0, + "95_96_51": 508.8999938964844, + "97_99_52": 451.5, + "98_99_53": 480.20001220703125, + "99_100_54": 294.5, + "91_101_55": 252.39999389648438, + "100_101_56": 219.8000030517578, + "11_13_57": 316.8999938964844, + "99_102_58": 908.5999755859375, + "99_103_59": 359.1000061035156, + "102_103_60": 282.29998779296875, + "102_104_61": 280.5, + "99_105_62": 390.20001220703125, + "103_104_63": 756.7000122070312, + "104_105_64": 554.7999877929688, + "104_106_65": 237.10000610351562, + "104_107_66": 474.20001220703125, + "105_106_67": 164.3000030517578, + "12_14_68": 202.5, + "107_108_69": 455.0, + "102_109_70": 449.3999938964844, + "108_109_71": 387.79998779296875, + "109_110_72": 818.2999877929688, + "109_111_73": 410.20001220703125, + "16_112_74": 259.5, + "31_112_75": 203.10000610351562, + "31_113_76": 166.3000030517578, + "26_114_77": 259.0, + "113_114_78": 145.10000610351562, + "13_14_79": 258.29998779296875, + "11_116_80": 196.6999969482422, + "74_117_81": 503.29998779296875, + "75_117_82": 446.20001220703125, + "11_15_83": 162.39999389648438, + "14_16_84": 639.0999755859375, + "3_4_85": 727.2999877929688, + "15_16_86": 115.4000015258789, + "16_17_87": 445.20001220703125, + "17_18_88": 730.0999755859375, + "18_19_89": 253.60000610351562, + "14_18_90": 345.3999938964844, + "19_20_91": 138.1999969482422, + "20_21_92": 198.39999389648438, + "21_22_93": 248.6999969482422, + "22_23_94": 891.0999755859375, + "22_24_95": 1010.7999877929688, + "2_4_96": 557.9000244140625, + "24_26_97": 746.2000122070312, + "26_27_98": 292.20001220703125, + "27_28_99": 150.89999389648438, + "7_29_100": 617.4000244140625, + "25_29_101": 445.5, + "16_30_102": 475.0, + "28_30_103": 200.0, + "22_31_104": 556.5, + "30_31_105": 190.89999389648438, + "26_31_106": 188.39999389648438, + "4_5_107": 704.9000244140625, + "14_32_108": 387.79998779296875, + "18_33_109": 393.79998779296875, + "34_35_110": 43.400001525878906, + "34_36_111": 205.3000030517578, + "32_36_112": 339.20001220703125, + "33_35_113": 204.8000030517578, + "33_36_114": 601.2999877929688, + "36_38_115": 345.3999938964844, + "36_39_116": 318.20001220703125, + "29_37_117": 678.5999755859375, + "5_6_118": 394.79998779296875, + "38_39_119": 302.0, + "39_40_120": 329.8999938964844, + "39_41_121": 274.3999938964844, + "40_41_122": 307.6000061035156, + "42_43_123": 176.89999389648438, + "33_42_124": 352.29998779296875, + "43_44_125": 132.39999389648438, + "44_45_126": 174.6999969482422, + "45_46_127": 149.5, + "45_47_128": 83.0, + "7_8_129": 579.0, + "46_48_130": 198.60000610351562, + "41_48_131": 557.2000122070312, + "41_48_132": 557.2000122070312, + "44_48_133": 103.0, + "47_48_134": 179.89999389648438, + "48_49_135": 196.89999389648438, + "48_50_136": 244.0, + "50_51_137": 164.8000030517578, + "51_52_138": 100.30000305175781, + "52_53_139": 125.69999694824219, + "8_9_140": 549.0, + "48_53_141": 277.5, + "48_53_142": 273.29998779296875, + "53_54_143": 91.9000015258789, + "53_55_144": 351.8999938964844, + "54_55_145": 307.5, + "55_56_146": 127.30000305175781, + "49_56_147": 157.5, + "55_57_148": 88.0, + "50_57_149": 108.9000015258789, + "53_58_150": 148.1999969482422, + "3_10_151": 586.2000122070312, + "55_58_152": 129.3000030517578, + "55_58_153": 135.8000030517578, + "54_58_154": 85.0999984741211, + "58_59_155": 314.1000061035156, + "58_60_156": 207.8000030517578, + "59_60_157": 602.7000122070312, + "59_61_158": 206.5, + "60_61_159": 233.39999389648438, + "62_63_160": 396.29998779296875, + "37_64_161": 516.9000244140625, + "4_10_162": 646.7999877929688, + "63_64_163": 651.5999755859375, + "48_65_164": 594.5999755859375, + "48_65_165": 594.5999755859375, + "61_65_166": 265.5, + "61_66_167": 223.0, + "65_66_168": 325.20001220703125, + "46_68_169": 342.6000061035156, + "48_68_170": 307.5, + "68_69_171": 488.6000061035156, + "23_69_172": 448.3999938964844, + "7_4_173": 881.4000244140625, + "25_24_174": 579.2999877929688, + "80_79_175": 858.5999755859375, + "86_85_176": 231.5, + "115_67_177": 423.29998779296875, + "29_16_178": 503.3999938964844, + "37_36_179": 365.3999938964844, + "62_58_180": 396.29998779296875, + "63_60_181": 270.8999938964844, + "64_65_182": 605.7000122070312, + "64_67_183": 863.4000244140625, + "67_68_184": 1152.199951171875, + "80_67_185": 858.5999755859375, +} + + config = { "backend": PandaPowerBackend, "action_class": ActionNeurips2020, @@ -25,192 +218,5 @@ "grid_value_class": GridStateFromFileWithForecasts, "volagecontroler_class": None, "names_chronics_to_grid": None, - "thermal_limits": [ - 220.7, - 334.2, - 470.4, - 422.1, - 445.6, - 427.0, - 7.4, - 546.3, - 566.6, - 539.3, - 344.8, - 285.4, - 591.5, - 393.8, - 334.6, - 645.0, - 336.9, - 282.0, - 132.8, - 182.7, - 1185.1, - 907.9, - 400.4, - 528.2, - 213.0, - 336.9, - 264.8, - 430.2, - 251.0, - 473.6, - 242.4, - 460.6, - 317.4, - 659.8, - 206.5, - 361.5, - 321.5, - 178.5, - 261.6, - 144.1, - 481.2, - 296.2, - 525.4, - 201.1, - 581.7, - 561.8, - 346.8, - 486.8, - 176.0, - 826.0, - 546.0, - 508.9, - 451.5, - 480.2, - 294.5, - 252.4, - 219.8, - 316.9, - 908.6, - 359.1, - 282.3, - 280.5, - 390.2, - 756.7, - 554.8, - 237.1, - 474.2, - 164.3, - 202.5, - 455.0, - 449.4, - 387.8, - 818.3, - 410.2, - 259.5, - 203.1, - 166.3, - 259.0, - 145.1, - 258.3, - 196.7, - 503.3, - 446.2, - 162.4, - 639.1, - 727.3, - 115.4, - 445.2, - 730.1, - 253.6, - 345.4, - 138.2, - 198.4, - 248.7, - 891.1, - 1010.8, - 557.9, - 746.2, - 292.2, - 150.9, - 617.4, - 445.5, - 475.0, - 200.0, - 556.5, - 190.9, - 188.4, - 704.9, - 387.8, - 393.8, - 43.4, - 205.3, - 339.2, - 204.8, - 601.3, - 345.4, - 318.2, - 678.6, - 394.8, - 302.0, - 329.9, - 274.4, - 307.6, - 176.9, - 352.3, - 132.4, - 174.7, - 149.5, - 83.0, - 579.0, - 198.6, - 557.2, - 557.2, - 103.0, - 179.9, - 196.9, - 244.0, - 164.8, - 100.3, - 125.7, - 549.0, - 277.5, - 273.3, - 91.9, - 351.9, - 307.5, - 127.3, - 157.5, - 88.0, - 108.9, - 148.2, - 586.2, - 129.3, - 135.8, - 85.1, - 314.1, - 207.8, - 602.7, - 206.5, - 233.4, - 396.3, - 516.9, - 646.8, - 651.6, - 594.6, - 594.6, - 265.5, - 223.0, - 325.2, - 342.6, - 307.5, - 488.6, - 448.4, - 881.4, - 579.3, - 858.6, - 231.5, - 423.3, - 503.4, - 365.4, - 396.3, - 270.9, - 605.7, - 863.4, - 1152.2, - 858.6, - ], + "thermal_limits": thermal_limits, } diff --git a/grid2op/data/l2rpn_neurips_2020_track2/x2.5/config.py b/grid2op/data/l2rpn_neurips_2020_track2/x2.5/config.py index 269b0b8ab..d7b078efa 100644 --- a/grid2op/data/l2rpn_neurips_2020_track2/x2.5/config.py +++ b/grid2op/data/l2rpn_neurips_2020_track2/x2.5/config.py @@ -10,11 +10,202 @@ from grid2op.Action import TopologyAndDispatchAction 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." + ) ActionNeurips2020 = TopologyAndDispatchAction ObservationNeurips2020 = CompleteObservation - - + +thermal_limits = { + "0_1_0": 220.6999969482422, + "0_2_1": 334.20001220703125, + "10_11_2": 470.3999938964844, + "69_70_3": 422.1000061035156, + "23_71_4": 445.6000061035156, + "70_71_5": 427.0, + "70_72_6": 7.400000095367432, + "69_73_7": 546.2999877929688, + "69_74_8": 566.5999755859375, + "68_74_9": 539.2999877929688, + "73_74_10": 344.79998779296875, + "75_76_11": 285.3999938964844, + "68_76_12": 591.5, + "1_11_13": 393.79998779296875, + "74_76_14": 334.6000061035156, + "76_77_15": 645.0, + "77_78_16": 336.8999938964844, + "76_79_17": 282.0, + "76_79_18": 132.8000030517578, + "78_79_19": 182.6999969482422, + "76_81_20": 1185.0999755859375, + "81_82_21": 907.9000244140625, + "82_83_22": 400.3999938964844, + "82_84_23": 528.2000122070312, + "2_11_24": 213.0, + "83_84_25": 336.8999938964844, + "84_85_26": 264.79998779296875, + "84_87_27": 430.20001220703125, + "84_88_28": 251.0, + "87_88_29": 473.6000061035156, + "88_89_30": 242.39999389648438, + "88_89_31": 460.6000061035156, + "89_90_32": 317.3999938964844, + "88_91_33": 659.7999877929688, + "88_91_34": 206.5, + "6_11_35": 361.5, + "90_91_36": 321.5, + "91_92_37": 178.5, + "91_93_38": 261.6000061035156, + "92_93_39": 144.10000610351562, + "93_94_40": 481.20001220703125, + "79_95_41": 296.20001220703125, + "81_95_42": 525.4000244140625, + "93_95_43": 201.10000610351562, + "79_96_44": 581.7000122070312, + "79_97_45": 561.7999877929688, + "10_12_46": 346.79998779296875, + "79_98_47": 486.79998779296875, + "91_99_48": 176.0, + "93_99_49": 826.0, + "94_95_50": 546.0, + "95_96_51": 508.8999938964844, + "97_99_52": 451.5, + "98_99_53": 480.20001220703125, + "99_100_54": 294.5, + "91_101_55": 252.39999389648438, + "100_101_56": 219.8000030517578, + "11_13_57": 316.8999938964844, + "99_102_58": 908.5999755859375, + "99_103_59": 359.1000061035156, + "102_103_60": 282.29998779296875, + "102_104_61": 280.5, + "99_105_62": 390.20001220703125, + "103_104_63": 756.7000122070312, + "104_105_64": 554.7999877929688, + "104_106_65": 237.10000610351562, + "104_107_66": 474.20001220703125, + "105_106_67": 164.3000030517578, + "12_14_68": 202.5, + "107_108_69": 455.0, + "102_109_70": 449.3999938964844, + "108_109_71": 387.79998779296875, + "109_110_72": 818.2999877929688, + "109_111_73": 410.20001220703125, + "16_112_74": 259.5, + "31_112_75": 203.10000610351562, + "31_113_76": 166.3000030517578, + "26_114_77": 259.0, + "113_114_78": 145.10000610351562, + "13_14_79": 258.29998779296875, + "11_116_80": 196.6999969482422, + "74_117_81": 503.29998779296875, + "75_117_82": 446.20001220703125, + "11_15_83": 162.39999389648438, + "14_16_84": 639.0999755859375, + "3_4_85": 727.2999877929688, + "15_16_86": 115.4000015258789, + "16_17_87": 445.20001220703125, + "17_18_88": 730.0999755859375, + "18_19_89": 253.60000610351562, + "14_18_90": 345.3999938964844, + "19_20_91": 138.1999969482422, + "20_21_92": 198.39999389648438, + "21_22_93": 248.6999969482422, + "22_23_94": 891.0999755859375, + "22_24_95": 1010.7999877929688, + "2_4_96": 557.9000244140625, + "24_26_97": 746.2000122070312, + "26_27_98": 292.20001220703125, + "27_28_99": 150.89999389648438, + "7_29_100": 617.4000244140625, + "25_29_101": 445.5, + "16_30_102": 475.0, + "28_30_103": 200.0, + "22_31_104": 556.5, + "30_31_105": 190.89999389648438, + "26_31_106": 188.39999389648438, + "4_5_107": 704.9000244140625, + "14_32_108": 387.79998779296875, + "18_33_109": 393.79998779296875, + "34_35_110": 43.400001525878906, + "34_36_111": 205.3000030517578, + "32_36_112": 339.20001220703125, + "33_35_113": 204.8000030517578, + "33_36_114": 601.2999877929688, + "36_38_115": 345.3999938964844, + "36_39_116": 318.20001220703125, + "29_37_117": 678.5999755859375, + "5_6_118": 394.79998779296875, + "38_39_119": 302.0, + "39_40_120": 329.8999938964844, + "39_41_121": 274.3999938964844, + "40_41_122": 307.6000061035156, + "42_43_123": 176.89999389648438, + "33_42_124": 352.29998779296875, + "43_44_125": 132.39999389648438, + "44_45_126": 174.6999969482422, + "45_46_127": 149.5, + "45_47_128": 83.0, + "7_8_129": 579.0, + "46_48_130": 198.60000610351562, + "41_48_131": 557.2000122070312, + "41_48_132": 557.2000122070312, + "44_48_133": 103.0, + "47_48_134": 179.89999389648438, + "48_49_135": 196.89999389648438, + "48_50_136": 244.0, + "50_51_137": 164.8000030517578, + "51_52_138": 100.30000305175781, + "52_53_139": 125.69999694824219, + "8_9_140": 549.0, + "48_53_141": 277.5, + "48_53_142": 273.29998779296875, + "53_54_143": 91.9000015258789, + "53_55_144": 351.8999938964844, + "54_55_145": 307.5, + "55_56_146": 127.30000305175781, + "49_56_147": 157.5, + "55_57_148": 88.0, + "50_57_149": 108.9000015258789, + "53_58_150": 148.1999969482422, + "3_10_151": 586.2000122070312, + "55_58_152": 129.3000030517578, + "55_58_153": 135.8000030517578, + "54_58_154": 85.0999984741211, + "58_59_155": 314.1000061035156, + "58_60_156": 207.8000030517578, + "59_60_157": 602.7000122070312, + "59_61_158": 206.5, + "60_61_159": 233.39999389648438, + "62_63_160": 396.29998779296875, + "37_64_161": 516.9000244140625, + "4_10_162": 646.7999877929688, + "63_64_163": 651.5999755859375, + "48_65_164": 594.5999755859375, + "48_65_165": 594.5999755859375, + "61_65_166": 265.5, + "61_66_167": 223.0, + "65_66_168": 325.20001220703125, + "46_68_169": 342.6000061035156, + "48_68_170": 307.5, + "68_69_171": 488.6000061035156, + "23_69_172": 448.3999938964844, + "7_4_173": 881.4000244140625, + "25_24_174": 579.2999877929688, + "80_79_175": 858.5999755859375, + "86_85_176": 231.5, + "115_67_177": 423.29998779296875, + "29_16_178": 503.3999938964844, + "37_36_179": 365.3999938964844, + "62_58_180": 396.29998779296875, + "63_60_181": 270.8999938964844, + "64_65_182": 605.7000122070312, + "64_67_183": 863.4000244140625, + "67_68_184": 1152.199951171875, + "80_67_185": 858.5999755859375, +} + config = { "backend": PandaPowerBackend, "action_class": ActionNeurips2020, @@ -25,192 +216,5 @@ "grid_value_class": GridStateFromFileWithForecasts, "volagecontroler_class": None, "names_chronics_to_grid": None, - "thermal_limits": [ - 220.7, - 334.2, - 470.4, - 422.1, - 445.6, - 427.0, - 7.4, - 546.3, - 566.6, - 539.3, - 344.8, - 285.4, - 591.5, - 393.8, - 334.6, - 645.0, - 336.9, - 282.0, - 132.8, - 182.7, - 1185.1, - 907.9, - 400.4, - 528.2, - 213.0, - 336.9, - 264.8, - 430.2, - 251.0, - 473.6, - 242.4, - 460.6, - 317.4, - 659.8, - 206.5, - 361.5, - 321.5, - 178.5, - 261.6, - 144.1, - 481.2, - 296.2, - 525.4, - 201.1, - 581.7, - 561.8, - 346.8, - 486.8, - 176.0, - 826.0, - 546.0, - 508.9, - 451.5, - 480.2, - 294.5, - 252.4, - 219.8, - 316.9, - 908.6, - 359.1, - 282.3, - 280.5, - 390.2, - 756.7, - 554.8, - 237.1, - 474.2, - 164.3, - 202.5, - 455.0, - 449.4, - 387.8, - 818.3, - 410.2, - 259.5, - 203.1, - 166.3, - 259.0, - 145.1, - 258.3, - 196.7, - 503.3, - 446.2, - 162.4, - 639.1, - 727.3, - 115.4, - 445.2, - 730.1, - 253.6, - 345.4, - 138.2, - 198.4, - 248.7, - 891.1, - 1010.8, - 557.9, - 746.2, - 292.2, - 150.9, - 617.4, - 445.5, - 475.0, - 200.0, - 556.5, - 190.9, - 188.4, - 704.9, - 387.8, - 393.8, - 43.4, - 205.3, - 339.2, - 204.8, - 601.3, - 345.4, - 318.2, - 678.6, - 394.8, - 302.0, - 329.9, - 274.4, - 307.6, - 176.9, - 352.3, - 132.4, - 174.7, - 149.5, - 83.0, - 579.0, - 198.6, - 557.2, - 557.2, - 103.0, - 179.9, - 196.9, - 244.0, - 164.8, - 100.3, - 125.7, - 549.0, - 277.5, - 273.3, - 91.9, - 351.9, - 307.5, - 127.3, - 157.5, - 88.0, - 108.9, - 148.2, - 586.2, - 129.3, - 135.8, - 85.1, - 314.1, - 207.8, - 602.7, - 206.5, - 233.4, - 396.3, - 516.9, - 646.8, - 651.6, - 594.6, - 594.6, - 265.5, - 223.0, - 325.2, - 342.6, - 307.5, - 488.6, - 448.4, - 881.4, - 579.3, - 858.6, - 231.5, - 423.3, - 503.4, - 365.4, - 396.3, - 270.9, - 605.7, - 863.4, - 1152.2, - 858.6, - ], + "thermal_limits": thermal_limits, } diff --git a/grid2op/data/l2rpn_wcci_2020/config.py b/grid2op/data/l2rpn_wcci_2020/config.py index 47bbb260d..8401266a2 100644 --- a/grid2op/data/l2rpn_wcci_2020/config.py +++ b/grid2op/data/l2rpn_wcci_2020/config.py @@ -11,11 +11,75 @@ from grid2op.Action import TopologyAndDispatchAction 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." + ) ActionWCCI2020 = TopologyAndDispatchAction ObservationWCCI2020 = CompleteObservation - - + +thermal_limits = { + "2_3_0": 43.29999923706055, + "2_4_1": 205.1999969482422, + "0_4_2": 341.20001220703125, + "1_3_3": 204.0, + "1_4_4": 601.4000244140625, + "4_6_5": 347.1000061035156, + "4_7_6": 319.6000061035156, + "6_7_7": 301.3999938964844, + "7_8_8": 330.29998779296875, + "7_9_9": 274.1000061035156, + "8_9_10": 307.3999938964844, + "10_11_11": 172.3000030517578, + "1_10_12": 354.29998779296875, + "11_12_13": 127.9000015258789, + "12_13_14": 174.89999389648438, + "13_14_15": 152.60000610351562, + "13_15_16": 81.80000305175781, + "14_16_17": 204.3000030517578, + "9_16_18": 561.5, + "9_16_19": 561.5, + "12_16_20": 98.69999694824219, + "15_16_21": 179.8000030517578, + "16_17_22": 193.39999389648438, + "16_18_23": 239.89999389648438, + "18_19_24": 164.8000030517578, + "19_20_25": 100.4000015258789, + "20_21_26": 125.69999694824219, + "16_21_27": 278.20001220703125, + "16_21_28": 274.0, + "21_22_29": 89.9000015258789, + "21_23_30": 352.1000061035156, + "22_23_31": 157.10000610351562, + "23_24_32": 124.4000015258789, + "17_24_33": 154.60000610351562, + "23_25_34": 86.0999984741211, + "18_25_35": 106.69999694824219, + "21_26_36": 148.5, + "23_26_37": 129.60000610351562, + "23_26_38": 136.10000610351562, + "22_26_39": 86.0, + "26_27_40": 313.20001220703125, + "26_28_41": 198.5, + "27_28_42": 599.0999755859375, + "27_29_43": 206.8000030517578, + "28_29_44": 233.6999969482422, + "30_31_45": 395.79998779296875, + "5_32_46": 516.7000122070312, + "31_32_47": 656.4000244140625, + "16_33_48": 583.0, + "16_33_49": 583.0, + "29_33_50": 263.1000061035156, + "29_34_51": 222.60000610351562, + "33_34_52": 322.79998779296875, + "14_35_53": 340.6000061035156, + "16_35_54": 305.20001220703125, + "4_5_55": 360.1000061035156, + "26_30_56": 395.79998779296875, + "28_31_57": 274.20001220703125, + "32_33_58": 605.5, +} + config = { "backend": PandaPowerBackend, "action_class": ActionWCCI2020, @@ -26,65 +90,5 @@ "grid_value_class": GridStateFromFileWithForecastsWithMaintenance, "volagecontroler_class": None, "names_chronics_to_grid": {}, - "thermal_limits": [ - 43.3, - 205.2, - 341.2, - 204.0, - 601.4, - 347.1, - 319.6, - 301.4, - 330.3, - 274.1, - 307.4, - 172.3, - 354.3, - 127.9, - 174.9, - 152.6, - 81.8, - 204.3, - 561.5, - 561.5, - 98.7, - 179.8, - 193.4, - 239.9, - 164.8, - 100.4, - 125.7, - 278.2, - 274.0, - 89.9, - 352.1, - 157.1, - 124.4, - 154.6, - 86.1, - 106.7, - 148.5, - 129.6, - 136.1, - 86.0, - 313.2, - 198.5, - 599.1, - 206.8, - 233.7, - 395.8, - 516.7, - 656.4, - 583.0, - 583.0, - 263.1, - 222.6, - 322.8, - 340.6, - 305.2, - 360.1, - 395.8, - 274.2, - 605.5, - ], + "thermal_limits": thermal_limits, } diff --git a/grid2op/data/l2rpn_wcci_2022_dev/config.py b/grid2op/data/l2rpn_wcci_2022_dev/config.py index bafc324bd..3b5c0e767 100644 --- a/grid2op/data/l2rpn_wcci_2022_dev/config.py +++ b/grid2op/data/l2rpn_wcci_2022_dev/config.py @@ -13,33 +13,38 @@ 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." + ) ActionWCCI2022 = PlayableAction ObservationWCCI2022 = CompleteObservation - -lines_attacked = ["26_31_106", - "21_22_93", - "17_18_88", - "4_10_162", - "12_14_68", - "14_32_108", - "62_58_180", - "62_63_160", - "48_50_136", - "48_53_141", - "41_48_131", - "39_41_121", - "43_44_125", - "44_45_126", - "34_35_110", - "54_58_154", - "74_117_81", - "80_79_175", - "93_95_43", - "88_91_33", - "91_92_37", - "99_105_62", - "102_104_61"] + +lines_attacked = [ + "26_31_106", + "21_22_93", + "17_18_88", + "4_10_162", + "12_14_68", + "14_32_108", + "62_58_180", + "62_63_160", + "48_50_136", + "48_53_141", + "41_48_131", + "39_41_121", + "43_44_125", + "44_45_126", + "34_35_110", + "54_58_154", + "74_117_81", + "80_79_175", + "93_95_43", + "88_91_33", + "91_92_37", + "99_105_62", + "102_104_61", +] opponent_attack_cooldown = 12 # 1 hour, 1 hour being 12 time steps opponent_attack_duration = 96 # 8 hours at maximum @@ -48,6 +53,195 @@ ) opponent_init_budget = 144.0 # no need to attack straightfully, it can attack starting at midday the first day +thermal_limits = { + "0_1_0": 233.39999389648438, + "0_2_1": 354.3999938964844, + "10_11_2": 792.7000122070312, + "69_70_3": 550.2000122070312, + "23_71_4": 572.2000122070312, + "70_71_5": 557.2000122070312, + "70_72_6": 8.0, + "69_73_7": 480.0, + "69_74_8": 567.4000244140625, + "68_74_9": 681.7999877929688, + "73_74_10": 357.6000061035156, + "75_76_11": 336.8999938964844, + "68_76_12": 819.0, + "1_11_13": 419.20001220703125, + "74_76_14": 304.20001220703125, + "76_77_15": 626.2000122070312, + "77_78_16": 256.1000061035156, + "76_79_17": 300.1000061035156, + "76_79_18": 132.6999969482422, + "78_79_19": 165.89999389648438, + "76_81_20": 841.0, + "81_82_21": 1105.5, + "82_83_22": 428.20001220703125, + "82_84_23": 555.2000122070312, + "2_11_24": 224.1999969482422, + "83_84_25": 374.3999938964844, + "84_85_26": 285.6000061035156, + "84_87_27": 429.79998779296875, + "84_88_28": 253.10000610351562, + "87_88_29": 479.6000061035156, + "88_89_30": 238.3000030517578, + "88_89_31": 452.6000061035156, + "89_90_32": 312.8999938964844, + "88_91_33": 627.7999877929688, + "88_91_34": 196.10000610351562, + "6_11_35": 360.8999938964844, + "90_91_36": 317.1000061035156, + "91_92_37": 325.1000061035156, + "91_93_38": 352.6000061035156, + "92_93_39": 347.29998779296875, + "93_94_40": 565.5, + "79_95_41": 495.70001220703125, + "81_95_42": 1422.9000244140625, + "93_95_43": 479.79998779296875, + "79_96_44": 646.9000244140625, + "79_97_45": 1603.9000244140625, + "10_12_46": 364.1000061035156, + "79_98_47": 1498.4000244140625, + "91_99_48": 278.0, + "93_99_49": 866.2000122070312, + "94_95_50": 1667.699951171875, + "95_96_51": 569.5999755859375, + "97_99_52": 1350.199951171875, + "98_99_53": 1478.0, + "99_100_54": 380.79998779296875, + "91_101_55": 282.3999938964844, + "100_101_56": 246.89999389648438, + "11_13_57": 301.29998779296875, + "99_102_58": 766.9000244140625, + "99_103_59": 401.20001220703125, + "102_103_60": 306.8999938964844, + "102_104_61": 314.3999938964844, + "99_105_62": 333.3999938964844, + "103_104_63": 748.9000244140625, + "104_105_64": 513.4000244140625, + "104_106_65": 255.8000030517578, + "104_107_66": 513.0, + "105_106_67": 268.5, + "12_14_68": 219.0, + "107_108_69": 492.0, + "102_109_70": 420.3999938964844, + "108_109_71": 417.3999938964844, + "109_110_72": 637.7999877929688, + "109_111_73": 571.9000244140625, + "16_112_74": 593.7999877929688, + "31_112_75": 273.70001220703125, + "31_113_76": 247.0, + "26_114_77": 385.29998779296875, + "113_114_78": 283.3999938964844, + "13_14_79": 251.1999969482422, + "11_116_80": 210.8000030517578, + "74_117_81": 473.8999938964844, + "75_117_82": 408.5, + "11_15_83": 162.6999969482422, + "14_16_84": 602.2000122070312, + "3_4_85": 1098.5999755859375, + "15_16_86": 205.0, + "16_17_87": 546.0, + "17_18_88": 435.8999938964844, + "18_19_89": 191.39999389648438, + "14_18_90": 424.1000061035156, + "19_20_91": 106.19999694824219, + "20_21_92": 149.1999969482422, + "21_22_93": 184.89999389648438, + "22_23_94": 1146.0999755859375, + "22_24_95": 1117.800048828125, + "2_4_96": 569.5999755859375, + "24_26_97": 800.2000122070312, + "26_27_98": 380.29998779296875, + "27_28_99": 292.1000061035156, + "7_29_100": 636.5, + "25_29_101": 487.5, + "16_30_102": 490.8999938964844, + "28_30_103": 207.39999389648438, + "22_31_104": 590.5999755859375, + "30_31_105": 243.8000030517578, + "26_31_106": 466.0, + "4_5_107": 698.2000122070312, + "14_32_108": 385.0, + "18_33_109": 351.70001220703125, + "34_35_110": 60.900001525878906, + "34_36_111": 231.89999389648438, + "32_36_112": 340.79998779296875, + "33_35_113": 212.8000030517578, + "33_36_114": 749.2000122070312, + "36_38_115": 332.3999938964844, + "36_39_116": 348.0, + "29_37_117": 798.0, + "5_6_118": 398.29998779296875, + "38_39_119": 414.3999938964844, + "39_40_120": 341.1000061035156, + "39_41_121": 371.3999938964844, + "40_41_122": 401.20001220703125, + "42_43_123": 298.29998779296875, + "33_42_124": 343.29998779296875, + "43_44_125": 267.79998779296875, + "44_45_126": 213.89999389648438, + "45_46_127": 160.8000030517578, + "45_47_128": 112.19999694824219, + "7_8_129": 458.8999938964844, + "46_48_130": 349.70001220703125, + "41_48_131": 489.0, + "41_48_132": 489.0, + "44_48_133": 180.6999969482422, + "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, + "8_9_140": 393.6000061035156, + "48_53_141": 293.3999938964844, + "48_53_142": 288.8999938964844, + "53_54_143": 107.69999694824219, + "53_55_144": 623.2000122070312, + "54_55_145": 252.89999389648438, + "55_56_146": 118.30000305175781, + "49_56_147": 154.39999389648438, + "55_57_148": 111.69999694824219, + "50_57_149": 106.5, + "53_58_150": 177.5, + "3_10_151": 655.7999877929688, + "55_58_152": 161.1999969482422, + "55_58_153": 169.3000030517578, + "54_58_154": 120.69999694824219, + "58_59_155": 389.29998779296875, + "58_60_156": 291.20001220703125, + "59_60_157": 592.0999755859375, + "59_61_158": 277.0, + "60_61_159": 412.20001220703125, + "62_63_160": 441.0, + "37_64_161": 671.2000122070312, + "4_10_162": 609.0, + "63_64_163": 867.4000244140625, + "48_65_164": 494.6000061035156, + "48_65_165": 494.6000061035156, + "61_65_166": 196.6999969482422, + "61_66_167": 167.0, + "65_66_168": 263.3999938964844, + "46_68_169": 364.1000061035156, + "48_68_170": 359.70001220703125, + "68_69_171": 803.2000122070312, + "23_69_172": 589.0, + "7_4_173": 887.2000122070312, + "25_24_174": 615.2000122070312, + "80_79_175": 1096.800048828125, + "86_85_176": 306.8999938964844, + "115_67_177": 472.6000061035156, + "29_16_178": 546.5999755859375, + "37_36_179": 370.5, + "62_58_180": 441.0, + "63_60_181": 300.29998779296875, + "64_65_182": 656.2000122070312, + "64_67_183": 1346.0, + "67_68_184": 1246.5, + "80_67_185": 1196.5, +} + config = { "backend": PandaPowerBackend, "action_class": ActionWCCI2022, @@ -58,30 +252,7 @@ "grid_value_class": GridStateFromFileWithForecastsWithMaintenance, "volagecontroler_class": None, "names_chronics_to_grid": None, - "thermal_limits": [ 233.4, 354.4, 792.7, 550.2, 572.2, 557.2, 8. , 480. , - 567.4, 681.8, 357.6, 336.9, 819. , 419.2, 304.2, 626.2, - 256.1, 300.1, 132.7, 165.9, 841. , 1105.5, 428.2, 555.2, - 224.2, 374.4, 285.6, 429.8, 253.1, 479.6, 238.3, 452.6, - 312.9, 627.8, 196.1, 360.9, 317.1, 325.1, 352.6, 347.3, - 565.5, 495.7, 1422.9, 479.8, 646.9, 1603.9, 364.1, 1498.4, - 278. , 866.2, 1667.7, 569.6, 1350.2, 1478. , 380.8, 282.4, - 246.9, 301.3, 766.9, 401.2, 306.9, 314.4, 333.4, 748.9, - 513.4, 255.8, 513. , 268.5, 219. , 492. , 420.4, 417.4, - 637.8, 571.9, 593.8, 273.7, 247. , 385.3, 283.4, 251.2, - 210.8, 473.9, 408.5, 162.7, 602.2, 1098.6, 205. , 546. , - 435.9, 191.4, 424.1, 106.2, 149.2, 184.9, 1146.1, 1117.8, - 569.6, 800.2, 380.3, 292.1, 636.5, 487.5, 490.9, 207.4, - 590.6, 243.8, 466. , 698.2, 385. , 351.7, 60.9, 231.9, - 340.8, 212.8, 749.2, 332.4, 348. , 798. , 398.3, 414.4, - 341.1, 371.4, 401.2, 298.3, 343.3, 267.8, 213.9, 160.8, - 112.2, 458.9, 349.7, 489. , 489. , 180.7, 196.7, 191.9, - 238.4, 174.2, 105.6, 143.7, 393.6, 293.4, 288.9, 107.7, - 623.2, 252.9, 118.3, 154.4, 111.7, 106.5, 177.5, 655.8, - 161.2, 169.3, 120.7, 389.3, 291.2, 592.1, 277. , 412.2, - 441. , 671.2, 609. , 867.4, 494.6, 494.6, 196.7, 167. , - 263.4, 364.1, 359.7, 803.2, 589. , 887.2, 615.2, 1096.8, - 306.9, 472.6, 546.6, 370.5, 441. , 300.3, 656.2, 1346. , - 1246.5, 1196.5], + "thermal_limits": thermal_limits, "opponent_attack_cooldown": opponent_attack_cooldown, "opponent_attack_duration": opponent_attack_duration, "opponent_budget_per_ts": opponent_budget_per_ts, diff --git a/grid2op/data/rte_case14_opponent/config.py b/grid2op/data/rte_case14_opponent/config.py index 568dbfe01..61a5248fe 100644 --- a/grid2op/data/rte_case14_opponent/config.py +++ b/grid2op/data/rte_case14_opponent/config.py @@ -6,6 +6,29 @@ from grid2op.Backend import PandaPowerBackend from grid2op.Opponent import RandomLineOpponent, BaseActionBudget +thermal_limits = { + "0_1_0": 384.9001770019531, + "0_4_1": 384.9001770019531, + "1_2_2": 380.0, + "1_3_3": 380.0, + "1_4_4": 157.0, + "2_3_5": 380.0, + "3_4_6": 380.0, + "5_10_7": 1077.720458984375, + "5_11_8": 461.8802185058594, + "5_12_9": 769.8003540039062, + "8_9_10": 269.43011474609375, + "8_13_11": 384.9001770019531, + "9_10_12": 760.0, + "11_12_13": 380.0, + "12_13_14": 760.0, + "3_6_15": 384.9001770019531, + "3_8_16": 230.9401092529297, + "4_5_17": 170.79945373535156, + "6_7_18": 3402.24267578125, + "6_8_19": 3402.24267578125, +} + config = { "backend": PandaPowerBackend, "action_class": TopologyAndDispatchAction, @@ -15,28 +38,7 @@ "chronics_class": Multifolder, "grid_value_class": GridStateFromFileWithForecasts, "volagecontroler_class": None, - "thermal_limits": [ - 384.900179, - 384.900179, - 380.0, - 380.0, - 157.0, - 380.0, - 380.0, - 1077.7205012, - 461.8802148, - 769.80036, - 269.4301253, - 384.900179, - 760.0, - 380.0, - 760.0, - 384.900179, - 230.9401074, - 170.79945452, - 3402.24266, - 3402.24266, - ], + "thermal_limits": thermal_limits, "names_chronics_to_grid": None, "opponent_attack_cooldown": 12 * 24, "opponent_attack_duration": 12 * 4, diff --git a/grid2op/data/rte_case14_realistic/config.py b/grid2op/data/rte_case14_realistic/config.py index d2e6e585c..727e098bc 100644 --- a/grid2op/data/rte_case14_realistic/config.py +++ b/grid2op/data/rte_case14_realistic/config.py @@ -5,6 +5,29 @@ from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend +thermal_limits = { + "0_1_0": 384.9001770019531, + "0_4_1": 384.9001770019531, + "1_2_2": 380.0, + "1_3_3": 380.0, + "1_4_4": 157.0, + "2_3_5": 380.0, + "3_4_6": 380.0, + "5_10_7": 1077.720458984375, + "5_11_8": 461.8802185058594, + "5_12_9": 769.8003540039062, + "8_9_10": 269.43011474609375, + "8_13_11": 384.9001770019531, + "9_10_12": 760.0, + "11_12_13": 380.0, + "12_13_14": 760.0, + "3_6_15": 384.9001770019531, + "3_8_16": 230.9401092529297, + "4_5_17": 170.79945373535156, + "6_7_18": 3402.24267578125, + "6_8_19": 3402.24267578125, +} + config = { "backend": PandaPowerBackend, "action_class": TopologyAndDispatchAction, @@ -14,27 +37,6 @@ "chronics_class": Multifolder, "grid_value_class": GridStateFromFileWithForecasts, "volagecontroler_class": None, - "thermal_limits": [ - 384.900179, - 384.900179, - 380.0, - 380.0, - 157.0, - 380.0, - 380.0, - 1077.7205012, - 461.8802148, - 769.80036, - 269.4301253, - 384.900179, - 760.0, - 380.0, - 760.0, - 384.900179, - 230.9401074, - 170.79945452, - 3402.24266, - 3402.24266, - ], + "thermal_limits": thermal_limits, "names_chronics_to_grid": None, } diff --git a/grid2op/data/rte_case14_redisp/config.py b/grid2op/data/rte_case14_redisp/config.py index 1c34314d6..a19e79384 100644 --- a/grid2op/data/rte_case14_redisp/config.py +++ b/grid2op/data/rte_case14_redisp/config.py @@ -5,6 +5,29 @@ from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend +thermal_limits = { + "0_1_0": 384.9001770019531, + "0_4_1": 384.9001770019531, + "8_9_2": 228997.109375, + "8_13_3": 228997.109375, + "9_10_4": 228997.109375, + "11_12_5": 15266.4736328125, + "12_13_6": 228997.109375, + "1_2_7": 384.9001770019531, + "1_3_8": 384.9001770019531, + "1_4_9": 183.28579711914062, + "2_3_10": 384.9001770019531, + "3_4_11": 384.9001770019531, + "5_10_12": 228997.109375, + "5_11_13": 228997.109375, + "5_12_14": 69393.0625, + "3_6_15": 384.9001770019531, + "3_8_16": 384.9001770019531, + "4_5_17": 240.56260681152344, + "6_7_18": 3402.24267578125, + "6_8_19": 3402.24267578125, +} + config = { "backend": PandaPowerBackend, "action_class": TopologyAndDispatchAction, @@ -14,27 +37,6 @@ "chronics_class": Multifolder, "grid_value_class": GridStateFromFileWithForecasts, "volagecontroler_class": None, - "thermal_limits": [ - 3.84900179e02, - 3.84900179e02, - 2.28997102e05, - 2.28997102e05, - 2.28997102e05, - 1.52664735e04, - 2.28997102e05, - 3.84900179e02, - 3.84900179e02, - 1.83285800e02, - 3.84900179e02, - 3.84900179e02, - 2.28997102e05, - 2.28997102e05, - 6.93930612e04, - 3.84900179e02, - 3.84900179e02, - 2.40562612e02, - 3.40224266e03, - 3.40224266e03, - ], + "thermal_limits": thermal_limits, "names_chronics_to_grid": None, } diff --git a/grid2op/data/rte_case14_test/config.py b/grid2op/data/rte_case14_test/config.py index 451447e19..bbe660303 100644 --- a/grid2op/data/rte_case14_test/config.py +++ b/grid2op/data/rte_case14_test/config.py @@ -5,6 +5,29 @@ from grid2op.Chronics import GridStateFromFileWithForecasts from grid2op.Backend import PandaPowerBackend +thermal_limits = { + "0_1_0": 352.8251647949219, + "0_4_1": 352.8251647949219, + "8_9_2": 183197.6875, + "8_13_3": 183197.6875, + "9_10_4": 183197.6875, + "11_12_5": 12213.1787109375, + "12_13_6": 183197.6875, + "1_2_7": 352.8251647949219, + "1_3_8": 352.8251647949219, + "1_4_9": 352.8251647949219, + "2_3_10": 352.8251647949219, + "3_4_11": 352.8251647949219, + "5_10_12": 183197.6875, + "5_11_13": 183197.6875, + "5_12_14": 183197.6875, + "3_6_15": 352.8251647949219, + "3_8_16": 352.8251647949219, + "4_5_17": 352.8251647949219, + "6_7_18": 2721.794189453125, + "6_8_19": 2721.794189453125, +} + config = { "backend": PandaPowerBackend, "action_class": TopologyAndDispatchAction, @@ -14,27 +37,6 @@ "chronics_class": Multifolder, "grid_value_class": GridStateFromFileWithForecasts, "volagecontroler_class": None, - "thermal_limits": [ - 352.8251645, - 352.8251645, - 183197.68156979, - 183197.68156979, - 183197.68156979, - 12213.17877132, - 183197.68156979, - 352.8251645, - 352.8251645, - 352.8251645, - 352.8251645, - 352.8251645, - 183197.68156979, - 183197.68156979, - 183197.68156979, - 352.8251645, - 352.8251645, - 352.8251645, - 2721.79412618, - 2721.79412618, - ], + "thermal_limits": thermal_limits, "names_chronics_to_grid": None, }