Disciplined convex programming error:


(Tauhin Gangwar) #1

Only scalar quadratic forms can be specified in CVX

variable y(10,10) symmetric;
y-diag(y)* transpose(diag(y)) == semidefinite(10); //// creating error please helphow to write


(Mark L. Stone) #2

This can be reformulated by Schur complement
[y diag(y);diag(y)' 1] == semidefinite(11)


(Tauhin Gangwar) #3

Thank you mark…i am newbie…working slowly slowly…but will learn