Professional Documents
Culture Documents
Name-Praveen Malviya Roll - 215EE3149: K Q Inv (Y) A A-B K e Eig (A)
Name-Praveen Malviya Roll - 215EE3149: K Q Inv (Y) A A-B K e Eig (A)
Roll- 215EE3149
Q1)
( − ) +( − )<0
Consider the following problem. Place the poles of ( − ) in the left of s-plane. Use Matlab LMI tool
box. Find , , , ( − ) and ( − ).
Ans.1)
clc;
clear all;
A=[2 1 0;0 2 0;0 1 3];
B=[0 1;1 0;0 1];
setlmis([]);
Y=lmivar(1,[3 1]);
Q=lmivar(2,[2 3]);
lmiterm([1 1 1 Y],A,1,'s');
lmiterm([1 1 1 Q],-B,1,'s');
lmiterm([-2 1 1 Y],1,1);
lmis=getlmis;
n=decnbr(lmis);
c=zeros(n,1); options=[1e-
2,100,1e9,10,0];
[copt,xopt]=mincx(lmis,c,options);
Y=dec2mat(lmis,xopt,Y)
Q=dec2mat(lmis,xopt,Q)
K=Q*inv(Y)
a=A-B*K
e=eig(a)
Output
Y=
Q=
1.0e+06 *
-3.8908 0.0005 -3.8908
0.0008 3.8910 0.0008
11 =
1.0e+05 *
1=
1.0e+05 *
5=
1.0e+04 *
-0.0001
-0.0001 + 2.5805i
-0.0001 - 2.5805i
Q.2)
Consider the system given in Problem 1. Place the poles of ( − ) in the left of s-plane such that −4 <
( ) < −2. Use Matlab LMI tool box. Find , , , ( − ) and ( − ).
Ans.2)
clc;
clear all;
A=[2 1 0;0 2 0;0 1 3];
B=[0 1;1 0;0 1];
setlmis([]);
Y=lmivar(1,[3 1]);
Q=lmivar(2,[2 3]);
lmiterm([1 1 1 Y],A,1,'s');
lmiterm([1 1 1 Q],-B,1,'s');
lmiterm([1 1 1 Y],4,1);
lmiterm([-2 1 1 Y],1,1);
lmiterm([-3 1 1 Y],A,1,'s');
lmiterm([-3 1 1 Q],-B,1,'s');
lmiterm([-3 1 1 Y],8,1);
lmis=getlmis;
n=decnbr(lmis);
c=zeros(n,1); options=[1e-
2,100,1e9,10,0];
[copt,xopt]=mincx(lmis,c,options);
Y=dec2mat(lmis,xopt,Y)
Q=dec2mat(lmis,xopt,Q)
K=Q*inv(Y)
a=A-B*K
e=eig(a)
Output
25 =
Q=
1.0e+05 *
1.0e+04 *
1=
1.0e+04 *
e=
1.0e+03 *
-0.0025
-0.0030 + 7.6173i
-0.0030 - 7.6173i