Best Python code snippet using lisa_python
models.py
Source:models.py
...44 line8 = pp.create_line(net, bus7, bus8, length_km = 0.1, std_type = '243-AL1/39-ST1A 110.0', name = 'line8')45 line9 = pp.create_line(net, bus4, bus8, length_km = 0.1, std_type = '243-AL1/39-ST1A 110.0', name = 'line9')46 line10 = pp.create_line(net, bus8, bus9, length_km = 0.1, std_type = '243-AL1/39-ST1A 110.0', name = 'line10')47 # Switches instantiation48 sw0 = pp.create_switch(net, bus0, line0, et = 'l', type = 'LBS', closed = True, name = 'sw0')49 sw1 = pp.create_switch(net, bus1, line1, et = 'l', type = 'LBS', closed = True, name = 'sw1')50 sw2 = pp.create_switch(net, bus2, line2, et = 'l', type = 'LBS', closed = True, name = 'sw2')51 sw3 = pp.create_switch(net, bus2, line3, et = 'l', type = 'LBS', closed = True, name = 'sw3')52 sw4 = pp.create_switch(net, bus4, line4, et = 'l', type = 'LBS', closed = False, name = 'sw4')53 sw5 = pp.create_switch(net, bus6, line5, et = 'l', type = 'LBS', closed = True, name = 'sw5')54 sw6 = pp.create_switch(net, bus3, line6, et = 'l', type = 'LBS', closed = True, name = 'sw6')55 sw7 = pp.create_switch(net, bus3, line7, et = 'l', type = 'LBS', closed = True, name = 'sw7')56 sw8 = pp.create_switch(net, bus7, line8, et = 'l', type = 'LBS', closed = False, name = 'sw8')57 sw9 = pp.create_switch(net, bus4, line9, et = 'l', type = 'LBS', closed = True, name = 'sw9')58 sw10 = pp.create_switch(net, bus8, line10, et = 'l', type = 'LBS', closed = False, name = 'sw10')59 return net60def network16bus():61 ''' Returns the 16-bus test model network as a pandapower net.62 Returns63 -------64 pandapower.auxiliary.pandapowerNet65 The correspondent pandapower network model.66 '''67 net = pp.create_empty_network()68 # Buses instantiation69 bus0 = pp.create_bus(net, name = 'bus0', vn_kv = 11, type = 'b')70 bus1 = pp.create_bus(net, name = 'bus1', vn_kv = 11, type = 'b')71 bus2 = pp.create_bus(net, name = 'bus2', vn_kv = 11, type = 'b')72 bus3 = pp.create_bus(net, name = 'bus3', vn_kv = 11, type = 'b')73 bus4 = pp.create_bus(net, name = 'bus4', vn_kv = 11, type = 'b')74 bus5 = pp.create_bus(net, name = 'bus5', vn_kv = 11, type = 'b')75 bus6 = pp.create_bus(net, name = 'bus6', vn_kv = 11, type = 'b')76 bus7 = pp.create_bus(net, name = 'bus7', vn_kv = 11, type = 'b')77 bus8 = pp.create_bus(net, name = 'bus8', vn_kv = 11, type = 'b')78 bus9 = pp.create_bus(net, name = 'bus9', vn_kv = 11, type = 'b')79 bus10 = pp.create_bus(net, name = 'bus10', vn_kv = 11, type = 'b')80 bus11 = pp.create_bus(net, name = 'bus11', vn_kv = 11, type = 'b')81 bus12 = pp.create_bus(net, name = 'bus12', vn_kv = 11, type = 'b')82 bus13 = pp.create_bus(net, name = 'bus13', vn_kv = 11, type = 'b')83 bus14 = pp.create_bus(net, name = 'bus14', vn_kv = 11, type = 'b')84 bus15 = pp.create_bus(net, name = 'bus15', vn_kv = 11, type = 'b')85 # Slack buses (the power sources)86 pp.create_ext_grid(net, bus = bus0, vm_pu = 1)87 pp.create_ext_grid(net, bus = bus1, vm_pu = 1)88 pp.create_ext_grid(net, bus = bus2, vm_pu = 1)89 # Loads instantiation90 load3 = pp.create_load(net, bus3, p_mw = 2.0, q_mvar = 1.6, name = 'load3')91 load4 = pp.create_load(net, bus4, p_mw = 3.0, q_mvar = 1.5, name = 'load4')92 load5 = pp.create_load(net, bus5, p_mw = 2.0, q_mvar = 0.8, name = 'load5')93 load6 = pp.create_load(net, bus6, p_mw = 1.5, q_mvar = 1.2, name = 'load6')94 load7 = pp.create_load(net, bus7, p_mw = 4.0, q_mvar = 2.7, name = 'load7')95 load8 = pp.create_load(net, bus8, p_mw = 5.0, q_mvar = 3.0, name = 'load8')96 load9 = pp.create_load(net, bus9, p_mw = 1.0, q_mvar = 0.9, name = 'load9')97 load10 = pp.create_load(net, bus10, p_mw = 0.6, q_mvar = 0.1, name = 'load10')98 load11 = pp.create_load(net, bus11, p_mw = 4.5, q_mvar = 2.0, name = 'load11')99 load12 = pp.create_load(net, bus12, p_mw = 1.0, q_mvar = 0.9, name = 'load12')100 load13 = pp.create_load(net, bus13, p_mw = 1.0, q_mvar = 0.7, name = 'load13')101 load14 = pp.create_load(net, bus14, p_mw = 1.0, q_mvar = 0.9, name = 'load14')102 load15 = pp.create_load(net, bus15, p_mw = 2.1, q_mvar = 1.0, name = 'load15')103 # Lines instantiation104 line0 = pp.create_line_from_parameters(net, bus0, bus3, length_km = 1.0, r_ohm_per_km = 0.075, x_ohm_per_km = 0.10, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line0')105 line1 = pp.create_line_from_parameters(net, bus3, bus4, length_km = 1.0, r_ohm_per_km = 0.080, x_ohm_per_km = 0.11, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line1')106 line2 = pp.create_line_from_parameters(net, bus3, bus5, length_km = 1.0, r_ohm_per_km = 0.090, x_ohm_per_km = 0.18, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line2')107 line3 = pp.create_line_from_parameters(net, bus5, bus6, length_km = 1.0, r_ohm_per_km = 0.040, x_ohm_per_km = 0.04, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line3')108 line4 = pp.create_line_from_parameters(net, bus1, bus7, length_km = 1.0, r_ohm_per_km = 0.110, x_ohm_per_km = 0.11, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line4')109 line5 = pp.create_line_from_parameters(net, bus7, bus8, length_km = 1.0, r_ohm_per_km = 0.080, x_ohm_per_km = 0.11, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line5')110 line6 = pp.create_line_from_parameters(net, bus7, bus9, length_km = 1.0, r_ohm_per_km = 0.110, x_ohm_per_km = 0.11, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line6')111 line7 = pp.create_line_from_parameters(net, bus8, bus10, length_km = 1.0, r_ohm_per_km = 0.110, x_ohm_per_km = 0.11, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line7')112 line8 = pp.create_line_from_parameters(net, bus8, bus11, length_km = 1.0, r_ohm_per_km = 0.080, x_ohm_per_km = 0.11, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line8')113 line9 = pp.create_line_from_parameters(net, bus2, bus12, length_km = 1.0, r_ohm_per_km = 0.110, x_ohm_per_km = 0.11, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line9')114 line10 = pp.create_line_from_parameters(net, bus12, bus13, length_km = 1.0, r_ohm_per_km = 0.090, x_ohm_per_km = 0.12, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line10')115 line11 = pp.create_line_from_parameters(net, bus12, bus14, length_km = 1.0, r_ohm_per_km = 0.080, x_ohm_per_km = 0.11, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line11')116 line12 = pp.create_line_from_parameters(net, bus14, bus15, length_km = 1.0, r_ohm_per_km = 0.040, x_ohm_per_km = 0.04, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line12')117 line13 = pp.create_line_from_parameters(net, bus4, bus10, length_km = 1.0, r_ohm_per_km = 0.040, x_ohm_per_km = 0.04, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line13')118 line14 = pp.create_line_from_parameters(net, bus9, bus13, length_km = 1.0, r_ohm_per_km = 0.040, x_ohm_per_km = 0.04, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line14')119 line15 = pp.create_line_from_parameters(net, bus6, bus15, length_km = 1.0, r_ohm_per_km = 0.090, x_ohm_per_km = 0.04, c_nf_per_km = 9.95, max_i_ka = 1.150, name = 'line15')120 # Switches instantiation121 sw0 = pp.create_switch(net, bus3, line0, et = 'l', type = 'LBS', closed = True, name = 'sw0')122 sw1 = pp.create_switch(net, bus4, line1, et = 'l', type = 'LBS', closed = True, name = 'sw1')123 sw2 = pp.create_switch(net, bus5, line2, et = 'l', type = 'LBS', closed = True, name = 'sw2')124 sw3 = pp.create_switch(net, bus6, line3, et = 'l', type = 'LBS', closed = True, name = 'sw3')125 sw4 = pp.create_switch(net, bus7, line4, et = 'l', type = 'LBS', closed = True, name = 'sw4')126 sw5 = pp.create_switch(net, bus8, line5, et = 'l', type = 'LBS', closed = True, name = 'sw5')127 sw6 = pp.create_switch(net, bus9, line6, et = 'l', type = 'LBS', closed = True, name = 'sw6')128 sw7 = pp.create_switch(net, bus10, line7, et = 'l', type = 'LBS', closed = True, name = 'sw7')129 sw8 = pp.create_switch(net, bus11, line8, et = 'l', type = 'LBS', closed = True, name = 'sw8')130 sw9 = pp.create_switch(net, bus12, line9, et = 'l', type = 'LBS', closed = True, name = 'sw9')131 sw10 = pp.create_switch(net, bus13, line10, et = 'l', type = 'LBS', closed = True, name = 'sw10')132 sw11 = pp.create_switch(net, bus14, line11, et = 'l', type = 'LBS', closed = True, name = 'sw11')133 sw12 = pp.create_switch(net, bus15, line12, et = 'l', type = 'LBS', closed = True, name = 'sw12')134 sw13 = pp.create_switch(net, bus10, line13, et = 'l', type = 'LBS', closed = False, name = 'sw13')135 sw14 = pp.create_switch(net, bus13, line14, et = 'l', type = 'LBS', closed = False, name = 'sw14')136 sw15 = pp.create_switch(net, bus15, line15, et = 'l', type = 'LBS', closed = False, name = 'sw15')137 return net138def network33bus():139 ''' Returns the 33-bus test model network as a pandapower net.140 Returns141 -------142 pandapower.auxiliary.pandapowerNet143 The correspondent pandapower network model.144 '''145 net = pp.create_empty_network()146 # Buses instantiation147 bus0 = pp.create_bus(net, name = 'bus0', vn_kv = 12.66, type = 'b')148 bus1 = pp.create_bus(net, name = 'bus1', vn_kv = 12.66, type = 'b')149 bus2 = pp.create_bus(net, name = 'bus2', vn_kv = 12.66, type = 'b')150 bus3 = pp.create_bus(net, name = 'bus3', vn_kv = 12.66, type = 'b')151 bus4 = pp.create_bus(net, name = 'bus4', vn_kv = 12.66, type = 'b')152 bus5 = pp.create_bus(net, name = 'bus5', vn_kv = 12.66, type = 'b')153 bus6 = pp.create_bus(net, name = 'bus6', vn_kv = 12.66, type = 'b')154 bus7 = pp.create_bus(net, name = 'bus7', vn_kv = 12.66, type = 'b')155 bus8 = pp.create_bus(net, name = 'bus8', vn_kv = 12.66, type = 'b')156 bus9 = pp.create_bus(net, name = 'bus9', vn_kv = 12.66, type = 'b')157 bus10 = pp.create_bus(net, name = 'bus10', vn_kv = 12.66, type = 'b')158 bus11 = pp.create_bus(net, name = 'bus11', vn_kv = 12.66, type = 'b')159 bus12 = pp.create_bus(net, name = 'bus12', vn_kv = 12.66, type = 'b')160 bus13 = pp.create_bus(net, name = 'bus13', vn_kv = 12.66, type = 'b')161 bus14 = pp.create_bus(net, name = 'bus14', vn_kv = 12.66, type = 'b')162 bus15 = pp.create_bus(net, name = 'bus15', vn_kv = 12.66, type = 'b')163 bus16 = pp.create_bus(net, name = 'bus16', vn_kv = 12.66, type = 'b')164 bus17 = pp.create_bus(net, name = 'bus17', vn_kv = 12.66, type = 'b')165 bus18 = pp.create_bus(net, name = 'bus18', vn_kv = 12.66, type = 'b')166 bus19 = pp.create_bus(net, name = 'bus19', vn_kv = 12.66, type = 'b')167 bus20 = pp.create_bus(net, name = 'bus20', vn_kv = 12.66, type = 'b')168 bus21 = pp.create_bus(net, name = 'bus21', vn_kv = 12.66, type = 'b')169 bus22 = pp.create_bus(net, name = 'bus22', vn_kv = 12.66, type = 'b')170 bus23 = pp.create_bus(net, name = 'bus23', vn_kv = 12.66, type = 'b')171 bus24 = pp.create_bus(net, name = 'bus24', vn_kv = 12.66, type = 'b')172 bus25 = pp.create_bus(net, name = 'bus25', vn_kv = 12.66, type = 'b')173 bus26 = pp.create_bus(net, name = 'bus26', vn_kv = 12.66, type = 'b')174 bus27 = pp.create_bus(net, name = 'bus27', vn_kv = 12.66, type = 'b')175 bus28 = pp.create_bus(net, name = 'bus28', vn_kv = 12.66, type = 'b')176 bus29 = pp.create_bus(net, name = 'bus29', vn_kv = 12.66, type = 'b')177 bus30 = pp.create_bus(net, name = 'bus30', vn_kv = 12.66, type = 'b')178 bus31 = pp.create_bus(net, name = 'bus31', vn_kv = 12.66, type = 'b')179 bus32 = pp.create_bus(net, name = 'bus32', vn_kv = 12.66, type = 'b')180 # Slack buses (the power sources)181 pp.create_ext_grid(net, bus = bus0, vm_pu = 1)182 # Loads instantiation183 load1 = pp.create_load(net, bus1, p_mw = 0.1, q_mvar = 0.06, name = 'load1')184 load2 = pp.create_load(net, bus2, p_mw = 0.09, q_mvar = 0.04, name = 'load2')185 load3 = pp.create_load(net, bus3, p_mw = 0.06, q_mvar = 0.035, name = 'load3')186 load4 = pp.create_load(net, bus4, p_mw = 0.06, q_mvar = 0.035, name = 'load4')187 load5 = pp.create_load(net, bus5, p_mw = 0.12, q_mvar = 0.08, name = 'load5')188 load6 = pp.create_load(net, bus6, p_mw = 0.06, q_mvar = 0.01, name = 'load6')189 load7 = pp.create_load(net, bus7, p_mw = 0.06, q_mvar = 0.02, name = 'load7')190 load8 = pp.create_load(net, bus8, p_mw = 0.06, q_mvar = 0.02, name = 'load8')191 load9 = pp.create_load(net, bus9, p_mw = 0.09, q_mvar = 0.04, name = 'load9')192 load10 = pp.create_load(net, bus10, p_mw = 0.09, q_mvar = 0.04, name = 'load10')193 load11 = pp.create_load(net, bus11, p_mw = 0.09, q_mvar = 0.04, name = 'load11')194 load12 = pp.create_load(net, bus12, p_mw = 0.09, q_mvar = 0.04, name = 'load12')195 load13 = pp.create_load(net, bus13, p_mw = 0.12, q_mvar = 0.08, name = 'load13')196 load14 = pp.create_load(net, bus14, p_mw = 0.09, q_mvar = 0.04, name = 'load14')197 load15 = pp.create_load(net, bus15, p_mw = 0.09, q_mvar = 0.05, name = 'load15')198 load16 = pp.create_load(net, bus16, p_mw = 0.42, q_mvar = 0.2, name = 'load16')199 load17 = pp.create_load(net, bus17, p_mw = 0.42, q_mvar = 0.2, name = 'load17')200 load18 = pp.create_load(net, bus18, p_mw = 0.06, q_mvar = 0.025, name = 'load18')201 load19 = pp.create_load(net, bus19, p_mw = 0.06, q_mvar = 0.025, name = 'load19')202 load20 = pp.create_load(net, bus20, p_mw = 0.06, q_mvar = 0.02, name = 'load20')203 load21 = pp.create_load(net, bus21, p_mw = 0.12, q_mvar = 0.07, name = 'load21')204 load22 = pp.create_load(net, bus22, p_mw = 0.2, q_mvar = 0.6, name = 'load22')205 load23 = pp.create_load(net, bus23, p_mw = 0.15, q_mvar = 0.07, name = 'load23')206 load24 = pp.create_load(net, bus24, p_mw = 0.06, q_mvar = 0.03, name = 'load24')207 load25 = pp.create_load(net, bus25, p_mw = 0.21, q_mvar = 0.1, name = 'load25')208 load26 = pp.create_load(net, bus26, p_mw = 0.06, q_mvar = 0.04, name = 'load26')209 load27 = pp.create_load(net, bus27, p_mw = 0.06, q_mvar = 0.02, name = 'load27')210 load28 = pp.create_load(net, bus28, p_mw = 0.2, q_mvar = 0.1, name = 'load28')211 load29 = pp.create_load(net, bus29, p_mw = 0.2, q_mvar = 0.1, name = 'load29')212 load30 = pp.create_load(net, bus30, p_mw = 0.06, q_mvar = 0.02, name = 'load30')213 load31 = pp.create_load(net, bus31, p_mw = 0.06, q_mvar = 0.02, name = 'load31')214 load32 = pp.create_load(net, bus32, p_mw = 0.045, q_mvar = 0.03, name = 'load32')215 # Lines instantiation (classified values)216 line0 = pp.create_line_from_parameters(net, bus0, bus1, length_km = 1.0, r_ohm_per_km = 0.0922, x_ohm_per_km = 0.047, c_nf_per_km = 9.2, max_i_ka = 0.74, name = 'line0')217 line1 = pp.create_line_from_parameters(net, bus1, bus2, length_km = 1.0, r_ohm_per_km = 0.493, x_ohm_per_km = 0.2511, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line1')218 line2 = pp.create_line_from_parameters(net, bus2, bus3, length_km = 1.0, r_ohm_per_km = 0.366, x_ohm_per_km = 0.1864, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line2')219 line3 = pp.create_line_from_parameters(net, bus3, bus4, length_km = 1.0, r_ohm_per_km = 0.3811, x_ohm_per_km = 0.1941, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line3')220 line4 = pp.create_line_from_parameters(net, bus4, bus5, length_km = 1.0, r_ohm_per_km = 0.8190, x_ohm_per_km = 0.7070, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line4')221 line5 = pp.create_line_from_parameters(net, bus5, bus6, length_km = 1.0, r_ohm_per_km = 0.1872, x_ohm_per_km = 0.6188, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line5')222 line6 = pp.create_line_from_parameters(net, bus6, bus7, length_km = 1.0, r_ohm_per_km = 0.7114, x_ohm_per_km = 0.2351, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line6')223 line7 = pp.create_line_from_parameters(net, bus7, bus8, length_km = 1.0, r_ohm_per_km = 1.03, x_ohm_per_km = 0.74, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line7')224 line8 = pp.create_line_from_parameters(net, bus8, bus9, length_km = 1.0, r_ohm_per_km = 1.044, x_ohm_per_km = 0.74, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line8')225 line9 = pp.create_line_from_parameters(net, bus9, bus10, length_km = 1.0, r_ohm_per_km = 0.1966, x_ohm_per_km = 0.065, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line9')226 line10 = pp.create_line_from_parameters(net, bus10, bus11, length_km = 1.0, r_ohm_per_km = 0.3744, x_ohm_per_km = 0.1238, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line10')227 line11 = pp.create_line_from_parameters(net, bus11, bus12, length_km = 1.0, r_ohm_per_km = 1.4680, x_ohm_per_km = 1.155, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line11')228 line12 = pp.create_line_from_parameters(net, bus12, bus13, length_km = 1.0, r_ohm_per_km = 0.5416, x_ohm_per_km = 0.7129, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line12')229 line13 = pp.create_line_from_parameters(net, bus13, bus14, length_km = 1.0, r_ohm_per_km = 0.591, x_ohm_per_km = 0.526, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line13')230 line14 = pp.create_line_from_parameters(net, bus14, bus15, length_km = 1.0, r_ohm_per_km = 0.7463, x_ohm_per_km = 0.545, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line14')231 line15 = pp.create_line_from_parameters(net, bus15, bus16, length_km = 1.0, r_ohm_per_km = 1.2890, x_ohm_per_km = 1.7209, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line15')232 line16 = pp.create_line_from_parameters(net, bus16, bus17, length_km = 1.0, r_ohm_per_km = 0.732, x_ohm_per_km = 0.574, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line16')233 line17 = pp.create_line_from_parameters(net, bus1, bus18, length_km = 1.0, r_ohm_per_km = 0.1639, x_ohm_per_km = 0.1565, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line17')234 line18 = pp.create_line_from_parameters(net, bus18, bus19, length_km = 1.0, r_ohm_per_km = 1.5042, x_ohm_per_km = 1.3554, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line18')235 line19 = pp.create_line_from_parameters(net, bus19, bus20, length_km = 1.0, r_ohm_per_km = 0.4095, x_ohm_per_km = 0.4784, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line19')236 line20 = pp.create_line_from_parameters(net, bus20, bus21, length_km = 1.0, r_ohm_per_km = 0.7089, x_ohm_per_km = 0.9373, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line20')237 line21 = pp.create_line_from_parameters(net, bus2, bus22, length_km = 1.0, r_ohm_per_km = 0.4512, x_ohm_per_km = 0.3083, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line21')238 line22 = pp.create_line_from_parameters(net, bus22, bus23, length_km = 1.0, r_ohm_per_km = 0.898, x_ohm_per_km = 0.7091, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line22')239 line23 = pp.create_line_from_parameters(net, bus23, bus24, length_km = 1.0, r_ohm_per_km = 0.8959, x_ohm_per_km = 0.7011, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line23')240 line24 = pp.create_line_from_parameters(net, bus5, bus25, length_km = 1.0, r_ohm_per_km = 0.203, x_ohm_per_km = 0.1034, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line24')241 line25 = pp.create_line_from_parameters(net, bus25, bus26, length_km = 1.0, r_ohm_per_km = 0.2842, x_ohm_per_km = 0.1447, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line25')242 line26 = pp.create_line_from_parameters(net, bus26, bus27, length_km = 1.0, r_ohm_per_km = 1.0590, x_ohm_per_km = 0.9337, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line26')243 line27 = pp.create_line_from_parameters(net, bus27, bus28, length_km = 1.0, r_ohm_per_km = 0.8042, x_ohm_per_km = 0.7006, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line27')244 line28 = pp.create_line_from_parameters(net, bus28, bus29, length_km = 1.0, r_ohm_per_km = 0.5075, x_ohm_per_km = 0.2585, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line28')245 line29 = pp.create_line_from_parameters(net, bus29, bus30, length_km = 1.0, r_ohm_per_km = 0.9744, x_ohm_per_km = 0.963, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line29')246 line30 = pp.create_line_from_parameters(net, bus30, bus31, length_km = 1.0, r_ohm_per_km = 0.3105, x_ohm_per_km = 0.3619, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line30')247 line31 = pp.create_line_from_parameters(net, bus31, bus32, length_km = 1.0, r_ohm_per_km = 0.341, x_ohm_per_km = 0.5302, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line31')248 line32 = pp.create_line_from_parameters(net, bus7, bus20, length_km = 1.0, r_ohm_per_km = 2.0, x_ohm_per_km = 2.0, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line32')249 line33 = pp.create_line_from_parameters(net, bus8, bus14, length_km = 1.0, r_ohm_per_km = 2.0, x_ohm_per_km = 2.0, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line33')250 line34 = pp.create_line_from_parameters(net, bus11, bus21, length_km = 1.0, r_ohm_per_km = 2.0, x_ohm_per_km = 2.0, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line34')251 line35 = pp.create_line_from_parameters(net, bus17, bus32, length_km = 1.0, r_ohm_per_km = 0.5, x_ohm_per_km = 0.5, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line35')252 line36 = pp.create_line_from_parameters(net, bus24, bus28, length_km = 1.0, r_ohm_per_km = 0.5, x_ohm_per_km = 0.5, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line36')253 # Switches instantiation254 sw0 = pp.create_switch(net, bus1, line0, et = 'l', type = 'LBS', closed = True, name = 'sw0')255 sw1 = pp.create_switch(net, bus2, line1, et = 'l', type = 'LBS', closed = True, name = 'sw1')256 sw2 = pp.create_switch(net, bus3, line2, et = 'l', type = 'LBS', closed = True, name = 'sw2')257 sw3 = pp.create_switch(net, bus4, line3, et = 'l', type = 'LBS', closed = True, name = 'sw3')258 sw4 = pp.create_switch(net, bus5, line4, et = 'l', type = 'LBS', closed = True, name = 'sw4')259 sw5 = pp.create_switch(net, bus6, line5, et = 'l', type = 'LBS', closed = True, name = 'sw5')260 sw6 = pp.create_switch(net, bus7, line6, et = 'l', type = 'LBS', closed = True, name = 'sw6')261 sw7 = pp.create_switch(net, bus8, line7, et = 'l', type = 'LBS', closed = True, name = 'sw7')262 sw8 = pp.create_switch(net, bus9, line8, et = 'l', type = 'LBS', closed = True, name = 'sw8')263 sw9 = pp.create_switch(net, bus10, line9, et = 'l', type = 'LBS', closed = True, name = 'sw9')264 sw10 = pp.create_switch(net, bus11, line10, et = 'l', type = 'LBS', closed = True, name = 'sw10')265 sw11 = pp.create_switch(net, bus12, line11, et = 'l', type = 'LBS', closed = True, name = 'sw11')266 sw12 = pp.create_switch(net, bus13, line12, et = 'l', type = 'LBS', closed = True, name = 'sw12')267 sw13 = pp.create_switch(net, bus14, line13, et = 'l', type = 'LBS', closed = True, name = 'sw13')268 sw14 = pp.create_switch(net, bus15, line14, et = 'l', type = 'LBS', closed = True, name = 'sw14')269 sw15 = pp.create_switch(net, bus16, line15, et = 'l', type = 'LBS', closed = True, name = 'sw15')270 sw16 = pp.create_switch(net, bus17, line16, et = 'l', type = 'LBS', closed = True, name = 'sw16')271 sw17 = pp.create_switch(net, bus18, line17, et = 'l', type = 'LBS', closed = True, name = 'sw17')272 sw18 = pp.create_switch(net, bus19, line18, et = 'l', type = 'LBS', closed = True, name = 'sw18')273 sw19 = pp.create_switch(net, bus20, line19, et = 'l', type = 'LBS', closed = True, name = 'sw19')274 sw20 = pp.create_switch(net, bus21, line20, et = 'l', type = 'LBS', closed = True, name = 'sw20')275 sw21 = pp.create_switch(net, bus22, line21, et = 'l', type = 'LBS', closed = True, name = 'sw21')276 sw22 = pp.create_switch(net, bus23, line22, et = 'l', type = 'LBS', closed = True, name = 'sw22')277 sw23 = pp.create_switch(net, bus24, line23, et = 'l', type = 'LBS', closed = True, name = 'sw23')278 sw24 = pp.create_switch(net, bus25, line24, et = 'l', type = 'LBS', closed = True, name = 'sw24')279 sw25 = pp.create_switch(net, bus26, line25, et = 'l', type = 'LBS', closed = True, name = 'sw25')280 sw26 = pp.create_switch(net, bus27, line26, et = 'l', type = 'LBS', closed = True, name = 'sw26')281 sw27 = pp.create_switch(net, bus28, line27, et = 'l', type = 'LBS', closed = True, name = 'sw27')282 sw28 = pp.create_switch(net, bus29, line28, et = 'l', type = 'LBS', closed = True, name = 'sw28')283 sw29 = pp.create_switch(net, bus30, line29, et = 'l', type = 'LBS', closed = True, name = 'sw29')284 sw30 = pp.create_switch(net, bus31, line30, et = 'l', type = 'LBS', closed = True, name = 'sw30')285 sw31 = pp.create_switch(net, bus32, line31, et = 'l', type = 'LBS', closed = True, name = 'sw31')286 sw32 = pp.create_switch(net, bus20, line32, et = 'l', type = 'LBS', closed = False, name = 'sw32')287 sw33 = pp.create_switch(net, bus14, line33, et = 'l', type = 'LBS', closed = False, name = 'sw33')288 sw34 = pp.create_switch(net, bus21, line34, et = 'l', type = 'LBS', closed = False, name = 'sw34')289 sw35 = pp.create_switch(net, bus32, line35, et = 'l', type = 'LBS', closed = False, name = 'sw35')290 sw36 = pp.create_switch(net, bus28, line36, et = 'l', type = 'LBS', closed = False, name = 'sw36')291 return net292def network119bus():293 ''' Returns the 119-bus test model network as a pandapower net.294 Returns295 -------296 pandapower.auxiliary.pandapowerNet297 The correspondent pandapower network model.298 '''299 net = pp.create_empty_network() 300 bus0 = pp.create_bus(net, name = 'bus0', vn_kv = 11, type = 'b')301 bus1 = pp.create_bus(net, name = 'bus1', vn_kv = 11, type = 'b')302 bus2 = pp.create_bus(net, name = 'bus2', vn_kv = 11, type = 'b')303 bus3 = pp.create_bus(net, name = 'bus3', vn_kv = 11, type = 'b')304 bus4 = pp.create_bus(net, name = 'bus4', vn_kv = 11, type = 'b')305 bus5 = pp.create_bus(net, name = 'bus5', vn_kv = 11, type = 'b')306 bus6 = pp.create_bus(net, name = 'bus6', vn_kv = 11, type = 'b')307 bus7 = pp.create_bus(net, name = 'bus7', vn_kv = 11, type = 'b')308 bus8 = pp.create_bus(net, name = 'bus8', vn_kv = 11, type = 'b')309 bus9 = pp.create_bus(net, name = 'bus9', vn_kv = 11, type = 'b')310 bus10 = pp.create_bus(net, name = 'bus10', vn_kv = 11, type = 'b')311 bus11 = pp.create_bus(net, name = 'bus11', vn_kv = 11, type = 'b')312 bus12 = pp.create_bus(net, name = 'bus12', vn_kv = 11, type = 'b')313 bus13 = pp.create_bus(net, name = 'bus13', vn_kv = 11, type = 'b')314 bus14 = pp.create_bus(net, name = 'bus14', vn_kv = 11, type = 'b')315 bus15 = pp.create_bus(net, name = 'bus15', vn_kv = 11, type = 'b')316 bus16 = pp.create_bus(net, name = 'bus16', vn_kv = 11, type = 'b')317 bus17 = pp.create_bus(net, name = 'bus17', vn_kv = 11, type = 'b')318 bus18 = pp.create_bus(net, name = 'bus18', vn_kv = 11, type = 'b')319 bus19 = pp.create_bus(net, name = 'bus19', vn_kv = 11, type = 'b')320 bus20 = pp.create_bus(net, name = 'bus20', vn_kv = 11, type = 'b')321 bus21 = pp.create_bus(net, name = 'bus21', vn_kv = 11, type = 'b')322 bus22 = pp.create_bus(net, name = 'bus22', vn_kv = 11, type = 'b')323 bus23 = pp.create_bus(net, name = 'bus23', vn_kv = 11, type = 'b')324 bus24 = pp.create_bus(net, name = 'bus24', vn_kv = 11, type = 'b')325 bus25 = pp.create_bus(net, name = 'bus25', vn_kv = 11, type = 'b')326 bus26 = pp.create_bus(net, name = 'bus26', vn_kv = 11, type = 'b')327 bus28 = pp.create_bus(net, name = 'bus28', vn_kv = 11, type = 'b')328 bus29 = pp.create_bus(net, name = 'bus29', vn_kv = 11, type = 'b')329 bus30 = pp.create_bus(net, name = 'bus30', vn_kv = 11, type = 'b')330 bus31 = pp.create_bus(net, name = 'bus31', vn_kv = 11, type = 'b')331 bus32 = pp.create_bus(net, name = 'bus32', vn_kv = 11, type = 'b')332 bus33 = pp.create_bus(net, name = 'bus33', vn_kv = 11, type = 'b')333 bus34 = pp.create_bus(net, name = 'bus34', vn_kv = 11, type = 'b')334 bus35 = pp.create_bus(net, name = 'bus35', vn_kv = 11, type = 'b')335 bus36 = pp.create_bus(net, name = 'bus36', vn_kv = 11, type = 'b')336 bus37 = pp.create_bus(net, name = 'bus37', vn_kv = 11, type = 'b')337 bus39 = pp.create_bus(net, name = 'bus39', vn_kv = 11, type = 'b')338 bus40 = pp.create_bus(net, name = 'bus40', vn_kv = 11, type = 'b')339 bus41 = pp.create_bus(net, name = 'bus41', vn_kv = 11, type = 'b')340 bus42 = pp.create_bus(net, name = 'bus42', vn_kv = 11, type = 'b')341 bus43 = pp.create_bus(net, name = 'bus43', vn_kv = 11, type = 'b')342 bus44 = pp.create_bus(net, name = 'bus44', vn_kv = 11, type = 'b')343 bus45 = pp.create_bus(net, name = 'bus45', vn_kv = 11, type = 'b')344 bus46 = pp.create_bus(net, name = 'bus46', vn_kv = 11, type = 'b')345 bus47 = pp.create_bus(net, name = 'bus47', vn_kv = 11, type = 'b')346 bus48 = pp.create_bus(net, name = 'bus48', vn_kv = 11, type = 'b')347 bus49 = pp.create_bus(net, name = 'bus49', vn_kv = 11, type = 'b')348 bus50 = pp.create_bus(net, name = 'bus50', vn_kv = 11, type = 'b')349 bus51 = pp.create_bus(net, name = 'bus51', vn_kv = 11, type = 'b')350 bus52 = pp.create_bus(net, name = 'bus52', vn_kv = 11, type = 'b')351 bus53 = pp.create_bus(net, name = 'bus53', vn_kv = 11, type = 'b')352 bus54 = pp.create_bus(net, name = 'bus54', vn_kv = 11, type = 'b')353 bus55 = pp.create_bus(net, name = 'bus55', vn_kv = 11, type = 'b')354 bus57 = pp.create_bus(net, name = 'bus57', vn_kv = 11, type = 'b')355 bus58 = pp.create_bus(net, name = 'bus58', vn_kv = 11, type = 'b')356 bus59 = pp.create_bus(net, name = 'bus59', vn_kv = 11, type = 'b')357 bus60 = pp.create_bus(net, name = 'bus60', vn_kv = 11, type = 'b')358 bus61 = pp.create_bus(net, name = 'bus61', vn_kv = 11, type = 'b')359 bus62 = pp.create_bus(net, name = 'bus62', vn_kv = 11, type = 'b')360 bus63 = pp.create_bus(net, name = 'bus63', vn_kv = 11, type = 'b')361 bus64 = pp.create_bus(net, name = 'bus64', vn_kv = 11, type = 'b')362 bus65 = pp.create_bus(net, name = 'bus65', vn_kv = 11, type = 'b')363 bus66 = pp.create_bus(net, name = 'bus66', vn_kv = 11, type = 'b')364 bus67 = pp.create_bus(net, name = 'bus67', vn_kv = 11, type = 'b')365 bus68 = pp.create_bus(net, name = 'bus68', vn_kv = 11, type = 'b')366 bus69 = pp.create_bus(net, name = 'bus69', vn_kv = 11, type = 'b')367 bus70 = pp.create_bus(net, name = 'bus70', vn_kv = 11, type = 'b')368 bus71 = pp.create_bus(net, name = 'bus71', vn_kv = 11, type = 'b')369 bus72 = pp.create_bus(net, name = 'bus72', vn_kv = 11, type = 'b')370 bus73 = pp.create_bus(net, name = 'bus73', vn_kv = 11, type = 'b')371 bus74 = pp.create_bus(net, name = 'bus74', vn_kv = 11, type = 'b')372 bus75 = pp.create_bus(net, name = 'bus75', vn_kv = 11, type = 'b')373 bus76 = pp.create_bus(net, name = 'bus76', vn_kv = 11, type = 'b')374 bus77 = pp.create_bus(net, name = 'bus77', vn_kv = 11, type = 'b')375 bus78 = pp.create_bus(net, name = 'bus78', vn_kv = 11, type = 'b')376 bus79 = pp.create_bus(net, name = 'bus79', vn_kv = 11, type = 'b')377 bus80 = pp.create_bus(net, name = 'bus80', vn_kv = 11, type = 'b')378 bus81 = pp.create_bus(net, name = 'bus81', vn_kv = 11, type = 'b')379 bus82 = pp.create_bus(net, name = 'bus82', vn_kv = 11, type = 'b')380 bus83 = pp.create_bus(net, name = 'bus83', vn_kv = 11, type = 'b')381 bus84 = pp.create_bus(net, name = 'bus84', vn_kv = 11, type = 'b')382 bus85 = pp.create_bus(net, name = 'bus85', vn_kv = 11, type = 'b')383 bus86 = pp.create_bus(net, name = 'bus86', vn_kv = 11, type = 'b')384 bus87 = pp.create_bus(net, name = 'bus87', vn_kv = 11, type = 'b')385 bus88 = pp.create_bus(net, name = 'bus88', vn_kv = 11, type = 'b')386 bus89 = pp.create_bus(net, name = 'bus89', vn_kv = 11, type = 'b')387 bus90 = pp.create_bus(net, name = 'bus90', vn_kv = 11, type = 'b')388 bus92 = pp.create_bus(net, name = 'bus92', vn_kv = 11, type = 'b')389 bus93 = pp.create_bus(net, name = 'bus93', vn_kv = 11, type = 'b')390 bus94 = pp.create_bus(net, name = 'bus94', vn_kv = 11, type = 'b')391 bus95 = pp.create_bus(net, name = 'bus95', vn_kv = 11, type = 'b')392 bus96 = pp.create_bus(net, name = 'bus96', vn_kv = 11, type = 'b')393 bus97 = pp.create_bus(net, name = 'bus97', vn_kv = 11, type = 'b')394 bus98 = pp.create_bus(net, name = 'bus98', vn_kv = 11, type = 'b')395 bus99 = pp.create_bus(net, name = 'bus99', vn_kv = 11, type = 'b')396 bus100 = pp.create_bus(net, name = 'bus100', vn_kv = 11, type = 'b')397 bus101 = pp.create_bus(net, name = 'bus101', vn_kv = 11, type = 'b')398 bus102 = pp.create_bus(net, name = 'bus102', vn_kv = 11, type = 'b')399 bus104 = pp.create_bus(net, name = 'bus104', vn_kv = 11, type = 'b')400 bus105 = pp.create_bus(net, name = 'bus105', vn_kv = 11, type = 'b')401 bus106 = pp.create_bus(net, name = 'bus106', vn_kv = 11, type = 'b')402 bus107 = pp.create_bus(net, name = 'bus107', vn_kv = 11, type = 'b')403 bus108 = pp.create_bus(net, name = 'bus108', vn_kv = 11, type = 'b')404 bus109 = pp.create_bus(net, name = 'bus109', vn_kv = 11, type = 'b')405 bus110 = pp.create_bus(net, name = 'bus110', vn_kv = 11, type = 'b')406 bus111 = pp.create_bus(net, name = 'bus111', vn_kv = 11, type = 'b')407 bus112 = pp.create_bus(net, name = 'bus112', vn_kv = 11, type = 'b')408 bus113 = pp.create_bus(net, name = 'bus113', vn_kv = 11, type = 'b')409 bus114 = pp.create_bus(net, name = 'bus114', vn_kv = 11, type = 'b')410 bus115 = pp.create_bus(net, name = 'bus115', vn_kv = 11, type = 'b')411 bus116 = pp.create_bus(net, name = 'bus116', vn_kv = 11, type = 'b')412 bus117 = pp.create_bus(net, name = 'bus117', vn_kv = 11, type = 'b')413 bus118 = pp.create_bus(net, name = 'bus118', vn_kv = 11, type = 'b')414 bus119 = pp.create_bus(net, name = 'bus119', vn_kv = 11, type = 'b')415 bus120 = pp.create_bus(net, name = 'bus120', vn_kv = 11, type = 'b')416 bus121 = pp.create_bus(net, name = 'bus121', vn_kv = 11, type = 'b')417 bus122 = pp.create_bus(net, name = 'bus122', vn_kv = 11, type = 'b')418 # Slack buses (the power sources)419 pp.create_ext_grid(net, bus = bus0, vm_pu = 1)420 load1 = pp.create_load(net, bus1, p_mw = 0.1338400, q_mvar = 0.10114, name = 'load1')421 load2 = pp.create_load(net, bus2, p_mw = 0.016214, q_mvar = 0.011292, name = 'load2')422 load3 = pp.create_load(net, bus3, p_mw = 0.034315, q_mvar = 0.021845, name = 'load3')423 load4 = pp.create_load(net, bus4, p_mw = 0.073016, q_mvar = 0.0636019, name = 'load4')424 load5 = pp.create_load(net, bus5, p_mw = 0.1442, q_mvar = 0.068604, name = 'load5')425 load6 = pp.create_load(net, bus6, p_mw = 0.1044700, q_mvar = 0.061725, name = 'load6')426 load7 = pp.create_load(net, bus7, p_mw = 0.0285470, q_mvar = 0.011503, name = 'load7')427 load8 = pp.create_load(net, bus8, p_mw = 0.08756, q_mvar = 0.051073, name = 'load8')428 load9 = pp.create_load(net, bus9, p_mw = 0.1982, q_mvar = 0.10677, name = 'load9')429 load10 = pp.create_load(net, bus10, p_mw = 0.1468, q_mvar = 0.0759950, name = 'load10')430 load11 = pp.create_load(net, bus11, p_mw = 0.0260399, q_mvar = 0.018687, name = 'load11')431 load12 = pp.create_load(net, bus12, p_mw = 0.0521, q_mvar = 0.0232199, name = 'load12')432 load13 = pp.create_load(net, bus13, p_mw = 0.1419, q_mvar = 0.1175, name = 'load13')433 load14 = pp.create_load(net, bus14, p_mw = 0.02187, q_mvar = 0.0287899, name = 'load14')434 load15 = pp.create_load(net, bus15, p_mw = 0.03337, q_mvar = 0.02645, name = 'load15')435 load16 = pp.create_load(net, bus16, p_mw = 0.03243, q_mvar = 0.0252300, name = 'load16')436 load17 = pp.create_load(net, bus17, p_mw = 0.0202340, q_mvar = 0.011906, name = 'load17')437 load18 = pp.create_load(net, bus18, p_mw = 0.15694, q_mvar = 0.078523, name = 'load18')438 load19 = pp.create_load(net, bus19, p_mw = 0.5462899, q_mvar = 0.3514, name = 'load19')439 load20 = pp.create_load(net, bus20, p_mw = 0.18031, q_mvar = 0.1642, name = 'load20')440 load21 = pp.create_load(net, bus21, p_mw = 0.093167, q_mvar = 0.0545940, name = 'load21')441 load22 = pp.create_load(net, bus22, p_mw = 0.0851799, q_mvar = 0.03965, name = 'load22')442 load23 = pp.create_load(net, bus23, p_mw = 0.1681, q_mvar = 0.095178, name = 'load23')443 load24 = pp.create_load(net, bus24, p_mw = 0.12511, q_mvar = 0.15022, name = 'load24')444 load25 = pp.create_load(net, bus25, p_mw = 0.0160300, q_mvar = 0.02462, name = 'load25')445 load26 = pp.create_load(net, bus26, p_mw = 0.02603, q_mvar = 0.02462, name = 'load26')446 load28 = pp.create_load(net, bus28, p_mw = 0.5945600, q_mvar = 0.52262, name = 'load28')447 load29 = pp.create_load(net, bus29, p_mw = 0.12062, q_mvar = 0.0591169, name = 'load29')448 load30 = pp.create_load(net, bus30, p_mw = 0.10238, q_mvar = 0.0995539, name = 'load30')449 load31 = pp.create_load(net, bus31, p_mw = 0.5134, q_mvar = 0.3185, name = 'load31')450 load32 = pp.create_load(net, bus32, p_mw = 0.47525, q_mvar = 0.45614, name = 'load32')451 load33 = pp.create_load(net, bus33, p_mw = 0.15143, q_mvar = 0.1367900, name = 'load33')452 load34 = pp.create_load(net, bus34, p_mw = 0.20538, q_mvar = 0.083302, name = 'load34')453 load35 = pp.create_load(net, bus35, p_mw = 0.1316, q_mvar = 0.093082, name = 'load35')454 load36 = pp.create_load(net, bus36, p_mw = 0.4484, q_mvar = 0.36979, name = 'load36')455 load37 = pp.create_load(net, bus37, p_mw = 0.4405199, q_mvar = 0.32164, name = 'load37')456 load39 = pp.create_load(net, bus39, p_mw = 0.1125400, q_mvar = 0.055134, name = 'load39')457 load40 = pp.create_load(net, bus40, p_mw = 0.053963, q_mvar = 0.0389980, name = 'load40')458 load41 = pp.create_load(net, bus41, p_mw = 0.39305, q_mvar = 0.3426, name = 'load41')459 load42 = pp.create_load(net, bus42, p_mw = 0.3267400, q_mvar = 0.27856, name = 'load42')460 load43 = pp.create_load(net, bus43, p_mw = 0.5362600, q_mvar = 0.24024, name = 'load43')461 load44 = pp.create_load(net, bus44, p_mw = 0.0762470, q_mvar = 0.066562, name = 'load44')462 load45 = pp.create_load(net, bus45, p_mw = 0.0535200, q_mvar = 0.0397600, name = 'load45')463 load46 = pp.create_load(net, bus46, p_mw = 0.0403279, q_mvar = 0.031964, name = 'load46')464 load47 = pp.create_load(net, bus47, p_mw = 0.0396529, q_mvar = 0.0207580, name = 'load47')465 load48 = pp.create_load(net, bus48, p_mw = 0.066195, q_mvar = 0.042361, name = 'load48')466 load49 = pp.create_load(net, bus49, p_mw = 0.073904, q_mvar = 0.051653, name = 'load49')467 load50 = pp.create_load(net, bus50, p_mw = 0.1147700, q_mvar = 0.0579649, name = 'load50')468 load51 = pp.create_load(net, bus51, p_mw = 0.91837, q_mvar = 1.2051, name = 'load51')469 load52 = pp.create_load(net, bus52, p_mw = 0.2103, q_mvar = 0.1466599, name = 'load52')470 load53 = pp.create_load(net, bus53, p_mw = 0.0666799, q_mvar = 0.0566080, name = 'load53')471 load54 = pp.create_load(net, bus54, p_mw = 0.042207, q_mvar = 0.040184, name = 'load54')472 load55 = pp.create_load(net, bus55, p_mw = 0.4337399, q_mvar = 0.28341, name = 'load55')473 load57 = pp.create_load(net, bus57, p_mw = 0.0621, q_mvar = 0.0268600, name = 'load57')474 load58 = pp.create_load(net, bus58, p_mw = 0.09246, q_mvar = 0.08838, name = 'load58')475 load59 = pp.create_load(net, bus59, p_mw = 0.085188, q_mvar = 0.055436, name = 'load59')476 load60 = pp.create_load(net, bus60, p_mw = 0.3453, q_mvar = 0.3324, name = 'load60')477 load61 = pp.create_load(net, bus61, p_mw = 0.0225, q_mvar = 0.01683, name = 'load61')478 load62 = pp.create_load(net, bus62, p_mw = 0.080551, q_mvar = 0.049156, name = 'load62')479 load63 = pp.create_load(net, bus63, p_mw = 0.09586, q_mvar = 0.090758, name = 'load63')480 load64 = pp.create_load(net, bus64, p_mw = 0.06292, q_mvar = 0.0477, name = 'load64')481 load65 = pp.create_load(net, bus65, p_mw = 0.4788, q_mvar = 0.46374, name = 'load65')482 load66 = pp.create_load(net, bus66, p_mw = 0.12094, q_mvar = 0.052006, name = 'load66')483 load67 = pp.create_load(net, bus67, p_mw = 0.1391099, q_mvar = 0.10034, name = 'load67')484 load68 = pp.create_load(net, bus68, p_mw = 0.39178, q_mvar = 0.1935, name = 'load68')485 load69 = pp.create_load(net, bus69, p_mw = 0.0277410, q_mvar = 0.026713, name = 'load69')486 load70 = pp.create_load(net, bus70, p_mw = 0.052814, q_mvar = 0.0252569, name = 'load70')487 load71 = pp.create_load(net, bus71, p_mw = 0.0668899, q_mvar = 0.038713, name = 'load71')488 load72 = pp.create_load(net, bus72, p_mw = 0.4675, q_mvar = 0.39514, name = 'load72')489 load73 = pp.create_load(net, bus73, p_mw = 0.59485, q_mvar = 0.23974, name = 'load73')490 load74 = pp.create_load(net, bus74, p_mw = 0.1325, q_mvar = 0.084363, name = 'load74')491 load75 = pp.create_load(net, bus75, p_mw = 0.052699, q_mvar = 0.022482, name = 'load75')492 load76 = pp.create_load(net, bus76, p_mw = 0.86979, q_mvar = 0.614775, name = 'load76')493 load77 = pp.create_load(net, bus77, p_mw = 0.031349, q_mvar = 0.0298170, name = 'load77')494 load78 = pp.create_load(net, bus78, p_mw = 0.19239, q_mvar = 0.12243, name = 'load78')495 load79 = pp.create_load(net, bus79, p_mw = 0.06575, q_mvar = 0.04537, name = 'load79')496 load80 = pp.create_load(net, bus80, p_mw = 0.23815, q_mvar = 0.2232199, name = 'load80')497 load81 = pp.create_load(net, bus81, p_mw = 0.29455, q_mvar = 0.16247, name = 'load81')498 load82 = pp.create_load(net, bus82, p_mw = 0.48557, q_mvar = 0.43792, name = 'load82')499 load83 = pp.create_load(net, bus83, p_mw = 0.2435300, q_mvar = 0.18303, name = 'load83')500 load84 = pp.create_load(net, bus84, p_mw = 0.2435300, q_mvar = 0.18303, name = 'load84')501 load85 = pp.create_load(net, bus85, p_mw = 0.13425, q_mvar = 0.1192900, name = 'load85')502 load86 = pp.create_load(net, bus86, p_mw = 0.02271, q_mvar = 0.0279600, name = 'load86')503 load87 = pp.create_load(net, bus87, p_mw = 0.049513, q_mvar = 0.0265149, name = 'load87')504 load88 = pp.create_load(net, bus88, p_mw = 0.38378, q_mvar = 0.25716, name = 'load88')505 load89 = pp.create_load(net, bus89, p_mw = 0.04964, q_mvar = 0.0206, name = 'load89')506 load90 = pp.create_load(net, bus90, p_mw = 0.022473, q_mvar = 0.011806, name = 'load90')507 load92 = pp.create_load(net, bus92, p_mw = 0.06293, q_mvar = 0.0429600, name = 'load92')508 load93 = pp.create_load(net, bus93, p_mw = 0.03067, q_mvar = 0.03493, name = 'load93')509 load94 = pp.create_load(net, bus94, p_mw = 0.06253, q_mvar = 0.06679, name = 'load94')510 load95 = pp.create_load(net, bus95, p_mw = 0.11457, q_mvar = 0.081748, name = 'load95')511 load96 = pp.create_load(net, bus96, p_mw = 0.0812919, q_mvar = 0.066526, name = 'load96')512 load97 = pp.create_load(net, bus97, p_mw = 0.031733, q_mvar = 0.01596, name = 'load97')513 load98 = pp.create_load(net, bus98, p_mw = 0.0333199, q_mvar = 0.0604799, name = 'load98')514 load99 = pp.create_load(net, bus99, p_mw = 0.53128, q_mvar = 0.22485, name = 'load99')515 load100 = pp.create_load(net, bus100, p_mw = 0.50703, q_mvar = 0.3674199, name = 'load100')516 load101 = pp.create_load(net, bus101, p_mw = 0.0263899, q_mvar = 0.0117, name = 'load101')517 load102 = pp.create_load(net, bus102, p_mw = 0.0459899, q_mvar = 0.0303920, name = 'load102')518 load104 = pp.create_load(net, bus104, p_mw = 0.10066, q_mvar = 0.047572, name = 'load104')519 load105 = pp.create_load(net, bus105, p_mw = 0.45648, q_mvar = 0.3503, name = 'load105')520 load106 = pp.create_load(net, bus106, p_mw = 0.52256, q_mvar = 0.4492899, name = 'load106')521 load107 = pp.create_load(net, bus107, p_mw = 0.40843, q_mvar = 0.16846, name = 'load107')522 load108 = pp.create_load(net, bus108, p_mw = 0.14148, q_mvar = 0.13425, name = 'load108')523 load109 = pp.create_load(net, bus109, p_mw = 0.10443, q_mvar = 0.066024, name = 'load109')524 load110 = pp.create_load(net, bus110, p_mw = 0.0967929, q_mvar = 0.083647, name = 'load110')525 load111 = pp.create_load(net, bus111, p_mw = 0.4939199, q_mvar = 0.41934, name = 'load111')526 load112 = pp.create_load(net, bus112, p_mw = 0.2253800, q_mvar = 0.13588, name = 'load112')527 load113 = pp.create_load(net, bus113, p_mw = 0.50921, q_mvar = 0.38721, name = 'load113')528 load114 = pp.create_load(net, bus114, p_mw = 0.1885, q_mvar = 0.17346, name = 'load114')529 load115 = pp.create_load(net, bus115, p_mw = 0.9180299, q_mvar = 0.89855, name = 'load115')530 load116 = pp.create_load(net, bus116, p_mw = 0.30508, q_mvar = 0.2153699, name = 'load116')531 load117 = pp.create_load(net, bus117, p_mw = 0.05438, q_mvar = 0.04097, name = 'load117')532 load118 = pp.create_load(net, bus118, p_mw = 0.2111400, q_mvar = 0.1929, name = 'load118')533 load119 = pp.create_load(net, bus119, p_mw = 0.067009, q_mvar = 0.053336, name = 'load119')534 load120 = pp.create_load(net, bus120, p_mw = 0.16207, q_mvar = 0.090321, name = 'load120')535 load121 = pp.create_load(net, bus121, p_mw = 0.048785, q_mvar = 0.029156, name = 'load121')536 load122 = pp.create_load(net, bus122, p_mw = 0.0339, q_mvar = 0.01898, name = 'load122')537 # Instantiation of lines (classified)538 line0 = pp.create_line_from_parameters(net, bus0, bus1, length_km = 1.0, r_ohm_per_km = 0.0360, x_ohm_per_km = 0.01296, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line0')539 line1 = pp.create_line_from_parameters(net, bus1, bus2, length_km = 1.0, r_ohm_per_km = 0.033, x_ohm_per_km = 0.01188, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line1')540 line2 = pp.create_line_from_parameters(net, bus1, bus3, length_km = 1.0, r_ohm_per_km = 0.045, x_ohm_per_km = 0.0162, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line2')541 line3 = pp.create_line_from_parameters(net, bus3, bus4, length_km = 1.0, r_ohm_per_km = 0.015, x_ohm_per_km = 0.0540, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line3')542 line4 = pp.create_line_from_parameters(net, bus4, bus5, length_km = 1.0, r_ohm_per_km = 0.015, x_ohm_per_km = 0.0540, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line4')543 line5 = pp.create_line_from_parameters(net, bus5, bus6, length_km = 1.0, r_ohm_per_km = 0.015, x_ohm_per_km = 0.0125, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line5')544 line6 = pp.create_line_from_parameters(net, bus6, bus7, length_km = 1.0, r_ohm_per_km = 0.0180, x_ohm_per_km = 0.0139, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line6')545 line7 = pp.create_line_from_parameters(net, bus7, bus8, length_km = 1.0, r_ohm_per_km = 0.021, x_ohm_per_km = 0.063, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line7')546 line8 = pp.create_line_from_parameters(net, bus1, bus9, length_km = 1.0, r_ohm_per_km = 0.166, x_ohm_per_km = 0.1344, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line8')547 line9 = pp.create_line_from_parameters(net, bus9, bus10, length_km = 1.0, r_ohm_per_km = 0.1119, x_ohm_per_km = 0.0789, c_nf_per_km = 9.2, max_i_ka = 0.74, name = 'line9')548 line10 = pp.create_line_from_parameters(net, bus10, bus11, length_km = 1.0, r_ohm_per_km = 0.187, x_ohm_per_km = 0.313, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line10')549 line11 = pp.create_line_from_parameters(net, bus11, bus12, length_km = 1.0, r_ohm_per_km = 0.142, x_ohm_per_km = 0.1512, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line11')550 line12 = pp.create_line_from_parameters(net, bus12, bus13, length_km = 1.0, r_ohm_per_km = 0.18, x_ohm_per_km = 0.1180, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line12')551 line13 = pp.create_line_from_parameters(net, bus13, bus14, length_km = 1.0, r_ohm_per_km = 0.15, x_ohm_per_km = 0.045, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line13')552 line14 = pp.create_line_from_parameters(net, bus14, bus15, length_km = 1.0, r_ohm_per_km = 0.16, x_ohm_per_km = 0.18, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line14')553 line15 = pp.create_line_from_parameters(net, bus15, bus16, length_km = 1.0, r_ohm_per_km = 0.157, x_ohm_per_km = 0.171, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line15')554 line16 = pp.create_line_from_parameters(net, bus10, bus17, length_km = 1.0, r_ohm_per_km = 0.218, x_ohm_per_km = 0.285, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line16')555 line17 = pp.create_line_from_parameters(net, bus17, bus18, length_km = 1.0, r_ohm_per_km = 0.1180, x_ohm_per_km = 0.185, c_nf_per_km = 9.2, max_i_ka = 0.74, name = 'line17')556 line18 = pp.create_line_from_parameters(net, bus18, bus19, length_km = 1.0, r_ohm_per_km = 0.16, x_ohm_per_km = 0.196, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line18')557 line19 = pp.create_line_from_parameters(net, bus19, bus20, length_km = 1.0, r_ohm_per_km = 0.12, x_ohm_per_km = 0.1889, c_nf_per_km = 9.2, max_i_ka = 0.74, name = 'line19')558 line20 = pp.create_line_from_parameters(net, bus20, bus21, length_km = 1.0, r_ohm_per_km = 0.12, x_ohm_per_km = 0.0789, c_nf_per_km = 9.2, max_i_ka = 0.74, name = 'line20')559 line21 = pp.create_line_from_parameters(net, bus21, bus22, length_km = 1.0, r_ohm_per_km = 1.41, x_ohm_per_km = 0.723, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line21')560 line22 = pp.create_line_from_parameters(net, bus22, bus23, length_km = 1.0, r_ohm_per_km = 0.293, x_ohm_per_km = 0.1348, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line22')561 line23 = pp.create_line_from_parameters(net, bus23, bus24, length_km = 1.0, r_ohm_per_km = 0.133, x_ohm_per_km = 0.1040, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line23')562 line24 = pp.create_line_from_parameters(net, bus24, bus25, length_km = 1.0, r_ohm_per_km = 0.1780, x_ohm_per_km = 0.134, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line24')563 line25 = pp.create_line_from_parameters(net, bus25, bus26, length_km = 1.0, r_ohm_per_km = 0.1780, x_ohm_per_km = 0.134, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line25')564 line26 = pp.create_line_from_parameters(net, bus3, bus28, length_km = 1.0, r_ohm_per_km = 0.015, x_ohm_per_km = 0.0296, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line26')565 line27 = pp.create_line_from_parameters(net, bus28, bus29, length_km = 1.0, r_ohm_per_km = 0.012, x_ohm_per_km = 0.0276, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line27')566 line28 = pp.create_line_from_parameters(net, bus29, bus30, length_km = 1.0, r_ohm_per_km = 0.12, x_ohm_per_km = 0.2766, c_nf_per_km = 9.2, max_i_ka = 0.74, name = 'line28')567 line29 = pp.create_line_from_parameters(net, bus30, bus31, length_km = 1.0, r_ohm_per_km = 0.21, x_ohm_per_km = 0.243, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line29')568 line30 = pp.create_line_from_parameters(net, bus31, bus32, length_km = 1.0, r_ohm_per_km = 0.12, x_ohm_per_km = 0.0540, c_nf_per_km = 9.2, max_i_ka = 0.74, name = 'line30')569 line31 = pp.create_line_from_parameters(net, bus32, bus33, length_km = 1.0, r_ohm_per_km = 0.1780, x_ohm_per_km = 0.2339, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line31')570 line32 = pp.create_line_from_parameters(net, bus33, bus34, length_km = 1.0, r_ohm_per_km = 0.1780, x_ohm_per_km = 0.2339, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line32')571 line33 = pp.create_line_from_parameters(net, bus34, bus35, length_km = 1.0, r_ohm_per_km = 0.154, x_ohm_per_km = 0.162, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line33')572 line34 = pp.create_line_from_parameters(net, bus30, bus36, length_km = 1.0, r_ohm_per_km = 0.187, x_ohm_per_km = 0.261, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line34')573 line35 = pp.create_line_from_parameters(net, bus36, bus37, length_km = 1.0, r_ohm_per_km = 0.133, x_ohm_per_km = 0.099, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line35')574 line36 = pp.create_line_from_parameters(net, bus29, bus39, length_km = 1.0, r_ohm_per_km = 0.33, x_ohm_per_km = 0.1939, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line36')575 line37 = pp.create_line_from_parameters(net, bus39, bus40, length_km = 1.0, r_ohm_per_km = 0.31, x_ohm_per_km = 0.1939, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line37')576 line38 = pp.create_line_from_parameters(net, bus40, bus41, length_km = 1.0, r_ohm_per_km = 0.13, x_ohm_per_km = 0.1939, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line38')577 line39 = pp.create_line_from_parameters(net, bus41, bus42, length_km = 1.0, r_ohm_per_km = 0.28, x_ohm_per_km = 0.15, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line39')578 line40 = pp.create_line_from_parameters(net, bus42, bus43, length_km = 1.0, r_ohm_per_km = 1.18, x_ohm_per_km = 0.85, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line40')579 line41 = pp.create_line_from_parameters(net, bus43, bus44, length_km = 1.0, r_ohm_per_km = 0.42, x_ohm_per_km = 0.2436, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line41')580 line42 = pp.create_line_from_parameters(net, bus44, bus45, length_km = 1.0, r_ohm_per_km = 0.27, x_ohm_per_km = 0.0972, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line42')581 line43 = pp.create_line_from_parameters(net, bus45, bus46, length_km = 1.0, r_ohm_per_km = 0.3389, x_ohm_per_km = 0.1221, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line43')582 line44 = pp.create_line_from_parameters(net, bus46, bus47, length_km = 1.0, r_ohm_per_km = 0.27, x_ohm_per_km = 0.1779, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line44')583 line45 = pp.create_line_from_parameters(net, bus35, bus48, length_km = 1.0, r_ohm_per_km = 0.21, x_ohm_per_km = 0.1383, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line45')584 line46 = pp.create_line_from_parameters(net, bus48, bus49, length_km = 1.0, r_ohm_per_km = 0.12, x_ohm_per_km = 0.0789, c_nf_per_km = 9.2, max_i_ka = 0.74, name = 'line46')585 line47 = pp.create_line_from_parameters(net, bus49, bus50, length_km = 1.0, r_ohm_per_km = 0.15, x_ohm_per_km = 0.0987, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line47')586 line48 = pp.create_line_from_parameters(net, bus50, bus51, length_km = 1.0, r_ohm_per_km = 0.15, x_ohm_per_km = 0.0987, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line48')587 line49 = pp.create_line_from_parameters(net, bus51, bus52, length_km = 1.0, r_ohm_per_km = 0.24, x_ohm_per_km = 0.1581, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line49')588 line50 = pp.create_line_from_parameters(net, bus52, bus53, length_km = 1.0, r_ohm_per_km = 0.12, x_ohm_per_km = 0.0789, c_nf_per_km = 9.2, max_i_ka = 0.74, name = 'line50')589 line51 = pp.create_line_from_parameters(net, bus53, bus54, length_km = 1.0, r_ohm_per_km = 0.405, x_ohm_per_km = 0.1458, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line51')590 line52 = pp.create_line_from_parameters(net, bus54, bus55, length_km = 1.0, r_ohm_per_km = 0.405, x_ohm_per_km = 0.1458, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line52')591 line53 = pp.create_line_from_parameters(net, bus29, bus57, length_km = 1.0, r_ohm_per_km = 0.391, x_ohm_per_km = 0.141, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line53')592 line54 = pp.create_line_from_parameters(net, bus57, bus58, length_km = 1.0, r_ohm_per_km = 0.406, x_ohm_per_km = 0.1461, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line54')593 line55 = pp.create_line_from_parameters(net, bus58, bus59, length_km = 1.0, r_ohm_per_km = 0.406, x_ohm_per_km = 0.1461, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line55')594 line56 = pp.create_line_from_parameters(net, bus59, bus60, length_km = 1.0, r_ohm_per_km = 0.706, x_ohm_per_km = 0.5461, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line56')595 line57 = pp.create_line_from_parameters(net, bus60, bus61, length_km = 1.0, r_ohm_per_km = 0.3379, x_ohm_per_km = 0.1218, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line57')596 line58 = pp.create_line_from_parameters(net, bus61, bus62, length_km = 1.0, r_ohm_per_km = 0.3379, x_ohm_per_km = 0.1218, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line58')597 line59 = pp.create_line_from_parameters(net, bus62, bus63, length_km = 1.0, r_ohm_per_km = 0.207, x_ohm_per_km = 0.0747, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line59')598 line60 = pp.create_line_from_parameters(net, bus63, bus64, length_km = 1.0, r_ohm_per_km = 0.247, x_ohm_per_km = 0.8922, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line60')599 line61 = pp.create_line_from_parameters(net, bus0, bus65, length_km = 1.0, r_ohm_per_km = 0.0279, x_ohm_per_km = 0.0418, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line61')600 line62 = pp.create_line_from_parameters(net, bus65, bus66, length_km = 1.0, r_ohm_per_km = 0.1169, x_ohm_per_km = 0.2016, c_nf_per_km = 9.2, max_i_ka = 0.74, name = 'line62')601 line63 = pp.create_line_from_parameters(net, bus66, bus67, length_km = 1.0, r_ohm_per_km = 0.255, x_ohm_per_km = 0.0918, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line63')602 line64 = pp.create_line_from_parameters(net, bus67, bus68, length_km = 1.0, r_ohm_per_km = 0.21, x_ohm_per_km = 0.0759, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line64')603 line65 = pp.create_line_from_parameters(net, bus68, bus69, length_km = 1.0, r_ohm_per_km = 0.3829, x_ohm_per_km = 0.138, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line65')604 line66 = pp.create_line_from_parameters(net, bus69, bus70, length_km = 1.0, r_ohm_per_km = 0.504, x_ohm_per_km = 0.3303, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line66')605 line67 = pp.create_line_from_parameters(net, bus70, bus71, length_km = 1.0, r_ohm_per_km = 0.406, x_ohm_per_km = 0.1461, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line67')606 line68 = pp.create_line_from_parameters(net, bus71, bus72, length_km = 1.0, r_ohm_per_km = 0.9620, x_ohm_per_km = 0.7609, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line68')607 line69 = pp.create_line_from_parameters(net, bus72, bus73, length_km = 1.0, r_ohm_per_km = 0.165, x_ohm_per_km = 0.06, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line69')608 line70 = pp.create_line_from_parameters(net, bus73, bus74, length_km = 1.0, r_ohm_per_km = 0.303, x_ohm_per_km = 0.1092, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line70')609 line71 = pp.create_line_from_parameters(net, bus74, bus75, length_km = 1.0, r_ohm_per_km = 0.303, x_ohm_per_km = 0.1092, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line71')610 line72 = pp.create_line_from_parameters(net, bus75, bus76, length_km = 1.0, r_ohm_per_km = 0.2060, x_ohm_per_km = 0.1440, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line72')611 line73 = pp.create_line_from_parameters(net, bus76, bus77, length_km = 1.0, r_ohm_per_km = 0.233, x_ohm_per_km = 0.084, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line73')612 line74 = pp.create_line_from_parameters(net, bus77, bus78, length_km = 1.0, r_ohm_per_km = 0.591, x_ohm_per_km = 0.1773, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line74')613 line75 = pp.create_line_from_parameters(net, bus78, bus79, length_km = 1.0, r_ohm_per_km = 0.126, x_ohm_per_km = 0.0453, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line75')614 line76 = pp.create_line_from_parameters(net, bus66, bus80, length_km = 1.0, r_ohm_per_km = 0.5589, x_ohm_per_km = 0.3687, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line76')615 line77 = pp.create_line_from_parameters(net, bus80, bus81, length_km = 1.0, r_ohm_per_km = 0.1860, x_ohm_per_km = 0.1227, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line77')616 line78 = pp.create_line_from_parameters(net, bus81, bus82, length_km = 1.0, r_ohm_per_km = 0.1860, x_ohm_per_km = 0.1227, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line78')617 line79 = pp.create_line_from_parameters(net, bus82, bus83, length_km = 1.0, r_ohm_per_km = 0.26, x_ohm_per_km = 0.139, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line79')618 line80 = pp.create_line_from_parameters(net, bus83, bus84, length_km = 1.0, r_ohm_per_km = 0.154, x_ohm_per_km = 0.1480, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line80')619 line81 = pp.create_line_from_parameters(net, bus84, bus85, length_km = 1.0, r_ohm_per_km = 0.23, x_ohm_per_km = 0.128, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line81')620 line82 = pp.create_line_from_parameters(net, bus85, bus86, length_km = 1.0, r_ohm_per_km = 0.252, x_ohm_per_km = 0.106, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line82')621 line83 = pp.create_line_from_parameters(net, bus86, bus87, length_km = 1.0, r_ohm_per_km = 0.18, x_ohm_per_km = 0.1480, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line83')622 line84 = pp.create_line_from_parameters(net, bus81, bus88, length_km = 1.0, r_ohm_per_km = 0.16, x_ohm_per_km = 0.182, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line84')623 line85 = pp.create_line_from_parameters(net, bus88, bus89, length_km = 1.0, r_ohm_per_km = 0.2, x_ohm_per_km = 0.23, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line85')624 line86 = pp.create_line_from_parameters(net, bus89, bus90, length_km = 1.0, r_ohm_per_km = 0.16, x_ohm_per_km = 0.3929, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line86')625 line87 = pp.create_line_from_parameters(net, bus67, bus92, length_km = 1.0, r_ohm_per_km = 0.669, x_ohm_per_km = 0.2412, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line87')626 line88 = pp.create_line_from_parameters(net, bus92, bus93, length_km = 1.0, r_ohm_per_km = 0.266, x_ohm_per_km = 0.1227, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line88')627 line89 = pp.create_line_from_parameters(net, bus93, bus94, length_km = 1.0, r_ohm_per_km = 0.266, x_ohm_per_km = 0.1227, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line89')628 line90 = pp.create_line_from_parameters(net, bus94, bus95, length_km = 1.0, r_ohm_per_km = 0.266, x_ohm_per_km = 0.1227, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line90')629 line91 = pp.create_line_from_parameters(net, bus95, bus96, length_km = 1.0, r_ohm_per_km = 0.266, x_ohm_per_km = 0.1227, c_nf_per_km = 8.5, max_i_ka = 0.41, name = 'line91')630 line92 = pp.create_line_from_parameters(net, bus96, bus97, length_km = 1.0, r_ohm_per_km = 0.233, x_ohm_per_km = 0.115, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line92')631 line93 = pp.create_line_from_parameters(net, bus97, bus98, length_km = 1.0, r_ohm_per_km = 0.496, x_ohm_per_km = 0.138, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line93')632 line94 = pp.create_line_from_parameters(net, bus94, bus99, length_km = 1.0, r_ohm_per_km = 0.196, x_ohm_per_km = 0.18, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line94')633 line95 = pp.create_line_from_parameters(net, bus99, bus100, length_km = 1.0, r_ohm_per_km = 0.196, x_ohm_per_km = 0.18, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line95')634 line96 = pp.create_line_from_parameters(net, bus100, bus101, length_km = 1.0, r_ohm_per_km = 0.1866, x_ohm_per_km = 0.122, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line96')635 line97 = pp.create_line_from_parameters(net, bus101, bus102, length_km = 1.0, r_ohm_per_km = 0.0746, x_ohm_per_km = 0.318, c_nf_per_km = 9.75, max_i_ka = 0.96, name = 'line97')636 line98 = pp.create_line_from_parameters(net, bus0, bus104, length_km = 1.0, r_ohm_per_km = 0.0625, x_ohm_per_km = 0.0265, c_nf_per_km = 9.75, max_i_ka = 0.96, name = 'line98')637 line99 = pp.create_line_from_parameters(net, bus104, bus105, length_km = 1.0, r_ohm_per_km = 0.1501, x_ohm_per_km = 0.2339, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line99')638 line100 = pp.create_line_from_parameters(net, bus105, bus106, length_km = 1.0, r_ohm_per_km = 0.1347, x_ohm_per_km = 0.0888, c_nf_per_km = 9.0, max_i_ka = 0.645, name = 'line100')639 line101 = pp.create_line_from_parameters(net, bus106, bus107, length_km = 1.0, r_ohm_per_km = 0.2307, x_ohm_per_km = 0.1203, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line101')640 line102 = pp.create_line_from_parameters(net, bus107, bus108, length_km = 1.0, r_ohm_per_km = 0.447, x_ohm_per_km = 0.1608, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line102')641 line103 = pp.create_line_from_parameters(net, bus108, bus109, length_km = 1.0, r_ohm_per_km = 0.1632, x_ohm_per_km = 0.0588, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line103')642 line104 = pp.create_line_from_parameters(net, bus109, bus110, length_km = 1.0, r_ohm_per_km = 0.33, x_ohm_per_km = 0.099, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line104')643 line105 = pp.create_line_from_parameters(net, bus110, bus111, length_km = 1.0, r_ohm_per_km = 0.156, x_ohm_per_km = 0.0561, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line105')644 line106 = pp.create_line_from_parameters(net, bus111, bus112, length_km = 1.0, r_ohm_per_km = 0.3819, x_ohm_per_km = 0.1374, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line106')645 line107 = pp.create_line_from_parameters(net, bus112, bus113, length_km = 1.0, r_ohm_per_km = 0.1626, x_ohm_per_km = 0.0585, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line107')646 line108 = pp.create_line_from_parameters(net, bus113, bus114, length_km = 1.0, r_ohm_per_km = 0.3819, x_ohm_per_km = 0.1374, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line108')647 line109 = pp.create_line_from_parameters(net, bus114, bus115, length_km = 1.0, r_ohm_per_km = 0.2445, x_ohm_per_km = 0.0879, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line109')648 line110 = pp.create_line_from_parameters(net, bus114, bus116, length_km = 1.0, r_ohm_per_km = 0.2088, x_ohm_per_km = 0.0753, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line110')649 line111 = pp.create_line_from_parameters(net, bus116, bus117, length_km = 1.0, r_ohm_per_km = 0.2301, x_ohm_per_km = 0.0828, c_nf_per_km = 8.75, max_i_ka = 0.47, name = 'line111')650 line112 = pp.create_line_from_parameters(net, bus104, bus118, length_km = 1.0, r_ohm_per_km = 0.6102, x_ohm_per_km = 0.2196, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line112')651 line113 = pp.create_line_from_parameters(net, bus118, bus119, length_km = 1.0, r_ohm_per_km = 0.1866, x_ohm_per_km = 0.127, c_nf_per_km = 8.8, max_i_ka = 0.535, name = 'line113')652 line114 = pp.create_line_from_parameters(net, bus119, bus120, length_km = 1.0, r_ohm_per_km = 0.3732, x_ohm_per_km = 0.2460, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line114')653 line115 = pp.create_line_from_parameters(net, bus120, bus121, length_km = 1.0, r_ohm_per_km = 0.405, x_ohm_per_km = 0.3670, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line115')654 line116 = pp.create_line_from_parameters(net, bus121, bus122, length_km = 1.0, r_ohm_per_km = 0.489, x_ohm_per_km = 0.4379, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line116')655 line117 = pp.create_line_from_parameters(net, bus47, bus26, length_km = 1.0, r_ohm_per_km = 0.5258, x_ohm_per_km = 0.2925, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line117')656 line118 = pp.create_line_from_parameters(net, bus16, bus26, length_km = 1.0, r_ohm_per_km = 0.5258, x_ohm_per_km = 0.2916, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line118')657 line119 = pp.create_line_from_parameters(net, bus7, bus23, length_km = 1.0, r_ohm_per_km = 0.4272, x_ohm_per_km = 0.1539, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line119')658 line120 = pp.create_line_from_parameters(net, bus55, bus44, length_km = 1.0, r_ohm_per_km = 0.48, x_ohm_per_km = 0.1728, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line120')659 line121 = pp.create_line_from_parameters(net, bus64, bus50, length_km = 1.0, r_ohm_per_km = 0.36, x_ohm_per_km = 0.1296, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line121')660 line122 = pp.create_line_from_parameters(net, bus37, bus64, length_km = 1.0, r_ohm_per_km = 0.57, x_ohm_per_km = 0.5720, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line122')661 line123 = pp.create_line_from_parameters(net, bus8, bus41, length_km = 1.0, r_ohm_per_km = 0.53, x_ohm_per_km = 0.3348, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line123')662 line124 = pp.create_line_from_parameters(net, bus60, bus99, length_km = 1.0, r_ohm_per_km = 0.3957, x_ohm_per_km = 0.1425, c_nf_per_km = 8.65, max_i_ka = 0.35, name = 'line124')663 line125 = pp.create_line_from_parameters(net, bus75, bus94, length_km = 1.0, r_ohm_per_km = 0.68, x_ohm_per_km = 0.648, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line125')664 line126 = pp.create_line_from_parameters(net, bus90, bus77, length_km = 1.0, r_ohm_per_km = 0.4062, x_ohm_per_km = 0.1464, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line126')665 line127 = pp.create_line_from_parameters(net, bus102, bus79, length_km = 1.0, r_ohm_per_km = 0.4626, x_ohm_per_km = 0.1674, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line127')666 line128 = pp.create_line_from_parameters(net, bus112, bus85, length_km = 1.0, r_ohm_per_km = 0.6509, x_ohm_per_km = 0.2339, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line128')667 line129 = pp.create_line_from_parameters(net, bus109, bus88, length_km = 1.0, r_ohm_per_km = 0.8125, x_ohm_per_km = 0.2925, c_nf_per_km = 9.95, max_i_ka = 1.15, name = 'line129')668 line130 = pp.create_line_from_parameters(net, bus114, bus122, length_km = 1.0, r_ohm_per_km = 0.7089, x_ohm_per_km = 0.2553, c_nf_per_km = 8.0, max_i_ka = 0.21, name = 'line130')669 line131 = pp.create_line_from_parameters(net, bus24, bus35, length_km = 1.0, r_ohm_per_km = 0.5, x_ohm_per_km = 0.5, c_nf_per_km = 8.4, max_i_ka = 0.29, name = 'line131')670 sw0 = pp.create_switch(net, bus1, line0, et = 'l', type = 'LBS', closed = True, name = 'sw0')671 sw1 = pp.create_switch(net, bus2, line1, et = 'l', type = 'LBS', closed = True, name = 'sw1')672 sw2 = pp.create_switch(net, bus3, line2, et = 'l', type = 'LBS', closed = True, name = 'sw2')673 sw3 = pp.create_switch(net, bus4, line3, et = 'l', type = 'LBS', closed = True, name = 'sw3')674 sw4 = pp.create_switch(net, bus5, line4, et = 'l', type = 'LBS', closed = True, name = 'sw4')675 sw5 = pp.create_switch(net, bus6, line5, et = 'l', type = 'LBS', closed = True, name = 'sw5')676 sw6 = pp.create_switch(net, bus7, line6, et = 'l', type = 'LBS', closed = True, name = 'sw6')677 sw7 = pp.create_switch(net, bus8, line7, et = 'l', type = 'LBS', closed = True, name = 'sw7')678 sw8 = pp.create_switch(net, bus9, line8, et = 'l', type = 'LBS', closed = True, name = 'sw8')679 sw9 = pp.create_switch(net, bus10, line9, et = 'l', type = 'LBS', closed = True, name = 'sw9')680 sw10 = pp.create_switch(net, bus11, line10, et = 'l', type = 'LBS', closed = True, name = 'sw10')681 sw11 = pp.create_switch(net, bus12, line11, et = 'l', type = 'LBS', closed = True, name = 'sw11')682 sw12 = pp.create_switch(net, bus13, line12, et = 'l', type = 'LBS', closed = True, name = 'sw12')683 sw13 = pp.create_switch(net, bus14, line13, et = 'l', type = 'LBS', closed = True, name = 'sw13')684 sw14 = pp.create_switch(net, bus15, line14, et = 'l', type = 'LBS', closed = True, name = 'sw14')685 sw15 = pp.create_switch(net, bus16, line15, et = 'l', type = 'LBS', closed = True, name = 'sw15')686 sw16 = pp.create_switch(net, bus17, line16, et = 'l', type = 'LBS', closed = True, name = 'sw16')687 sw17 = pp.create_switch(net, bus18, line17, et = 'l', type = 'LBS', closed = True, name = 'sw17')688 sw18 = pp.create_switch(net, bus19, line18, et = 'l', type = 'LBS', closed = True, name = 'sw18')689 sw19 = pp.create_switch(net, bus20, line19, et = 'l', type = 'LBS', closed = True, name = 'sw19')690 sw20 = pp.create_switch(net, bus21, line20, et = 'l', type = 'LBS', closed = True, name = 'sw20')691 sw21 = pp.create_switch(net, bus22, line21, et = 'l', type = 'LBS', closed = True, name = 'sw21')692 sw22 = pp.create_switch(net, bus23, line22, et = 'l', type = 'LBS', closed = True, name = 'sw22')693 sw23 = pp.create_switch(net, bus24, line23, et = 'l', type = 'LBS', closed = True, name = 'sw23')694 sw24 = pp.create_switch(net, bus25, line24, et = 'l', type = 'LBS', closed = True, name = 'sw24')695 sw25 = pp.create_switch(net, bus26, line25, et = 'l', type = 'LBS', closed = True, name = 'sw25')696 sw26 = pp.create_switch(net, bus28, line26, et = 'l', type = 'LBS', closed = True, name = 'sw26')697 sw27 = pp.create_switch(net, bus29, line27, et = 'l', type = 'LBS', closed = True, name = 'sw27')698 sw28 = pp.create_switch(net, bus30, line28, et = 'l', type = 'LBS', closed = True, name = 'sw28')699 sw29 = pp.create_switch(net, bus31, line29, et = 'l', type = 'LBS', closed = True, name = 'sw29')700 sw30 = pp.create_switch(net, bus32, line30, et = 'l', type = 'LBS', closed = True, name = 'sw30')701 sw31 = pp.create_switch(net, bus33, line31, et = 'l', type = 'LBS', closed = True, name = 'sw31')702 sw32 = pp.create_switch(net, bus34, line32, et = 'l', type = 'LBS', closed = True, name = 'sw32')703 sw33 = pp.create_switch(net, bus35, line33, et = 'l', type = 'LBS', closed = True, name = 'sw33')704 sw34 = pp.create_switch(net, bus36, line34, et = 'l', type = 'LBS', closed = True, name = 'sw34')705 sw35 = pp.create_switch(net, bus37, line35, et = 'l', type = 'LBS', closed = True, name = 'sw35')706 sw36 = pp.create_switch(net, bus39, line36, et = 'l', type = 'LBS', closed = True, name = 'sw36')707 sw37 = pp.create_switch(net, bus40, line37, et = 'l', type = 'LBS', closed = True, name = 'sw37')708 sw38 = pp.create_switch(net, bus41, line38, et = 'l', type = 'LBS', closed = True, name = 'sw38')709 sw39 = pp.create_switch(net, bus42, line39, et = 'l', type = 'LBS', closed = True, name = 'sw39')710 sw40 = pp.create_switch(net, bus43, line40, et = 'l', type = 'LBS', closed = True, name = 'sw40')711 sw41 = pp.create_switch(net, bus44, line41, et = 'l', type = 'LBS', closed = True, name = 'sw41')712 sw42 = pp.create_switch(net, bus45, line42, et = 'l', type = 'LBS', closed = True, name = 'sw42')713 sw43 = pp.create_switch(net, bus46, line43, et = 'l', type = 'LBS', closed = True, name = 'sw43')714 sw44 = pp.create_switch(net, bus47, line44, et = 'l', type = 'LBS', closed = True, name = 'sw44')715 sw45 = pp.create_switch(net, bus48, line45, et = 'l', type = 'LBS', closed = True, name = 'sw45')716 sw46 = pp.create_switch(net, bus49, line46, et = 'l', type = 'LBS', closed = True, name = 'sw46')717 sw47 = pp.create_switch(net, bus50, line47, et = 'l', type = 'LBS', closed = True, name = 'sw47')718 sw48 = pp.create_switch(net, bus51, line48, et = 'l', type = 'LBS', closed = True, name = 'sw48')719 sw49 = pp.create_switch(net, bus52, line49, et = 'l', type = 'LBS', closed = True, name = 'sw49')720 sw50 = pp.create_switch(net, bus53, line50, et = 'l', type = 'LBS', closed = True, name = 'sw50')721 sw51 = pp.create_switch(net, bus54, line51, et = 'l', type = 'LBS', closed = True, name = 'sw51')722 sw52 = pp.create_switch(net, bus55, line52, et = 'l', type = 'LBS', closed = True, name = 'sw52')723 sw53 = pp.create_switch(net, bus57, line53, et = 'l', type = 'LBS', closed = True, name = 'sw53')724 sw54 = pp.create_switch(net, bus58, line54, et = 'l', type = 'LBS', closed = True, name = 'sw54')725 sw55 = pp.create_switch(net, bus59, line55, et = 'l', type = 'LBS', closed = True, name = 'sw55')726 sw56 = pp.create_switch(net, bus60, line56, et = 'l', type = 'LBS', closed = True, name = 'sw56')727 sw57 = pp.create_switch(net, bus61, line57, et = 'l', type = 'LBS', closed = True, name = 'sw57')728 sw58 = pp.create_switch(net, bus62, line58, et = 'l', type = 'LBS', closed = True, name = 'sw58')729 sw59 = pp.create_switch(net, bus63, line59, et = 'l', type = 'LBS', closed = True, name = 'sw59')730 sw60 = pp.create_switch(net, bus64, line60, et = 'l', type = 'LBS', closed = True, name = 'sw60')731 sw61 = pp.create_switch(net, bus65, line61, et = 'l', type = 'LBS', closed = True, name = 'sw61')732 sw62 = pp.create_switch(net, bus66, line62, et = 'l', type = 'LBS', closed = True, name = 'sw62')733 sw63 = pp.create_switch(net, bus67, line63, et = 'l', type = 'LBS', closed = True, name = 'sw63')734 sw64 = pp.create_switch(net, bus68, line64, et = 'l', type = 'LBS', closed = True, name = 'sw64')735 sw65 = pp.create_switch(net, bus69, line65, et = 'l', type = 'LBS', closed = True, name = 'sw65')736 sw66 = pp.create_switch(net, bus70, line66, et = 'l', type = 'LBS', closed = True, name = 'sw66')737 sw67 = pp.create_switch(net, bus71, line67, et = 'l', type = 'LBS', closed = True, name = 'sw67')738 sw68 = pp.create_switch(net, bus72, line68, et = 'l', type = 'LBS', closed = True, name = 'sw68')739 sw69 = pp.create_switch(net, bus73, line69, et = 'l', type = 'LBS', closed = True, name = 'sw69')740 sw70 = pp.create_switch(net, bus74, line70, et = 'l', type = 'LBS', closed = True, name = 'sw70')741 sw71 = pp.create_switch(net, bus75, line71, et = 'l', type = 'LBS', closed = True, name = 'sw71')742 sw72 = pp.create_switch(net, bus76, line72, et = 'l', type = 'LBS', closed = True, name = 'sw72')743 sw73 = pp.create_switch(net, bus77, line73, et = 'l', type = 'LBS', closed = True, name = 'sw73')744 sw74 = pp.create_switch(net, bus78, line74, et = 'l', type = 'LBS', closed = True, name = 'sw74')745 sw75 = pp.create_switch(net, bus79, line75, et = 'l', type = 'LBS', closed = True, name = 'sw75')746 sw76 = pp.create_switch(net, bus80, line76, et = 'l', type = 'LBS', closed = True, name = 'sw76')747 sw77 = pp.create_switch(net, bus81, line77, et = 'l', type = 'LBS', closed = True, name = 'sw77')748 sw78 = pp.create_switch(net, bus82, line78, et = 'l', type = 'LBS', closed = True, name = 'sw78')749 sw79 = pp.create_switch(net, bus83, line79, et = 'l', type = 'LBS', closed = True, name = 'sw79')750 sw80 = pp.create_switch(net, bus84, line80, et = 'l', type = 'LBS', closed = True, name = 'sw80')751 sw81 = pp.create_switch(net, bus85, line81, et = 'l', type = 'LBS', closed = True, name = 'sw81')752 sw82 = pp.create_switch(net, bus86, line82, et = 'l', type = 'LBS', closed = True, name = 'sw82')753 sw83 = pp.create_switch(net, bus87, line83, et = 'l', type = 'LBS', closed = True, name = 'sw83')754 sw84 = pp.create_switch(net, bus88, line84, et = 'l', type = 'LBS', closed = True, name = 'sw84')755 sw85 = pp.create_switch(net, bus89, line85, et = 'l', type = 'LBS', closed = True, name = 'sw85')756 sw86 = pp.create_switch(net, bus90, line86, et = 'l', type = 'LBS', closed = True, name = 'sw86')757 sw87 = pp.create_switch(net, bus92, line87, et = 'l', type = 'LBS', closed = True, name = 'sw87')758 sw88 = pp.create_switch(net, bus93, line88, et = 'l', type = 'LBS', closed = True, name = 'sw88')759 sw89 = pp.create_switch(net, bus94, line89, et = 'l', type = 'LBS', closed = True, name = 'sw89')760 sw90 = pp.create_switch(net, bus95, line90, et = 'l', type = 'LBS', closed = True, name = 'sw90')761 sw91 = pp.create_switch(net, bus96, line91, et = 'l', type = 'LBS', closed = True, name = 'sw91')762 sw92 = pp.create_switch(net, bus97, line92, et = 'l', type = 'LBS', closed = True, name = 'sw92')763 sw93 = pp.create_switch(net, bus98, line93, et = 'l', type = 'LBS', closed = True, name = 'sw93')764 sw94 = pp.create_switch(net, bus99, line94, et = 'l', type = 'LBS', closed = True, name = 'sw94')765 sw95 = pp.create_switch(net, bus100, line95, et = 'l', type = 'LBS', closed = True, name = 'sw95')766 sw96 = pp.create_switch(net, bus101, line96, et = 'l', type = 'LBS', closed = True, name = 'sw96')767 sw97 = pp.create_switch(net, bus102, line97, et = 'l', type = 'LBS', closed = True, name = 'sw97')768 sw98 = pp.create_switch(net, bus104, line98, et = 'l', type = 'LBS', closed = True, name = 'sw98')769 sw99 = pp.create_switch(net, bus105, line99, et = 'l', type = 'LBS', closed = True, name = 'sw99')770 sw100 = pp.create_switch(net, bus106, line100, et = 'l', type = 'LBS', closed = True, name = 'sw100')771 sw101 = pp.create_switch(net, bus107, line101, et = 'l', type = 'LBS', closed = True, name = 'sw101')772 sw102 = pp.create_switch(net, bus108, line102, et = 'l', type = 'LBS', closed = True, name = 'sw102')773 sw103 = pp.create_switch(net, bus109, line103, et = 'l', type = 'LBS', closed = True, name = 'sw103')774 sw104 = pp.create_switch(net, bus110, line104, et = 'l', type = 'LBS', closed = True, name = 'sw104')775 sw105 = pp.create_switch(net, bus111, line105, et = 'l', type = 'LBS', closed = True, name = 'sw105')776 sw106 = pp.create_switch(net, bus112, line106, et = 'l', type = 'LBS', closed = True, name = 'sw106')777 sw107 = pp.create_switch(net, bus113, line107, et = 'l', type = 'LBS', closed = True, name = 'sw107')778 sw108 = pp.create_switch(net, bus114, line108, et = 'l', type = 'LBS', closed = True, name = 'sw108')779 sw109 = pp.create_switch(net, bus115, line109, et = 'l', type = 'LBS', closed = True, name = 'sw109')780 sw110 = pp.create_switch(net, bus116, line110, et = 'l', type = 'LBS', closed = True, name = 'sw110')781 sw111 = pp.create_switch(net, bus117, line111, et = 'l', type = 'LBS', closed = True, name = 'sw111')782 sw112 = pp.create_switch(net, bus118, line112, et = 'l', type = 'LBS', closed = True, name = 'sw112')783 sw113 = pp.create_switch(net, bus119, line113, et = 'l', type = 'LBS', closed = True, name = 'sw113')784 sw114 = pp.create_switch(net, bus120, line114, et = 'l', type = 'LBS', closed = True, name = 'sw114')785 sw115 = pp.create_switch(net, bus121, line115, et = 'l', type = 'LBS', closed = True, name = 'sw115')786 sw116 = pp.create_switch(net, bus122, line116, et = 'l', type = 'LBS', closed = True, name = 'sw116')787 sw117 = pp.create_switch(net, bus26, line117, et = 'l', type = 'LBS', closed = False, name = 'sw117')788 sw118 = pp.create_switch(net, bus26, line118, et = 'l', type = 'LBS', closed = False, name = 'sw118')789 sw119 = pp.create_switch(net, bus23, line119, et = 'l', type = 'LBS', closed = False, name = 'sw119')790 sw120 = pp.create_switch(net, bus44, line120, et = 'l', type = 'LBS', closed = False, name = 'sw120')791 sw121 = pp.create_switch(net, bus50, line121, et = 'l', type = 'LBS', closed = False, name = 'sw121')792 sw122 = pp.create_switch(net, bus64, line122, et = 'l', type = 'LBS', closed = False, name = 'sw122')793 sw123 = pp.create_switch(net, bus41, line123, et = 'l', type = 'LBS', closed = False, name = 'sw123')794 sw124 = pp.create_switch(net, bus99, line124, et = 'l', type = 'LBS', closed = False, name = 'sw124')795 sw125 = pp.create_switch(net, bus94, line125, et = 'l', type = 'LBS', closed = False, name = 'sw125')796 sw126 = pp.create_switch(net, bus77, line126, et = 'l', type = 'LBS', closed = False, name = 'sw126')797 sw127 = pp.create_switch(net, bus79, line127, et = 'l', type = 'LBS', closed = False, name = 'sw127')798 sw128 = pp.create_switch(net, bus85, line128, et = 'l', type = 'LBS', closed = False, name = 'sw128')799 sw129 = pp.create_switch(net, bus88, line129, et = 'l', type = 'LBS', closed = False, name = 'sw129')800 sw130 = pp.create_switch(net, bus122, line130, et = 'l', type = 'LBS', closed = False, name = 'sw130')801 sw131 = pp.create_switch(net, bus35, line131, et = 'l', type = 'LBS', closed = False, name = 'sw131')...
test-vanilla.py
Source:test-vanilla.py
...28 std_type="48-AL1/8-ST1A 20.0", name="Line 3")29line4 = pp.create_line(net, bus7, bus5, length_km=2.5, 30 std_type="NA2XS2Y 1x240 RM/25 12/20 kV", name="Line 4")31# switches32sw1 = pp.create_switch(net, bus2, bus3, et="b", type="CB", closed=True)33sw2 = pp.create_switch(net, bus4, bus5, et="b", type="CB", closed=True)34sw3 = pp.create_switch(net, bus5, line2, et="l", type="LBS", closed=True)35sw4 = pp.create_switch(net, bus6, line2, et="l", type="LBS", closed=True)36sw5 = pp.create_switch(net, bus6, line3, et="l", type="LBS", closed=True)37sw6 = pp.create_switch(net, bus7, line3, et="l", type="LBS", closed=False)38sw7 = pp.create_switch(net, bus7, line4, et="l", type="LBS", closed=True)39sw8 = pp.create_switch(net, bus5, line4, et="l", type="LBS", closed=True)40# create load element41pp.create_load(net, bus7, p_mw=2, q_mvar=4, scaling=0.6, name="load")42pp.create_load(net, bus7, p_mw=2, q_mvar=4, const_z_percent=30, 43 const_i_percent=20, name="zip_load")44# create generator elements45pp.create_sgen(net, bus7, p_mw=2, q_mvar=-0.5, name="static generator")46pp.create_gen(net, bus6, p_mw=6, max_q_mvar=3, min_q_mvar=-3, 47 vm_pu=1.03, name="generator", controllable=True)48# create shunt element49pp.create_shunt(net, bus3, q_mvar=-0.96, p_mw=0, name='Shunt')50# run power flow51pp.runpp(net,numba=False,enforce_q_lims=True)52print(net.res_gen)53print(net.res_line)...
ieee14panda (sayon's conflicted copy 2017-04-23).py
Source:ieee14panda (sayon's conflicted copy 2017-04-23).py
...15trafo1 = pp.create_transformer(net, bus3,bus4, name ="110kV/20kV transformer", std_type= "25 MVA 110/20 kV")16pp.create_shunt(net, bus3, q_kvar= -960, p_kw = 0, name = "Shunt")17pp.create_sgen(net, bus7, p_kw = -2000, q_kvar = 500, name = "static generator")18pp.create_gen(net, bus6, p_kw = -6000, max_q_kvar = 3000, min_q_kvar = -2000, vm_pu = 1.03, name = "generator")19sw1 = pp.create_switch(net, bus2,bus3, et = "b", type = "CB", closed = True)20sw2 = pp.create_switch(net, bus4,bus5, et = "b", type = "CB", closed = True)21sw3 = pp.create_switch(net, bus5,line2, et = "l", type = "LBS", closed = True)22sw4 = pp.create_switch(net, bus6,line2, et = "l", type = "LBS", closed = True)23sw5 = pp.create_switch(net, bus6,line3, et = "l", type = "LBS", closed = True)24sw6 = pp.create_switch(net, bus7,line3, et = "l", type = "LBS", closed = False)25sw7 = pp.create_switch(net, bus7,line4, et = "l", type = "LBS", closed = True)26sw8 = pp.create_switch(net, bus5,line4, et = "l", type = "LBS", closed = True)...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!