예제 #1
0
def test_case9241pegase():
    net = pn.case9241pegase()
    pp.runpp(net)
    assert len(net.bus) == 9241
    assert len(net.line) + len(net.trafo) == 16049
    assert len(net.ext_grid) + len(net.gen) + len(net.sgen) == 1879
    assert net.converged
예제 #2
0
def test_case9241pegase():
    net = pn.case9241pegase()
    assert net.converged
    pp.runpp(net, trafo_model='pi')
    assert len(net.bus) == 9241
    assert len(net.line) + len(net.trafo) == 16049
    assert len(net.ext_grid) + len(net.gen) + len(net.sgen) == 1879
    assert len(net.polynomial_cost) == 1445
    assert net.converged
예제 #3
0
def test_case9241pegase():
    net = pn.case9241pegase()
    assert net.converged
    _ppc_element_test(net, 9241, 16049, 1879, 1445)