Cannot perform the operation: {real affine} .* {convex},but i don't use the `.*`

Here is the code I ran, without error message. I used CVX 2.1.

 cvx_begin
     variable FNNK(N,N,K) semidefinite; 
      Fkk=cat(2,FNNK);
          u=0
   for o=1:4
       Fk{o}=Fkk(1:4,o+3*u:4*o)
       u=u+1;
   end 
      
    op2=0;
    for k=1:K
       op2=op2+FNNK(k)
    end
%==========================================
%objected function
    minimize( op2 )
    subject to
%==========================================  
       %c8
        total = 0;
        for k = 1:K
            sumja = 0;
            for j = 1:K
                if j ~= k  
                 sumja = sumja +  h_k{k}' * Fk{j} * h_k{k};
                end
            end
            total = total + sumja;
        end
       
        
       numerator=real(h_k{k}' * Fk{k} * h_k{k}) 
 numerator >= bar_r(1) * max((real(total)+nois_var_ak_2pow(1) + nois_var_dk_2pow(1)),0)
cvx_end

CVX correctly displays the following:

numerator =

cvx real affine expression (scalar)
1 Like