> Disciplined convex programming error: Invalid quadratic form(s): not a square.
cvx_begin sdp quiet
variable alpha1 nonnegative
variable A(1,U) complex
variable B nonnegative
minimize rho/2*pow_pos(abs(A(1,u)-H(:,u)'*w1(:,u)+g(1,u)),2)+rho/2*pow_pos(abs(alpha1-delta1+f),2)
subject to
for u=1:U
A(1,u)==0;
B>=sum(pow_pos(abs(A),2));
gamma*(B+sigma)-2*real(w1(:,u)'*H(:,u).*A(1,u))+pow_pos(abs(H(:,u)'*w1(:,u)),2)<=0;
alpha1*(B+sigma)-2*real(w1(:,u)'*H(:,u).*A(1,u))+pow_pos(abs(H(:,u)'*w1(:,u)),2)<=0;
end
cvx_end