def test_pwl(self): """ Test UDOPF solver with pwl auction case. """ case = Case.load(PWL_FILE) solver = UDOPF(case, dc=True) solution = solver.solve() generators = self.case.generators self.assertTrue(solution["converged"] == True) self.assertTrue(False not in [g.online for g in generators])
def setUp(self): """ The test runner will execute this method prior to each test. """ case = self.case = Case.load(DATA_FILE) self.solver = UDOPF(case, dc=True)