Ejemplo n.º 1
0
 def test_pmax_constraints_default_sepc_epsilon1(self):
     binding_pmaxs = pmax_constraints(self.mock_scenario, epsilon=1e-3)
     expected = self.get_default_expected()
     assert binding_pmaxs.equals(expected)
Ejemplo n.º 2
0
 def test_pmax_constraints_default_sepc_epsilon3(self):
     binding_pmaxs = pmax_constraints(self.mock_scenario, epsilon=1e-9)
     expected = self.get_default_expected()
     expected.loc["2016-01-01 00:00:00", "B"] = False
     expected.loc["2016-01-01 01:00:00", "C"] = False
     assert binding_pmaxs.equals(expected)
Ejemplo n.º 3
0
 def test_pmax_constraints_default(self):
     binding_pmaxs = pmax_constraints(self.mock_scenario)
     expected = self.get_default_expected()
     assert binding_pmaxs.equals(expected)