How to write this constraint in SDP?

I am pretty sure you can find the answer in

https://web.stanford.edu/~boyd/cvxbook/

In sdp mode
[D d';d 1] >= 0
[Y X;X' eye(2)] >= 0

or you can use == semidefinite(...) of the correct dimension.

I’ll let you check that the dimensions are correct.

Schur complement is your friend. Ses section A.5.5 of https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf .

Whoops, @Erling posted while I was formulating mine. I thought about just giving that reference and letting you work out the details.

thanks, I will refer to this book

thank you very much!

thanks, I will try this