Esempio n. 1
0
    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])
Esempio n. 2
0
    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])
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)