Hi,
I'm trying to write the following SDP constraints using the Mosek API for python:
S=[s, v^T; v, F]>=0
[F, Id; Id, T]>=0
where F, T are nxn semidefinite positive matrices, s is a real number and v is a vector in R^n. As far as I understood one way to do this is to use a (2n+2)x(2n+2) SDP variable X and then use constraints of the form <A_i, X> = b_i to force the (n+1)x(n+1) upper left block to be the matrix S and the lower right block to be [T,0;0,0], plus more constraints to obtain [F, Id; Id, T]>=0.
I was wondering if there is a better way to do this, because it seems to me that the solution I have in mind is far from efficient, but I might be wrong.
Best,
Benedetto