From b716776c547acb2905625379f892c66dbe852388 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 11 May 2024 11:43:09 +0200 Subject: Fix bug in putinar_psatz --- sumofsquares/constraints.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sumofsquares/constraints.py b/sumofsquares/constraints.py index 4209ffe..69b5871 100644 --- a/sumofsquares/constraints.py +++ b/sumofsquares/constraints.py @@ -154,4 +154,5 @@ def putinar_psatz( new_constr -= m * domain_poly new_constraints.append(NonNegative(m)) + new_constraints.append(NonNegative(new_constr)) return new_constraints -- cgit v1.2.1