def test_case2848rte():
    # check how it works with a large grid
    net = networks.case2848rte()
    net.ext_grid['slack_weight'] = 0
    sl_gen = net.gen.loc[net.gen.p_mw > 1000].index
    net.gen.loc[sl_gen, 'slack_weight'] = net.gen.loc[sl_gen, 'p_mw']
    pp.runpp(net, distributed_slack=True, numba=numba_installed)
    assert_results_correct(net)
def test_case2848rte():
    net = pn.case2848rte()
    assert net.converged
    pp.runpp(net, trafo_model='pi')
    assert len(net.bus) == 2848
    assert len(net.line) + len(net.trafo) == 3776
    assert len(net.ext_grid) + len(net.gen) + len(net.sgen) == 670
    assert net.converged
Example #3
0
def test_case2848rte():
    net = pn.case2848rte()
    assert net.converged
    _ppc_element_test(net, 2848, 3776, 670, 547)
Example #4
0
    def test_case1888rte(self):
        case = pn.case1888rte()
        self._aux_test(case)

    # def test_case300(self):
    # TODO make it work
    #     case = pn.case300()
    #     self._aux_test(case)

    # def test_case9241pegase(self):
    # TODO make it work
    #     case = pn.case9241pegase()
    #     self._aux_test(case)

    def test_case2848rte(self):
        case = pn.case2848rte()
        self.tol = 0.1  # yeah this one is a bit tough... # TODO
        self._aux_test(case)

    def test_case6470rte(self):
        case = pn.case6470rte()
        self.tol = 1e-2
        self._aux_test(case)

    def test_case6495rte(self):
        case = pn.case6495rte()
        self.tol = 1e-2
        self._aux_test(case)

    def test_case6515rte(self):
        case = pn.case6515rte()