X = sdpvar(5); solvesdp([-1 <= x <= 1, X == x*x'],trace(Q*X))