57
Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT ETH Z¨ urich November 2, 2018 J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 1 / 49

Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Control Systems ILecture 7: Feedback and the Root Locus method

Readings:

Jacopo Tani

Institute for Dynamic Systems and ControlD-MAVT

ETH Zurich

November 2, 2018

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 1 / 49

Page 2: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Institute for Dynamic Systems and Control

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 2 / 49

Page 3: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Tentative schedule

# Date Topic

1 Sept. 21 Introduction, Signals and Systems2 Sept. 28 Modeling, Linearization

3 Oct. 5 Analysis 1: Time response, Stability4 Oct. 12 Analysis 2: Diagonalization, Modal coordinates5 Oct. 19 Transfer functions 1: Definition and properties6 Oct. 26 Transfer functions 2: Poles and Zeros7 Nov. 2 Analysis of feedback systems: internal sta-

bility, root locus8 Nov. 9 Frequency response9 Nov. 16 Analysis of feedback systems 2: the Nyquist

condition

10 Nov. 23 Specifications for feedback systems11 Nov. 30 Loop Shaping12 Dec. 7 PID control13 Dec. 14 State feedback and Luenberger observers14 Dec. 21 On Robustness and Implementation challenges

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 3 / 49

Page 4: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Today’s learning objectives

Poles and their effects on the response

Zeros and their effects on the response

Zeros and derivative action

Effects of non-minimum-phase zeros

Standard feedback control configuration and transfer function nomenclature

Well-posedness

Internal vs. I/O stability

The root locus method

Routh-Hurwitz condition and stability

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 4 / 49

Page 5: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Transfer Functions?

Real System:

Modeling:

Linearization/Normalization:

Control System Design

Transfer Function(Today!)Hard

Easy

Easy

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 5 / 49

Page 6: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

From State Space to Transfer Function

State-space model of LTI continuous time systems:

x(t) = Ax(t) + Bu(t)

y(t) = Cx(t) + Du(t)

Transfer function:

G (s) = C (sI − A)−1B + D

State-space model of LTI discrete time systems:

x [k + 1] = Adx [k] + Bdu[k]

y [k] = Cdx [k] + Ddu[k]

In analogy to continuous time, one can obtain the transfer function for LTIdiscrete time systems:

G (z) = Cd(zI − Ad)−1Bd + Dd ,

where z ∈ C is the discrete time equivalent of s.J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 6 / 49

Page 7: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

From Transfer Function to State-space (Realization)

In the general case (SISO system)

G (s) =bn−1s

n−1 + bn−2sn−2 + . . .+ b0

sn + an−1sn−1 + . . .+ a0+ d ,∈ C.

you can verify that the following is a minimal realization of G (s):

A =

0 1 0 0 . . . 00 0 1 0 . . . 0...

. . . 1−a0 −a1 . . . −an−1

, B =

00...1

C =

[b0 b1 . . . bn−1

], D = [d ];

This particular realization is called the controllable canonical form.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 7 / 49

Page 8: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

From Transfer Function to State-space (Realization)

In the general case (SISO system)

G (s) =bn−1s

n−1 + bn−2sn−2 + . . .+ b0

sn + an−1sn−1 + . . .+ a0+ d ,∈ C.

you can verify that the following is a minimal realization of G (s):

A =

0 1 0 0 . . . 00 0 1 0 . . . 0...

. . . 1−a0 −a1 . . . −an−1

, B =

00...1

C =

[b0 b1 . . . bn−1

], D = [d ];

This particular realization is called the controllable canonical form.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 7 / 49

Page 9: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Different ways to write transfer functions

Partial fraction expansion: useful to compute transient responses, and to assess howmuch different modes contribute to the response:

G(s) =r1

s − p1+

r2

s − p2+ . . .+

rns − pn

+ r0,

where r0, . . . , rn are called the “residues”.

Root-locus form: This is useful to compute the value of G(s) “by hand”:

G(s) = krl(s − z1)(s − z2) . . . (s − zm)

(s − p1)(s − p2) . . . (s − pn).

Bode form: This is useful to use control design techniques like the Bode plot:

G(s) = kBode

( s−z1

+ 1)( s−z2

+ 1) . . . ( s−zm

+ 1)

( s−p1

+ 1)( s−p2

+ 1) . . . ( s−pn

+ 1)

Zeros: z1, . . . , zm are called the “zeros” of G (s), and are the roots of thenumerator. G (zi ) = 0, i = 1, . . . ,m,Poles: p1, . . . , pn are called the “poles” of G (s), and are the roots of thedenominator, which is the charachteristic polynomial of A.det(pi I − A) = 0, i = 1, . . . , n.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 8 / 49

Page 10: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Impulse and Step responses

Assume D = 0, x(0) = 0.

Impulse response: output when u(t) = δ(t):

yimp(t) =

∫ t

0

CeA(t−τ)Bδ(τ) dτ = CeAtB.

It is the same as the response to an initial condition x(0) = B.

Step response: output when u(t) = 1 = e0t :

ystep(t) =

∫ t

0

CeA(t−τ)B dτ = −CA−1B + CA−1eAtB

The steady-state response for a step input is given by yss(t) = G (0) =−CA−1B.

For a first order system: ystep(t) = yss(t)(1 − eat). I.e., the step response isthe steady-state response minus the scaled impulse response.

The impulse response totally defines the response of a system (it is in fact theinverse Laplace transform of the transfer function)!

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 9 / 49

Page 11: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Higher-order system

If we write the partial fraction expansion of G (s), assuming no repeated poles,we get

G (s) =r1

s − p1+

r2s − p2

+ . . .+rn

s − pn.

The response to an impulse will then be

y(t) = r1ep1t + r2e

p2t + . . . rnepnt .

The effect of the poles is then clear: each pole pi generates a term of the formepi t in the impulse response (and step response, etc.)

As we know, these are simple exponentials if the pole pi is real, and are sinusoidswith exponentially-changing amplitude for complex-conjugate pole pairs.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 10 / 49

Page 12: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Response shapes as function of pole location

Re

Im

Each pole pi = σi + jωi with residue ri determines a term of the impulseresponse.Each term’s magnitude is bounded by rie

σi t and oscillates at frequency ωi .

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 11 / 49

Page 13: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Effects of zeros on the response

Given G (s) how can we compute the residues ri? A convenient approach isthe “cover-up” method.

For a non-repeated pole pi this takes the form:

ri = lims→pi

(s − pi )G(s)

which in practice means “remove the factor (s − pi ) from the denominator andcompute G(pi ) only considering the other terms.

This method works even for repeated poles pi with multiplicity mi , theexpression is somewhat more complex1.

An alterative method is by “matching” (see example in the next slide).

While the exponents in the terms of the response only depend on the poles pi ,the residues are affected by the zeros zi .

1Swarthmore College, Linear Physical Systems Analysis: tinyurl.com/brpwo2y.J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 12 / 49

Page 14: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Example

Consider

G (s) =1

(s + 1)(s + 1 + j)(s + 1− j).

Re

Im

Using the cover-up method we get

G (s) =1

s + 1+−1/2

s + 1 + j+−1/2

s + 1− j.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 13 / 49

Page 15: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Example - impulse response

0 1 2 3 4 5 6 7-0.2

0

0.2

0.4

0.6

0.8

1p1p2,p3combined

Impulse Response

Time (seconds)

Ampl

itude

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 14 / 49

Page 16: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Example — adding a zero near a pole

Consider

G (s) =s + 1 + ε

(s + 1)(s + 1 + j)(s + 1− j).

Re

Im

Using the cover-up method we get

G (s) ≈ ε

s + 1+

1/2j

s + 1 + j+−1/2j

s + 1− j.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 15 / 49

Page 17: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Example - impulse response

0 1 2 3 4 5 6 7-0.05

0

0.05

0.1

0.15

0.2

0.25

0.3

0.35Impulse Response

Time (seconds)

Ampl

itude

A zero can reduce the residue (i.e., the effect) of a nearby pole.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 16 / 49

Page 18: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Pole-zero cancellation

What if a zero matches a pole exactly?

G (s) =s + 1

(s + 1)(s + 1 + j)(s + 1− j)=

1

(s + 1 + j)(s + 1− j).

One of the poles has been cancelled by the zero. Effectively its residue is zero,i.e.,

G (s) =0

s + 1+

1/2j

s + 1 + j+−1/2j

s + 1− j.

Recall from the modal (diagonal) form that the residue is also given by ri =bici ; if the residue is zero, the i-th mode is either uncontrollable, unobservable,or both.

This is ok if the i-th mode (i.e., pi ) is stable, but a big problem if it is unstable.

Avoid unstable pole-zero cancellation!

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 17 / 49

Page 19: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

More effects of zeros...

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 18 / 49

Page 20: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Integrator and Differentiator

∫u(t) y(t) =

∫ t

−∞ u(τ) dτ

If the input is u(t) = est , then the output will be y(t) = 1s e

st .

Hence, the transfer function of an integrator is

G (s) =1

s.

ddt

u(t) y(t) = du(t)dt

If the input is u(t) = est , then the output will be y(t) = sest .

Hence, the transfer function of an integrator is

G (s) = s.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 19 / 49

Page 21: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Zeros as derivative action

If we have a transfer function G (s) = (s + z)G (s), we can decompose it into

G (s) = zG (s) + sG (s).

If the impulse response of G (s) is given by y(t), and the impulse response ofG (s) is y(t), then remembering that s is the transfer function of a differentia-tor, we can write

y(t) = zy(t) + ˙y(t).

In other words, the zero is effectively adding a derivative term to the output.This typically has an “anticipatory effect”.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 20 / 49

Page 22: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

With and without a zero / derivative

0 1 2 3 4 5 6 7-0.2

0

0.2

0.4

0.6

0.8

1p1p2,p3combined

Impulse Response

Time (seconds)

Ampl

itude

0 1 2 3 4 5 6 7-0.05

0

0.05

0.1

0.15

0.2

0.25

0.3

0.35Impulse Response

Time (seconds)

Ampl

itude

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 21 / 49

Page 23: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Non-minimum-phase zeros

We know that poles with positive real part result in an unstable system. (Theoutput diverges over time.)

What happens when zeros have positive real part?

The stability of the system is preserved (since the growth/decay of the termsin the response is not affected by the zeros — only the respective residues)

However, a zero in the right half plane effectively means a “negative” derivativeaction. This is the opposite of anticipatory — indeed the output will tend tomove in the “wrong” direction initially.

These are called non-minimum phase zeros and are typically very bad news forcontrol engineers, they make our work much harder.

(Typically the presence of non-minimum-phase zeros depends on the choice ofthe output — to make your life easier, choose another output and/or movethe sensors!)

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 22 / 49

Page 24: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Minimum-phase vs. non-minimum-phase zeros

0 1 2 3 4 5 6 7-0.2

-0.1

0

0.1

0.2

0.3

0.4no zeroz = -1z=+1

Impulse Response

Time (seconds)

Ampl

itude

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 23 / 49

Page 25: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Towards feedback control

So far we have looked at how a given system, represented as a state-spacemodel or as a transfer function, behaves given a certain input (and/or initialcondition).

Typically the system behavior may not be satisfactory (e.g., because it isunstable, or too slow, or too fast, or it oscillates too much, etc.), and onemay want to change it. This can only be done by feedback control!

The methods we will discuss next provide

An analysis tool to understand how the closed-loop system (i.e., the system +feedback control) will behave for different choices of feedback control.

A synthesis tool to design a good feedback control system.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 24 / 49

Page 26: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Standard feedback configuration

C (s) P(s)r e u y

Transfer functions make it very easy to compose several blocks (controller,plant, etc.) Imagine doing the same with the state-space model!

(Open-)Loop gain: L(s) = P(s)C (s)

Complementary sensitivity: (Closed-loop) transfer function from r to y

T (s) =L(s)

1 + L(s)

Sensitivity: (Closed-loop) transfer function from r to e

S(s) =1

1 + L(s)

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 25 / 49

Page 27: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Concern #1: Well-posedness

D1 D2r e u y

Assume both the plant and the controller are (static) gains.

Then the denominator of the closed-loop transfer functions would be1 + D2D1. If D2D1 = −1, the whole interconnections does not make sense —it is not well posed.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 26 / 49

Page 28: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Concern #2: (Internal) Stability

It may be tempting to just check that the interconnection is I/O stable, i.e.,check that the poles of T (s) have negative real part.

However, consider what happens if C (s) = 1s−1 and P(s) = s−1

s+1 :

The interconnection is I/O stable: T (s) = 1s+2

.

The closed-loop transfer function from r to u is unstable:S(s)C(s) = s+1

(s−1)(s+2).

While the system seems to be stable, internally the controller is blowing up.The pole-zero cancellation made the unstable controller mode unobservablein the interconnection.

Internal stability requires that all closed-loop transfer functions between anytwo signals must be stable.

Never be tempted to cancel an unstable pole with a non-minimum-phase zeroor viceversa.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 27 / 49

Page 29: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

How to determine closed-loop stability?

Assuming the feedback interconnection is well-posed and internally stable,then all that remains to do is to design C (s) in such a way that all the polesof T (s) have negative real part.

In principle one could just pick a trial design for C(s), go to a computer(python, matlab, ...), and check what the closed-loop response (e.g., T (s))looks like.

However, it is desired to find a systematic way to choose C (s), while doing aslittle calculations as possible. The first automatic control engineers wereworking with paper, pencil, and possibly a slide-rule.

All of classical control can be summarized in: “exploit the knowledge of theloop gain L(s) to figure out the properties of the closed-loop transferfunctions T (s) and S(s) with the least effort possible.”

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 28 / 49

Page 30: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Classical methods for feedback control

Remember: exploit L(s) to find “good” T (s),S(s), with least possible effort.There are three main methods:Root Locus (today)

Quick assessment of control design feasibility. The insights are correct andclear.Can only be used for finite-dimensional systems (e.g. systems with a finitenumber of poles/zeros)Difficult to do sophisticated design.Hard to represent uncertainty.

Bode plots (Lec. 8)Potentially misleading results unless the system is open-loop stable andminimum-phase.Easy to represent uncertainty.Easy to draw, this is the tool of choice for sophisticated design.

Nyquist plot (Lec. 9)The most authoritative closed-loop stability test. It can always be used (finiteor infinite-dimensional systems)Easy to represent uncertainty.Difficult to draw and to use for sophisticated design.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 29 / 49

Page 31: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Evan’s Root Locus method

Invented in the late ’40s by Walter R. Evans.

Useful to study how the roots of a polynomial (i.e., the poles of a system)change as a function of a scalar parameter, e.g., the “gain.”

k L(s)r y

Let us write the loop gain in the “root locus form”

kL(s) = kN(s)

D(s)= k

(s − z1)(s − z2) . . . (s − zm)

(s − p1)(s − p2) . . . (s − pn)

The sensitivity function is

S(s) =1

1 + kL(s)=

D(s)

D(s) + kN(s)

The closed-loop poles are the solutions of:

D(s) + kN(s) = 0.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 30 / 49

Page 32: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

The root locus rules

What can we say about the closed-loop poles?

1 Since the degree of D(s) + kN(s) is the same as the degree of D(s), thenumber of closed-loop poles is the same as the number of open-loop poles.

2 For k → 0, D(s) + kN(s) ≈ D(s), and the closed-loop poles approach theopen-loop poles.

3 For k →∞,

and the degree of N(s) is the same as the degree of D(s), then1kD(s) + N(s) ≈ N(s), and the closed-loop poles approach the open-loop zeros.

If the degree of N(s) is smaller, then the “excess” closed-loop poles “go toinfinity” (we will look into this more).

4 The closed-loop poles need to be symmetric w.r.t. the real axis (i.e., eitherreal, or complex-conjugate pairs), because D(s) + kN(s) has real coefficients.

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 31 / 49

Page 33: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

More rules: The angle and magnitude rules

Let us rewrite the closed-loop characteristic equation as

N(s)

D(s)= − 1

k

5 The angle rule — Take the argument on both sides:

∠(s − z1) + ∠(s − z2) + . . .+ ∠(s − zm)

− ∠(s − p1)− ∠(s − p2)− . . .− ∠(s − pn) =

{180◦(±q 360◦) if k > 00◦(±q 360◦) if k < 0

6 The magnitude rule — Take the argument on both sides:

|s − z1| · |s − z2| · . . . · |s − zm||s − p1| · |s − p2| · . . . · |s − pn|

=1

|k|

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 32 / 49

Page 34: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Graphical interpretation

All points on the complex plane that could potentially be a closed-loop pole(i.e., the root locus) have to satisfy the angle condition—which is essentiallyTHE rule for sketching the root locus.

Re

Im

s

∠s − p1

∠s − p2

∠s − z1

“The sum of the angles (counted from the real axis) from each zero to s,minus the sum of the angles from each pole to s must be equal to 180◦ (forpositive k) or 0◦ (for negative k), ± an integer multiple of 360◦.”

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 33 / 49

Page 35: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

All points on the real axis are on the root locus.

All points on the real axis to the left of an even number of poles/zeros (ornone) are on the negative k root locus

All points on the real axis to the right of an odd number of poles/zeros areon the positive k root locus2.

When two branches come together on the real axis, there will be ‘breakaway”or “break-in” points.

2Swarthmore College, Linear Physical Systems Analysis: tinyurl.com/yahgqtn2.J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 34 / 49

Page 36: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Asymptotes

So what happens when k →∞ and there are more open-loop poles than zeros? Wecan see, e.g., from the magnitude condition, that the “excess” closed-loop poleswill have to go to “to infinity” (s →∞).

Since this is the complex plane, we need to identify “in which direction” they gotowards infinity. This is were we use the angle rule again.

If we “zoom out” sufficiently far, the contributions from all the finite open-looppoles and zeros will all be approximately equal to ∠s, and the angle rule isapproximated by (m − n)∠s = −(∠− k ± q360◦), q ∈ N.

In other words, as k →∞, the excess poles will go to infinity along asymptotes atangles of

∠s =∠− k ± q360◦

n −m

These asymptotes meet in a “center of mass” lying on the real axis at

scom =

∑ni=1 pi −

∑mj=1 zj

n −m

(note that poles are “positive” unit masses, and zeros are “negative” unit masses inthis analogy)

A convenient summary of the rules: tinyurl.com/yand99yq.J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 35 / 49

Page 37: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Examples

k1

s−1

r y

Re

Im

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 36 / 49

Page 38: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Examples

k1

(s−1)(s−2)r y

Re

Im

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 37 / 49

Page 39: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Examples

k1

s2+s+1

r y

Re

Im

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 38 / 49

Page 40: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Examples

ks+1

s2+s+1

r y

Re

Im

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 39 / 49

Page 41: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Examples

k1

(s+1)(s2+s+1)r y

Re

Im

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 40 / 49

Page 42: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Examples

k1

(s+1)(s2+s+1)r y

Re

Im

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 41 / 49

Page 43: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Root locus summary (for now)

Great tool for back-of-the-envelope control design, quick check forclosed-loop stability.

Qualitative sketches are typically enough. There are many detailed rules fordrawing the root locus in a very precise way: if you really need to do that,just use a computer or other methods.

Closed-loop poles start from the open loop poles, and are “repelled” by them.

Closed-loop poles are “attracted” by zeros (or go to infinity). Here you seean obvious explanation why non-minimum-phase zeros are in general to beavoided.

Remember that the root locus must be symmetric w.r.t. the real axis.

If denominator factorization is non trivial, how to find immaginary axiscrossings (k that makes the closed loop system unstable)?

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 42 / 49

Page 44: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Stability and Routh-Hurwitz Condition

We have seen how to determine the stability from eigenvalues of the matrix Aor the poles of the transfer function.

Can the stability of a system be checked without having to determine thepoles?

Let G =p(s)

q(s), where q(s) = ans

n + an−1sn−1 + . . .+ a1s + a0.

A necessary condition for stability of linear systems −→ All coefficients of q(s)must have the same sign and non-zero if all of its roots are in the left-handplane.

A necessary and sufficient stability condition for linear systems −→ Routh-Hurwitz condition

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 43 / 49

Page 45: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Routh-Hurwitz Condition: A first look

Consider the characteristic polynomial

q(s) = ansn + an−1s

n−1 + an−2sn−2 + . . .+ a1s + a0.

sn an an−2 an−4 . . .sn−1 an−1 an−3 an−5 . . .sn−2 bn−1 bn−3 bn−5 . . .sn−3 cn−1 cn−3 cn−5 . . ....

......

......

s0 hn−1

bn−1 = − 1

an−1

∣∣∣∣ an an−2

an−1 an−3

∣∣∣∣ ,

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Page 46: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Routh-Hurwitz Condition: A first look

Consider the characteristic polynomial

q(s) = ansn + an−1s

n−1 + an−2sn−2 + . . .+ a1s + a0.

sn an an−2 an−4 . . .sn−1 an−1 an−3 an−5 . . .sn−2

bn−1 bn−3 bn−5 . . .

sn−3

cn−1 cn−3 cn−5 . . ....

......

......

s0 hn−1

bn−1 = − 1

an−1

∣∣∣∣ an an−2

an−1 an−3

∣∣∣∣ ,

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Page 47: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Routh-Hurwitz Condition: A first look

Consider the characteristic polynomial

q(s) = ansn + an−1s

n−1 + an−2sn−2 + . . .+ a1s + a0

.

sn an an−2 an−4 . . .sn−1 an−1 an−3 an−5 . . .sn−2 bn−1 bn−3 bn−5 . . .sn−3 cn−1 cn−3 cn−5 . . ....

......

......

s0 hn−1

bn−1 = − 1

an−1

∣∣∣∣ an an−2

an−1 an−3

∣∣∣∣ ,J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Page 48: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Routh-Hurwitz Condition: A first look

Consider the characteristic polynomial

q(s) = ansn + an−1s

n−1 + an−2sn−2 + . . .+ a1s + a0

.

sn an an−2 an−4 . . .sn−1 an−1 an−3 an−5 . . .sn−2 bn−1 bn−3 bn−5 . . .sn−3 cn−1 cn−3 cn−5 . . ....

......

......

s0 hn−1

bn−3 = − 1

an−1

∣∣∣∣ an an−4

an−1 an−5

∣∣∣∣ ,J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Page 49: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Routh-Hurwitz Condition: A first look

Consider the characteristic polynomial

q(s) = ansn + an−1s

n−1 + an−2sn−2 + . . .+ a1s + a0

.

sn an an−2 an−4 . . .sn−1 an−1 an−3 an−5 . . .sn−2 bn−1 bn−3 bn−5 . . .sn−3 cn−1 cn−3 cn−5 . . ....

......

......

s0 hn−1

cn−1 = − 1

bn−1

∣∣∣∣an−1 an−3

bn−1 bn−3

∣∣∣∣ ,J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Page 50: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Routh-Hurwitz Condition: A first look

Consider the characteristic polynomial

q(s) = ansn + an−1s

n−1 + an−2sn−2 + . . .+ a1s + a0

.

sn an an−2 an−4 . . .sn−1 an−1 an−3 an−5 . . .sn−2 bn−1 bn−3 bn−5 . . .sn−3 cn−1 cn−3 cn−5 . . ....

......

......

s0 hn−1

cn−3 = − 1

bn−1

∣∣∣∣an−1 an−5

bn−1 bn−5

∣∣∣∣ ,J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Page 51: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Routh-Hurwitz Condition

The Routh-Hurwitz criterion states that the number of roots of q(s) withpositive real parts is equal to the number of sign changes in the first columnof the Routh table.

Example:q(s) = s3 + 10s2 + 31s + 1030

s3 1 31 0s2 ��10 1 ���1030 103 0s1 -72 0 0s0 103 0 0

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 45 / 49

Page 52: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Routh-Hurwitz Condition

The Routh-Hurwitz criterion states that the number of roots of q(s) withpositive real parts is equal to the number of sign changes in the first columnof the Routh table.

Example:q(s) = s3 + 10s2 + 31s + 1030

s3 1> 0 31 0s2 1> 0 103 0s1 -72< 0 0 0s0 103> 0 0 0

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 45 / 49

Page 53: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Special case: zero in the first column

Replace the zero with ε (we can assume ε > 0 or ε < 0).

Example:q(s) = s5 + 2s4 + 3s3 + 6s2 + 5s + 3

s5 1 3 5s4 2 6 3

s3�0 ε

7

20

s2 6ε− 7

ε3 0

s1 42ε− 49− 6ε2

12ε− 140 0

s0 3 0 0

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 46 / 49

Page 54: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Special case: zero in the first column

Replace the zero with ε (we can assume ε > 0 or ε < 0).

Example:q(s) = s5 + 2s4 + 3s3 + 6s2 + 5s + 3

s5 1 3 5s4 2 6 3

s3�0 ε

7

20

s2 6ε− 7

ε3 0

s1 42ε− 49− 6ε2

12ε− 140 0

s0 3 0 0

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 47 / 49

Page 55: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Special case: zero in the first column

Replace the zero with ε (we can assume ε > 0 or ε < 0).

Example:q(s) = s5 + 2s4 + 3s3 + 6s2 + 5s + 3

s5 1 > 0 3 5s4 2 > 0 6 3

s3 ε > 07

20

s2 6ε− 7

ε< 0 3 0

s1 42ε− 49− 6ε2

12ε− 14> 0 0 0

s0 3 > 0 0 0

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 47 / 49

Page 56: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Special case: entire row is zero

Form an auxiliary polynomial a(s) using the entries of row above row of zerosas coefficient, then differentiate with respect to s, finally use coefficients toreplace the rows of zeros and continue the RH procedure.

Example:q(s) = s5 + 7s4 + 6s3 + 42s2 + 8s + 56

s5 1 6 8s4

�7 1 ��42 6 ��56 8s3

�0 �4 1 �0 ��12 3 0s2 3 8 0

s1 1

30 0

s0 8 0 0

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 48 / 49

Page 57: Control Systems I - ETH Z · 2018. 11. 1. · Control Systems I Lecture 7: Feedback and the Root Locus method Readings: Jacopo Tani Institute for Dynamic Systems and Control D-MAVT

Today’s learning objectives

Poles and their effects on the response

Zeros and their effects on the response

Zeros and derivative action

Effects of non-minimum-phase zeros

Standard feedback control cofiguration and transfer function nomenclature

Well-posedness

Internal vs. I/O stability

The root locus method

J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 49 / 49