Control Theory: Germán Andrés Ramos, PHD
Control Theory: Germán Andrés Ramos, PHD
In continuous time
In discrete time
• Computer tools
• Gz(ej!) is an irational function of !
Frequency domain design
Principio del argumento
F(s)
From [1]
ymSP u y ym
Frequency domain
H (z) design
H (z) H (z) c u s
R(s)
ym SP u Yym(s)
C(s)
Hc (z) G(s)
Hp (z)
Figure 31: Converting an extracted part of the detailed block diagram in Figure 30
into a compact block diagram. L(z) is the loop transfer function.
Frequency domain design
Nyquist plot
Gl (s)
Gl (s)
From [5]
Frequency domain design
Nyquist plot
Gl (s)
From [1]
s +1
Gl (s) = 2 F(s) = 1+ Gl (s)
s (s − 2)
Frequency domain design
Nyquist plot – polar plot
3.5 Frequency R
Gl (s)
Im G(iω )
Ultimate point
−1 ϕ Re G(iω )
a
B A
L( s )
L
that number. What about determining the angular change of the vector
1 + L(z)? Figure 34 shows how the vector (or complex number) 1 + L(z)
appears in a Nyquist diagram for a typical plot of L(z). A Nyquist diagram is
The Curve B
critical is mapped
point 1 to origo
0
Re L(z)
Gl (s)
1 + L(z)
Gl (s)
Distance of the
Nyquist curve Nyquist
curve of Decreasing
to the critical point
(-1,0): L(z)
Gl (s) Positive
From [7]
Curve A1
1+ Gl (s) is mapped
to here
Figure 34: Typical Nyquist curve of L(z). The vector 1 + L(z) is drawn.
arg [1 + L(z)]
PCL = + POL (306)
360
If PCL = 0, the closed loop system is asymptotically stable.
Frequency domain design Let us take a closer look at the terms on the right side of (306): POL are the
number of the roots of dL (z), and there should not be any problem calculating
that number. What about determining the angular change of the vector
1 + L(z)? Figure 34 shows how the vector (or complex number) 1 + L(z)
appears in a Nyquist diagram for a typical plot of L(z). A Nyquist diagram is
Curve A2
Theorem: is mapped
Im G
L(z)
l (s) Negative
to here
Go(s) is stable if and only if the
The Curve B
Nyquist plot of Gl(s) does not pass critical is mapped
through critical point (-1,0) and the point 1 to origo
number of counterclockwise 0
Re L(z)
Gl (s)
encirclements of (-1,0) equals the
number of open right-half-plane 1 + L(z)
Gl (s)
poles of Gl(s) Nyquist
curve of Decreasing
L(z)
Gl (s) Positive
Curve A1
is mapped From [7]
to here
Figure 34: Typical Nyquist curve of L(z). The vector 1 + L(z) is drawn.
More about the Nyquist curve of L(z) Let us take a more detailed look
arg [1 + L(z)]
PCL = + POL (306)
360
If PCL = 0, the closed loop system is asymptotically stable.
Frequency domain design Let us take a closer look at the terms on the right side of (306): POL are the
number of the roots of dL (z), and there should not be any problem calculating
that number. What about determining the angular change of the vector
1 + L(z)? Figure 34 shows how the vector (or complex number) 1 + L(z)
appears in a Nyquist diagram for a typical plot of L(z). A Nyquist diagram is
Curve A2
Corollary: is mapped
Im G
L(z)
l (s) Negative
to here
If Gl(s) has no open right-half-plane
The Curve B
poles, then Go(s) is stable if and only critical is mapped
if the Nyquist plot of Gl(s) does not point 1 to origo
encircle nor pass through critical 0
Re L(z)
Gl (s)
point (-1,0)
1 + L(z)
Gl (s)
Nyquist
curve of Decreasing
L(z)
Gl (s) Positive
Curve A1
is mapped
to here From [7]
Figure 34: Typical Nyquist curve of L(z). The vector 1 + L(z) is drawn.
More about the Nyquist curve of L(z) Let us take a more detailed look
Frequency domain design
Design criteria
• Gain and phase margins:
From [1]
Frequency domain design
Design criteria
• Gain and phase margins:
From [6]
Frequency domain design
Design criteria
• Gain and phase margins:
From [6]
Frequency domain design
Design criteria
• Gain and phase margins:
From [1]
Frequency domain design
• Gain and phase margins (OL) – transient response (CL)
For a second order continuous time system: ω2
Go (s) = 2
s + 2ζω s + ω 2
Go ( jω )
cutoff frequency
ωc
bandwidth
From [5]
Resonant peak
overshoot # 1
− πζ % ζ < 0.707
1−ζ 2
M r = $ 2ζ 1− ζ 2
Mp = e %
& 1 ζ ≥ 0.707
Frequency domain design
• Gain and phase margins (OL) – transient response (CL)
For a second order continuous time system: ω2
Go (s) = 2
s + 2ζω s + ω 2
• φ m = 100ζ
Discrete proportional
feedback of
1
G(s) = 2
s +s
Open loop
phase margin and
closed-loop damping
ratio as the feedback
gain was varied
From [6]
Frequency domain design
Gain and phase margins (OL) – transient response (CL)
K p = lim C(s)G(s)
s→0
K v = lim sC(z)G(z)
s→0
Frequency domain design
1
Given the closed loop transfer function: E(s) = R(s)
1+ G(s)C(s)
• Position error constant:
1
- For a step reference: R(s) =
s
1 1
E(z) =
1+ G(s)C(s) s
1 1 1
ess = lim sE(s) = lim s = lim
s→0 s→0 1+ G(s)C(s) s s→0 1+ G(s)C(s)
Obtaining
1 where K p = lim C(s)G(s)
ep = s→0
1+ K p
Frequency domain design
1
Given the closed loop transfer function: E(s) = R(s)
1+ G(s)C(s)
• Position error constant:
1
- For a step reference: R(s) =
s2
1 1
E(z) =
1+ G(s)C(s) s 2
1 1 1
ess = lim sE(s) = lim s 2
= lim
s→0 s→0 1+ G(s)C(s) s s→0 s + sG(s)C(s)
Obtaining
1 where K v = lim sC(z)G(z)
ev = s→0
Kv
Frequency domain design
Syteady state error vs system type
System Kp Kv Ka
Type \ Error
constant
0 K 0 0
I ∞ K 0
II ∞ ∞ K
System ep ev ea
Type \ Error
0 k ∞ ∞
I 0 k ∞
II 0 0 k
Frequency domain design
Syteady state error in bode plot
From [1]
Frequency domain design
Specifications of control systems
Frequency domain design
1+ aT1s
C(s) =
1+ T1s
0 < a <1
From [1]
Frequency domain design
Design procedure:
1+ bT2 s
C2 (s) =
1+ T2 s
b >1
1+ sin φ m
b=
1− sin φ m
From [1]
Frequency domain design
Design procedure:
• Calculate Ψ = φrequired − φ1 + θ
• Compute 1+ sin Ψ
b=
1− sin Ψ
• Draw a horizontal line with gain −10 log(b)
• The intersection with the bode plot will be the new gain
crossover frequency !g'
• Measure the resulting phase margin
Frequency domain design
1
• Ejemplo: G(s) =
s(s + 2)
ymSP u y ym
Hc (z) Hu(z) Hs(z)
Frequency domain design
Sensitivity function: Making compact
E(s)
GL(z)
G (s)
l l(z)
R(s)
ym SP u Yym(s)
C(s)
Hc (z) G(s)
Hp (z)
where nL (z) and dL (z) are the numerator and denominator polynomials of
Frequency domain design
Sensitivity function:
In the frequency domain The following can be defined
1
S( jω ) = S5.4
∞ = S(s) = max S( jω
Disturbance
∞
)
Attenuation
1+ Gl ( jω ) ω
1
10
S∞
0
! S(iω )!
10
−1
10
−2
10
−2 −1 0 1
10 10 10 10
ω sc ω ms
ω ω From [2]
Frequency domain design
Feedback Fundamentals
Sensitivity function:
Distance of the Nyquist curve
to the critical point (-1,0):
1
1+ Gl (s) =
S(s)
1+ Gl (s) Minimum distance:
−1
1/ S
Ms ω ms 1
∞
S(s) ∞
From [2]
C(s)ΔG(s)
CΔ P C(s)ΔG(s) < 1+ Gl (s)
This condition can be re-written as
ΔG( jω ) 1
Gl (s) <
T (s) = = Go (s) G( jω ) T ( jω )
1+ Gl (s)
yquist curve of a nominal loop transfer function and its uncertainty
ss variations Δ P.
Frequency domain design
Sensitivity function – plant variations
dback Fundamentals
1+
1+ Gl L
(s) ΔG( jω ) 1
<
G( jω ) T∞
C(s)ΔG(s)
CΔ P
where T∞ = T (s) ∞ = max T ( jω )
ω
We have also seen from Equations (5.6) and (5.13) that it is advantageous to
have a small value of the sensitivity function and it follows from (5.10) that a
small value of the complementary sensitivity allows large process uncertainty.
since Gl (s) 1
T (s) = S(s) =
1+ Gl (s) 1+ Gl (s)
This equation shows that if the sensitivity function is made smaller for
some frequencies it must increase at other frequencies. This means that
Frequency domain design
if disturbance attenuation is improved in one frequency range it will be
worse in other. This has been been called the water bed effect.
Equation (5.18) implies that there are fundamental limitations to what
can beSensitivity
achieved byfunction
control and– plant variations
that control design can be viewed as a
redistribution of disturbance attenuation over different frequencies.
For For a loop
a loop transfer
transfer functionwithout
function without poles
polesininthe right
the halfhalf
right plane (5.18)
plane (5.18)
reduces to
reduces to ! ∞
log ! S(iω )!dω = 0
0
of complex variables,
−1
in particular contour integration. Assume that the
loop transfer function has distinct poles at s = pk in the right half plane
and that L(s) −2
goes to zero faster than 1/ s for large values of s. Consider
the integral of−3 the logarithm of the sensitivity function S(s) = 1/(1 From + [2]
L(s)) over the contour
0
shown in
0.5 1
Figure ω 5.18. The contour encloses the
1.5 2 2.5 3
right half plane except the points s = pk where the loop transfer function
has poles
L(s) = P(s) C (s)Figure and the
5.17 Geometric sensitivity
interpretation function
of Bode’s has
S(s)(5.18
integral formula ). zeros. The
A Bode Integral Interpretation 10
red as a per- ademic control designer with more
I like abstract
to think tools such
of Bode’s integrals as
as conservation laws. They
state precisely that a certain quantity—the integrated value
matic Control linear quadratic Gaussian (LQG), H , convex optimization,
of the log∞of the magnitude of the sensitivity function—is
and the like, at his disposal. This designer
under guides a of
powerful
Log Magnitude
conserved the action feedback. The total amount
ntil 1983, in a ditch-digging machine by remote control from the safety
of this quantity is always the same. It is of
equal to zero for sta-
otal amount adopted a name for this quantity being con- Machine
served (i.e., the integrated log of sensitivity
zero for sta-
1.0 magnitude), to put it on a par with some of the
Log Magnitude
o some fixed great quantities of physics such as mass, mo-
1.0
mentum, or energy. But since it has not, we are
free to choose a name right now. Let me propose
y magnitude,
that we simply call it dirt. It is stuff we would
sitivities less rather not have around; the less we have, the
alues are bad better. I want to choose this name because it
open loop). lets me liken the job of a serious control de-
0.1
0.0 0.5 signer
1.0to that of a ditch
1.5 digger, as illustrated
2.0 in 0.1
ensitivity im- Figure 3. He moves dirt from one place to an- 0.0 0.5 1.0 1.5 2.0
Frequency Frequency
uency is ex- other, using appropriate tools, but he never gets
oration. For rid of any of it. For every ditch dug somewhere, Figure 4. Sensitivity shaping automated by modern control tools.
Figure 3. Sensitivity reduction at low frequency unavoidably
because the leads to sensitivity increase at higher frequencies.
August 2003 IEEE Control Systems Magazine 15
e
, Form: Stein, G., "Respect the unstable," Control Systems, IEEE , vol.23, no.4, pp.
12,25, Aug. 2003
Formal Design
s.g
Bibliography
[1] ANALOG AND DIGITAL CONTROL SYSTEM DESIGN. Chi-Tsong
Chen, Saunders College Publishing