Hello dears,
If someone has an idea about how to handle this.
cvx_begin
cvx_precision low
variable W(N, K) complex
.....(Some code is omitted here)
R_sum =0;
for k = 1:K
temp1(k) =real( 2*alpha*sqrt(1+tau_ini(k))*omega_ini(k)*h_H(k,:)*W(:, k));
temp2(k) = abs(omega_ini(k))^2*abs(alpha)^2*real(temp2_0);
temp3(k) = abs(omega_ini(k))^2*alpha*(1-alpha)*real( h_H(k,:)*diag(diag(W*W'))*h_H(k,:)');
R_sum = R_sum + temp1(k) - temp2(k) - temp3(k) ;
end
.....(Some code is omitted here)
Only scalar quadratic forms can be specified in CVX :This error appears in temp3(k).
I guess it’s probably because W*W’ is not convex that’s causing this problem. But how do I write it without making mistakes?
thanks