Dear Prof. Johan, this is my first attemp to solve an LMI.
I formulate my non-linear matrix inequality into a linear matrix inequality by means of a change of variables (the matrices of the change of variables are Q and L, exploiting the relation between L and Q i will be able to obtain back the design variables i was searching).
Now i have matrices:
% Lmi Matrix
Q=sdpvar(size(alfa,1),size(alfa,1));
L=sdpvar(size(alfa,1),size(alfa,1));%,'full'
stheta=sin(theta);
ctheta=cos(theta);
LMI_11=stheta*(Q*Ar-L+Ar*Q-L');
LMI_12=ctheta*(Ar'*Q-L'-Q*Ar+L);
LMI_21=ctheta*(-Ar'*Q+L'+Q*Ar-L);
LMI_22=stheta*(Q*Ar-L+Ar*Q-L');
LMI=[LMI_11 LMI_12; LMI_21 LMI_22];
Matrices looks like:
>> L
Linear matrix variable 2x2 (symmetric, real, 3 variables, eigenvalues between [-0.00010116,4.3695e-12])
>> Q
Linear matrix variable 2x2 (symmetric, real, 3 variables, eigenvalues between [-6.2843e-10,6.2846e-10])
>> LMI_11
Linear matrix variable 2x2 (full, complex, 6 variables, eigenvalues between [-2.5576e-13-2.3569e-13i,2.5576e-13-2.4949e-13i])
>> LMI_12
Linear matrix variable 2x2 (full, complex, 3 variables, eigenvalues between [0-1.199e-08i,0+1.199e-08i])
>> LMI_21
Linear matrix variable 2x2 (full, complex, 3 variables, eigenvalues between [0+1.199e-08i,0-1.199e-08i])
>> LMI_22
Linear matrix variable 2x2 (full, complex, 6 variables, eigenvalues between [-2.5576e-13-2.3569e-13i,2.5576e-13-2.4949e-13i])
>> LMI
Linear matrix variable 4x4 (full, complex, 6 variables, eigenvalues between [-1.1989e-08-2.46e-13i,-1.199e-08-2.3918e-13i])
If I now impose my constraint:
ConstrLMI=[LMI<=0]+[Q>=0];
I see that the first inequality is not a matrix inequality, why?
>> ConstrLMI=[LMI<=0]+[Q>=0]
+++++++++++++++++++++++++++++++++++++++++++++++++
| ID| Constraint|
+++++++++++++++++++++++++++++++++++++++++++++++++
| #1| Element-wise inequality (complex) 16x1|
| #2| Matrix inequality 2x2|
+++++++++++++++++++++++++++++++++++++++++++++++++
I tried to formulate the constraint into real numbers:
>> LMI1=real(LMI);
>> LMI2=imag(LMI);
>> bigLMI=[LMI1 LMI2;-LMI2 LMI1]
Linear matrix variable 8x8 (full, real, 6 variables, eigenvalues between [-1.1989e-08-2.46e-13i,-1.199e-08+2.3918e-13i])
>> ConstrBigLMI=[bigLMI<=0]
+++++++++++++++++++++++++++++++++++++++
| ID| Constraint|
+++++++++++++++++++++++++++++++++++++++
| #1| Element-wise inequality 56x1|
But nothing changes, any tips?