コード例 #1
0
def test_case1354pegase():
    net = pn.case1354pegase()
    pp.runpp(net)
    assert len(net.bus) == 1354
    assert len(net.line) + len(net.trafo) == 1991
    assert len(net.ext_grid) + len(net.gen) + len(net.sgen) == 312
    assert net.converged
コード例 #2
0
def test_case1354pegase():
    net = pn.case1354pegase()
    assert net.converged
    pp.runpp(net, trafo_model='pi')
    assert len(net.bus) == 1354
    assert len(net.line) + len(net.trafo) == 1991
    n_gen = 260
    assert len(net.ext_grid) + len(net.gen) == n_gen
    assert len(net.polynomial_cost) == n_gen
    assert net.converged
コード例 #3
0
def test_case1354pegase():
    net = pn.case1354pegase()
    assert net.converged
    _ppc_element_test(net, 1354, 1991, 260 + 52, 260)