Lecture 4 (15-17)
Lecture 4 (15-17)
15
𝑥̇ (∞) = (𝐴 − 𝑏𝑘)𝑥(∞) + 𝑏𝑘1 𝑅 = 0
∴ 𝑥(∞) = −(𝐴 − 𝑏𝑘)−1 𝑏𝑘1 𝑅 (1.14)
Also, 𝑢(∞) can be obtained as:
𝑢(∞) = −𝑘𝑥(∞) + 𝑘1 𝑅 = 0 (1.15)
Example 1.12: Design a type 1 servo system when the plant transfer function has an
integrator. Assume that the plant transfer function is given by:
𝑌(𝑠) 1
=
𝑈(𝑠) 𝑠(𝑠 + 1)(𝑠 + 2)
The desired closed loops are 𝑠1,2 = 2 ∓ 𝑗2√3 𝑎𝑛𝑑 𝑠3 = −10. Assume that the reference
input r is unit step function. Obtain the unit step response of the designed system.
Solution:
The state space representation of the system becomes:
𝑥̇ 1 0 1 0 𝑥1 0
[𝑥̇ 2 ] = [0 0 1 ] [𝑥2 ] + [0] 𝑢
𝑥̇ 3 0 −2 −3 𝑥3 1
𝑥1
𝑥
𝑦 = [1 0 0] [ 2 ]
𝑥3
Using Ackerman’s formula we can find the gains vector k. (H.W. Find k). Or using the
following MATLAB codes, we can find k.
A=[0 10;0 0 1;0 -2 -3];
B=[0;0;1];
J=[-2+j*2*sqrt(3) -2-j*2*sqrt(3) -10];
K=acker(A,B,J)
After run this program the values of k are:
𝑘 = [160 54 11]
The unit step response of the designed system can be obtained as follows:
0 1 0 0 0 1 0
𝐴 − 𝑏𝑘 = [0 0 1 ] − [0] [160 54 11] = [ 0 0 1 ]
0 −2 −3 1 −160 −56 −14
The state equation of the given system with k matrix is given by:
𝑥̇ 1 0 1 0 𝑥1 0
𝑥̇
[ 2] = [ 0 0 𝑥
1 ] [ 2] + [ 0 ] 𝑟
𝑥̇ 3 −160 −56 −14 𝑥3 160
𝑥1
𝑦 = [1 0 0] [𝑥2 ]
𝑥3
By using the following MATLAB program, the unit step response can be ploted.
16
% Unit step response
clc;
clear all;
% Enter the state matrix, control matrix and output matrix of the given
% system
A=[0 1 0;0 0 1;0 -2 -3];
b=[0;0;1];
c=[1 0 0];
d=[0];
% Enter the state matrix, control matrix and output matrix of the designed
% system
AA=[0 1 0;0 0 1;-160 -54 -14];
bb=[0;0;160];
c=[1 0 0];
d=[0];
% Enter step command and plot command
t=0:0.1:5;
y1=step(A,b,c,d,1,t);
y2=step(AA,bb,c,d,1,t);
plot (t,y1,t,y2)
17