Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrhansk committed Nov 10, 2023
1 parent 92422a8 commit 9f4123e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygradflow/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
from pygradflow.display import problem_display, Format


class SolverStatus(int, Enum):
class SolverStatus(Enum):
Converged = (auto(), "Convergence achieved")
IterationLimit = (auto(), "Reached iteration limit")
TimeLimit = (auto(), "Reached time limit")
LocallyInfeasible = (auto(), "Local infeasibility detected")

def __new__(cls, value, description):
obj = int.__new__(cls, value)
obj = object.__new__(cls)
obj._value_ = value
obj.description = description
return obj
Expand Down

0 comments on commit 9f4123e

Please sign in to comment.