diff --git a/osier/models/logic_dispatch.py b/osier/models/logic_dispatch.py index 50b5b41..24b5cbe 100644 --- a/osier/models/logic_dispatch.py +++ b/osier/models/logic_dispatch.py @@ -82,7 +82,9 @@ def solve(self): if not self.curtailment and (v < 0): if self.verbosity <= 20: print( - 'solve failed -- too much overproduction (no curtailment allowed)') + ('solve failed -- ' + 'too much overproduction ' + '(no curtailment allowed)')) raise ValueError self._format_results() @@ -90,7 +92,9 @@ def solve(self): except ValueError: if self.verbosity <= 30: warnings.warn( - f"Infeasible or no solution. Objective set to {LARGE_NUMBER}") + (f"Infeasible or no solution." + f"Objective set to {LARGE_NUMBER}") + ) self.objective = LARGE_NUMBER return