Package pypower :: Module case24_ieee_rts
[hide private]
[frames] | no frames]

Source Code for Module pypower.case24_ieee_rts

  1  # Copyright (C) 1996-2011 Power System Engineering Research Center (PSERC) 
  2  # Copyright (C) 2011 Richard Lincoln 
  3  # 
  4  # PYPOWER is free software: you can redistribute it and/or modify 
  5  # it under the terms of the GNU General Public License as published 
  6  # by the Free Software Foundation, either version 3 of the License, 
  7  # or (at your option) any later version. 
  8  # 
  9  # PYPOWER is distributed in the hope that it will be useful, 
 10  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
 11  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
 12  # GNU General Public License for more details. 
 13  # 
 14  # You should have received a copy of the GNU General Public License 
 15  # along with PYPOWER. If not, see <http://www.gnu.org/licenses/>. 
 16   
 17  """Power flow data for the IEEE Reliability Test System. 
 18  """ 
 19   
 20  from numpy import array 
 21   
22 -def case24_ieee_rts():
23 """Power flow data for the IEEE Reliability Test System. 24 Please see L{caseformat} for details on the case file format. 25 26 This system data is from the IEEE Reliability Test System, see 27 28 IEEE Reliability Test System Task Force of the Applications of 29 Probability Methods Subcommittee, I{"IEEE reliability test system,"} 30 IEEE Transactions on Power Apparatus and Systems, Vol. 98, No. 6, 31 Nov./Dec. 1979, pp. 2047-2054. 32 33 IEEE Reliability Test System Task Force of Applications of 34 Probability Methods Subcommittee, I{"IEEE reliability test system-96,"} 35 IEEE Transactions on Power Systems, Vol. 14, No. 3, Aug. 1999, 36 pp. 1010-1020. 37 38 Cost data is from Web site run by Georgia Tech Power Systems Control 39 and Automation Laboratory: 40 U{http://pscal.ece.gatech.edu/testsys/index.html} 41 42 MATPOWER case file data provided by Bruce Wollenberg. 43 44 @return: Power flow data for the IEEE RELIABILITY TEST SYSTEM. 45 """ 46 ppc = {"version": '2'} 47 48 ##----- Power Flow Data -----## 49 ## system MVA base 50 ppc["baseMVA"] = 100.0 51 52 ## bus data 53 # bus_i type Pd Qd Gs Bs area Vm Va baseKV zone Vmax Vmin 54 ppc["bus"] = array([ 55 [1, 2, 108, 22, 0, 0, 1, 1, 0, 138, 1, 1.05, 0.95], 56 [2, 2, 97, 20, 0, 0, 1, 1, 0, 138, 1, 1.05, 0.95], 57 [3, 1, 180, 37, 0, 0, 1, 1, 0, 138, 1, 1.05, 0.95], 58 [4, 1, 74, 15, 0, 0, 1, 1, 0, 138, 1, 1.05, 0.95], 59 [5, 1, 71, 14, 0, 0, 1, 1, 0, 138, 1, 1.05, 0.95], 60 [6, 1, 136, 28, 0, -100, 2, 1, 0, 138, 1, 1.05, 0.95], 61 [7, 2, 125, 25, 0, 0, 2, 1, 0, 138, 1, 1.05, 0.95], 62 [8, 1, 171, 35, 0, 0, 2, 1, 0, 138, 1, 1.05, 0.95], 63 [9, 1, 175, 36, 0, 0, 1, 1, 0, 138, 1, 1.05, 0.95], 64 [10, 1, 195, 40, 0, 0, 2, 1, 0, 138, 1, 1.05, 0.95], 65 [11, 1, 0, 0, 0, 0, 3, 1, 0, 230, 1, 1.05, 0.95], 66 [12, 1, 0, 0, 0, 0, 3, 1, 0, 230, 1, 1.05, 0.95], 67 [13, 3, 265, 54, 0, 0, 3, 1, 0, 230, 1, 1.05, 0.95], 68 [14, 2, 194, 39, 0, 0, 3, 1, 0, 230, 1, 1.05, 0.95], 69 [15, 2, 317, 64, 0, 0, 4, 1, 0, 230, 1, 1.05, 0.95], 70 [16, 2, 100, 20, 0, 0, 4, 1, 0, 230, 1, 1.05, 0.95], 71 [17, 1, 0, 0, 0, 0, 4, 1, 0, 230, 1, 1.05, 0.95], 72 [18, 2, 333, 68, 0, 0, 4, 1, 0, 230, 1, 1.05, 0.95], 73 [19, 1, 181, 37, 0, 0, 3, 1, 0, 230, 1, 1.05, 0.95], 74 [20, 1, 128, 26, 0, 0, 3, 1, 0, 230, 1, 1.05, 0.95], 75 [21, 2, 0, 0, 0, 0, 4, 1, 0, 230, 1, 1.05, 0.95], 76 [22, 2, 0, 0, 0, 0, 4, 1, 0, 230, 1, 1.05, 0.95], 77 [23, 2, 0, 0, 0, 0, 3, 1, 0, 230, 1, 1.05, 0.95], 78 [24, 1, 0, 0, 0, 0, 4, 1, 0, 230, 1, 1.05, 0.95] 79 ]) 80 81 ## generator data 82 # bus, Pg, Qg, Qmax, Qmin, Vg, mBase, status, Pmax, Pmin, Pc1, Pc2, 83 # Qc1min, Qc1max, Qc2min, Qc2max, ramp_agc, ramp_10, ramp_30, ramp_q, apf 84 ppc["gen"] = array([ 85 [1, 10, 0, 10, 0, 1.035, 100, 1, 20, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U20 86 [1, 10, 0, 10, 0, 1.035, 100, 1, 20, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U20 87 [1, 76, 0, 30, -25, 1.035, 100, 1, 76, 15.2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U76 88 [1, 76, 0, 30, -25, 1.035, 100, 1, 76, 15.2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U76 89 [2, 10, 0, 10, 0, 1.035, 100, 1, 20, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U20 90 [2, 10, 0, 10, 0, 1.035, 100, 1, 20, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U20 91 [2, 76, 0, 30, -25, 1.035, 100, 1, 76, 15.2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U76 92 [2, 76, 0, 30, -25, 1.035, 100, 1, 76, 15.2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U76 93 [7, 80, 0, 60, 0, 1.025, 100, 1, 100, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U100 94 [7, 80, 0, 60, 0, 1.025, 100, 1, 100, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U100 95 [7, 80, 0, 60, 0, 1.025, 100, 1, 100, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U100 96 [13, 95.1, 0, 80, 0, 1.02, 100, 1, 197, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U197 97 [13, 95.1, 0, 80, 0, 1.02, 100, 1, 197, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U197 98 [13, 95.1, 0, 80, 0, 1.02, 100, 1, 197, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U197 99 [14, 0, 35.3, 200, -50, 0.98, 100, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # SynCond 100 [15, 12, 0, 6, 0, 1.014, 100, 1, 12, 2.4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U12 101 [15, 12, 0, 6, 0, 1.014, 100, 1, 12, 2.4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U12 102 [15, 12, 0, 6, 0, 1.014, 100, 1, 12, 2.4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U12 103 [15, 12, 0, 6, 0, 1.014, 100, 1, 12, 2.4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U12 104 [15, 12, 0, 6, 0, 1.014, 100, 1, 12, 2.4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U12 105 [15, 155, 0, 80, -50, 1.014, 100, 1, 155, 54.3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U155 106 [16, 155, 0, 80, -50, 1.017, 100, 1, 155, 54.3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U155 107 [18, 400, 0, 200, -50, 1.05, 100, 1, 400, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U400 108 [21, 400, 0, 200, -50, 1.05, 100, 1, 400, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U400 109 [22, 50, 0, 16, -10, 1.05, 100, 1, 50, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U50 110 [22, 50, 0, 16, -10, 1.05, 100, 1, 50, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U50 111 [22, 50, 0, 16, -10, 1.05, 100, 1, 50, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U50 112 [22, 50, 0, 16, -10, 1.05, 100, 1, 50, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U50 113 [22, 50, 0, 16, -10, 1.05, 100, 1, 50, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U50 114 [22, 50, 0, 16, -10, 1.05, 100, 1, 50, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U50 115 [23, 155, 0, 80, -50, 1.05, 100, 1, 155, 54.3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U155 116 [23, 155, 0, 80, -50, 1.05, 100, 1, 155, 54.3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], # U155 117 [23, 350, 0, 150, -25, 1.05, 100, 1, 350, 140, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] # U350 118 ]) 119 120 ## branch data 121 # fbus, tbus, r, x, b, rateA, rateB, rateC, ratio, angle, status, angmin, angmax 122 ppc["branch"] = array([ 123 [1, 2, 0.0026, 0.0139, 0.4611, 175, 250, 200, 0, 0, 1, -360, 360], 124 [1, 3, 0.0546, 0.2112, 0.0572, 175, 208, 220, 0, 0, 1, -360, 360], 125 [1, 5, 0.0218, 0.0845, 0.0229, 175, 208, 220, 0, 0, 1, -360, 360], 126 [2, 4, 0.0328, 0.1267, 0.0343, 175, 208, 220, 0, 0, 1, -360, 360], 127 [2, 6, 0.0497, 0.192, 0.052, 175, 208, 220, 0, 0, 1, -360, 360], 128 [3, 9, 0.0308, 0.119, 0.0322, 175, 208, 220, 0, 0, 1, -360, 360], 129 [3, 24, 0.0023, 0.0839, 0, 400, 510, 600, 1.03, 0, 1, -360, 360], 130 [4, 9, 0.0268, 0.1037, 0.0281, 175, 208, 220, 0, 0, 1, -360, 360], 131 [5, 10, 0.0228, 0.0883, 0.0239, 175, 208, 220, 0, 0, 1, -360, 360], 132 [6, 10, 0.0139, 0.0605, 2.459, 175, 193, 200, 0, 0, 1, -360, 360], 133 [7, 8, 0.0159, 0.0614, 0.0166, 175, 208, 220, 0, 0, 1, -360, 360], 134 [8, 9, 0.0427, 0.1651, 0.0447, 175, 208, 220, 0, 0, 1, -360, 360], 135 [8, 10, 0.0427, 0.1651, 0.0447, 175, 208, 220, 0, 0, 1, -360, 360], 136 [9, 11, 0.0023, 0.0839, 0, 400, 510, 600, 1.03, 0, 1, -360, 360], 137 [9, 12, 0.0023, 0.0839, 0, 400, 510, 600, 1.03, 0, 1, -360, 360], 138 [10, 11, 0.0023, 0.0839, 0, 400, 510, 600, 1.02, 0, 1, -360, 360], 139 [10, 12, 0.0023, 0.0839, 0, 400, 510, 600, 1.02, 0, 1, -360, 360], 140 [11, 13, 0.0061, 0.0476, 0.0999, 500, 600, 625, 0, 0, 1, -360, 360], 141 [11, 14, 0.0054, 0.0418, 0.0879, 500, 625, 625, 0, 0, 1, -360, 360], 142 [12, 13, 0.0061, 0.0476, 0.0999, 500, 625, 625, 0, 0, 1, -360, 360], 143 [12, 23, 0.0124, 0.0966, 0.203, 500, 625, 625, 0, 0, 1, -360, 360], 144 [13, 23, 0.0111, 0.0865, 0.1818, 500, 625, 625, 0, 0, 1, -360, 360], 145 [14, 16, 0.005, 0.0389, 0.0818, 500, 625, 625, 0, 0, 1, -360, 360], 146 [15, 16, 0.0022, 0.0173, 0.0364, 500, 600, 625, 0, 0, 1, -360, 360], 147 [15, 21, 0.0063, 0.049, 0.103, 500, 600, 625, 0, 0, 1, -360, 360], 148 [15, 21, 0.0063, 0.049, 0.103, 500, 600, 625, 0, 0, 1, -360, 360], 149 [15, 24, 0.0067, 0.0519, 0.1091, 500, 600, 625, 0, 0, 1, -360, 360], 150 [16, 17, 0.0033, 0.0259, 0.0545, 500, 600, 625, 0, 0, 1, -360, 360], 151 [16, 19, 0.003, 0.0231, 0.0485, 500, 600, 625, 0, 0, 1, -360, 360], 152 [17, 18, 0.0018, 0.0144, 0.0303, 500, 600, 625, 0, 0, 1, -360, 360], 153 [17, 22, 0.0135, 0.1053, 0.2212, 500, 600, 625, 0, 0, 1, -360, 360], 154 [18, 21, 0.0033, 0.0259, 0.0545, 500, 600, 625, 0, 0, 1, -360, 360], 155 [18, 21, 0.0033, 0.0259, 0.0545, 500, 600, 625, 0, 0, 1, -360, 360], 156 [19, 20, 0.0051, 0.0396, 0.0833, 500, 600, 625, 0, 0, 1, -360, 360], 157 [19, 20, 0.0051, 0.0396, 0.0833, 500, 600, 625, 0, 0, 1, -360, 360], 158 [20, 23, 0.0028, 0.0216, 0.0455, 500, 600, 625, 0, 0, 1, -360, 360], 159 [20, 23, 0.0028, 0.0216, 0.0455, 500, 600, 625, 0, 0, 1, -360, 360], 160 [21, 22, 0.0087, 0.0678, 0.1424, 500, 600, 625, 0, 0, 1, -360, 360] 161 ]) 162 163 ##----- OPF Data -----## 164 ## area data 165 # area refbus 166 ppc["areas"] = array([ 167 [1, 1], 168 [2, 3], 169 [3, 8], 170 [4, 6], 171 ]) 172 173 ## generator cost data 174 # 1 startup shutdown n x1 y1 ... xn yn 175 # 2 startup shutdown n c(n-1) ... c0 176 ppc["gencost"] = array([ # bus Pmin Pmax Qmin Qmax Unit Code 177 [2, 1500, 0, 3, 0, 130, 400.6849], # 1, 16, 20, 0, 10, U20 178 [2, 1500, 0, 3, 0, 130, 400.6849], # 1, 16, 20, 0, 10, U20 179 [2, 1500, 0, 3, 0.014142, 16.0811, 212.3076], # 1, 15.2, 76, -25, 30, U76 180 [2, 1500, 0, 3, 0.014142, 16.0811, 212.3076], # 1, 15.2, 76, -25, 30, U76 181 [2, 1500, 0, 3, 0, 130, 400.6849], # 2, 16, 20, 0, 10, U20 182 [2, 1500, 0, 3, 0, 130, 400.6849], # 2, 16, 20, 0, 10, U20 183 [2, 1500, 0, 3, 0.014142, 16.0811, 212.3076], # 2, 15.2, 76, -25, 30, U76 184 [2, 1500, 0, 3, 0.014142, 16.0811, 212.3076], # 2, 15.2, 76, -25, 30, U76 185 [2, 1500, 0, 3, 0.052672, 43.6615, 781.521], # 7, 25, 100, 0, 60, U100 186 [2, 1500, 0, 3, 0.052672, 43.6615, 781.521], # 7, 25, 100, 0, 60, U100 187 [2, 1500, 0, 3, 0.052672, 43.6615, 781.521], # 7, 25, 100, 0, 60, U100 188 [2, 1500, 0, 3, 0.00717, 48.5804, 832.7575], # 13, 69, 197, 0, 80, U197 189 [2, 1500, 0, 3, 0.00717, 48.5804, 832.7575], # 13, 69, 197, 0, 80, U197 190 [2, 1500, 0, 3, 0.00717, 48.5804, 832.7575], # 13, 69, 197, 0, 80, U197 191 [2, 1500, 0, 3, 0, 0, 0], # 14 SynCond 192 [2, 1500, 0, 3, 0.328412, 56.564, 86.3852], # 15, 2.4, 12, 0, 6, U12 193 [2, 1500, 0, 3, 0.328412, 56.564, 86.3852], # 15, 2.4, 12, 0, 6, U12 194 [2, 1500, 0, 3, 0.328412, 56.564, 86.3852], # 15, 2.4, 12, 0, 6, U12 195 [2, 1500, 0, 3, 0.328412, 56.564, 86.3852], # 15, 2.4, 12, 0, 6, U12 196 [2, 1500, 0, 3, 0.328412, 56.564, 86.3852], # 15, 2.4, 12, 0, 6, U12 197 [2, 1500, 0, 3, 0.008342, 12.3883, 382.2391], # 15, 54.3, 155, -50, 80, U155 198 [2, 1500, 0, 3, 0.008342, 12.3883, 382.2391], # 16, 54.3, 155, -50, 80, U155 199 [2, 1500, 0, 3, 0.000213, 4.4231, 395.3749], # 18, 100, 400, -50, 200, U400 200 [2, 1500, 0, 3, 0.000213, 4.4231, 395.3749], # 21, 100, 400, -50, 200, U400 201 [2, 1500, 0, 3, 0, 0.001, 0.001], # 22, 10, 50, -10, 16, U50 202 [2, 1500, 0, 3, 0, 0.001, 0.001], # 22, 10, 50, -10, 16, U50 203 [2, 1500, 0, 3, 0, 0.001, 0.001], # 22, 10, 50, -10, 16, U50 204 [2, 1500, 0, 3, 0, 0.001, 0.001], # 22, 10, 50, -10, 16, U50 205 [2, 1500, 0, 3, 0, 0.001, 0.001], # 22, 10, 50, -10, 16, U50 206 [2, 1500, 0, 3, 0, 0.001, 0.001], # 22, 10, 50, -10, 16, U50 207 [2, 1500, 0, 3, 0.008342, 12.3883, 382.2391], # 23, 54.3, 155, -50, 80, U155 208 [2, 1500, 0, 3, 0.008342, 12.3883, 382.2391], # 23, 54.3, 155, -50, 80, U155 209 [2, 1500, 0, 3, 0.004895, 11.8495, 665.1094], # 23, 140, 350, -25, 150, U350 210 ]) 211 212 return ppc
213