Skip to content

How to access the dual variable of a convex optimization problem? #928

Discussion options

You must be logged in to vote

Duals are not captured for general nonlinear solvers.

However, you should be careful with that model. The concave sqrt operator is implemented using an socp-representation, and this should not be possible in this case as you are using sqrt in a non convexity preserving fashion. It could be that you have R=I since YALMIP then automatically replaces that expression with norm(y) which then maps to an socp cone. However, that is not a good model for a general nonlinear solver, as YALMIP is forced to model the non-smooth socp cone for the nonlinear solver.

A better model for a nonlinear solver is most likely the convex and smooth model gamma^2 >= y'Ry

If you want to use a square-root with a no…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by johanlofberg
Comment options

You must be logged in to vote
4 replies
@0xF0F0F0F
Comment options

@johanlofberg
Comment options

@johanlofberg
Comment options

@0xF0F0F0F
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment