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

Similar documents
Control Systems I. Lecture 7: Feedback and the Root Locus method. Readings: Guzzella 9.1-3, Emilio Frazzoli

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Control Systems I. Lecture 9: The Nyquist condition

Control Systems I. Lecture 5: Transfer Functions. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Control Systems I Lecture 10: System Specifications

Control Systems I. Lecture 9: The Nyquist condition

Control Systems I. Lecture 4: Diagonalization, Modal Analysis, Intro to Feedback. Readings: Emilio Frazzoli

Control Systems I. Lecture 2: Modeling and Linearization. Suggested Readings: Åström & Murray Ch Jacopo Tani

Course roadmap. ME451: Control Systems. What is Root Locus? (Review) Characteristic equation & root locus. Lecture 18 Root locus: Sketch of proofs

ECE 345 / ME 380 Introduction to Control Systems Lecture Notes 8

Control Systems I. Lecture 2: Modeling. Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch Emilio Frazzoli

Control Systems. Root Locus & Pole Assignment. L. Lanari

Chemical Process Dynamics and Control. Aisha Osman Mohamed Ahmed Department of Chemical Engineering Faculty of Engineering, Red Sea University

Controls Problems for Qualifying Exam - Spring 2014

Control Systems I. Lecture 1: Introduction. Suggested Readings: Åström & Murray Ch. 1, Guzzella Ch. 1. Emilio Frazzoli

CHAPTER # 9 ROOT LOCUS ANALYSES

Some special cases

ECEN 605 LINEAR SYSTEMS. Lecture 20 Characteristics of Feedback Control Systems II Feedback and Stability 1/27

STABILITY ANALYSIS. Asystemmaybe stable, neutrallyormarginallystable, or unstable. This can be illustrated using cones: Stable Neutral Unstable

SECTION 5: ROOT LOCUS ANALYSIS

Root Locus U R K. Root Locus: Find the roots of the closed-loop system for 0 < k < infinity

7.4 STEP BY STEP PROCEDURE TO DRAW THE ROOT LOCUS DIAGRAM

ECE504: Lecture 9. D. Richard Brown III. Worcester Polytechnic Institute. 04-Nov-2008

ECE317 : Feedback and Control

Alireza Mousavi Brunel University

Lecture 1 Root Locus

Software Engineering 3DX3. Slides 8: Root Locus Techniques

Systems Analysis and Control

Course Summary. The course cannot be summarized in one lecture.

ECE504: Lecture 8. D. Richard Brown III. Worcester Polytechnic Institute. 28-Oct-2008

Lecture 1: Feedback Control Loop

Laplace Transform Analysis of Signals and Systems

Design Methods for Control Systems

Classify a transfer function to see which order or ramp it can follow and with which expected error.

Analysis of SISO Control Loops

I What is root locus. I System analysis via root locus. I How to plot root locus. Root locus (RL) I Uses the poles and zeros of the OL TF

Control Systems Engineering ( Chapter 8. Root Locus Techniques ) Prof. Kwang-Chun Ho Tel: Fax:

Systems Analysis and Control

Systems Analysis and Control

Outline. Control systems. Lecture-4 Stability. V. Sankaranarayanan. V. Sankaranarayanan Control system

EEE 184: Introduction to feedback systems

Module 3F2: Systems and Control EXAMPLES PAPER 2 ROOT-LOCUS. Solutions

ECE317 : Feedback and Control

Lecture 5 Classical Control Overview III. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Root Locus

State will have dimension 5. One possible choice is given by y and its derivatives up to y (4)

An Internal Stability Example

Frequency methods for the analysis of feedback systems. Lecture 6. Loop analysis of feedback systems. Nyquist approach to study stability

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Dynamic Response

Control Systems Design

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review

a. Closed-loop system; b. equivalent transfer function Then the CLTF () T is s the poles of () T are s from a contribution of a

Software Engineering/Mechatronics 3DX4. Slides 6: Stability

1 (20 pts) Nyquist Exercise

EE302 - Feedback Systems Spring Lecture KG(s)H(s) = KG(s)

Autonomous Mobile Robot Design

Systems Analysis and Control

Lecture 10: Proportional, Integral and Derivative Actions

Table of Laplacetransform

Control Systems I. Lecture 1: Introduction. Suggested Readings: Åström & Murray Ch. 1. Jacopo Tani

1 (s + 3)(s + 2)(s + a) G(s) = C(s) = K P + K I

CHAPTER 1 Basic Concepts of Control System. CHAPTER 6 Hydraulic Control System

STABILITY ANALYSIS TECHNIQUES

Control Systems Engineering ( Chapter 6. Stability ) Prof. Kwang-Chun Ho Tel: Fax:

MAK 391 System Dynamics & Control. Presentation Topic. The Root Locus Method. Student Number: Group: I-B. Name & Surname: Göksel CANSEVEN

Andrea Zanchettin Automatic Control AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Spring Semester, Linear systems (frequency domain)

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

INTRODUCTION TO DIGITAL CONTROL

Linear State Feedback Controller Design

Systems Analysis and Control

Automatic Control Systems theory overview (discrete time systems)

Recitation 11: Time delays

STABILITY. Have looked at modeling dynamic systems using differential equations. and used the Laplace transform to help find step and impulse

Module 07 Control Systems Design & Analysis via Root-Locus Method

Control Systems II. ETH, MAVT, IDSC, Lecture 4 17/03/2017. G. Ducard

Automatic Control (TSRT15): Lecture 4

Test 2 SOLUTIONS. ENGI 5821: Control Systems I. March 15, 2010

School of Mechanical Engineering Purdue University. DC Motor Position Control The block diagram for position control of the servo table is given by:

EECE 460. Decentralized Control of MIMO Systems. Guy A. Dumont. Department of Electrical and Computer Engineering University of British Columbia

NOTICE WARNING CONCERNING COPYRIGHT RESTRICTIONS: The copyright law of the United States (title 17, U.S. Code) governs the making of photocopies or

20. The pole diagram and the Laplace transform

Remember that : Definition :

Lecture 5: Linear Systems. Transfer functions. Frequency Domain Analysis. Basic Control Design.

Some solutions of the written exam of January 27th, 2014

6.241 Dynamic Systems and Control

Automatic Control 2. Loop shaping. Prof. Alberto Bemporad. University of Trento. Academic year

Advanced Control Theory

Course roadmap. Step response for 2nd-order system. Step response for 2nd-order system

Root Locus Methods. The root locus procedure

Time Response of Systems

27. The pole diagram and the Laplace transform

FEL3210 Multivariable Feedback Control

Identification Methods for Structural Systems

Root Locus. Signals and Systems: 3C1 Control Systems Handout 3 Dr. David Corrigan Electronic and Electrical Engineering

Discrete and continuous dynamic systems

LABORATORY INSTRUCTION MANUAL CONTROL SYSTEM I LAB EE 593

ECE317 : Feedback and Control

Linear Control Systems Lecture #3 - Frequency Domain Analysis. Guillaume Drion Academic year

Control of Electromechanical Systems

Transcription:

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

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

Tentative schedule # Date Topic 1 Sept. 21 Introduction, Signals and Systems 2 Sept. 28 Modeling, Linearization 3 Oct. 5 Analysis 1: Time response, Stability 4 Oct. 12 Analysis 2: Diagonalization, Modal coordinates 5 Oct. 19 Transfer functions 1: Definition and properties 6 Oct. 26 Transfer functions 2: Poles and Zeros 7 Nov. 2 Analysis of feedback systems: internal stability, root locus 8 Nov. 9 Frequency response 9 Nov. 16 Analysis of feedback systems 2: the Nyquist condition 10 Nov. 23 Specifications for feedback systems 11 Nov. 30 Loop Shaping 12 Dec. 7 PID control 13 Dec. 14 State feedback and Luenberger observers 14 Dec. 21 On Robustness and Implementation challenges J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 3 / 49

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

Transfer Functions? Real System: Modeling: Linearization/Normalization: Transfer Function(Today!) Easy Easy Hard Control System Design J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 5 / 49

From State Space to Transfer Function State-space model of LTI continuous time systems: Transfer function: ẋ(t) = Ax(t) + Bu(t) y(t) = Cx(t) + Du(t) G(s) = C(sI A) 1 B + D State-space model of LTI discrete time systems: x[k + 1] = A d x[k] + B d u[k] y[k] = C d x[k] + D d u[k] In analogy to continuous time, one can obtain the transfer function for LTI discrete time systems: G(z) = C d (zi A d ) 1 B d + D d, 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

From Transfer Function to State-space (Realization) In the general case (SISO system) G(s) = b n 1s n 1 + b n 2 s n 2 +... + b 0 s n + a n 1 s n 1 +... + a 0 + d, C. J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 7 / 49

From Transfer Function to State-space (Realization) In the general case (SISO system) G(s) = b n 1s n 1 + b n 2 s n 2 +... + b 0 s n + a n 1 s n 1 +... + a 0 + d, C. you can verify that the following is a minimal realization of G(s): 0 1 0 0... 0 0 0 0 1 0... 0 A =.... 1, B = 0. a 0 a 1... a n 1 1 C = [ b 0 b 1... b n 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

Different ways to write transfer functions Partial fraction expansion: useful to compute transient responses, and to assess how much different modes contribute to the response: G(s) = r1 s p 1 + r2 s p 2 +... + rn s p n + r 0, where r 0,..., r n are called the residues. Root-locus form: This is useful to compute the value of G(s) by hand : (s z 1)(s z 2)... (s z m) G(s) = k rl (s p 1)(s p 2)... (s p n). Bode form: This is useful to use control design techniques like the Bode plot: ( s z G(s) = k 1 + 1)( s z 2 + 1)... ( s Bode ( s p 1 + 1)( s p 2 z m + 1) + 1)... ( s p n + 1) Zeros: z 1,..., z m are called the zeros of G(s), and are the roots of the numerator. G(z i ) = 0, i = 1,..., m, Poles: p 1,..., p n are called the poles of G(s), and are the roots of the denominator, which is the charachteristic polynomial of A. det(p i I A) = 0, i = 1,..., n. J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 8 / 49

Impulse and Step responses Assume D = 0, x(0) = 0. Impulse response: output when u(t) = δ(t): y imp(t) = t 0 Ce A(t τ) Bδ(τ) dτ = Ce At B. It is the same as the response to an initial condition x(0) = B. Step response: output when u(t) = 1 = e 0t : y step(t) = t 0 Ce A(t τ) B dτ = CA 1 B + CA 1 e At B The steady-state response for a step input is given by y ss (t) = G(0) = CA 1 B. For a first order system: y step (t) = y ss (t)(1 e at ). I.e., the step response is the steady-state response minus the scaled impulse response. The impulse response totally defines the response of a system (it is in fact the inverse Laplace transform of the transfer function)! J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 9 / 49

Higher-order system If we write the partial fraction expansion of G(s), assuming no repeated poles, we get G(s) = r 1 + r 2 +... + r n. s p 1 s p 2 s p n The response to an impulse will then be y(t) = r 1 e p1t + r 2 e p2t +... r n e pnt. The effect of the poles is then clear: each pole p i generates a term of the form e p i t in the impulse response (and step response, etc.) As we know, these are simple exponentials if the pole p i is real, and are sinusoids with exponentially-changing amplitude for complex-conjugate pole pairs. J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 10 / 49

Response shapes as function of pole location Im Re Each pole p i = σ i + jω i with residue r i determines a term of the impulse response. Each term s magnitude is bounded by r i e σ i t and oscillates at frequency ω i. J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 11 / 49

Effects of zeros on the response Given G(s) how can we compute the residues r i? A convenient approach is the cover-up method. For a non-repeated pole p i this takes the form: r i = lim s pi (s p i )G(s) which in practice means remove the factor (s p i ) from the denominator and compute G(p i ) only considering the other terms. This method works even for repeated poles p i with multiplicity m i, the expression is somewhat more complex 1. 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 p i, the residues are affected by the zeros z i. 1 Swarthmore College, Linear Physical Systems Analysis: tinyurl.com/brpwo2y. J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 12 / 49

Example Consider G(s) = 1 (s + 1)(s + 1 + j)(s + 1 j). Im Re 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

Example - impulse response 1 0.8 Impulse Response p1 p2,p3 combined 0.6 Amplitude 0.4 0.2 0-0.2 0 1 2 3 4 5 6 7 Time (seconds) J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 14 / 49

Example adding a zero near a pole Consider G(s) = s + 1 + ε (s + 1)(s + 1 + j)(s + 1 j). Im Re 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

Example - impulse response 0.35 Impulse Response 0.3 0.25 0.2 Amplitude 0.15 0.1 0.05 0-0.05 0 1 2 3 4 5 6 7 Time (seconds) 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

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 r i = b i c i ; 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., p i ) 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

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

Integrator and Differentiator u(t) y(t) = t u(τ) dτ If the input is u(t) = e st, then the output will be y(t) = 1 s est. Hence, the transfer function of an integrator is G(s) = 1 s. u(t) d dt y(t) = du(t) dt If the input is u(t) = e st, then the output will be y(t) = se st. 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

Zeros as derivative action If we have a transfer function G(s) = (s + z) G(s), we can decompose it into G(s) = z G(s) + s G(s). If the impulse response of G(s) is given by ỹ(t), and the impulse response of G(s) is y(t), then remembering that s is the transfer function of a differentiator, we can write y(t) = zỹ(t) + ỹ(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

With and without a zero / derivative 1 Impulse Response 0.35 Impulse Response 0.8 p1 p2,p3 combined 0.3 0.25 0.6 0.2 Amplitude 0.4 Amplitude 0.15 0.2 0.1 0.05 0 0-0.2 0 1 2 3 4 5 6 7 Time (seconds) -0.05 0 1 2 3 4 5 6 7 Time (seconds) J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 21 / 49

Non-minimum-phase zeros We know that poles with positive real part result in an unstable system. (The output diverges over time.) What happens when zeros have positive real part? The stability of the system is preserved (since the growth/decay of the terms in the response is not affected by the zeros only the respective residues) However, a zero in the right half plane effectively means a negative derivative action. This is the opposite of anticipatory indeed the output will tend to move in the wrong direction initially. These are called non-minimum phase zeros and are typically very bad news for control engineers, they make our work much harder. (Typically the presence of non-minimum-phase zeros depends on the choice of the output to make your life easier, choose another output and/or move the sensors!) J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 22 / 49

Minimum-phase vs. non-minimum-phase zeros 0.4 0.3 Impulse Response no zero z = -1 z=+1 0.2 Amplitude 0.1 0-0.1-0.2 0 1 2 3 4 5 6 7 Time (seconds) J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 23 / 49

Towards feedback control So far we have looked at how a given system, represented as a state-space model or as a transfer function, behaves given a certain input (and/or initial condition). Typically the system behavior may not be satisfactory (e.g., because it is unstable, or too slow, or too fast, or it oscillates too much, etc.), and one may 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

Standard feedback configuration r e C(s) u P(s) 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

Concern #1: Well-posedness r e D 1 u D 2 y Assume both the plant and the controller are (static) gains. Then the denominator of the closed-loop transfer functions would be 1 + D 2 D 1. If D 2 D 1 = 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

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) = 1 s 1 and P(s) = s 1 s+1 : The interconnection is I/O stable: T (s) = 1. s+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 unobservable in the interconnection. Internal stability requires that all closed-loop transfer functions between any two signals must be stable. Never be tempted to cancel an unstable pole with a non-minimum-phase zero or viceversa. J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 27 / 49

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 poles of 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 as little calculations as possible. The first automatic control engineers were working with paper, pencil, and possibly a slide-rule. All of classical control can be summarized in: exploit the knowledge of the loop gain L(s) to figure out the properties of the closed-loop transfer functions 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

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 and clear. Can only be used for finite-dimensional systems (e.g. systems with a finite number 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 and minimum-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 (finite or 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

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. r y k L(s) Let us write the loop gain in the root locus form The sensitivity function is kl(s) = k N(s) D(s) = k (s z 1)(s z 2 )... (s z m ) (s p 1 )(s p 2 )... (s p n ) S(s) = The closed-loop poles are the solutions of: 1 1 + kl(s) = D(s) D(s) + kn(s) D(s) + kn(s) = 0. J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 30 / 49

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), the number 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 the open-loop poles. 3 For k, and the degree of N(s) is the same as the degree of D(s), then 1 D(s) + N(s) N(s), and the closed-loop poles approach the open-loop zeros. k If the degree of N(s) is smaller, then the excess closed-loop poles go to infinity (we will look into this more). 4 The closed-loop poles need to be symmetric w.r.t. the real axis (i.e., either real, 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

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 z 1) + (s z 2) +... + (s z m) (s p 1) (s p 2)... (s p n) = { 180 (±q 360 ) if k > 0 0 (±q 360 ) if k < 0 6 The magnitude rule Take the argument on both sides: s z 1 s z 2... s z m s p 1 s p 2... s p n = 1 k J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 32 / 49

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 essentially THE rule for sketching the root locus. Im s s p 2 s z 1 Re s p 1 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 (for positive 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

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 (or none) are on the negative k root locus All points on the real axis to the right of an odd number of poles/zeros are on the positive k root locus 2. When two branches come together on the real axis, there will be breakaway or break-in points. 2 Swarthmore College, Linear Physical Systems Analysis: tinyurl.com/yahgqtn2. J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 34 / 49

Asymptotes So what happens when k and there are more open-loop poles than zeros? We can see, e.g., from the magnitude condition, that the excess closed-loop poles will have to go to to infinity (s ). Since this is the complex plane, we need to identify in which direction they go towards infinity. This is were we use the angle rule again. If we zoom out sufficiently far, the contributions from all the finite open-loop poles and zeros will all be approximately equal to s, and the angle rule is approximated by (m n) s = ( k ± q360 ), q N. In other words, as k, the excess poles will go to infinity along asymptotes at angles of s = k ± q360 n m These asymptotes meet in a center of mass lying on the real axis at n i=1 s com = p i m j=1 z j n m (note that poles are positive unit masses, and zeros are negative unit masses in this 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

Examples r k 1 s 1 y Im Re J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 36 / 49

Examples r k 1 (s 1)(s 2) y Im Re J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 37 / 49

Examples r k 1 s 2 +s+1 y Im Re J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 38 / 49

Examples r k s+1 s 2 +s+1 y Im Re J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 39 / 49

Examples r k 1 (s+1)(s 2 +s+1) y Im Re J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 40 / 49

Examples r k 1 (s+1)(s 2 +s+1) y Im Re J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 41 / 49

Root locus summary (for now) Great tool for back-of-the-envelope control design, quick check for closed-loop stability. Qualitative sketches are typically enough. There are many detailed rules for drawing 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 see an obvious explanation why non-minimum-phase zeros are in general to be avoided. Remember that the root locus must be symmetric w.r.t. the real axis. If denominator factorization is non trivial, how to find immaginary axis crossings (k that makes the closed loop system unstable)? J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 42 / 49

Stability and Routh-Hurwitz Condition We have seen how to determine the stability from eigenvalues of the matrix A or the poles of the transfer function. Can the stability of a system be checked without having to determine the poles? Let G = p(s) q(s), where q(s) = a ns n + a n 1 s n 1 +... + a 1 s + a 0. 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-hand plane. 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

Routh-Hurwitz Condition: A first look Consider the characteristic polynomial q(s) = a n s n + a n 1 s n 1 + a n 2 s n 2 +... + a 1 s + a 0. J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Routh-Hurwitz Condition: A first look Consider the characteristic polynomial q(s) = a n s n + a n 1 s n 1 + a n 2 s n 2 +... + a 1 s + a 0. s n a n a n 2 a n 4... s n 1 a n 1 a n 3 a n 5... s n 2 s n 3 J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Routh-Hurwitz Condition: A first look Consider the characteristic polynomial. q(s) = a n s n + a n 1 s n 1 + a n 2 s n 2 +... + a 1 s + a 0 s n a n a n 2 a n 4... s n 1 a n 1 a n 3 a n 5... s n 2 b n 1 b n 3 b n 5... s n 3 c n 1 c n 3 c n 5.... s 0. h n 1... b n 1 = 1 a n 1 a n a n 1 a n 2 a n 3, J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Routh-Hurwitz Condition: A first look Consider the characteristic polynomial. q(s) = a n s n + a n 1 s n 1 + a n 2 s n 2 +... + a 1 s + a 0 s n a n a n 2 a n 4... s n 1 a n 1 a n 3 a n 5... s n 2 b n 1 b n 3 b n 5... s n 3 c n 1 c n 3 c n 5.... s 0. h n 1... b n 3 = 1 a n 1 a n a n 1 a n 4 a n 5, J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Routh-Hurwitz Condition: A first look Consider the characteristic polynomial. q(s) = a n s n + a n 1 s n 1 + a n 2 s n 2 +... + a 1 s + a 0 s n a n a n 2 a n 4... s n 1 a n 1 a n 3 a n 5... s n 2 b n 1 b n 3 b n 5... s n 3 c n 1 c n 3 c n 5.... s 0. h n 1... c n 1 = 1 b n 1 a n 1 b n 1 a n 3 b n 3, J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Routh-Hurwitz Condition: A first look Consider the characteristic polynomial. q(s) = a n s n + a n 1 s n 1 + a n 2 s n 2 +... + a 1 s + a 0 s n a n a n 2 a n 4... s n 1 a n 1 a n 3 a n 5... s n 2 b n 1 b n 3 b n 5... s n 3 c n 1 c n 3 c n 5.... s 0. h n 1... c n 3 = 1 b n 1 a n 1 b n 1 a n 5 b n 5, J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 44 / 49

Routh-Hurwitz Condition The Routh-Hurwitz criterion states that the number of roots of q(s) with positive real parts is equal to the number of sign changes in the first column of the Routh table. Example: q(s) = s 3 + 10s 2 + 31s + 1030 s 3 1 31 0 s 2 10 1 1030 103 0 s 1-72 0 0 s 0 103 0 0 J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 45 / 49

Routh-Hurwitz Condition The Routh-Hurwitz criterion states that the number of roots of q(s) with positive real parts is equal to the number of sign changes in the first column of the Routh table. Example: q(s) = s 3 + 10s 2 + 31s + 1030 s 3 1> 0 31 0 s 2 1> 0 103 0 s 1-72< 0 0 0 s 0 103> 0 0 0 J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 45 / 49

Special case: zero in the first column Replace the zero with ɛ (we can assume ɛ > 0 or ɛ < 0). Example: q(s) = s 5 + 2s 4 + 3s 3 + 6s 2 + 5s + 3 s 5 1 3 5 s 4 2 6 3 s 3 7 0 ɛ 0 2 s 2 6ɛ 7 3 0 ɛ s 1 42ɛ 49 6ɛ 2 0 0 12ɛ 14 s 0 3 0 0 J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 46 / 49

Special case: zero in the first column Replace the zero with ɛ (we can assume ɛ > 0 or ɛ < 0). Example: q(s) = s 5 + 2s 4 + 3s 3 + 6s 2 + 5s + 3 s 5 1 3 5 s 4 2 6 3 s 3 7 0 ɛ 0 2 s 2 6ɛ 7 3 0 ɛ s 1 42ɛ 49 6ɛ 2 0 0 12ɛ 14 s 0 3 0 0 J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 47 / 49

Special case: zero in the first column Replace the zero with ɛ (we can assume ɛ > 0 or ɛ < 0). Example: q(s) = s 5 + 2s 4 + 3s 3 + 6s 2 + 5s + 3 s 5 1 > 0 3 5 s 4 2 > 0 6 3 s 3 7 ɛ > 0 0 2 s 2 6ɛ 7 < 0 3 0 ɛ s 1 42ɛ 49 6ɛ 2 > 0 0 0 12ɛ 14 s 0 3 > 0 0 0 J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 47 / 49

Special case: entire row is zero Form an auxiliary polynomial a(s) using the entries of row above row of zeros as coefficient, then differentiate with respect to s, finally use coefficients to replace the rows of zeros and continue the RH procedure. Example: q(s) = s 5 + 7s 4 + 6s 3 + 42s 2 + 8s + 56 s 5 1 6 8 s 4 7 1 42 6 56 8 s 3 0 4 1 0 12 3 0 s 2 3 8 0 s 1 1 0 0 3 s 0 8 0 0 J. Tani, E. Frazzoli (ETH) Lecture 7: Control Systems I 2/11/2018 48 / 49

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