Illegal operation: {convex} + {complex affine}

Hi everyone,
I seen this error when trying to write an expression. I know that is caused by the violence of DCP rules but I don’t know how to modify it. Thanks so much for helping me.

Disciplined convex programming error:
Illegal operation: {convex} + {complex affine}

Error in algo2_complex (line 130)
        B(1,k) = B(1,k) + log(2)/pk(k)*Rk(k) - 2*real((Uk_mmse(:,k)' * H((k-1)*N+1 : k*N,:)*Wk(:,j)));

Have you solved this problem?I also met the similar problem.I’ll appreciate it if you can share your method!