Skip to content

Commit

Permalink
Add getdual for sos lyap
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Oct 26, 2016
1 parent 4f6fa5a commit a9c62d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function soslyap(s::SwitchedSystem, d, γ; solver=MathProgBase.defaultSDPsolver)
if status == :Optimal
status, getvalue(p), nothing
elseif status == :Infeasible
status, nothing, nothing
status, nothing, [getdual(c) for c in cons]
else
error("Solver returned with status : $status")
end
Expand Down

0 comments on commit a9c62d4

Please sign in to comment.