Positive semidefinite matrix with the diagonal elements are equal


(Jack Nguyen) #1

Hi, I have a problem in implementing SDP.
I have the positive semidefinite matrix 2x2 as [p q; (q)* p] ,(.)* is the Hermitian transpose; p is a power scalar and q is a complex number.
Basically, I define this kind of matrix in CVX as follow
variable P(2,2) hermitian semidefinite;
and in the constraint basically, I put the condition P == hermitian_semidefinite(2);
and the equality P(1,1) == P(2,2) but the result is not like that. Is there something wrong to implement this kind of semidefinite matrix?

Thanks,


(Mark L. Stone) #2

Your description is not clear. Please provide a complete CVX program and the output and results from running it (do not use “quiet”).