def test_case300(): net = pn.case300() assert net.converged pp.runpp(net, trafo_model='pi') assert len(net.bus) == 300 assert len(net.line) + len(net.trafo) == 411 assert len(net.ext_grid) + len(net.gen) + len(net.sgen) == 77 assert net.converged
def test_case300(): net = pn.case300() assert net.converged pp.runpp(net, trafo_model='pi') assert len(net.bus) == 300 assert len(net.line) + len(net.trafo) == 411 n_gen = 69 assert len(net.ext_grid) + len(net.gen) == n_gen assert len(net.polynomial_cost) == n_gen assert net.converged
def case300(): """ IEEE 300-bus test system parameters """ net = ppn.case300() zone_info = dict() zone_info[1] = set(range(93)) | {179, 185} | set(range(230, 300)) - set(range(241, 246)) - set(range(262, 265)) zone_info[2] = set(range(93, 167)) | set(range(242, 245)) | set(range(262, 265)) zone_info[3] = set(list(range(0, 300))) - zone_info[1] - zone_info[2] reference_bus = [97, 191, 256] default_meas = [*get_meas_info(target='boundary', redundancy='low'), *get_meas_info(target='internal', redundancy='high')] return {'id': 'IEEE300', 'ppnet': net, 'zone_info': zone_info, 'ref_bus': reference_bus, 'default_meas': default_meas}
def test_case300(): net = pn.case300() assert net.converged _ppc_element_test(net, 300, 411, 69 + 8, 69)