The function 'cos' is not defined for an input of type 'cvx'.how can I fix it?

Writing exp(1i*omega_opt) from your previous topic “Disciplined convex programming error: Illegal operation: exp( {affine} ).”how can I fix it?
as cos(omega_opt) + 1i*sin(omega_opt) doesn’t make it any more convex or concave, or acceptable to CVX. Actually it’s even “less acceptable” to CVX in the sense that neither sin nor cos are supported in CVX, even for real affine expressions.

Perhaps you need to carefully re-read the link provided in my answer to your previous topic.