summaryrefslogtreecommitdiffstats
path: root/examples/sostools/sosdemo2.py
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-06-05 01:23:49 +0200
committerNao Pross <np@0hm.ch>2024-06-05 01:23:49 +0200
commitfef5f1fdc44b96089e90c1ab18e95f2ddf26a4b0 (patch)
tree264d0e82ea42a0b8189e4a394b11eaa6c4e87f57 /examples/sostools/sosdemo2.py
parentMake make_problem add PSatz automatically if necessary (diff)
downloadsumofsquares-fef5f1fdc44b96089e90c1ab18e95f2ddf26a4b0.tar.gz
sumofsquares-fef5f1fdc44b96089e90c1ab18e95f2ddf26a4b0.zip
Remove state field from ConicProblem
Diffstat (limited to 'examples/sostools/sosdemo2.py')
-rw-r--r--examples/sostools/sosdemo2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sostools/sosdemo2.py b/examples/sostools/sosdemo2.py
index d0cf81d..ece36b7 100644
--- a/examples/sostools/sosdemo2.py
+++ b/examples/sostools/sosdemo2.py
@@ -33,7 +33,7 @@ constraints = (
sos.make_sos_constraint(- (dV @ f)),
)
-prob, result = sos.solve_problem(cost=None, constraints=constraints, solver=Solver.CVXOPT)
+prob, state, result = sos.solve_problem(cost=None, constraints=constraints, solver=Solver.CVXOPT)
print(prob)
# TODO: create SolverStatus enumeration