As per my understanding only the decision variables are defined using the ‘lmivar’ function. The decision variables as mentioned: X,Y,A_hat,B_F,C_hat,D_hat,M are defined properly in the code provided.
The composition of these decision variables with given matrices does not comprise of another decision variable.
[Gamma_A,n,sGamma_A] = lmivar(3,[A_11*sX or A_11*X ???])
Hence, this definition of Gamma_A with the use of ‘lmivar’ function is incorrect.
Instead of this, you should use the ‘lmiterm’ function to define these terms as shown in the Examples section of the following documentation page:
After putting all the definitions of
and
in eq.12 (as in the image attached), each term of the final matrix must be defined separately using proper ‘typeId’ argument of the ‘lmiterm’ function. Hope it helps.