I am trying to use LMI to check whether my eigenvalues' regions through the attached equation 4.20. And it gives me a P matrix(W in the code) which means the theta should be in a particular region. But when I calculate the A matrix's eigenvalues, several eigenvalues apparently were not within the region. I plug in P (W in the code) to equation and try to check whether equation 4.20 is negative semi definite. I found several zeros. I understand we could only apply(<=) in the yalmip constraint and that is reasonable to see zeros. How could we address the negative definite here? I was wondering what point I am missing here. Is there a numerical issue I need to consider? Thanks!
L= [ 4.1883, -1.7788, -0.5558, -0.6490, -0.5558, -0.6490;
-1.7788, 4.5919, -0.6490, -0.7576, -0.6490, -0.7576;
-0.5558, -0.6490, 4.1883, -1.7788, -0.5558, -0.6490;
-0.6490, -0.7576, -1.7788, 4.5919, -0.6490, -0.7576;
-0.5558, -0.6490, -0.5558, -0.6490, 4.1883, -1.7788;
-0.6490, -0.7576, -0.6490, -0.7576, -1.7788, 4.5919];
M=diag(1./[5,5,2,2,2,2]);
W=sdpvar(11,11);
st=sdpvar(1,1)
d=[5.43,1.4951,10,10,10,10];
D=diag(d);
AA=[zeros(5,5),eye(5,5),-ones(5,1);zeros(6,5),zeros(6,6)];
MM=[zeros(5,5),zeros(5,5),zeros(5,1);-M*L([1:6],[1:5]),-M*D];
A=AA+MM;
mosekopt('min write(dump.task.gz)')
F=[W>=0];
F=[F,[(A*W+W*A')*sin(0.5987),(A*W-W*A')*cos(0.5987);-(A*W-W*A')*cos(0.5987),(A*W+W*A')*sin(0.5987)]<=0];
options = sdpsettings('solver','bmibnb');
sol=optimize(F);
PP=value(W);