I am trying to solve an optimization with the following objective function

variable W(144,50) complex

minimize(norm(W - W_0,‘fro’)^2 )

I am getting error.

How can I fix this? W_0 is known complex matrix of same size a W.

I am trying to solve an optimization with the following objective function

variable W(144,50) complex

minimize(norm(W - W_0,‘fro’)^2 )

I am getting error.

How can I fix this? W_0 is known complex matrix of same size a W.

help square_pos

square_pos Square of positive part.

square_pos(X) is the square of the postive parts of the elements of X;

i.e., square_pos(X)=MAX(X,0).^2. X must be real.`Disciplined convex programming information: square_pos(X) is convex and nondecreasing in X. Thus when used in CVX expressions, X must be convex (or affine).`

However, given that the norm squared is the only term in the objective function, it is numerically better to not square the norm.