Hello,

I am trying to solve this problem with CVX tool but I have one error that I can’t resolve.

My Matlab code is:

cvx_begin

variable alph

variable bet(M,1)

expression bett(M,M)

Bett = diag(bet);

variable u(M,1)

expression U(M,M)

%U = u*u’;

for i =1:M

for j=1:M

U(i,j) = conj(u(i))*u(j);
end
end
expression ppp(M,1)
for i=1:M
ppp(i) = u(i)*mean(N) - sum(bet.*p.*g.*conj(g).

*conj(u(i)); end vv = sum(ppp); minimize( alph*rho

*l.*tho^2>=vv;

*conj(l)) )*

subject to

alphMsubject to

alph

alph>=0;

u>=0;

BB = G + Bett - Ps*(alph*(hc*hc’) + U + u*hc’ + hc*u’);
for i=1:M
B = zeros(M,M);
B(i,i)=sqrt(N(i))/abs(g(i));
BB = BB + rho*B*(alph

*hc*hc’ + U + u

*hc’ + hc*u’)*B;

end

BB >= 0;

bet > 0;

cvx_end

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.

Thank you.