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?