T8 - Root Locus Technique - 2021
T8 - Root Locus Technique - 2021
Page 1
Root locus concept
Reference
• A simple LTI closed-loop system is characterized by Input Output
the transfer functions in the forward path and 𝑅(𝑠) 𝑌(𝑠)
feedback path with some adjustable parameters.
Page 2
Root locus concept (2)
Reference
• Since the Laplace variable 𝑠 = 𝜎 + 𝑗𝜔 is a Input Output
complex variable, the closed-loop characteristic 𝑅(𝑠) 𝑌(𝑠)
equation is a complex function which can be
described in polar form:
1 + 𝐾𝐺 𝑠 𝐻 𝑠 = 0 ⟹ 𝐾𝐺 𝑠 𝐻 𝑠 = −1 + 𝑗0
⟹ 𝐾𝐺 𝑠 𝐻 𝑠 ∠𝐾𝐺 𝑠 𝐻 𝑠 = −1
𝑅(𝑠) 𝑌(𝑠)
Therefore: 𝐾𝐺 𝑠 𝐻 𝑠 =1
Closed-loop transfer function
∠𝐾𝐺 𝑠 𝐻 𝑠 = 2𝑘 + 1 180°
Page 4
Vector Representation of Complex Numbers
• Given the complex numbers 𝑧 = 𝑥 + 𝑗𝑦 = 𝑟∠𝜙 = 𝑟𝑒 𝑗𝜙 , 𝑧1 = 𝑥1 +
𝑗𝑦1 = 𝑟1 ∠𝜙1 = 𝑟1 𝑒 𝑗𝜙1 , and 𝑧2 = 𝑥2 + 𝑗𝑦2 = 𝑟2 ∠𝜙2 = 𝑟2 𝑒 𝑗𝜙2 , some
basic properties to be used for vector analysis are as follows:
• Addition: • Reciprocal:
𝑧1 + 𝑧2 = 𝑥1 + 𝑥2 + 𝑗 𝑦1 + 𝑦2 1 1 1 −𝑗𝜙
= ∠ −𝜙 = 𝑒
𝑧 𝑟 𝑟
• Subtraction: • Square Root:
𝑧1 − 𝑧2 = 𝑥1 − 𝑥2 + 𝑗 𝑦1 − 𝑦2 𝜙 𝜙
𝑗2
𝑧 = 𝑟∠ = 𝑟𝑒
2
• Multiplication: • Complex Conjugate:
𝑧1 𝑧2 = 𝑟1 𝑟2 ∠ 𝜙1 + 𝜙2 𝑧 ∗ = 𝑥 − 𝑗𝑦 = 𝑟∠ − 𝜙 = 𝑟𝑒 −𝑗𝜙
= 𝑟1 𝑟2 𝑒 𝑗(𝜙1+𝜙2) 1
• Division: = −𝑗 and 𝑧𝑧 ∗ = 𝑟 2 = 𝑧 2
𝑗
𝑧1 𝑟1 𝑟1 𝑗(𝜙 −𝜙 )
= ∠ 𝜙1 − 𝜙2 = 𝑒 1 2 • Also: 𝑒 ±𝑗90° = ±𝑗,
𝑧2 𝑟2 𝑟2 𝑒 ±𝑗180° = −1
Page 5
Vector Representation of Complex Numbers (2)
• Any complex number in the s-plane can be represented
in Cartesian (rectangular) form or polar form (which is a
vector form): 𝑠
𝑗𝜔1
𝑀 = 𝜎12 + 𝜔12
𝑠 = 𝜎1 + 𝑗𝜔1 = 𝑀∠𝜃 ⟹
𝜔1 𝜎1
𝜃 = tan−1
𝜎1
where 𝑀 is the magnitude and 𝜃 is the phase angle (or just angle).
• Evaluating a simple complex function like 𝐹(𝑠) = (𝑠 + 𝑎) at any particular
point like 𝑠 = 𝜎 + 𝑗𝜔 can also be represented in vector form:
𝐹 𝑠 𝜎1 + 𝑎 2 + 𝜔12
=
𝐹 𝑠 ቚ = 𝜎1 + 𝑎 + 𝑗𝜔1 ⟹ 𝜔1
𝑠=𝜎1 +𝑗𝜔1 −1
∠𝐹(𝑠) = tan
𝜎1 + 𝑎
𝐹(𝑠) 𝑠
𝑗𝜔1
𝑗𝜔1 Shift the vector 𝑎 units to the left
∠(𝑠 + 𝑎)
𝜎1
𝜎1 + 𝑎
The magnitude and the angle
of 𝐹 𝑠 remain the same.
Page 6
Vector Representation of Complex Numbers (3)
• As you notice, 𝐹(𝑠) = (𝑠 + 𝑎) has a root at −𝑎. So we can Positive
describe the value of the function 𝐹(𝑠) at any point 𝑠 = 𝜎1 + 𝑠
angle
(+)
𝑗𝜔1 by finding the magnitude and angle of the vector drawn 𝑗𝜔1
from the root of the function to the point 𝑠. ∠(𝑠 + 𝑎)
𝜎1
• Consider a loop transfer function given in zero-pole-gain form
(first-order complex factors)
𝐾 𝑠 + 𝑧1 𝑠 + 𝑧2 … Negative
𝐾𝐺 𝑠 𝐻 𝑠 = angle
𝑠 + 𝑝1 𝑠 + 𝑝2 … (−)
𝑚 𝑛
ς𝑚
𝑖=1 𝑠 + 𝑧𝑖
𝐾𝐺 𝑠 𝐻 𝑠 =𝐾 𝑛 ∠𝐺 𝑠 𝐻 𝑠 = ∠(𝑠 + 𝑧𝑖 ) − ∠(𝑠 + 𝑝𝑖 )
ς𝑖=1 𝑠 + 𝑝𝑖 𝑖=1 𝑖=1
Page 7
Example 1
• Evaluate 𝐺(𝑠) at the point 𝑠 = −3 + 𝑗4.
• (Worked solutions of examples will be given either in lecture or uploaded later)
𝑠+1
𝐺 𝑠 =
𝑠(𝑠 + 2)
Answer:
𝐺 𝑠 ቚ = 0.217∠ − 114.3°
𝑠=−3+𝑗4
Page 8
Practice Problem 1
• Find 𝐹 𝑠 at the point 𝑠 = −7 + 𝑗9 by directly substituting the point into 𝐹 𝑠 and also by
using vector analysis.
𝑠 + 2 (𝑠 + 4)
𝐹 𝑠 =
𝑠(𝑠 + 3)(𝑠 + 6)
Answer:
𝐹 𝑠 ቚ = 0.034 + 𝑗0.09 = 0.096∠ − 110.7°
𝑠=−7+𝑗9
Page 9
Example 2
• Evaluate 𝐺(𝑠) at the location of the closed-loop poles in a unity feedback system when
𝐾 = 50.
• (Worked solutions of examples will be given either in lecture or uploaded later)
𝐾
𝐺 𝑠 =
𝑠(𝑠 + 10)
Answer:
𝐺 𝑠 ቚ = 1∠ − 180°
𝑠=−5+𝑗5
Page 10
Properties of the Root Locus
𝑅(𝑠) + 𝑌(𝑠)
• Recall that for any point in 𝑠-plane to be a closed- 𝐾 𝐺(𝑠)
−
loop pole, it should be a root of the characteristic
equation of the closed-loop transfer function.
• For a non-unity feedback system with a variable gain 𝐻(𝑠)
𝐾 as the controller, a value of 𝑠 could be a closed-loop
pole if: 𝐾𝐺(𝑠)
𝑇(𝑠) =
1 + 𝐾𝐺 𝑠 𝐻(𝑠)
1 + 𝐾𝐺 𝑠 𝐻 𝑠 = 0 ⟹ 𝐾𝐺 𝑠 𝐻 𝑠 ∠𝐾𝐺 𝑠 𝐻 𝑠 = −1
1
Therefore: 𝐾𝐺 𝑠 𝐻 𝑠 =1 ⇒ 𝐾= ቚ Gain
𝐺 𝑠 𝐻 𝑠 𝑠=𝐶.𝐿 𝑝𝑜𝑙𝑒 criterion
𝐾(𝑠 + 3)(𝑠 + 4)
𝐾𝐺 𝑠 𝐻 𝑠 =
(𝑠 + 1)(𝑠 + 2)
𝑌 𝑠 𝐾(𝑠 + 3)(𝑠 + 4)
𝑇 𝑠 = =
𝑅 𝑠 1 + 𝐾 𝑠 2 + 3 + 7𝐾 𝑠 + (2 + 12𝐾)
3 3 3
= tan−1 + tan−1 − 90° − (180 − tan−1 )
4−2 3−2 2−1
= 56.31° + 71.57° − 90° − 108.43° = −77.55° ≠ −180°
Page 12
An example (2)
𝑗𝜔
• If we check for 𝑠 = −2 + 𝑗 2/2 in the same system, the total
angle contribution at point 𝑠 is: 𝑠 = −2 + 𝑗 2/2
𝑗 2/2
𝐿𝑧1 𝐿𝑝1 𝐿𝑝2
𝐿
∠𝐺 𝑠 𝐻 𝑠 ቚ = 𝜃𝑧1 + 𝜃𝑧2 − 𝜃𝑝1 − 𝜃𝑝2 𝜃𝑧1 𝑧2 𝜃𝑧2 𝜃𝑝1 𝜃𝑝2
𝜎
𝑠=−2+𝑗 2/2
−4 −3 −2 −1
0.707 0.707 0.707
= tan−1 + tan−1 − 90° − (180 − tan−1 )
2 1 1 𝐾(𝑠 + 3)(𝑠 + 4)
= 19.46° + 35.26° − 90° − 180° + 35.26° = −180° 𝐾𝐺 𝑠 𝐻 𝑠 =
(𝑠 + 1)(𝑠 + 2)
𝐾(𝑠 + 3)(𝑠 + 4)
Therefore 𝑠 = −2 + 𝑗 2/2 is a closed-loop pole for 𝑇 𝑠 =
some value of gain 𝐾. 1+𝐾 𝑠2 + 3 + 7𝐾 𝑠 + (2 + 12𝐾)
• The angles of the zeros minus the angles of the poles, all drawn to the
selected point on the s-plane, add up to 2𝑘 + 1 180°.
𝑚 𝑛
∠𝐺 𝑠 𝐻 𝑠 ቚ = ∠(𝑠 + 𝑧𝑖 ) − ∠ 𝑠 + 𝑝𝑖 ቚ = 2𝑘 + 1 180°
𝑠=𝐶.𝐿.𝑝𝑜𝑙𝑒 𝑠=𝐶.𝐿.𝑝𝑜𝑙𝑒
𝑖=1 𝑖=1
• The gain 𝐾 at that point for which the angles add up to 2𝑘 + 1 180° is found by dividing
the product of the pole lengths by the product of the zero lengths (it is the reciprocal
of the magnitude of 𝐺(𝑠)𝐻(𝑠) at that point).
ς𝑚
𝑖=1 𝑠 + 𝑧𝑖 1 ς𝑛𝑖=1 𝑠 + 𝑝𝑖
𝐾𝐺 𝑠 𝐻 𝑠 =𝐾 𝑛 ⟹ 𝐾= ቚ = ቚ
ς𝑖=1 𝑠 + 𝑝𝑖 𝐺 𝑠 𝐻 𝑠 𝑠=𝐶.𝐿.𝑝𝑜𝑙𝑒 ς𝑝𝑖=1 𝑠 + 𝑧𝑖 𝑠=𝐶.𝐿 𝑝𝑜𝑙𝑒
Page 14
Practice Problem 2
• For a unity feedback system which has the forward transfer function below, do the
following
𝐾 𝑠+2
𝐺 𝑠 =
𝑠 2 + 4𝑠 + 13
• Calculate the angle of 𝐺 𝑠 at the point 𝑠 = −3 by finding the algebraic sum of
angles of the vectors drawn from the zeros and poles of 𝐺(𝑠) to the given point.
• Determine if the point 𝑠 = −3 is on the root locus.
• If the point 𝑠 = −3 is on the root locus, find the gain 𝐾 so that 𝑠 = −3 is a closed-
loop pole.
Answer: s=-3+0j;
• ∠𝐺 𝑠 𝐻 𝑠 ȁ𝑠=−3 = 180° G=(s+2)/(s^2+4*s+13);
Theta=(180/pi)*angle(G)
• Point 𝑠 = −3 is on the root locus M=abs(G);
K=1/M
• 𝐾 = 10
Page 15
Sketching the Root Locus
• At the end of the day, we are interested to see how we can adjust the behaviour of the
closed-loop system by varying some parameters in the system (mostly controller
gains).
• We have learned that the behaviour of the closed-loop system relies on the location of
the closed-loop poles. So we need to see if we can bring the closed-loop poles to a
desired region in 𝑠-plane by varying those parameters.
• The Root locus is a graphical technique which allows us to see how the closed-loop
pole locations change in 𝑠-plane as a parameter/gain varies.
• Sketching the graph provides us with lots of useful information about the closed-loop
system from the open-loop transfer function including:
• The range of gains for which the system remains stable,
• the exact value of the gain that brings the closed-loop system to the edge of instability (critical
gain or ultimate gain in Ziegler-Nichols method).
• The frequency/period of the pure oscillation at the critical gain (used for PID design using
Ziegler-Nichols method).
• Whether or not we can find a value for the gain such that the closed-loop poles can be located
inside the desired region based on the design specification, or we need to add some zeros and
poles to the open-loop system to manipulate the shape of the root locus such that it passes
through the desired region and then find the gain (lead-lag compensator design). Page 16
Sketching the Root Locus – Basic rules 𝑅(𝑠) + 𝑌(𝑠)
𝐾 𝐺(𝑠)
• Number of branches −
• The number of branches of the root locus equals the number of
closed-loop poles.
𝐻(𝑠)
• Symmetry
𝐾𝐺(𝑠)
• The root locus is symmetrical about the real axis. 𝑇(𝑠) =
1 + 𝐾𝐺 𝑠 𝐻(𝑠)
• Real-axis segments The root locus uses the open-loop transfer
• On the real axis, for 𝐾 > 0 the root locus exists to the left of an function (loop gain) 𝐾𝐺 𝑠 𝐻(𝑠) to plot the
odd number of real-value and finite open-loop poles and/or location of the closed-loop poles for all
zeros. positive values of gain 𝐾: 0 → ∞.
increases, there are not enough finite zeros to pull the poles and
− −𝑗1
keep them in the LHP.
• So they diverge and at some value of the gain 𝐾, they enter the
− −𝑗2
right-hand side, making the closed-loop system unstable (how to
find that critical gain and the crossing point on the 𝑗𝜔 axis?).
− −𝑗3
• Adding zeros to the LHS of the 𝑠-plane is stabilizing at high
gains.
Page 19
More examples
𝑅(𝑠) + 𝑌(𝑠)
• 2nd-order system without zero: 𝐾 𝐺(𝑠)
−
1
𝐺 𝑠 =
(𝑠 + 1)(𝑠 + 3)
Underdamped system at
𝐾 > 1, complex conjugate
C.L. poles
Critically damped
system at 𝐾 = 1,
break away point is
s = −2
Overdamped
system at 𝐾 < 1,
real C.L. poles
s=tf('s');
G = 1/((s+1)*(s+3));
rlocus(G)
Page 20
More examples (2)
𝑅(𝑠) + 𝑌(𝑠)
• 2nd-order system with a LHP zero: 𝐾 𝐺(𝑠)
−
(𝑠 + 4)
𝐺 𝑠 =
(𝑠 + 1)(𝑠 + 3)
A break-away point
and a break-in point
Page 21
More examples (3)
𝑅(𝑠) + 𝑌(𝑠)
• 2nd-order
system with a RHP zero (nonminimum 𝐾 𝐺(𝑠)
−
phase system):
(𝑠 − 2)
𝐺 𝑠 =
(𝑠 + 1)(𝑠 + 3)
Page 22
More examples (4)
𝑅(𝑠) + 𝑌(𝑠)
• 2nd-order
system with two RHP zeros (nonminimum 𝐾 𝐺(𝑠)
−
phase system):
(𝑠 − 1)(𝑠 − 3)
𝐺 𝑠 = Critical gain (≈ 0.969)
(𝑠 + 1)(𝑠 + 3) with frequency of
oscillation of ≈ 1.73 rad/s
Page 23
More examples (5)
𝑅(𝑠) + 𝑌(𝑠)
• 3rd-order system without zero: 𝐾 𝐺(𝑠)
−
1
𝐺 𝑠 =
(𝑠 + 1)(𝑠 + 2)(𝑠 + 4)
Page 24
More examples (6)
𝑅(𝑠) + 𝑌(𝑠)
• 3rd-order system with a LHP zero: 𝐾 𝐺(𝑠)
−
(𝑠 + 3)
𝐺 𝑠 =
(𝑠 + 1)(𝑠 + 2)(𝑠 + 4)
Page 25
More examples (7)
𝑅(𝑠) + 𝑌(𝑠)
• 3rd-order system with complex conjugate zeros on the 𝐾 𝐺(𝑠)
−
LHP:
(𝑠 2 + 6𝑠 + 10)
𝐺 𝑠 = 2
(𝑠 + 4𝑠 + 8)(𝑠 + 4)
Departure
angle
Arrival
angle
Page 26
Transient response design via root locus
• When we sketch a root locus, it shows us whether or not there exists a
gain 𝐾 such that the closed-loop poles can be located inside a desired
region given by design specifications (transient response
specifications %𝑂𝑆, 𝑇𝑝 , and steady state response specifications 𝑇𝑠 , 𝑒𝑠𝑠 ).
• However, remember that the formulas describing %𝑂𝑆, 𝑇𝑝 and 𝑇𝑠 were
derived only for a system with two closed-loop complex poles and no
closed-loop zeros.
• So, if such a gain exists that can satisfy the specifications on the root
locus, we need to check that the closed-loop system would behave like
an ideal second-order system. Otherwise, further tweak the gains in
simulation by trial and error.
• If we cannot find any gain that can bring the root locus to the desired
region in the 𝑠-plane, we need to compensate for system response
deficiency by adding zeros and poles to the system (using PID or
Lead/Lag compensators).
Page 27
An example: Gain adjustment via root locus
• Consider a unity negative feedback system 𝑅(𝑠)+ 𝐾 𝑠 + 1.5 𝑌(𝑠)
with a 3rd-order transfer function model having 𝑠(𝑠 + 1)(𝑠 + 10)
a zero. −
• We wish to design the value of gain 𝐾 to
achieve %𝑂𝑆 ≤ 1.52%. 𝜁 = 0.8
• The root locus is already inside the region of
interest (damping ratio of 𝜁 = 0.8), but what exact
gain would result in %𝑂𝑆 = 1.52% for the closed-
loop step response?
• As you can see, at three points the root locus
crosses the 𝜁 = 0.8 line, suggesting that there
are three values for the gain 𝐾 that could result
in %𝑂𝑆 = 1.52%.
• The main question here is that which gain would
make the closed-loop system behave more like a
second-order system, and therefore resulting in
%𝑂𝑆 being closer to 1.52%.
𝜁 = 0.8
Page 28
An example: Gain adjustment via root locus (2) 𝐺 𝑠 =
𝐾 𝑠 + 1.5
𝑠(𝑠 + 1)(𝑠 + 10)
• Using MATLAB or manual calculation, we can
find the location of the complex conjugate
poles (and their corresponding gains) on the
root locus that crosses the 𝜁 = 0.8 line. They
are shown in the table:
• If we wish to have %𝑂𝑆 ≈ 1.52% we need to
find a gain that not only causes root locus to
cross the 𝜁 = 0.8 line, but also to make the
closed-loop system behave like a 2nd-order
system. The conditions are:
Page 30
PID controller design using root locus
• We learned that with PI, PD, and PID controllers, we can place
the closed-loop poles at any desired location on the 𝑠-plane
using the pole-placement technique.
• But this requires solving an algebraic equation, and for higher
order systems, we may not have enough equations to find
unique solutions.
• We can use the root locus to identify where the additional
zero(s) of the PI, PD and PID controllers should be located to
make sure that the desired closed-loop poles lie on the root 𝐺𝑃𝐷 𝑠 = 𝐾𝑃 + 𝐾𝐷 𝑠 = 𝐾(𝑠 + 𝑧𝑐 )
locus.
𝐾𝐼 𝐾 𝑠 + 𝑧𝑐
• To do this, we can write the transfer functions of the PI, PD and 𝐺𝑃𝐼 𝑠 = 𝐾𝑃 + =
PID controllers in zero-pole-gain form. 𝑠 𝑠
• As you can see, we still have the same number of variables to 𝐾𝐼
adjust the system’s behaviour as the number of gains, but 𝐺𝑃𝐼𝐷 𝑠 = 𝐾𝑃 + + 𝐾𝐷 𝑠
𝑠
instead of the 𝐾𝑃 , 𝐾𝐷 and 𝐾𝐼 gains, we can adjust the location 𝐾 𝑠 + 𝑧𝑐1 𝑠 + 𝑧𝑐2
of the zero(s) and find a corresponding gain 𝐾 to alter the =
root locus to cover the desired dominant closed-loop poles. 𝑠
Page 31
PI/PD controller design using root locus
• Here are the steps to accomplish the design: 𝑅(𝑠) + 𝑌(𝑠)
𝐺𝑐 (𝑠) 𝐺(𝑠)
• Find the desired closed-loop poles from the given −
specification (find 𝜁 and 𝜔𝑛 using %𝑂𝑆, 𝑇𝑝 and/or 𝑇𝑠 ).
𝐺𝑐 (𝑠) = 𝐺𝑃𝐷 𝑠 = 𝐾(𝑠 + 𝑧𝑐 )
𝑠𝐶𝐿 = −𝜁𝜔𝑛 ± 𝑗𝜔𝑛 1 − 𝜁 2
• For PI, place the zero somewhere near the origin. 𝐾 𝑠 + 𝑧𝑐
𝐺𝑐 𝑠 = 𝐺𝑃𝐼 𝑠 =
• For PD, place the zero somewhere to the left of the first two 𝑠
real open-loop poles.
• These are just a guide and the location is assumed to be unknown! Note: If we are only given
• Use the angle criterion of the root locus assuming an percent overshoot %𝑂𝑆 or
unknown zero angle 𝜃𝑧𝑐 and find what should be the angle of the damping ratio 𝜁 with
the zero to have an angle contribution of 2𝑘 + 1 180°. some reduction ratio on 𝑇𝑝 or
𝑇𝑠 , we need to sketch the
• Use the obtained zero angle 𝜃𝑧𝑐 to find the location of the zero uncompensated root locus
𝑧𝑐 geometrically. (only for the process transfer
function 𝐺(𝑠)) and find the
∠𝐿𝑜𝑜𝑝 𝐺𝑎𝑖𝑛 ቚ = 2𝑘 + 1 180° intersection of the root locus
𝑠=𝐶.𝐿. 𝑝𝑜𝑙𝑒
and the 𝜁 line. Then, we use
• Finally, use the gain criterion to find the corresponding gain 𝐾.
that point to find the
1 uncompensated 𝑇𝑝 or 𝑇𝑠 and
𝐾= ቚ finally find the desired closed-
𝐿𝑜𝑜𝑝 𝐺𝑎𝑖𝑛 𝑠=𝐶.𝐿. 𝑝𝑜𝑙𝑒 loop poles. Page 32
Example 3
• Design a PD controller for 𝐺(𝑠) to have damping ratio of 0.8 and peak time of 1.047 s.
• (Worked solutions of examples will be given either in lecture or uploaded)
1
𝐺 𝑠 =
(𝑠 + 1)(𝑠 + 4)
Answer:
𝐺𝑐 𝑠 = 3 𝑠 + 7 = 21 + 3𝑠
Page 33
Practice Problem 3
• Design a PI controller for 𝐺(𝑠) to have percent overshoot of 25.4% and a settling time
of 2.94 s.
1
𝐺 𝑠 =
(𝑠 + 1)(𝑠 + 3)(𝑠 + 10)
Answer:
102 𝑠 + 0.1 10.2
𝐺𝑐 𝑠 = = 102 +
𝑠 𝑠
Page 34
Lead and lag compensators
• To implement a PID controller we might need to use active circuits 𝑅(𝑠) + 𝐺𝑐 (𝑠) 𝐺(𝑠)
𝑌(𝑠)
(based on Op. Amps) which require a secondary power source. −
• A similar effect can be achieved using passive circuits, however
neither pure integration nor differentiation are feasible in this case.
𝐾(𝑠 + 𝑧𝑐 )
• Also, sometimes, only adding a zero (PD) or a zero with a fixed 𝐺𝑐 𝑠 =
pole at the origin (PI) or a full scale PID might not satisfy the 𝑠 + 𝑝𝑐
given design specifications which would make alteration of the real
plant necessary.
• The Cascade compensator of the following form can be used to
fix some of the system deficiencies.
• Cascade compensators are also known as phase lead, phase lag or a
combination of both (phase lead-lag).
• Compensators are mostly used in the forward path of the feedback
system.
• The name comes from their frequency response characteristic
as they can control the total phase and magnitude of the transfer
function at different frequencies (phase margin and gain margin).
Page 35
Lag compensator
𝑅(𝑠) + 𝑌(𝑠)
• Similar to PI and PD, cascade compensators add a zero and a 𝐺𝑐 (𝑠) 𝐺(𝑠)
pole to the open-loop system allowing us to adjust both the −
transient and steady-state characteristics of the system response.
• The lag compensator is designed to act similarly to the PI
controller in the time domain. 𝐾(𝑠 + 𝑧𝑐 )
𝐺𝑐 𝑠 =
𝑠 + 𝑝𝑐
• The main objective of using a PI controller is to increase the
system Type to eliminate steady-state error for a step reference
input. Lag compensator
zero and pole map
• So for a lag compensator to reduce the steady-state error, the
pole 𝑝𝑐 should be placed close to the origin.
• However, adding a pole close to the origin can easily destabilize
the system and dramatically deteriorate the transient response, so
the zero 𝑧𝑐 should be placed close to the pole on its left. −1
𝐾 𝑠 + 𝑧𝑐 𝐾(𝑧𝑐 )𝑧1 𝑧2 …
𝐾𝑣,comp = lim 𝑠 𝐺 𝑠 =
𝑠→0 𝑠 + 𝑝𝑐 (𝑝𝑐 )𝑝1 𝑝2 …
• Case 2: If the desired closed-loop poles from the given specification can be
obtained (i.e., find 𝜁 and 𝜔𝑛 using %𝑂𝑆, 𝑇𝑝 and/or 𝑇𝑠 ) and either 𝑧𝑐 or 𝑝𝑐 is already
given, simply find the location of the other one using the angle criterion and then
geometry (like PD/PI design).
Answer:
158.1 𝑠 + 0.111
𝐺𝑐 𝑠 =
𝑠 + 0.01
Page 39
Lead compensator
• Lead compensators are designed to act similarly to PD 𝑅(𝑠) + 𝑌(𝑠)
controller in time domain. 𝐺𝑐 (𝑠) 𝐺(𝑠)
−
• The main objective of using a PD controller is to improve 𝑗𝜔
the transient response (%𝑂𝑆, 𝑇𝑝 and to a good extent 𝑇𝑠 ).
• The transient response improvement is possible by adding 𝐾(𝑠 + 𝑧𝑐 )
𝐺𝑐 𝑠 =
a zero 𝑧𝑐 to pull the root locus further to the left and bend it 𝑠 + 𝑝𝑐
toward the real zero (without interfering with the desired
dominant closed-loop poles). Lead compensator
zero and pole map
• But the pole of lead compensator 𝑝𝑐 should be placed far 𝑗𝜔
to the left, so that it can approximate the behaviour of
𝑠-plane
lead compensator like a normal PD controller (also being
less destabilizing). 0
𝜎
−𝑝𝑐 −𝑧𝑐
Note: A rule of thumb
Choose the location of the lead zero and pole, if no particular specification is given, to:
• place 𝑧𝑐 directly below the desired dominant closed-loop poles,
• or place 𝑧𝑐 to the left of the first two real open-loop poles,
• and then placing the pole between 5 to 10 times farther to the left of the least
dominant open-loop pole to have minimum impact on the transient response.
Page 40
Design Lead compensator using root locus
• Here are the design steps:
𝑅(𝑠) + 𝑌(𝑠)
• Find the desired closed-loop poles from the given 𝐺𝑐 (𝑠) 𝐺(𝑠)
specification if possible (find 𝜁 and 𝜔𝑛 using %𝑂𝑆, 𝑇𝑝 and/or 𝑇𝑠 ). −
• If you can directly place the zero 𝑧𝑐 under the desired dominant
closed-loop poles, then place the pole 𝑝𝑐 somewhere far to the 𝐾(𝑠 + 𝑧𝑐 )
left of the all open-loop poles. 𝐺𝑐 𝑠 =
𝑠 + 𝑝𝑐
• Using the angle criterion of the root locus, find the angle of the
pole 𝑝𝑐 such that it has an angle contribution of 2𝑘 + 1 180°.
• Otherwise, place the zero 𝑧𝑐 somewhere to the left of the first Note: The lead pole 𝑝𝑐 is
two real open-loop poles. Then use the angle criterion to find mostly the unknown variable
the angle of the pole 𝑝𝑐 such that it has an angle contribution of to be located in lead
2𝑘 + 1 180°. compensator design, but
• Use the obtained angle to find the location of the pole 𝑝𝑐 sometime the location of the
geometrically. lead pole is already given, so
you need to only find the
• Finally, use the gain criterion to find the corresponding gain 𝐾. location of the zero using the
given specifications and the
angle and gain criteria.
Page 41
Example 5
• Design a lead compensator for the unity feedback system with feedforward transfer
function 𝐺(𝑠) that will reduce the settling time by a factor of 2 while maintaining 30%
overshoot.
• (Worked solutions of examples will be given either in lecture or uploaded)
1
𝐺 𝑠 =
𝑠(𝑠 + 4)(𝑠 + 6)
Page 42
Lead-lag compensator
• Similar to PID, if we wish to improve both steady state error and transient
response, we can combine these two compensators known as the lead-lag
compensator.
• To avoid complication of the design procedure, we design each of them
separately, mostly starting with the lead compensator to improve the
transient response.
• If the transient response requirements are met after the simulation and
verification, then we design the lag compensator to improve and satisfy the
steady-state error requirement.
• Final note: With any control system design, you need to always verify your
final control system by simulation and if needed, make any proper
adjustments by trial-and-error using your understanding of the behaviour of
each control parameter to achieve the desired response.
• MATLAB Control System Designer is a great tool that provides a visual and
graphical display of the root locus as well as allowing you to move the added
zeros and poles to see the result in the response instantaneously (with lots of
other features).
Page 43
Summary
• From Nise Textbook
Page 44
Realization of PID and Compensators
• Active circuit realization
Page 45
Realization of PID and Compensators (2)
• Active circuit realization
Page 46
Realization of PID and Compensators (3)
• Active circuit realization
Page 47
Lead-Lag Compensator with Op Amp
Page 48
Passive Circuit Realization of Lead/Lag Compensators
Page 49
Questions?
Page 50