Professional Documents
Culture Documents
1 Introduction
2 Loop shaping design
3 Bode’s ideal loop transfer funtion
4 Minimum phase systems
5 Non-minimum phase systems
6 Fundamental Limitations
7 Performance Assessment
8 Summary
The two fields are radically different in character and emphasis. ... The
fields also differ radically in their mathematical flavor. The typical
regulator system can frequently be described, in essentials, by
differential equations by no more than perhaps the second, third or
fourth order. On the other hand, the system is usually highly nonlinear,
so that even at this level of complexity the difficulties of analysis may
be very great. ... As a matter of idle, curiosity, I once counted to find
out what the order of the set of equations in an amplifier I had just
designed would have been, if I had worked with the differential
equations directly. It turned out to be 55
http://ethw.org/Archives:Conversations_with_the_Elders_-_Nathaniel_Nichols
Start part 1 at Taylor: 26 min, at MIT:36 min
Process variations
Easy to represent in the Nyquist plot
Parameters sweep and level curves of |T (iω)|
Measurement noise not easily visible
Command signal response
Level curves of complementary sensitivity function
Bode plot similar but easier to use for design because its wider
frequency range
1 Introduction
2 Loop shaping design
3 Bode’s ideal loop transfer funtion
4 Minimum phase systems
5 Non-minimum phase systems
6 Fundamental Limitations
7 Performance Assessment
8 Summary
Gain
0
10
-1
10
-2
10
-1 0 1
10 10 10
Phase
-90
-180
-1 0 1
Frequency ω
10 10 10
Low frequencies GxF (s) ≈ 1/k , the spring line, system behaves
like a spring for low frequency excitation
High frequencies GxF (s) ≈ 1/(ms2 ), the mass line,, system
behaves like a mass for high frequency excitation
Bo Bernhardsson and Karl Johan Åström Loop Shaping
Bode Plot of Loop Transfer Function
A Bode plot of the loop transfer function P (s)C(s) gives a broad
characterization of the feedback system
1
10 Performance
log |L(iω) Robustness and Performance
⇐ ωgc ⇒
0
10
-1 0 1
10 10 10
log ω
-90
∠L(iω)
-135
Robustness
-180
-1 0 1
10 10 10
log ω
Im Gl (iω) Im Gl (iω)
n
ωpc n
ωpc
ωbw
ωms Re Gl (iω) ωms Re Gl (iω)
ωbw
ωgc ωsc
ωsc ωgc
log |L(iω)|
2
Im L(iω)
0 1
−2
0
−4
−1
−5 0 5 −4 −3 −2 −1 0
Re L(iω) arg L(iω) [rad]
Hall is a Nyquist plot with level curves of gain and phase for
the complementary sensitivity function T . Nichols=log Hall.
Both make is possible to judge T from a plot of P C
Conformality of gain and phase curves depend on scales
The Nichols chart covers a wide frequency range
The Robustness Valley Re L(iω) = −1/2 dashed
Bo Bernhardsson and Karl Johan Åström Loop Shaping
Finding a Suitable Loop Transfer Function
Process uncertainty
Disturbance attenuation
Robustness
Measurement noise
But the analysis in Chapter XIV (Bode’s relations) shows that the phase shift
is broadly proportional to the rate at which the gain changes. ... A phase
margin of 30◦ correspond to a slope of -5/3.
ω 2 |ω + ω0 |
f = 2
log
ω0 π |ω − ω0 |
5
f (ω/ω0 )
0
-3 -2 -1 0 1 2 3
10 10 10 10 10 10 10
ω/ω0
1
u, y
-1
-2
0 2 4 6 8 10 12 14 16
t
Bo Bernhardsson and Karl Johan Åström Loop Shaping
Control System Design - Loop Shaping
1 Introduction
2 Loop shaping design
3 Bode’s ideal loop transfer funtion
4 Minimum phase systems
5 Non-minimum phase systems
6 Fundamental Limitations
7 Performance Assessment
8 Summary
1 5
0 2
ImL(iω)
|L(iω)|
-1 1
0.5
-2
-3 0.2
0
-3 -2 -1 0 1 10
ReL(iω) ω
L(s) s(s + 1) √ 1
C(s) = = √ = s+ √
P (s) s s s
1
10
|L(iω)|
0
10
-1
10
-2
10
-1 0 1
10 10 10
-128
-130
arg L(iω)
-132
-134
-136
-138
-140
-142
-1 0 1
10 10 10
ω
The phase margin changes only by 5◦ when the process gain varies in
the range 0.03-30! Horowitz QFT is a generalization.
Bo Bernhardsson and Karl Johan Åström Loop Shaping
Time Responses
k k √ 1
P (s) = , L(s) = √ C= s+ √ , k = 1, 5, 25,
s(s + 1) s s s s
1
y
0.5
0
0 1 2 3 4 5 6 7 8 9 10
t
|T (iω)| |P S(iω)|
0 0
10 10
-1 -1
10 10
-2 -2
10 10
-1 0 1 2 -1 0 1 2
10 10 10 10 10 10 10 10
1
|CS(iω)| |S(iω)|
10
0
10
0
10 -1
10
-1 -2
10 10
-1 0 1 2 -1 0 1 2
10 10 10 10 10 10 10 10
k √ 1
P = , k = 1, k = 5, k = 25, C= s+ √
s(s + 1) s
1 Introduction
2 Loop shaping design
3 Bode’s ideal loop transfer funtion
4 Minimum phase systems
5 Non-minimum phase systems
6 Fundamental Limitations
7 Performance Assessment
8 Summary
Sensor noise
Resolution of AD and DA converters
Friction
Dynamics
Ldesired (s) 1
C(s) = , |C(iωgc )| =
P (s) |P (iωgc )|
3
10
|G(iω)|
2
10
1
10
0
10
-2 -1 0 1 2
10 10 10 10 10
140
120
arg G(iω)
100
80
60
40
20
0
-2 -1 0 1 2
10 10 10 10 10
ω
Let G(s) be a transfer function with no poles and zeros in the right half
plane. Assume that lims→∞ G(s) = G∞ . Then
G∞ 2
Z ∞ dω 2
Z ∞
log = arg G(iω) = arg G(iω)d log ω
G(0) π 0 ω π −∞
ϕo
k = e4cϕ0 /π = e2γϕ0
2c
γ=
π
c c c
Hence
|G(0)| 2
Z ∞
log = arg G(iω) d log ω
|G(∞)| π 0
log |C|
p
log Kϕ
p
log Kϕ
ωgc log ω
p
Kϕ max(1, eγ(−π+ϕm−arg P (iωgc )) ) eγϕl
Kc = max |C(iω)| = = =
ω≥ωgc |P (iωgc )| |P (iωgc )| |P (iωgc )|
Bo Bernhardsson and Karl Johan Åström Loop Shaping
Estimating High Frequency Controller Gain 2
C
= CS ≈ C
1 + PC
The largest high frequency gain of the controller is approximately given
by (γ ≈ 1)
PC T L
=T C= =
1 + PC P (1 − T ) P
1 Introduction
2 Loop shaping design
3 Bode’s ideal loop transfer funtion
4 Minimum phase systems
5 Non-minimum phase systems
6 Fundamental Limitations
7 Performance Assessment
8 Summary
Sensor noise
Resolution of AD and DA converters
Friction
Dynamics
1−s
Pnmp (s) = -180
1+s 10
-2 0
10
2
10
0
Time delay L = 2
ωgc not too large -90
0
Right half plane pole p = 1
ωgc must be large -90
s+1
Pnmp (s) = -180
-2 0 2
s−1 10 10 10
(1/5 − s)(s + 5)
Pnmp (s) = -360
-2 0 2
(1/5 + s)(s − 5) 10 10 10
p3
0
1 + s −0.2s -180
10
-2 0
10
2
10
Pnmp (s) = e
1−s
Bo Bernhardsson and Karl Johan Åström Loop Shaping
Examples of Pnmp
Factor process transfer function as P (s) = Pmp (s)Pnmp (s) such that
each non-minimum phase factor is all-pass and has negative phase
1−s 1 1−s 1−s
P (s) = = × , Pnmp (s) =
(s + 2)(s + 3) (s + 1)(s + 2)(s + 3) 1 + s 1+s
1
P (s) = × e−s , Pnmp (s) = e−s
s+1
-2
10
-3
10
0 1 2 3
10 10 10 10
0
arg(P , Pnmp , Pmp )
-90
-180
-270
-360
0 1 2 3
10 10 10 10
ω
arg L(iωgc ) = arg Pnmp (iωgc ) + arg Pmp (iωgc ) + arg C(iωgc )
≥ −π + ϕm
80
ngc = −0.5
ϕlagnmp
60
40 ngc = −1
20 ngc = −1.5
0
30 40 50 60 70 80 90
ϕm
π
ϕm = 6 , ngc = − 12 give ϕlagnmp = 7π ◦
12 = 1.83 (105 )
π 1 π ◦
ϕm = 4 , ngc = − 2 give ϕlagnmp = 2 (90 )
π
ϕm = 3 , ngc = −1 give ϕlagnmp = π6 = 0.52 (30◦ )
π
ϕm = 4 , ngc = −1.5 give ϕlagnmp = 0
Bo Bernhardsson and Karl Johan Åström Loop Shaping
Loop Shaping
1 Introduction
2 Loop shaping design
3 Bode’s ideal loop transfer funtion
4 Minimum phase systems
5 Non-minimum phase systems
6 Fundamental Limitations
7 Performance Assessment
8 Summary
z−s
Pnmp (s) =
z+s
Cross over frequency inequality
ωgc π
arg Pnmp (iωgc ) = −2 arctan ≥ −π + ϕm − ngc = −ϕlagnmp
z 2
ωgc π ϕm π ϕlagnmp
≤ tan( − + ngc ) = tan
z 2 2 4 2
Compare with inequality for ωsc in Requirements Lecture
0 0
10 10
ωgc /z
ωsc /z
ωsc Ms − 1
<
z Ms
-1 -1
10 10
0 20 40 60 80 100 1 1.5 2 2.5
ϕlagnmp Ms
Steam valve
Feed F F
water
L Drum
Oil Turbine
Air
Raiser Down comer
The shrink and swell effect: steam valve opening to drum level
1 − sT /2
Pnmp (s) = e−sT ≈
1 + sT /2
Cross over frequency inequality
π
ωgc T ≤ π − ϕm + ngc = ϕlagnmp
2
π
The simple rule of (ϕlagnmp = π/4) gives ωgc T ≤ = 0.8. Pade
4
1
approximation gives the zero at z = 2T using the inequality for RHP
zero gives similar result. Comp inequality in Requirements lecture
1.6 1.6
1.4 1.4
1.2 1.2
ωgc T
ωgc T
1 1
Ms − 1 0.8 0.8
ωsc T < 2 0.6 0.6
Ms 0.4 0.4
0.2 0.2
20 40 60 80 100 1 1.5 2 2.5
ϕlagnmp Ms
Bo Bernhardsson and Karl Johan Åström Loop Shaping
System with RHP Pole
s+p
Pnmp (s) =
s−p
Cross over frequency inequality
p π
−2 arctan ≥ −π + ϕm − ngc = −ϕlagnmp
ωgc 2
ωgc 1
≥
p tan ϕlagnmp /2
ωgc /p
ωtc Mt
≥
p Mt − 1
0 0
10 10
20 40 60 80 100 1 1.5 2 2.5
ϕlagnmp Mt
(x + i y − s)(x − i y − s)
Pnmp =
(x + i y + s)(x − i y + s)
y+ω y−ω
ϕlagnmp = 2 arctan − 2 arctan
x x
2ωx 2ω|z|ζ
= 2 arctan 2 = 2 arctan 2
x + y2 − ω2 |z| − ω 2
180
150
ϕlagnmp
120
90
60
30
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
ωgc /|z|
Damping ratio ζ = 0.2 (dashed), 0.4, 0.6. 0.8 and 1.0, red dashed
curve single RHP zero. Small ζ easier to control.
Bo Bernhardsson and Karl Johan Åström Loop Shaping
System with RHP Pole and Zero Pair
(z − s)(s + p) z+p
Pnmp (s) = , Ms >
(z + s)(s − p) z−p
Cross over frequency inequality for z > p
ωgc p ωgc p p ϕlagamp
−2 arctan −2 arctan ≥ −ϕlagamp , + ≤ 1− tan
z ωgc z ωgc z 2
p
The smallest value of the left hand side is 2 p/z , which is achieved for
√ √
ωgc = pz , hence ϕlagnmp = 2 arctan (2 pz/(z − p))
z
Plot of ϕlagnmp for =2, 3, 5, 10, 20, 50 and Ms =3, 2, 1.5, 1.2, 1.1, 1.05
p
180
ϕlagnmp
90
0
10 -2 10 -1 10√
0
10 1 10 2
ωgc / pz
Bo Bernhardsson and Karl Johan Åström Loop Shaping
An Example
From Doyle, Francis Tannenbaum: Feedback Control Theory 1992.
s−1 (1 − s)(s + 0.5)
P (s) = , Pnmp =
s2 + 0.5s − 0.5 (1 + s)(s − 0.5)
Keel and Bhattacharyya Robust, Fragile or Optimal AC-42(1997)
1098-1105: In this paper we show by examples that optimum and robust
controllers, designed by the H2 , H∞ , L1 and µ formulations, can produce
extremely fragile controllers, in the sense that vanishingly small perturbations
of the coefficients of the designed controller destabilize the closed loop
system. The examples show that this fragility usually manifests itself as
extremely poor gain and phase margins of the closed loop system.
(s + 26)(6 − s)
Pnmp (s) =
(s − 26)(6 + s)
0
−ϕlagnmp
-90
-180
-1 0 1 2
10 10 10 10
ωgc /p
Bo Bernhardsson and Karl Johan Åström Loop Shaping
Stabilizing an Inverted Pendulum with Delay
Ms − 1
ωgc L < ϕlagnmp , ωsc L < 2
Ms
A RHP pole p gives a lower bound on the bandwidth:
ωgc 1 ωtc Mt
> ϕlagnmp
, >
p tan p Mt − 1
2
Bo Bernhardsson and Karl Johan Åström Loop Shaping
Dynamics Limitations for NMP Systems - Part 2
z+p π
Ms > , ϕlagnmp > (60◦ )
z−p 3
A process with a RHP poles zero pair with p > z cannot be
controlled robustly with a controller having no poles in the RHP
The product of a RHP pole and a time delay cannot be too large
π
Ms > epL , ϕlagnmp < (60◦ )
3
What about a controller with RHP poles?
ωgc
A RHP zero z : gives an upper bound to bandwidth: < 0.5
z
ωgc
A double RHP zero: < 0.25
z
A time delay L gives an upper bound to bandwidth: ωgc L < 1
ωgc
A RHP pole p gives a lower bound to bandwidth: >2
p
ωgc
A double RHP pole: >4
p
z
A RHP pole zero pair requires: >4
p
1 Introduction
2 Loop shaping design
3 Bode’s ideal loop transfer funtion
4 Minimum phase systems
5 Non-minimum phase systems
6 Fundamental Limitations
7 Performance Assessment
8 Summary
log |L(iω)
Robustness and Performance
0
⇐ ωgc ⇒
10
-1 0 1
10 10 10
-90
∠L(iω)
-135
Robustness
-180
-1 0 1
10 10 10
log ω
3
10
2
10
Kc
1
10
0
10
-1 0 1
10 10 10
PI
-90
I
∠P (iω)
PID
-180
P
-270 D
-360
-1 0 1
10 10 10
ωgc
3
10
Kc
2
10
1
10
0
10
-1 0 1 2
10 10 10 10
0
∠P (iω), ∠Pnmp (iω)
PI
-90 I
PID
-180
P
-270 D
-360
-1 0 1 2
10 10 10 10
ωgc
1 s + 10 −0.01s s + 10 −0.01s
P (s) = e , Pnmp (s) = e
(s + 10)2 s − 10 s − 10
4
10
3
10
Kc
2
10
1
10
0
10
0 1 2 3
10 10 10 10
0
∠P , ∠Pnmp
-90
-180
-270
D
-360
0 1 2 3
10 10 10 10
ωgc
1 Introduction
2 Loop shaping design
3 Bode’s ideal loop transfer funtion
4 Minimum phase systems
5 Non-minimum phase systems
6 Fundamental Limitations
7 Performance Assessment
8 Summary