CH 12
CH 12
Writing the state equations for the physical variables shown in the signal-flow diagram, we
obtain
0 1 0 0
z = 0 −1.32 0.8 z + 0 u ; y = [0.2 0 0] z
0 0 −100 2000
The characteristic polynomial for this system is s3 + 101.32s2 + 132s + 0. Hence, the A and B
matrices of the phase-variable form are
Ax Bx
0 1 0 0
0 0 1 0
0 −132 −101.32 1
Writing the controllability matrices and their determinants for both systems yields
12-2 Chapter 12: Design via State Space
where the system is controllable. Using Eq. (12.39), we find the transformation matrix and its inverse
to be
Kx Controller for x
299.38 −37.031 −77.32
Kz Controller for z
0.1871125 0.04064463 −0.03866
b. Using Kz, gain from m = - 0.1871125 (including gear train, pot, and operational amplifier); gain
from tachometer = - 0.04064463; and gain from power amplifier output = 0.03866.
Solution to Case Study Challenge 12-3
c. Using the original system from part (a) and its characteristic polynomial, we find the observer
canonical form which has the following A and C matrices:
Ax
−101.32 1 0
−132 0 1
0 0 0
Cx
1 0 0
Writing the observability matrices and their determinants for both systems yields
The characteristic polynomial of the dual phase-variable system with state feedback is
s3 + (l1 + 101.32)s2 + (l2 + 132)s + (l3 + 0)
For 10% overshoot, n = 10 14.969 = 38.69 rad/s, and a third pole 10 times further from the
imaginary axis than the dominant observer poles, the characteristic polynomial is
(s + 228.72)(s2 + 45.743s + 1496.916) = s3 + 274.46s2 + 11959s + 3.4237x105
Equating coefficients, the observer for the observer canonical system is
Lx Observer for x
173.14
11827
342370
Lz Observer for z
865.7
−28577.724
5569187.5
Solution to Case Study Challenge 12-5
d.
e.
Program:
'Controller'
A=[0 1 0;0 -1.32 0.8;0 0 -100];
B=[0;0;2000];
C=[0.2 0 0];
D=0;
pos=input('Type desired %OS ');
Ts=input('Type desired settling time ');
z=(-log(pos/100))/(sqrt(pi^2+log(pos/100)^2));
wn=4/(z*Ts); %Calculate required natural
%frequency.
[num,den]=ord2(wn,z); %Produce a second-order system that
%meets the transient response
%requirements.
r=roots(den); %Use denominator to specify dominant
%poles.
poles=[r(1) r(2) 10*real(r(1))];
%Specify pole placement for all
%poles.
K=acker(A,B,poles)
'Observer'
pos=input('Type desired %OS ');
z=(-log(pos/100))/(sqrt(pi^2+log(pos/100)^2));
wn=10*wn %Calculate required natural
%frequency.
12-6 Chapter 12: Design via State Space
Computer response:
ans =
Controller
K =
ans =
Observer
wn =
38.6899
l =
1.0e+006 *
0.0009
-0.0286
5.5691
SOLUTIONS TO PROBLEMS
1.
(s + 3) 1
i. G(s ) = = 2 * (s + 3)
(s + 4) 2
s + 8s + 16
a.
b.
c.
• 0 1 0
x= x + r ; y = 3 1 x
−(k1 + 16) −(k2 + 8) 1
d.
s+3
T (s) =
s + (k2 + 8)s + (k1 + 16)
2
Solutions to Design Problems 12-9
•
x1 = (−20 − 71.25k1 ) x1 − 71.25k2 x2 − 71.25k3 x3 + 71.25r
•
x 2 = 27.5k1 x1 + (−10 x2 + 27.5k2 ) x2 + 27.5k3 x3 − 27.5r
•
x 3 = −6.25k1 x1 − 6.25k2 x2 − 6.25k3 x3 + 6.25r
(−20 − 71.25k1 ) −71.25k2 −71.25k3 71.25
A= 27.5k1
(−10 x2 + 27.5k2 ) 27.5k3 ; B = −27.5 ; C = 1 1 1
−6.25k1 −6.25k2 −6.25k3 6.25
200(s 2 + 7s + 25)
T (s) = 3
4 s + (120 + 285k1 − 110k2 + 25k3 )s 2 + (800 + 2850k1 − 2200k2 + 750k3 )s + 5000k3
e.
s 1
ii. G(s ) = = 2 *s
(s + 5)(s + 7) s + 12s + 35
a.
b.
12-10 Chapter 12: Design via State Space
c.
• 0 1 0
x= x + r ; y = 0 1 x
−(k1 + 35) −(k2 + 12) 1
d.
s
T (s) =
s + (k2 + 12)s + (k1 + 35)
2
e.
0 1 0
T (s) = C(sI − A)−1 B; A = ; B = ; C = 0 1
−(k1 + 35) −(k2 + 12) 1
which yields the same result as ii(d).
20s(s + 7) 1
iii. G(s ) = = 3 * (20s2 +140s)
(s + 3)(s + 7)(s + 9) s + 19s + 111s + 189
2
a.
b.
Solutions to Design Problems 12-11
c.
0 1 0 0
•
x= 0 0 1 x + 0 r ; y = 0 140 20 x
−(k1 + 189) −(k2 + 111) −( k3 + 19) 1
d.
20s(s + 7)
T (s) =
s + (k3 + 19)s + (k2 + 111)s + (k1 + 189)
3 2
e.
0 1 0 0
; B = 0 ; C = 0 140 20
−1
T (s) = C(sI − A) B; A = 0 0 1
−(k1 + 189) −(k2 + 111) −( k3 + 19) 1
30(s + 2)(s + 3) 1
iv. G(s ) = = 3 * (30s2 + 150 s + 180)
(s + 4)(s + 5)(s + 6) s + 15s + 74s + 120
2
a.
12-12 Chapter 12: Design via State Space
b.
c.
0 1 0 0
•
x = 0 0 1 x + 0 r ; y = 180 150 30 x
−(k1 + 120) −(k2 + 74) −(k3 + 15) 1
d.
0 1 0 0
; B = 0 ; C = 180 150 30
−1
T (s) = C(sI − A) B; A = 0 0 1
−(k1 + 120) −(k2 + 74) −(k3 + 15) 1
s2 + 8s + 15 1
v. G(s ) = = 4 * (s2 + 8s + 15)
(s + 4s + 10)(s + 3s + 12) s + 7s + 34s 2 + 78s + 120
2 2 3
Solutions to Design Problems 12-13
a.
b.
c.
0 1 0 0 0
•
0 0 1 0 0
x= x + r ; y = 15 8 1 0 x
0 0 0 1 0
−(k1 + 120) −(k2 + 78) −( k3 + 34) −( k4 + 7) 1
d.
s 2 + 8s + 15
T (s) = 4
s + (k4 + 7)s 3 + (k3 + 34)s 2 + (k2 + 78)s + (k1 + 120)
12-14 Chapter 12: Design via State Space
e.
0 1 0 0 0
0 0 1 0 0
−1
T (s) = C(sI − A) B; A = ; B = ; C = 15 8 1 0
0 0 0 1 0
−(k1 + 120) −(k2 + 78) −(k3 + 34) −( k4 + 7) 1
2.
i
a. The output is
Since,
b.
ii
Solutions to Design Problems 12-15
a.
b.
3.
i
a.
12-16 Chapter 12: Design via State Space
Hence,
ii
a.
But,
u = −k1 x1 − k2 x2 − k3 x3 + r
Substituting into the state equations, collecting terms, and converting to vector-matrix form yields
4.
Using Eqs. (4.39) and (4.34), we find ζ= 0.5192 and n = = 7.352 , respectively.
TP (1 − 2 )1/ 2
Factoring the denominator of Eq. (4.22), the required poles are – 3.676 ± j6.2832. We place the third
pole at -2 to cancel the open loop zero. Multiplying the three closed-loop pole terms yields the desired
characteristic equation:
−9 −23 −15 1
0 ;
A= 1
0 B= 0
;*****
C = 100 2700 5000 ;
0 1 0 0
The first row of A contains the coefficients of the characteristic equation. Thus comparing the first
row of A to the desired characteristic equation and using the results of Problem 5, we have:
5.
The plant is given by
The characteristic polynomial for the plant with phase-variable state feedback is
based upon 15% overshoot, Ts =1 seconds, and a third pole ten times further from the imaginary axis
than the dominant poles. Comparing the two characteristic equations,
6.
Expand G(s) by partial fractions and obtain
7.
a.
Writing the state equation and the controllability matrix for the system yields
−7 1 b
x= x + 1 u
−1 −2 b2
b −7b1 + b2
CM = B AB = 1
b2 −b1 − 2b2
Solutions to Design Problems 12-21
b.
If b1 = 1 the condition becomes b22 − 5b2 + 1 = 0 so there are two possible solutions
b2 = 0.2087 and b2 = 4.7913 .
8.
The controllability matrix is given by Eq. (12.26) for each of the following solutions:
a.
−2 0 1 0 0 1 −5
A = 0 −2 0 ; B = 1 ; CM = 1 −2 4 ;det CM = 0 ; system is uncontrollable
0 0 −3 1 1 −3 9
b.
−2 1 0 0 0 1 −4
A = 0 −2 0 ; B = 1 ; CM = 1 −2 4 ;det CM = −1; system is controllable
0 0 −3 1 1 −3 9
c.
−4 1 0 0 0 2 −7
A = 0 0 1 ; B = 2 ; CM = 2 1 −3 ;det CM = 7 ; system is controllable
0 0 −3 1 1 −3 9
d.
−4 1 0 1 1 −4 17
A = 0 0 1 ; B = 0 ; CM = 0 1 −8 ;det CM = −5 ; system is controllable
−5 0 −3 1 1 −8 44
e.
0 1 1 1 −2
A= ; B = ; CM = ;det CM = 0 ; system is uncontrollable
−6 −5 −2 −2 4
f.
12-22 Chapter 12: Design via State Space
−4 0 0 1 1 −4 16
A = 0 −5 0 ; B = 0 ; CM = 0 0 0 ;det CM = 0 ; system is uncontrollable
0 0 −6 1 1 −6 36
9.
Program:
'(d)'
A=[-4 1 0;0 0 1;-5 0 -3]
B=[1;0;1]
Cm=ctrb(A,B)
Rank=rank(Cm)
pause
'(f)'
A=[-4 0 0;0 -5 0;0 0 -6]
B=[1;0;1]
Cm=ctrb(A,B)
Rank=rank(Cm)
Computer response:
ans =
(d)
A =
-4 1 0
0 0 1
-5 0 -3
B =
1
0
1
Cm =
1 -4 17
0 1 -8
1 -8 44
Rank =
ans =
(f)
A =
-4 0 0
0 -5 0
0 0 -6
B =
1
0
Solutions to Design Problems 12-23
Cm =
1 -4 16
0 0 0
1 -6 36
Rank =
2
10.
Drawing the signal-flow diagram for the plant in cascade form yields
1 1 1
1
u 1 s z3 1 s z2 1 z1 6
s y
-10 -8 -3
Az Bz
-3 1 0 0
0 -8 1 0
0 0 -10 1
Ax Bx
0 1 0 0
0 0 1 0 Phase-Variable Form
-240 -134 -21 1
From the phase variable from, the characteristic polynomial is s3 + 21s2 + 134s + 240.
Finding the controllability matrices and their determinants for the z and x systems shows that there is
controllability,
Det(CMz) -1 Det(CMx) -1
Using Eq. (12.39), the transformation matrix P and its inverse are found to be
12-24 Chapter 12: Design via State Space
Kx Controller for x
34.68 -40.22 -7
Using Eq. (12.42),
Kz Controller for z
92.34 36.78 -7
11.
Program:
A=[-3 1 0;0 -8 1;0 0 -10]; %Generate system matrix A
B=[0;0;1]; %Generate input coupling matrix B
C=[3 1 0]; %Generate output coupling matrix C
D=0; %Generate matrix D
Po=10; %Input desired percent overshoot
Ts=1; %Input desired settling time
z=(-log(Po/100))/(sqrt(pi^2+log(Po/100)^2));
%Calculate required damping ratio
wn=4/(z*Ts); %Calculate required natural
%frequency
[num,den]=ord2(wn,z); %Produce a second-order system that
%meets transient requirements
r=roots(den); %Use denominator to specify
%dominant poles
poles=[r(1) r(2) -6]; %Specify pole placement for all
%poles.
%A few tries at the the third-pole
%value shows T(s) with a closed-
%loop zero at -7.
%Thus, choose the third pole to
%cancel this zero.
K=acker(A,B,poles) %Calculate controller gains in z-
%system
Anew=A-B*K; %Form compensated A matrix
Bnew=B; %Form compensated B matrix
Cnew=C; %Form compensated C matrix
Dnew=D; %Form compensated D matrix
[numt,dent]=ss2tf(Anew,Bnew,Cnew,Dnew);
%Form T(s)
'T(s)' %Display label
T=tf(numt,dent) %Display T(s)
poles=pole(T) %Display poles of T(s)
Computer response:
Solutions to Design Problems 12-25
K =
ans =
T(s)
Transfer function:
-3.553e-015 s^2 + s + 6
------------------------------
s^3 + 14 s^2 + 93.78 s + 274.7
poles =
-4.0000 + 5.4575i
-4.0000 - 5.4575i
-6.0000
12.
Using Eqs. (4.39) and (4.34), we find ζ= 0.456 and ωn =17.6498. Factoring the
denominator of Eq. (4.22), the required poles are – 8.0483 ± j15.708. We place the third
pole 10 times further at – 80.483. Multiplying the three closed-loop pole terms yields the
desired characteristic equation: s3 + 96.6 s 2 + 1607 s + 25072 = 0 . Representing the
plant in parallel form:
0 0 0 2.5
Apar
= 0 −4 0 ; Bpar = −4.1667 ; Cpar = 1 1 1 ;
0 0 −10 1.667
2.5 0 0
Using Eq. (12.26), CM par
= −4.1667 16.667 −66.667 , which is controllable since
1.667 −16.667 166.7
the determinant is 4168.1.
100
Since, G(s ) = the controller canonical form is:
s + 14s 2 + 40s
3
−14 −40 0 1
Acc = 1 0 0 ; Bcc = 0 ; C = 0 0 100 . Using Eq. (12.26),
0 1 0 0
12-26 Chapter 12: Design via State Space
1 −14 156
CMcc = 0 1 −14 , which is controllable since the determinant is 1.
0 0 1
2.5 0 0
CM par
= −4.1667 16.667 −66.667
1.667 −16.667 166.7
The first row of ACC contains the coefficients of the characteristic equation. Comparing the
first row of ACC to the desired characteristic equation and using the results of Problem 5,
we have:
(14 + k1) = 96.6; (40 + k2) = 1607; and (0 + k3) = 25072. Hence, KCC = [25072 1567 82.6].
14.
| OM |= 1
Using the given transient requirements, and placing the third closed-loop pole 10 times farther
from the imaginary axis than the dominant pole yield the following desired characteristic
polynomial
Equating this polynomial to the one in Equation (12.67) yields the observer gains
15.
Using Eqs. (4.39) and (4.34) to find = 0.5912 and n = 19.4753 respectively. Factoring the
denominator of Eq. (4.22), the required poles are -11.513 ± j15.708. We place the third pole 20 times
further at –230.26. Multiplying the three closed-loop pole terms yields the desired characteristic
equation: s3 + 253.28s2 + 5681.19s + 87334.19 = 0.
−25 1 0 0
Representing the plant in observer canonical form: Aoc = −171 0 1 ; Boc = 0 ; *****
−315 0 0 10
Coc = [1 0 0]. The first column of Aoc contains the coefficients of the characteristic equation.
Comparing the first column of Aoc to the desired characteristic equation and using Eq. (12.67), l1 =
253.28 - 25 = 228.28; l2 = 5681.19 - 171 = 5510.19; and l3 = 87334.19 - 315 = 87019.19. Hence,
16.
The A, L, and C matrices for the phase-variable system are:
0 1 l
A= ; C = 2 1 ; L= 1
−45 −14 l2
Hence,
12-28 Chapter 12: Design via State Space
+ 2l1 l1 − 1
− ( A − LC) =
2l2 + 45 l2 + + 14
or
2 + (2l1 + l2 + 14) + (2l2 − 17l1 + 45)
From the problem statement, the desired characteristic polynomial is 2 + 144 + 14400.
Equating coefficients yields,
l1 = −671.2; l2 = 1472.4
17.
The A matrix for each part is given in the solution to Problem 11. Each observability matrix is
calculated from Eq. (12.79).
a.
−2 0 1 5 5 5
A = 0 −2 0 ; C = (5,5,5) ; OM = −10 −10 −10 ; | OM |= 0 ; unobservable
0 0 −3 20 20 20
b.
−2 1 0 5 0 5
A = 0 −2 0 ; C = (5,0,5) ; OM = −10 5 −15 ; | OM |= 125 ; observable
0 0 −3 20 −20 45
c.
−4 1 0 1 0 0
A = 0 0 1 ; C = (1,0,0) ; OM = −4 1 0 ; | OM |= 1; observable
0 0 −3 16 −4 1
d.
−4 1 0 1 0 0
A = 0 0 1 ; C = (1,0,0) ; OM = −4 1 0 ; | OM |= 1; observable
−5 0 −3 16 −4 1
e.
0 1 1 0
A= ; C = (1,0) ; OM = ; | OM |= 1; observable
−6 −5 0 1
Solutions to Design Problems 12-29
f.
−4 0 0 1 1 1
A = 0 −5 0 ; C = (1,1,1) ; OM = −4 −5 −6 ; | OM |= −2 ; observable
0 0 −6 16 25 36
18.
Program:
'(a)'
A=[-2 0 1;0 -2 0;0 0 -3] %Form compensated A matrix
C=[5 5 5] %Form compensated C matrix
Om=obsv(A,C) %Form observability matrix
Rank=rank(Om) %Find rank of observability
%matrix
'(f)'
A=[-4 0 0;0 -5 0;0 0 -6] %Form compensated A matrix
C=[1 1 1] %Form compensated C matrix
Om=obsv(A,C) %Form observability matrix
Rank=rank(Om) %Find rank of observability
Computer response:
ans =
(a)
A =
-2 0 1
0 -2 0
0 0 -3
C =
5 5 5
Om =
5 5 5
-10 -10 -10
20 20 20
Rank =
ans =
(f)
A =
-4 0 0
0 -5 0
0 0 -6
C =
1 1 1
Om =
12-30 Chapter 12: Design via State Space
1 1 1
-4 -5 -6
16 25 36
Rank =
19.
The A and C matrices for the system represented in cascade form is
Az
-20 1 0
0 -13 1
0 0 -5
Cz
1 0 0
The characteristic polynomial found from the transfer function of the plant is
s3 + 38s2 + 425s + 1300
From this characteristic polynomial, we can write observer canonical form of the state equations. The
A and C matrices of the observer canonical form are given below as
Ax
-38 1 0
-425 0 1
-1300 0 0
Cx
1 0 0
To test observability, we write the observability matrices for both systems and show that both
observability matrices have non zero determinants. Using Eq. (12.79),
Det(OMz) 1 Det(OMx) 1
Using Eq. (12.89), we obtain the transformation matrix, P, and its inverse as
Using the characteristic polynomial given in the problem statement, the plant’s characteristic
equation, and Eq. (12.67), the observer for the observer canonical system is
Lx Observer for x
562
39575
1498700
Using Eq. (12.92), the observer for the cascade system is found to be
Lz Observer for z
562
29459
1314875
20.
Program:
A=[-20 1 0;0 -13 1;0 0 -5]
B=[0;0;1]
C=[1 0 0]
D=0
poles=roots([1 600 40000 1500000])
L=acker(A',C',poles);
'L'
L'
Computer response:
A =
-20 1 0
0 -13 1
0 0 -5
B =
0
0
1
C =
1 0 0
D =
poles =
1.0e+002 *
-5.2985
-0.3508 + 0.4001i
-0.3508 - 0.4001i
ans =
L
12-32 Chapter 12: Design via State Space
ans =
1.0e+006 *
0.0006
0.0295
1.3149
21.
Use Equations (4.39) and (4.42) to find ζ= 0.5912 and ωn = 135.328. Factoring the denominator
of Eq. (4.22), the required poles are − 80 ± j109.15. We place the third pole 10 times further at −
800. Multiplying the three closed-loop pole terms yields the desired characteristic equation:
45
Since G(s ) = , the plant in observer canonical form is:
s + 18 s + 95 s + 150
3 2
−18 1 0 0
Aoc = −95 0 1 ; Boc = 0 ; Coc = 1 0 0 ;
−150 0 0 45
1 0 0
Using Eq. (12.79), OMoc = −18 1 0 , which is observable since the determinant is 1.
229 −18 1
45
Since (s ) = , the phase-variable form is:
s + 18 s + 95 s + 150
3 2
0 1 0 0
Apv = 0 0 1 ; Bpv = 0 ; C = 45 0 0 ;
−150 −95 −18 1
Solutions to Design Problems 12-33
45 0 0
Using Eq. (12.79), OMpv = 0 45 0 , which is observable since the determinant is 91125.
0 0 45
The first column of Aoc contains the negative values of the coefficients of the characteristic
equation. Comparing the first column of Aoc to the desired characteristic equation and using Eq.
Transforming back to the original system, Lpv = PLoc = [20.91 2869.17 271556.38] T.
22.
a.
Since both systems are in phase variable form it readily follows that:
det(sI − A1 ) = s2 + 3s + 2
and
s + 3 1
−2 s 0
G1 (s) = C1 (sI − A1 ) B1 = 2 0 2
−1 2
= 2
s + 3s + 2 1 s + 3s + 2
12-34 Chapter 12: Design via State Space
s 2 + 6s + 11 s+6 1
−6 s(s + 6) s
−6s 0
−(11s + 6) s 2
G2 (s) = C2 (sI − A2 ) B2 = 6 2 0
−1
0
s 3 + 6s 2 + 11s + 6
1
2(s + 3) 2
= 3 = 2
s + 6s + 11s + 6 s + 3s + 2
2
b.
C 2 0
OM1 = 1 = ; rank(OM1 ) = 2 System 1 is observable
C 1 A1 0 2
C2 6 2 0
O M 2 = C 2 A 2 = 0 6 2 ; rank(OM2 ) = 2 System 2 is not observable
C2 A22 −12 −22 −6
23.
s+2
The open-loop transfer function of the plant is T(s) = C (sI-A)-1 B = .
s −s−2
2
Using Eqs. (12.115), the closed-loop state equations with integral control are:
•
x1 −1 1 0 x1 0 x1
•
x 2 = − k1 − k2 + 2 ke x2 + 0 r; y = 1 1 0 x2
• −1 −1 0 xN 1 xN
xN
24.
a. By inspection the phase variable form of this system results in
0 1 0 0
A= 0 0 1 ; B = 0 ;
−0.000078 −0.01265 −0.5250 1
b. The characteristic equation of the closed loop system will have 3 poles. Two of them will be
4 1
placed at − = sec −1 to satisfy the settling time spec. The third pole will be placed
300 sec 75
farther to the left of the latter, say at -0.05. The desired characteristic polynomial is
(s + 0.0133)2 (s + 0.05) = s3 + 0.0766s 2 + 0.00150689s + 0.0000088445 = 0
k1 = −6.91555 10−5
c.
>> B=[0;0;1];
>> D=0;
12-36 Chapter 12: Design via State Space
ans =
-0.0133
-0.0133
-0.0500
>> step(A-B*K,B,C,D)
Step Response
0
-0.02
-0.04
-0.06
Amplitude
-0.08
-0.1
-0.12
-0.14
0 100 200 300 400 500 600
Time (sec)
27.
a. From the solution of Problem III the system can be written in phase variable form as:
Solutions to Design Problems 12-37
0 1 0 0
Az = 0 0 1 ; Bz = 0 ;
−0.000078 −0.01265 −0.5250 1
It is readily verified that the rank of OMz is 3 and the system is observable.
Next we write the system in observable canonical form, for this let
−0.958 10 −4 0.01197 10 −4
−4 −4 −
C (s ) −0.958 10 s − 0.01197 10 s2 s3
G(s) = = 3 =
R(s ) s + 0.525s + 0.01265s + 0.000078
2
0.525 0.01265 0.000078
1+ + +
s s2 s3
C x = [1 0 0] ; D x = 0
And
−(0.5250 + l1 ) 1 0
A x − L xCx = −(0.01265 + l2 ) 0 1
−(0.000078 + l3 ) 0 0
The plant has poles at -0.5, -0.0128 and -0.0122. To obtain the tenfold speed increase in the observer
arbitrarily we will place the observer poles 10 times to the left of the plant poles, namely -5, -0.128
s3 + 0.75s2 + 0.1406s + 0.007808 = 0 Comparing the observer and the desired polynomials
we obtain:
Finally
1.7286 106
2
****** L z = OL x = −379 10
700
b.
12-40 Chapter 12: Design via State Space
-
x
Gain9
1 1 1
-
s s K- s
Integrator Integrator Integrator Gain8 3
x
Gain7
K-
-
5 4 3
Gain6 2
x
Gain5
K-
-
1
1 K-
Constant
- K-
Gain4
1 1 1 l1
-
s s K- s
-
Integrator Integrator Integrato Gain3
l2
Gain2
K-
-
- K-
2 1 r
Gain1
l3
-
-
Gain K-
K-
-
K-
K-
K-
Solutions to Design Problems 12-41
12-42 Chapter 12: Design via State Space
28.
a. As per equation (12.115) in the text the augmented system is:
x1 x1 0
x = A − BK Bke x + 0 r
2 −C 0
2
x N xN 1
0 −83.33 166.67 166.67 x1 0
= 500
−
−10 0
k1 k2 0 ke x + 0 r
2
0 −1 0 xN 1
−166.67k1 −(83.33 + 166.67k2 ) 166.67ke x1 0
= 500 −10 0 x + 0 r
2
0 −1 0 xN 1
x1
y = C 0 x2
xN
The desired polynomial for Ts = 0.5sec and %OS=20% with an extra far away pole is:
10 + 166.67k1 = 66 k1 = 0.336
1666.7k1 + 41665 + 83335k2 = 930.6 k2 = −0.4955
83335ke = 6532.5 ke = 0.0783884
b.
1 1 1
1 -K- -K- -K-
s s s
r ke Integrator2 Gain1 Integrator1 Gain2 Integrator c
k1
-K- 10
-83.33
-K-
k2
-K-
12-44 Chapter 12: Design via State Space
29.
a. We start by verifying that the system is controllable. For a system of this order it is best
to use MATLAB or other computing tools:
ans =
n=
1.0e+010 *
d=
1.0e+004 *
Now we find the desired characteristic polynomial using a dominant pole approximation.
4
Assuming a pair of complex conjugate dominant poles Ts = = 2 s, or n = 2 . The
n
10% OS requirement corresponds to a = 0.6 damping factor. Therefore the dominant
poles can be included in a s + 2 n s + n2 = s 2 + 4s + 11.11 . The must be a total of 5
2
poles so arbitrarily we will add three poles 10 times to the left of the dominant poles, namely
( s + 20)3 . Thus the desired polynomial is given by:
D(s) = (s 2 + 4s + 11.11)(s + 20)3
= s 5 + 64s 4 + 1451.11s 3 + 13466.77s 2 + 45335.47s + 88903.11
det(sI − ( Ax − Bx K x ))
= s 5 + (41.89 + k5 x )s 4 + (1526 + k4 x )s 3 + (19150 + k3 x )s 2
+ (79330 + k2 x )s + (85650 + k1x )
We now equate the coefficients of this equation with those of the desired polynomial to get:
This vector is now transformed to the original coordinate system using MATLAB:
0.004189098000000E4];
>> Bx = [0;0;0;0;1];
>> P=ctrb(A,B)*inv(ctrb(Ax,Bx));
>>Kz=Kx*inv(P);
>>Af=(A-B*Kz)
>>step(Af,B,C,D)
Solutions to Design Problems 12-47
5
x 10 Step Response
0
-1
-2
-3
Amplitude
-4
-5
-6
System: sys
-7 Settling Time (sec): 1.83
-8
0 System:0.5
sys 1 1.5 2 2.5 3
Peak amplitude: -7.96e+005 Time (sec)
Overshoot (%): 9.7
At time (sec): 1.23
30.
It follows by inspection, that the phase variable representation of the system is:
0 1 0 0 0
0 0 1 0
xP = x + 0 u
0 0 0 1 0
0 −12308.345 −1023.07 −35.1667 1
12-48 Chapter 12: Design via State Space
d. Using state feedback the closed loop phase state representation has an ACL matrix
0 1 0 0
0 0 1 0
ACL = (AP - BP K P ) =
0 0 0 1
− k1P −(k2 P + 12308.345) −(k 3 P + 1023.07) −( k4 P + 35.1667)
31.
a. The observability matrix is obtained from
C 1 0 0
OMZ
= CΑ = 0 1 0
CΑ 2 −52.6532 −4.9353 −2768.1557
OMZ = −2768.1557 0
Solutions to Design Problems 12-49
−4.9964 1 0
AX = −52.9546 0 1
0.1428 0 0
C x = 1 0 0
Cx 1 0 0
OMX
= Cx Ax = −4.9964 1 0
Cx Ax2 −27.9906 −4.9964 1
−1 0 0
-1
P = O OMX
= −4.9964 1 0
MZ
−1.4017 10 −6 2.2073 10 −5 −3.6125 10 −4
d. We write
−(l1x + 4.9964) 1 0
Ax - L xCx = −(l2 x + 52.9546) 0 1
−(l3 x − 0.1428) 0 0
Comparing with the specified polynomial D(s) = s3 + 30s2 + 316s + 1160 we get
25.0036
L x = 263.0454
1160.1428
12-50 Chapter 12: Design via State Space
e.
25.0036
Lz = PL x = 138.1174
−0.4133
32.
The modified Simulink model is shown below. As could be seen, two state feedback amplifiers
were added: an angle feedback amplifier with a gain of 12 and a speed feedback amplifier with a
gain of 0.1. The settings of the rate feedback amplifier and the PID block (configured as a PD
As could be seen from the scope graph, shown below, using state feedback amplifiers with
appropriate gains improved the impulse response of the angle control loop if compared the
response obtained in problem IX-z: The amplitude of the pulse here has been reduced to 0.17
radians (less than half of that in IX-z) and it goes down to zero in 0.05 rather than in 0.2 seconds.
l
Solutions to Design Problems 12-51
33.
Dividing all terms in the numerator and denominator of GP (s) by s3, we get:
1 1.2 12500
+ +
C (s ) 250 * Y (s) s s2 s3
GP ( s ) = = = 250 *
M (s) M (s) 8.1 62003 31250
1+ + +
s s2 s3
Thus, the plant may be represented as shown below in Figure 1a. Identifying the state variables as
yˆ = 1 0 0 xˆ
12-52 Chapter 12: Design via State Space
Now form the difference between the plant’s actual output, y, and the observer’s estimated
output, ŷ , and add the feedback paths from this difference to the derivative of each state variable.
(a)
(b)
Figure 1
Next find the characteristic polynomial. From Eqs. (12.64) and (12.66), the observer
error is:
Solutions to Design Problems 12-53
−(8.1 + l1 ) 1 0
e x = ( A − LC) e x = −(62003 + l2 ) 0 1 e x ;
•
−(31250 + l3 ) 0 0
The dominant poles of the output, c(t), in the proportionally controlled loop of problem
IX-z were – 34.14 ± j111.44. For the observer to respond 10 times faster, its poles
should be at:
– 341.4 ± j1114.4. Select the third pole to be 10 times the real part of the dominant
observer poles, or – 3414. Hence, the desired characteristic polynomial is:
Interested students can use MATLAB (or any other software) to simulate the observer
and check its response to a step and/or a ramp input.
34.
a.
In chapter 4 we found that the open loop transfer function of this system is type 0. Thus for zero
steady state error, integral control is required. Also as the open loop transfer function has a zero at -
0.02, and this zero will appear as a zero of the closed loop transfer function if not eliminated, it will
be cancelled with a closed loop pole. The 10% overshoot requirement corresponds to a
= 0.6 damping factor. The settling time requirement correspond to a second order term with
4
n = = 0.04 or n = 0.0667 . The desired closed loop polynomial is:
Ts
Following equation (12.115a) in the text, the closed loop system matrix A is given by
A − BK Bke
ACL =
−C 0
−0.04167 0 −0.0058 5.2 5.2
0.0217 −0.24 0.0058 − −5.2 k1 k2 k3 −5.2 ke
=
0 100 −2.4 0 0
0 0 −1 0
−(0.04167 + 5.2k1 ) −5.2k2 −(0.0058 + 5.2k3 ) 5.2ke
0.0217 + 5.2k −0.24 + 5.2k2 0.0058 + 5.2k3 −5.2ke
= 1
0 100 −2.4 0
0 0 −1 0
Equating the coefficients of this polynomial with those of the desired polynomial and solving
b.
-K-
-5.2
1 1 1 1
1 -K- 5.2 -K- -K-
s s s s
Constant Integrator3 ke Gain Integrator 0.0217 Integrator1 100 Integrator2
Scope
-2.4
-0.04167 -0.24
-K-
-K- -K-
k1
0.0058
-K-
-K-
k2
-K-
-0.0058
k3 -K-
-K-
Solutions to Design Problems 12-55
35.
4 4
Ts = 4= n = 1.414 rad/sec
n 0.707 n
• The coordinates of the required dominant poles, – n ± jd = – 1 ± j 1.
• The open-loop transfer-function of the “plant” is given by equation (3.73):
Y (s )
G(s ) = = C(sI − A)-1B + D +++++
U (s)
Here:
12-56 Chapter 12: Design via State Space
s 0 −20 −40 s + 20 40
(sI − A) = − =
0 s 0.2491 −0.0191 −0.2491 s + 0.0191
s + 20 40 s + 0.0191 0.2491
adj
adj(sI − A) −0.2491 s + 0.0191 = −40 s + 20
(sI − A)-1 = =
det(sI − A) s 2 + 20.0191s + 10.346 s 2 + 20.0191s + 10.346
Hence:
s + 0.0191 0.2491 0
0 0.06154
s + 20 1000
G(s ) =
Y (s)
= −40 = 2
61.54 (s + 20)
U (s) s + 20.0191s + 10.346
2
s + 20.0191s + 10.346
Now, we write the closed-loop state equations for the system with integral control in a form similar to
that given in the text by equations 12.115a and 12.115b (Figure 12.21):
Ia −20 −40 0 I a 0
+ 0 r *****
= 0.2491 − 1000k1 −0.0191 − 1000 k2 1000 K e
x N 0 −0.06154 0 x N 1
Ia
And the output equation is given by: y (t ) = v (t ) = 0 0.06154 0
xN
s 0 0 −20 −40 0
(sI − A) = 0 s 0 − 0.2491 − 1000 K1 −0.0191 − 1000 K 2 1000 K e =
0 0 s 0 −0.06154 0
s + 20 40 0
−0.2491 + 1000 K s + 0.0191 + 1000 K 2 −1000 K e
1
0 0.06154 s
The desired characteristic polynomial (with the third pole placed to cancel the zero at -20) is:
s3 + 22 s2 + 42 s + 40
Substituting these values into the state equations for the system yields:
I a −20 −40 0 I a 0
= 0.0001 −2 32.5 + 0 r
x N 0 −0.06154 0 x N 1
Ia
y (t ) = v (t ) = 0 0.06154 0
xN
*****
To check our assumptions, we use Eq. (3.73) and MATLAB to find the closed-loop transfer function
The following MATLAB file was written to plot the step response.
B= [0; 0; 1];
C = [ 0 0.06154 0];
D = 0;
step (T);
The characteristics displayed on the step response shown below indicate that the desired transient and
To find, analytically, the steady-state error for a unit step input, we apply Equation (7.96) to the state
equations to obtain:
−1
−20 −40 0 0
e() = 1 + 0 0.06154 0 0.0001 −2 32.5 0 = 0
0 −0.06154 0 1
Step Response
1.4
System: T
1.2 Peak amplitude: 1.04
Overshoot (%): 4.32
At time (sec): 3.18 System: T
Final Value: 1
1
System: T
Settling Time (sec): 4.22
P. U. Output Speed
0.8
0.6
0.4
0.2
0
0 1 2 3 4 5 6
Time (sec)
Solutions to Design Problems 12-59
36.
The phase-variable form representation of the system is
x1 0 1 x1 0
x = −196 10 −6 + 137.2 10 −6 u(t )
2 −0.0024 x2 1
x
y = 1 0 1
x2
4
The desired closed-loop poles are obtained from Ts = = 200 from which we get
n
n = 0.04 , so s 2 + 2 n s + n2 = s 2 + 0.04s + 0.0016 the roots of which are
−0.02 j 0.03464 . Since integral control will be used a far-away pole is added to the
polynomial, resulting in
(s2 + 0.04s + 0.0016)(s + 0.1) = s3 + 0.14s2 + 0.0056 + 0.00016 .
Following the analysis in this section, the system with feedback can be represented by
x1 0 1 0 0 x1 0
x = −196 10 −6 −0.0024 − 1 k1 k2 1 K e x + 0 r
2 2
x N − 1 0 0 x N 1
0 1 0 x1 0
( )
= − 196 10 + k1 − ( 0.0024 + k2 ) K e x2 + 0 r
−6
−1 0 xN 1
0
x1
y = 1 0 0 x2
x N
x1 0 1 0 x1 0
x = −0.0056 −0.14 0.00016 x + 0 r
2 2
xN −1 0 0 xN 1
x1
y = 1 0 0 x2
x N
Step Response
1.4 System: sys
Peak amplitude: 1.15
Overshoot (%): 14.8
1.2 At time (seconds): 102
System: sys
Settling time (seconds): 210
1
0.8
Amplitude
0.6
0.4
0.2
0
0 50 100 150 200 250 300 350
Time (seconds)