I got this error
’‘Disciplined convex programming error: Illegal operation: exp( {affine} ).’’ how can I fix it? y1 is complex and a,p are real.
cvx_begin sdp
variables a(n,1) p(n,1)
expression hh
hh=a.(exp(-1ip*pi/180));
minimize(sum_square_abs(y1-diag(hh)*ph))
cvx_end
If X is complex, how can I express exp(X)? Thank you!
You’ll have to deal separately with the real and imaginary parts. And deal with each of these in accordance with CVX;s rules. If it’s even possible to do so and end up with convex (or concave) expressions.
So until you show usage to the contrary, let’s just say it is non-convex.