In CVX, how do we return the value of the parameter over which the problem is minimized at the optimal value?

By this, I mean, how do we obtain

$$x^* = \arg\min_x f(x)$$ when solving the problem with CVX?

I have gone through the user's guide and did some google searching. The only thing I could find was cvx_optval which only gives the optimal value of $f(x)$


1 Answer 1


It's just stored in the regular MATLAB variable x (or whatever you were using as the variable in your problem.

  • $\begingroup$ Ah. That simple is it? Stupid me :) $\endgroup$ Dec 1, 2014 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.