diff options
-rw-r--r-- | sumofsquares/constraints.py | 2 | ||||
-rw-r--r-- | sumofsquares/error.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sumofsquares/constraints.py b/sumofsquares/constraints.py index 69b5871..23f12c6 100644 --- a/sumofsquares/constraints.py +++ b/sumofsquares/constraints.py @@ -125,7 +125,7 @@ def putinar_psatz( for domain_poly in constr.domain.polynomials: # To know the degree of the domain polynomial we need to evaluate the # expression, hence we use a monad here - def make_multiplier( state: ExpressionState) -> tuple[ExpressionState, PolyMatrix]: + def make_multiplier(state: ExpressionState) -> tuple[ExpressionState, PolyMatrix]: state, constr_pm = constr.expression.degree().apply(state) state, domain_poly_pm = domain_poly.degree().apply(state) diff --git a/sumofsquares/error.py b/sumofsquares/error.py index 70c00cc..6fe04fd 100644 --- a/sumofsquares/error.py +++ b/sumofsquares/error.py @@ -5,6 +5,7 @@ Errors and exceptions raised by the sum of squares package. class NotSupportedBySolver(Exception): """ The chosen solver cannot solve this problem. """ + class SolverError(Exception): """ The solver failed to solve the problem """ |