diff options
Diffstat (limited to '')
-rw-r--r-- | sumofsquares/solver/cvxopt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sumofsquares/solver/cvxopt.py b/sumofsquares/solver/cvxopt.py index c4e1db3..7be4e0d 100644 --- a/sumofsquares/solver/cvxopt.py +++ b/sumofsquares/solver/cvxopt.py @@ -78,7 +78,7 @@ def solve_sos_cone(prob: Problem, verbose: bool = False, # cost quadratic term if is_qp: - n = len(prob.variables) + n = len(variable_indices) P = np.zeros((n, n)) # This works because of how monomial indices are sorted # see also polymatrix.index.MonomialIndex.__lt__ |