How do I write a complicated objective function in cvx

Welcome to our community!!!

Have you proven this is convex? It looks rather dubious to me. If not for the imaginary argument of exp (is x real or complex?), perhaps R_pq_po coudl be calculated using CVX’s gp mode, but then you’d be out of luck trying to form the objective function. Unless and until you prove otherwise, I will mark this problem as non-convex.