diff options
author | Nao Pross <np@0hm.ch> | 2024-05-11 16:39:26 +0200 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2024-05-11 16:39:26 +0200 |
commit | 99d48fdc5a10d6b383e1cbea3f35050f2f5b7844 (patch) | |
tree | 3d72fea6eac259c8119304a2c0999444b666a6fd | |
parent | Implement PositiveSemiDefinite constraint for CVXOPT (diff) | |
download | sumofsquares-99d48fdc5a10d6b383e1cbea3f35050f2f5b7844.tar.gz sumofsquares-99d48fdc5a10d6b383e1cbea3f35050f2f5b7844.zip |
Whitespace
Diffstat (limited to '')
-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 """ |