I have a constraint given below.
for iUser=1:nUsers
otherusers = find(1:nUsers ~= iUser);
interference = [1;diag(((reshape(channel(:,:,iUser,usercellindex(otherusers)),nTx,[])).')*(w(:,otherusers)))];
x(iUser)==1+abs(channel(:,:,iUser,usercellindex(iUser))*w(:,iUser))^2/((norm(interference))^2);
end
Here w are optimization variables that are complex.
When I run my CVX program, I get the following error
Error using cvx/pow_cvx (line 142)
Disciplined convex programming error:
Illegal operation: {convex} .^ {2}
(Consider POW_P, POW_POS, or POW_ABS instead.)
Error in .^ (line 55)
z = pow_cvx( x, y, 'power' );
Error in ^ (line 9)
z = power( x, y );
Error in Main (line 114)
x(iUser)==1+abs(channel(:,:,iUser,usercellindex(iUser))*w(:,iUser))^2/((norm(interference))^2);