I have a positive semidefinite matrix variable M with dimension N*N, and a positive scalar variable t,
variable M(N,N) complex semidefinite
variable t
…
%%constraint
real(trace(M))/t <= c;
t>=0;
The real operation is to ensure the output of the left hand side of the first constraint is a real number (maybe the real operation can be deleted but I am not sure, so I add it). The code is wrong with this constraint. But tr\left( M \right)/t is indeed a convex perspective function and this constraint is convex, so I don’t know how to revise the code so that CVX can identify it.