def test_pmin_constraints_default_spec_epsilon1(self): binding_pmins = pmin_constraints(self.mock_scenario, epsilon=1e-3) expected = self.get_default_expected() assert binding_pmins.equals(expected)
def test_pmin_constraints_default_spec_epsilon3(self): binding_pmins = pmin_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_pmins.equals(expected)
def test_pmin_constraints_default(self): binding_pmins = pmin_constraints(self.mock_scenario) expected = self.get_default_expected() assert binding_pmins.equals(expected)