Professional Documents
Culture Documents
Systems
• BIBO: Bounded Input Bounded Output systems.
• For LTI systems this requires that all poles of the closed-loop
transfer function lie in the left half of the complex plane.
• Determine if the transfer function has any poles either on
the imaginary axis or in the right half of the s-plane.
P2 ( s ) s 2 a1s a0 ( s p1 )( s p2 )
s 2 ( p1 p2 ) s p1 p2
P2 ( s ) s 3 a2 s 2 a1s a0 ( s p1 )( s p2 )( s p3 )
s 3 ( p1 p2 p) s 2 ( p1 p2 p1 p3 p2 p3 ) s p1 p2 p3
• We see that the coefficients of the polynomial are given by:
an 1 negative of the sum of all roots.
an 2 sum of the products of all possible combinatio ns
of roots taken 2 at a time.
an 3 negative of the sum of the products of all
possible combinatio ns of roots taken 3 at a time.
• Suppose that all the roots are real and on the left half
plane, then all coefficients of the polynomial are positive.
• If all the roots are real and in the left half plane then no
coefficient can be zero.
• The only case for which a coefficient can be negative is
when there is at least one root in the right half plane.
• The above is also true for complex roots.
1) If any coefficient is equal to zero, then not all roots are in
the left half plane.
2) If any coefficient is negative, then at least one root is in
the right half plane.
3) The converse of rule 2) is not always true.
• Example:
P( s) s 3 s 2 2s 8 ( s 2)( s 2 s 4)
all coefficien ts are positive. But two roots
(complex) are in the right half plane.
Routh-Hurwitz Stability Criterion
q( s) s 3 s 2 2s 8 ( s 2)( s 2 s 4)
the system is unstable yet all coefficien ts are positive.
• The Routh-Hurwitz criterion applies to a polynomial of the
form:The Routh-Hurwitz array:
P( s) an s n an 1s n 1 ....... a1s a0
assume a0 0
n
s an an 2 an 4 an 6 ....
s n 1 an 1 an 3 an 5 an 7 ....
s n2 b1 b2 b3 b4 ....
s n 3 c1 c2 c3 c4 ....
. . .
1 an an 2 1 an an 4
. . . b1 b2 , .......
an 1 an 1 an 3 an 1 an 1 an 5
s2 k1 k2
s1 l1 1 an 1 an 3 1 an 1 an 5
c1 c2 , ......
s0 m1 b1 b1 b2 b1 b1 b3
• Columns of s are only for accounting.
• The b row is calculated from the two rows above it.
• The c row is calculated from the two rows directly above it.
• Etc…
• The equations for the coefficients of the array are:
1 an an 2 1 an an 4
b1 b2 , .......
an 1 an 1 an 3 an 1 an 1 an 5
1 an 1 an 3 1 an 1 an 5
c1 c2 , ......
b1 b1 b2 b1 b1 b3
• Example:
P( s ) s 3 s 2 2 s 8 ( s 2)( s 2 s 4)
The Routh array is :
s3 1 2
s2 1 8
s1 -6
s0 8
• Since there are two sign changes on the first column, there are two roots
of the polynomial in the right half plane: system is unstable.
– Add poles
– Add zeros
PID Control
The Characteristics of P, I, and D controllers (in isolation)
A proportional controller (Kp) will have the effect of
1.Reducing the rise time
but never eliminate, the steady-state error.
Lastly, please keep in mind that you do not need to implement all
three controllers (proportional, derivative, and integral) into a single
system, if not necessary. For example, if a PI controller gives a good
enough response (like the above example), then you don't need to
implement derivative controller to the system. Keep the controller as
simple as possible.
Open-Loop Control - Example
1
G( s )
2
s 10s 20
num=1;
den=[1 10 20];
step(num,den)
Proportional Control - Example
The proportional controller (Kp) reduces the rise time, increases the
overshoot, and reduces the steady-state error.
Kp
T( s )
MATLAB Example 2
s 10 s ( 20 Kp)
Step Response
From: U(1)
1.4
Kp=300; 1.2
Step Response
From: U(1)
1
num=[Kp]; 1
0.9
0.8
Amplitude
0.8
To: Y(1)
Amplitude
t=0:0.01:2;
To: Y(1)
0.4 0.5
step(num,den,t) 0.2
K=300 0.4
K=100
0.3
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 0.2
Time (sec.)
0.1
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (sec.)
Step Response
From: U(1)
1.4
1.2
Amplitude
0.8
To: Y(1)
0.6
0.4 Kp=300
0.2 Kd=10
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (sec.)
Step Response
From: U(1)
1
0.9
0.8
0.7
0.6
Amplitude
To: Y(1)
0.5
0.4 Kd=20
0.3
0.2
0.1
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (sec.)
Proportional - Derivative - Example
The derivative controller (Kd) reduces both the overshoot and the
settling time. Kd s Kp
Step Response
T( s )
2
s ( 10 Kd) s ( 20 Kp)
From: U(1)
1.4
1.2
1
Amplitude
0.8
To: Y(1)
0.6
0.4
Kd=10
0.2 Step Response
Kp=300; 1
From: U(1)
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 0.9
0.7
Amplitude
To: Y(1)
0.5
den=[1 10+Kd 20+Kp]; 0.4
t=0:0.01:2; 0.3
0.2
Kd=20
step(num,den,t) 0.1
0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time (sec.)
Proportional - Integral - Example
The integral controller (Ki) decreases the rise time, increases both
the overshoot and the settling time, and eliminates the steady-state
Step Response
error 1.4
Kp s Ki
From: U(1)
1.2
T( s )
3 2
1
s 10 s ( 20 Kp) s K
Amplitude
0.8
To: Y(1)
0.6
0.4
Ki=70; 0
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
1.2
Time (sec.)
1
num=[Kp Ki];
Ki=70
Amplitude
0.8
To: Y(1)
den=[1 10 20+Kp Ki]; 0.6
0.4
Time (sec.)
1.2 1.4 1.6 1.8 2
Proportional-Integral-Derivative (PID) Control
R( s) E ( s) U c ( s)
KI Y ( s)
KP KD s Plant
s
PID controller
P T
0
L
PI T L
0.9 0
L 0.3
PID T
1.2 2L 0.5L
L
Second method.
Set K I K D 0 and use the proportional control only
Increase K P from 0 to ∞ to a critical value K cr at which
the output first exhibits sustained oscillations
If the output does not exhibit sustained oscillations for
whatever value K P may take, then this method does not
apply.
R( s) E ( s) U c ( s) Y ( s)
KP Plant
KI 1
Gc ( s ) K P K D s K P 1 TD s
s TI s
Second method.
y (t )
Pcr
0
t
Second method.
Table II
Type of
Controller KP TI TD
P
0.5K cr 0
PI 1
0.45K cr Pcr 0
1.2
PID
0.6 K cr 0.5Pcr 0.125Pcr
Comments
Ziegler-Nichols tuning rules have been widely
used to tune PID controllers in process control
systems where the plant dynamics are not
precisely known.
R( s) E ( s) U c ( s) 1 Y ( s)
Gc ( s )
s( s 1)( s 5)
PID controller Plant
Y ( s) KP
R( s ) s( s 1)( s 5) K P
1
s( s 1)( s 5)
Step Response
6000
5000
4000
Amplitude
3000
2000
1000
0
0 0.5 1 1.5 2 2.5 3
4
Time (sec) x 10
R( s) E ( s) U c ( s) 1 Y ( s)
Gc ( s )
s( s 1)( s 5)
PID controller Plant
6.3223 s 1.4235
2
1
Gc ( s ) 18 1 0.35124 s
1.405s s
R( s) E ( s) U c ( s) 1 Y ( s)
Gc ( s )
s( s 1)( s 5)
PID controller Plant
1.6
1.4
1.2
Amplitude
0.8
0.6
0.4
0.2
0
0 5 10 15
Time (sec)
R( s) E ( s) U c ( s) 1 Y ( s)
Gc ( s )
s( s 1)( s 5)
PID controller Plant