Professional Documents
Culture Documents
Objective:
The objective of this experiment is to determine a stability of the linear
control system using Routh-Hurwitz criterion.
Introduction:
Routh-Hurwitz Criterion:
Example 2.1: Consider the unity feedback system of Figure 2.1 with:
200
𝐺(𝑠) =
𝑠(𝑠 3 + 6𝑠 2 + 11𝑠 + 6)
Solution:
𝑠4 1 11 200
𝑠3 6(1) 6(1) 0
𝑠2 10(1) 200(20)
𝑠1 -19 0
𝑠0 20
There are two changes of sign in the first column of array. So there are
two roots in the right half plane, and hence the system is unstable.
>> % To determine the stability of the system for Example 2.1 using MATLAB %
>> a=200;
>> b1=[1 0];
>> b2=[1 6 11 6];
>> b=conv(b1,b2);
>> x=tf(a,b);
>> sys=feedback(x,1);
>> p=pole(sys);
>> subplot(1,2,1)
>> pzmap(sys)
>> subplot(1,2,2)
>> step(sys)
1
2
0
-1
1
Imaginary Axis
-2
Amplitude
0 -3
-4
-1
-5
-6
-2
System: sys
-7 Final Value: Inf
-3 -8
-6 -4 -2 0 2 0 5 10 15 20
Real Axis Time (sec)
Figure 2.2: Pole - Zero map and step response for Example 2.1.
Example 2.2: Use MATLAB to determine the stability of the closed loop
transfer function:
2
𝑇(𝑠) =
𝑠 4 + 2𝑠 3 + 3𝑠 2 + 6𝑠 + 5
Solution:
𝑠4 1 3 5
𝑠3 2 6 0
𝑠2 0(𝜀) 5
6𝜀−10
𝑠1 0
𝜀
𝑠0 5
When the first column term in any row zero is occurs (that indicates
there are symmetrical any even roots about the real axis). Since 𝜀 is
small and positive value, it can be seen there is two sign changes in the
first column. Hence, the system is unstable and has two poles are
symmetric about the real axis in the right half plane.
>> % To determine the stability of a system for Example 2.2 using MATLAB %
>> s=tf('s');
>> T=2/(s^4+2*s^3+3*s^2+6*s+5);
>> subplot(1,2,1)
>> pzmap(T)
>> subplot(1,2,2)
>> step(T)
25
Pole-Zero Map x 10 Step Response
2 2
System: T
Final Value: Inf
1.5
1.5
1
0.5
Imaginary Axis
Amplitude
0 0.5
-0.5
0
-1
-0.5
-1.5
-2 -1
-1.5 -1 -0.5 0 0.5 0 50 100 150 200
Real Axis Time (sec)
Figure 2.3: Pole - Zero map and step response for Example 2.2.
Example 2.3: Consider the system has the forward transfer function:
4
𝐺(𝑠) =
𝑠 5 + 4𝑠 4 + 8𝑠 3 + 8𝑠 2 + 7𝑠
Determine the stability of the system using MATLAB.
Solution:
𝑌(𝑠) 𝐺(𝑠) 4
= = 5
𝑅(𝑠) 1 + 𝐺(𝑠)𝐻(𝑠) 𝑠 + 4𝑠 4 + 8𝑠 3 + 8𝑠 2 + 7𝑠 + 4
𝑠5 1 8 7
𝑠4 4 8 4
𝑠3 6 6
𝑠2 4 4
𝑑𝐴(𝑠)
= 8𝑠 + 0
𝑑𝑠
Replace the row of zeros with the derivative constants.
𝑠5 1 8 7
𝑠4 4 8 4
𝑠3 6 6
𝑠2 4 4
𝑠1 8 0
𝑠0 4
When a row of all zeros occurs (that indicates there are roots symmetrical
about the origin), since there is no change of sign in the first column of
array, this means no poles in the right half plane. Also, there is no sign
change from 𝑠 2 row down to the 𝑠 0 row. Thus, the system is marginally
stable and has two poles on the imaginary axis.
>> % To determine the stability of a system for Example 2.3 using MATLAB %
>> a=4;
>> b=[1 4 8 8 7 0];
>> x=tf(a,b);
>> sys=feedback(x,1);
>> subplot(1,2,1)
>> pzmap(sys)
>> subplot(1,2,2)
>> step(sys)
1.6
1
1.4
0.5 1.2
Imaginary Axis
Amplitude
1
0
0.8
-0.5 0.6
0.4
-1
0.2
-1.5 0
-2 -1 0 1 0 10 20 30
Real Axis Time (sec)
Figure 2.4: Pole - Zero map and step response for Example 2.3.
Example 2.4: Consider the system given in Figure 2.5. Find the range of
values of K for which the system to be stable, unstable, and marginally
stable. Also, find the frequency of oscillation. Verify your results using
MATLAB.
Solution:
𝐾 1
𝐺(𝑠) = , 𝐻(𝑠) =
𝑠(𝑠 + 2) 𝑠+1
𝑠3 1 2
𝑠2 3 K
6−𝐾
𝑠1 3
𝑠0 K
>> % To determine the stability of a system for Example 2.4 when K=3
using MATLAB %
>> s=tf('s');
>> K=3; % In the second case: let K=9, and in the third case: let K=6 %
>> G=1/(s*(s+2));
>> H=1/(s+1);
>> T=feedback(K*G,H);
>> subplot(1,2,1)
>> pzmap(T)
>> subplot(1,2,2)
>> step(T)
1.8
1
1.6
1.4
0.5
Imaginary Axis
1.2 System: T
Amplitude
Final Value: 1
0 1
0.8
-0.5
0.6
0.4
-1
0.2
-1.5 0
-3 -2 -1 0 0 10 20 30
Real Axis Time (sec)
Figure 2.6: Pole - Zero map and step response for K=3.
1.5 1.5
System: T
Final Value: Inf
1 1
Imaginary Axis
0.5 0.5
Amplitude
0 0
-0.5 -0.5
-1 -1
-1.5 -1.5
-2 -2
-4 -2 0 2 0 50 100
Real Axis Time (sec)
Figure 2.7: Pole - Zero map and step response for K=9.
1.5
Amplitude
0 1
0.5
-0.5
0
-1
-0.5
-1.5 -1
-3 -2 -1 0 1 0 5 10 15 20
Real Axis Time (sec)
Figure 2.8: Pole - Zero map and step response for K=6.
The oscillation frequency is from 2nd order equation from the second
row we have:
𝜔 = 1.414 rad/sec.
0 0 1 10
𝐴 = [ −2 −8 1 ], 𝐵 = [ 0 ] , 𝐶 = [1 0 0], and 𝐷 = [0]
−10 −12 −2 0
Find how many poles are in the left half plane, in the right half plane,
and on the imaginary axis using MATLAB.
Solution:
First, from (𝐬𝐈 − 𝐀):
𝑠 0 0 0 0 1 𝑠 0 −1
(sI − A) = [ 0 𝑠 0] − [ −2 −8 1] = [ 2 𝑠 + 8 −1 ]
0 0 𝑠 −10 −12 −2 10 12 𝑠+2
Now, find the det (𝐬𝐈 − 𝐀):
det (sI − A) = 𝑠 3 + 10 𝑠 2 + 38 𝑠 + 56
𝑠3 1 38
𝑠2 10 56
𝑠1 32.4 0
𝑠0 56
Since there are no sign changes in the first column, the system has all
poles in the left half plane. Therefore, the system is stable.
>> % To determine the stability of the system for Example 2.5 using MATLAB %
>> A=[0 0 1;-2 -8 1;-10 -12 -2];
>> B=[10;0;0];
>> D=0;
>> eig(A);
>> sys=ss(A,B,C,D);
>> subplot(1,2,1)
>> pzmap(sys)
>> subplot(1,2,2)
>> step(sys)
2
5
1.5
System: sys
Final Value: 5
1
4
0.5
Imaginary Axis
Amplitude
0 3
-0.5
2
-1
-1.5
1
-2
-2.5 0
-6 -4 -2 0 0 1 2 3 4 5
Real Axis Time (sec)
Figure 2.9: Pole - Zero map and step response for Example 2.5.
Example 2.6: Consider the control system for the two – track vehicle is
shown in Figure 2.10. The design of a turning control for a tracked
vehicle involves the selection of two parameters. Use MATLAB to find
𝑎 and 𝐾 such that the system is stable.
Solution:
The characteristic equation of the feedback system is:
1 + 𝐺𝑐 (𝑠)𝐺(𝑠) = 0
or
𝐾(𝑠 + 𝑎)
1+
𝑠(𝑠 + 1)(𝑠 + 2)(𝑠 + 5)
Therefore, we have:
𝑠 4 + 8𝑠 3 + 17𝑠 2 + (𝐾 + 10)𝑠 + 𝐾𝑎 = 0
𝑠4 1 17 𝐾𝑎
𝑠3 8 (𝐾 + 10) 0
𝑠2 (126 − 𝐾)/8 𝐾𝑎
(126−𝐾)(𝐾+10)−64𝐾𝑎
𝑠1 0
126−𝐾
𝑠0 𝐾𝑎
2.5
1.5
a
Stable region
0.5
0
20 30 40 50 60 70 80 90 100 110 120
K
Figure 2.11: Block diagram for two-track vehicle control system.
-----------------------------------------------------------------------------------------
Homework 2.1: Using MATLAB, determine if the following systems are
stable, marginally stable, or unstable. In each case, the system transfer
function is given:
3𝑒 −2𝑠 10(𝑠 − 2)
𝟏. 𝐺(𝑠) = 3 𝟐. 𝑇(𝑠) =
𝑠 + 5𝑠 2 + 9𝑠 + 6 𝑠 5 + 2𝑠 3 + 2𝑠
-----------------------------------------------------------------------------------------
Homework 2.2: The block diagram of a system is shown in Figure 2.12.
Use MATLAB to:
1. Find the transfer function 𝑌(𝑠)/𝑅(𝑠).
2. Determine if the system is stable or not?
(a) (b)
2 1 1 0
𝑥̇ (𝑡) = [ 1 7 1 ] 𝑥(𝑡) + [0] 𝑟(𝑡)
−3 4 −5 1
𝑦(𝑡) = [0 1 0] 𝑥(𝑡)