Hi, all.
I want to express the square of Frobenius norm of a matrix in cvx. For example, when I want to slove the problem \mathop {\min }\limits_{\mathbf{A}} \;\left\| {{\mathbf{A}} - {\mathbf{B}}} \right\|_{\text{F}}^2 and I express it in matlab as
B = ones(2,2);
cvx_begin quiet
variable A(2,2)
minimize square(norm(A-B,‘fro’))
cvx_end
If there is no other term in the objective function, you might be content with minimize(norm(A-B,‘fro’))
i.e., not squaring. It will have the same argmin as if the objective function were squared.
Use square_pos minimize(square_pos(norm(A-B,'fro')))
minimize(sum(sum_square(A-B)))
If using CVX 3.0beta, you have the additional option of coding as you did, i.e., minimize(square(norm(A-B,'fro')))