I am trying to solve this problem with CVX tool but I have one error that I can't resolve.
My Matlab code is:
Bett = diag(bet);
%U = u*u';
for i =1:M
U(i,j) = conj(u(i))*u(j);
ppp(i) = u(i)*conj(u(i));
vv = sum(ppp);
minimize( alph*rho*mean(N) - sum(bet.p.g.conj(g).l.*conj(l)) )
BB = G + Bett - Ps*(alph*(hc*hc') + U + u*hc' + hc*u');
B = zeros(M,M);
BB = BB + rho*B*(alph*hc*hc' + U + u*hc' + hc*u')*B;
BB >= 0;
bet > 0;
The error that keeps showing is:
Error using cvx/times (line 262)
Disciplined convex programming error:
Invalid quadratic form(s): not a square.
Error in cvx/mtimes (line 36)
z = feval( oper, x, y );
Error in robust (line 68)
U(i,j) = (u(i))*u(j);
I tried to define U element by element but it's not working. Can you please help me figure this out I am out of solutions.