Robust Control, H, ν and Glover-McFarlane

Similar documents
Denis ARZELIER arzelier

FEL3210 Multivariable Feedback Control

Lecture 6. Chapter 8: Robust Stability and Performance Analysis for MIMO Systems. Eugenio Schuster.

Lecture 7 (Weeks 13-14)

FEL3210 Multivariable Feedback Control

Problem Set 4 Solution 1

Principles of Optimal Control Spring 2008

Topic # Feedback Control Systems

Chapter 3. LQ, LQG and Control System Design. Dutch Institute of Systems and Control

Robust Multivariable Control

The norms can also be characterized in terms of Riccati inequalities.

FEL3210 Multivariable Feedback Control

Exam. 135 minutes, 15 minutes reading time

MIMO analysis: loop-at-a-time

A Comparative Study on Automatic Flight Control for small UAV

6.241 Dynamic Systems and Control

Introduction. Performance and Robustness (Chapter 1) Advanced Control Systems Spring / 31

[k,g,gfin] = hinfsyn(p,nmeas,ncon,gmin,gmax,tol)

CDS 101/110a: Lecture 8-1 Frequency Domain Design

Model Uncertainty and Robust Stability for Multivariable Systems

Raktim Bhattacharya. . AERO 632: Design of Advance Flight Control System. Norms for Signals and Systems

Robust Control 9 Design Summary & Examples

Robustness Analysis and Controller Synthesis with Non-Normalized Coprime Factor Uncertainty Characterisation

Robust Control. 2nd class. Spring, 2018 Instructor: Prof. Masayuki Fujita (S5-303B) Tue., 17th April, 2018, 10:45~12:15, S423 Lecture Room

Chapter Robust Performance and Introduction to the Structured Singular Value Function Introduction As discussed in Lecture 0, a process is better desc

Chapter 20 Analysis of MIMO Control Loops

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules

Lecture 7 : Generalized Plant and LFT form Dr.-Ing. Sudchai Boonto Assistant Professor

Topic # Feedback Control Systems

Lecture 15: H Control Synthesis

Problem Set 5 Solutions 1

A brief introduction to robust H control

Course Outline. FRTN10 Multivariable Control, Lecture 13. General idea for Lectures Lecture 13 Outline. Example 1 (Doyle Stein, 1979)

The loop shaping paradigm. Lecture 7. Loop analysis of feedback systems (2) Essential specifications (2)

ROBUST STABILITY AND PERFORMANCE ANALYSIS* [8 # ]

Design Methods for Control Systems

Subject: Optimal Control Assignment-1 (Related to Lecture notes 1-10)

CDS 101/110a: Lecture 10-1 Robust Performance

Robust Control 5 Nominal Controller Design Continued

An Overview on Robust Control

Lecture 10: Linear Matrix Inequalities Dr.-Ing. Sudchai Boonto

Theory of Robust Control

Uncertainty and Robustness for SISO Systems

Homework 7 - Solutions

ECSE 4962 Control Systems Design. A Brief Tutorial on Control Design

MTNS 06, Kyoto (July, 2006) Shinji Hara The University of Tokyo, Japan

Linear Quadratic Gausssian Control Design with Loop Transfer Recovery

Chapter Stability Robustness Introduction Last chapter showed how the Nyquist stability criterion provides conditions for the stability robustness of

Prüfung Regelungstechnik I (Control Systems I) Übersetzungshilfe / Translation aid (English) To be returned at the end of the exam!

Lecture 9: Input Disturbance A Design Example Dr.-Ing. Sudchai Boonto

Chapter 7 Interconnected Systems and Feedback: Well-Posedness, Stability, and Performance 7. Introduction Feedback control is a powerful approach to o

3 Stabilization of MIMO Feedback Systems

EEE582 Homework Problems

Chapter 5. Standard LTI Feedback Optimization Setup. 5.1 The Canonical Setup

(Continued on next page)

Robust Multivariable Control

H-INFINITY CONTROLLER DESIGN FOR A DC MOTOR MODEL WITH UNCERTAIN PARAMETERS

Autonomous Mobile Robot Design

APPLICATION OF D-K ITERATION TECHNIQUE BASED ON H ROBUST CONTROL THEORY FOR POWER SYSTEM STABILIZER DESIGN

Linear Matrix Inequality (LMI)

6.241 Dynamic Systems and Control

H 2 Optimal State Feedback Control Synthesis. Raktim Bhattacharya Aerospace Engineering, Texas A&M University

Lecture 8. Applications

Chapter 9 Robust Stability in SISO Systems 9. Introduction There are many reasons to use feedback control. As we have seen earlier, with the help of a

6.245: MULTIVARIABLE CONTROL SYSTEMS by A. Megretski. Solutions to Problem Set 1 1. Massachusetts Institute of Technology

Robust control for a multi-stage evaporation plant in the presence of uncertainties

Contents lecture 5. Automatic Control III. Summary of lecture 4 (II/II) Summary of lecture 4 (I/II) u y F r. Lecture 5 H 2 and H loop shaping

CDS Solutions to the Midterm Exam

Root Locus. Motivation Sketching Root Locus Examples. School of Mechanical Engineering Purdue University. ME375 Root Locus - 1

Control System Design

1 (20 pts) Nyquist Exercise

Structured Uncertainty and Robust Performance

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

Here represents the impulse (or delta) function. is an diagonal matrix of intensities, and is an diagonal matrix of intensities.

Multi-Model Adaptive Regulation for a Family of Systems Containing Different Zero Structures

An LMI Approach to the Control of a Compact Disc Player. Marco Dettori SC Solutions Inc. Santa Clara, California

(a) Find the transfer function of the amplifier. Ans.: G(s) =

Robust control of MIMO systems

Analysis of SISO Control Loops

An LQ R weight selection approach to the discrete generalized H 2 control problem

6.241 Dynamic Systems and Control

Singular Value Decomposition Analysis

DESIGN OF ROBUST CONTROL SYSTEM FOR THE PMS MOTOR

Robust Performance Example #1

The Tuning of Robust Controllers for Stable Systems in the CD-Algebra: The Case of Sinusoidal and Polynomial Signals

Robust fixed-order H Controller Design for Spectral Models by Convex Optimization

Stability Margin Based Design of Multivariable Controllers

Structured singular value and µ-synthesis

5. Observer-based Controller Design

From the multivariable Nyquist plot, if 1/k < or 1/k > 5.36, or 0.19 < k < 2.7, then the closed loop system is stable.

Problem Set 2 Solutions 1

Control Systems 2. Lecture 4: Sensitivity function limits. Roy Smith

Improve Performance of Multivariable Robust Control in Boiler System

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

Chapter 2. Classical Control System Design. Dutch Institute of Systems and Control

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

Automatic Control II Computer exercise 3. LQG Design

Fixed Order H Controller for Quarter Car Active Suspension System

Lecture 4: Analysis of MIMO Systems

MEM Chapter 2. Sensitivity Function Matrices

Transcription:

Robust Control, H, ν and Glover-McFarlane Department of Automatic Control LTH, Lund University

Robust Control 1 MIMO performance 2 Robustness and the H -norm 3 H -control 4 ν-gap metric 5 Glover-MacFarlane Theme: You get what you ask for!

References Rantzer, PhD Course in Robust Control, 2015 Zhou, Doyle, Glover, Robust Optimal Control 1996 Zhou, Doyle, Essentials of Robust Control, 1998 Doyle, Glover, Khargonekar, Francis, State Space Solutions to standard H 2 and H control problems, IEEE TAC 1989 Matlab: hinfsyn, mixsyn, loopsyn, gapmetric, DynamicSystem/norm, dksyn

Robust Control - Introduction P 0 P Why use feedback? Keep error small in spite of unknown disturbances model vs process mismatch Can model/plant mismatch be taken care of by adding ficticious disturbances? No, disturbances can e.g. not make system unstable

Robust stability vs robust performance (Output) sensitivity function S := (I + PC) 1 Nominal stability(ns): S stable Nominal performance(np): σ(s) 1/ W p, where W p (s) weight Robust stability(rs): S δ := (I + P δ C) 1 stable, P δ P Robust performance(rp): σ(s δ ) 1/ W p, P δ P For SISO systems NP + RS RP (more or less, will show later) For MIMO systems NP + RS RP Multiviariable effects make simple analysis dangerous

Motivating example [Skogestad] Plant model [Distillation column] P(s) = 1 50s + 1 ( 0.878 ) 0.864 1.082 1.096 Choose C(s) = 1 s P(s) 1 (dynamic decoupling) Loop gain PC = 1 s I Closed-loop : T (s) = PC(I + PC) 1 = 1 s+1 I Nice decoupled first order responses with time constant 1.

Example -continued In reality: 20 percent input uncertainty (e.g. valve variations) True control signal is u i,p = u i (1 + δ i ) with δ i < 0.2 P δ = 1 50s + 1 ( ) ( ) 0.878 0.864 1.2 0 1.082 1.096 0 0.8 Using same controller as before gives P δ C = 1 s ( 14.83 ) 11.06 17.29 12.83

Example -closed loop step responses 6 From: In(1) Step Response From: In(2) 4 To: Out(1) 2 0-2 Amplitude -4 8 6 model true system To: Out(2) 4 2 0 PC = 1 s -2-4 0 5 10 0 5 10 Time (seconds) ( ) 1 0, versus P 0 1 δ C = 1 s ( 14.83 ) 11.06 17.29 12.83 With P : No interactions, nice step responses With P δ : Large interaction, 500 percent overshoot in step responses

Example -continued The design is extremly sensitive to uncertainty on the inputs But not to uncertainty on the outputs (easy to check) Several indications of a directionality problem: ( ) 35 34 RGA(P) = 34 35 cond(p) := σ(p) σ(p) = 142 How do we analyse performance and robustness for MIMO systems?

Nyquist for MIMO systems There is a generalization of the Nyquist theorem to the MIMO case, see Maciejowski Ch. 2.8-2.10 G(s) = W (s)λ(s)w 1 (s) Characteristic loci: λ i (s) := eigenvalues of G(s) Theorem [MIMO Nyquist]: If G(s) has P o unstable poles, then the closed loop system with return ratio kg(s) is stable if the characteristic loci of kg(s) encircle the point -1 P o times anticlockwise.

Why not use characteristic loci? G(s) can have well behaved char. loci with great apparent stability margins to 1, but the loop can still be quite non-robust Example: ( ) 1 1 G 0 (s) = 1 s I and G δ(s) = 1 s I + δ have the same 1 1 eigenvalues. Closed loops behave quite differently for large δ Attempt of remedy: Try to acheive diagonally dominant designs. Performance and robustness is however best understood by using singular values instead of eigenvalues

Performance and robustness In the MIMO case the order of matrices matters L i = CP, S i = (I + L i ) 1, T i = I S i, L o = PC, S o = (I + L o ) 1, T o = I S o. TAT: Which of the following matrices are the same? PC(I + PC) 1, C(I + PC) 1 P, (I + PC) 1 PC (I + CP) 1 CP, P(I + CP) 1 C, CP(I + CP) 1

d i d r u C u p P y n y = T o (r n) + S o Pd i + S o d, r y = S o (r d) + T o n S o Pd i, u = CS o (r n) CS o d T i d i, u p = CS o (r n) CS o d + S i d i 1) Good performance requires σ(l o ) >> 1, σ(c) >> 1. 2) Good robustness and good sensor noise rejection requires σ(l o ) << 1, σ(l i ) << 1, σ(c) M. Conflict!!! Separate frequency bands!

MIMO requirements Example: Weighted (output) sensitivity requirement W 1 (iω)s o (iω)w 2 (iω) 1, ω W 1 (s), W 2 (s): Rational function with no rhp poles or zeros

Robust Control 1 MIMO performance 2 Robustness and the H -norm 3 H -control 4 ν-gap metric 5 Glover-MacFarlane Theme: You get what you ask for!

The H norm = Induced L 2 norm The H norm of a stable function G(s) is given by G = sup Gu 2 = sup G(jω) u 2 1 ω (Parseval s relation + Theorem 4.3 in [Zhou+Doyle]). For unstable G(s) the norm is defined as infinite G RH p m means G(s) rational of size p m with finite H norm

H norm computation H -norm computation requires a search Theorem C(sI A) 1 B + D < γ if and only if C(sI A) 1 B is asymptotically stable σ max (D) < γ, hence R = γ 2 I D D > 0 H has no eigenvalues on the imaginary axis, where H = A+BR 1 D C BR 1 B C (I+DR 1 D )C (A+BR 1 D C)

H norm computation - LMI alternative G < γ is equivalent to that there exists P = P > 0 such that PA + A P PB C B P γi D < 0 C D γi Linear Matrix Inequality. Convex optimization.

Singular value plot for 2 2 system 10 2 Singular Values 10 1 Singular Values (abs) 10 0 10-1 10-2 10 0 10 1 10 2 G(s) = Frequency (rad/sec) 10(s+1) s 2 +0.2s+100 s+2 s 2 +0.1s+10 1 s+1 5(s+1) (s+2)(s+3) The Matlab command norm(g, inf ) uses bisection together with the theorem above to get G = 50.25. Frequency sweep with 400 frequency points gives only the maximal value 43.53.

The Small Gain Theorem w 2 e 1 e 2 w 1 G Suppose G RH p m. Then the closed loop system (G, ) is internally stable for all BRH := { RH m p 1} if and only if G < 1.

Basic Uncertainty Models Let D be a set of all allowable s. Additive uncertainty: P = P 0 +, D. Multiplicative uncertainty: P = (I + )P 0, D. Feedback uncertainty: P = P 0 (I + P 0 ) 1, D. Coprime factor uncertainty: Let P 0 = NM 1, M, N RH and P = (N + N )(M + M ) 1, N D. M TAT: Draw block diagrams for each of the uncertainty models!

Uncertainty models Very often D = {W 1 W 2 1} where W 1 and W 2 are given stable functions. The functions W i provide the uncertainty profile. The main purpose of is to account for phase uncertainty and to act as a scaling factor. Construction of uncertainty models is a nontrivial task

Robust Stability Tests Uncertainty Model ( 1) Robust stability test (I + W 1 W 2 )P W 2 T o W 1 < 1 P(I + W 1 W 2 ) W 2 T i W 1 < 1 (I + W 1 W 2 ) 1 P W 2 S o W 1 < 1 P(I + W 1 W 2 ) 1 W 2 S i W 1 < 1 P + W 1 W 2 W 2 CS o W 1 < 1 P(I + W 1 W 2 P) 1 W 2 S o PW 1 < 1 ( M + M ) 1 (Ñ + N ) = [ N M ] C S I o M 1 < 1 (N + N )(M + M ) 1 M = [ N M ] S i C I < 1

Robust Performance - SISO case w e C (1 + W T )P W S Want W s S < 1 for system with multiplicative uncertainty

Robust Performance - SISO case Nominal Performance W S S 1 Robust Stability W T T 1 From figure: Robust Performance W S + W T L 1 + L, s = iω W S S + W T T 1, s = iω

Robust Performance - SISO case Robust Performance is hence equivalent to the condition max ω T ew < 1 for all 1 W S S }{{} nominal performance + W T T }{{} robust stability < 1 RP almost guaranteed when we have NP + RS NP + RS RP/2 Explains why RP is not a big issue for SISO systems

Robust Control 1 MIMO performance 2 Robustness and the H -norm 3 H -control 4 ν-gap metric 5 Glover-MacFarlane Theme: You get what you ask for!

The H Optimization Problem w u P C z P = P 11 P 12 P y 21 P 22 T zw = P 11 +P 12 C(I P 22 C) 1 P 21 Optimal control: min C stab T zw Suboptimal control: Given γ find stabilizing C such that T zw < γ z 2 < γ w 2, w The optimal control problem is solved by iterating on γ

Understanding LQ control - completion of squares If P satisfies the Riccati equation A T P + PA + Q PBB T P = 0, then every solution to ẋ = Ax + Bu with lim t x(t) = 0 satisfies 0 = = = = [x T Qx + u T u]dt 0 0 0 0 u + B T Px 2 dt 2 u + B T Px 2 dt 2 u + B T Px 2 dt 0 0 0 (Ax + Bu) T Pxdt ẋ T Pxdt d dt [xt Px]dt u + B T Px 2 dt + x(0) T Px(0) with the minimizing control law u = B T Px.

Understanding H control - completion of squares If X satisfies the Algebraic Riccati Equation A T X + XA + Q X(B u B T u B w B T w/γ 2 )X = 0 then ẋ = Ax + B u u + B w w with x(0) = 0 gives [x T Qx + u T u γ 2 w T w]dt 0 = 0 u + Bu T Xx 2 dt γ 2 w BwXx T 2 dt This can be viewed as a dynamic game between the player u, who tries to minimize and w who tries to maximize. The minimizing control law u = Bu T Xx gives [x T Qx + u T u]dt γ 2 w T wdt 0 so the gain from w to z = (Q 1/2 x, u) is at most γ. 0 0

Riccati Equation for H Optimal State Feedback Theorem: Consider ẋ = Ax + B u u + B w w, x(0) = 0, where (A, B u ) and (A, B w ) are stabilizable. Introduce the Hamiltonian H 0 = A B wbw/γ T 2 B u Bu T Q A T. Then, the following conditions are equivalent: 1 There exists a stabilizing control law with 0 (xt Qx + u 2 )dt γ 2 0 w 2 dt 2 H 0 has no purely imaginary eigenvalues. See [Zhou, p.237]

Output Feedback Assumptions w P z u y P = K A B w B u C z 0 D zu C y D yw 0 (A1) (A, B w, C z ) is stabilizable and detectable, (A2) (A, B u, C y ) is stabilizable and detectable, (A3) Dzu C z D zu = 0 I, (A4) B w Dyw = 0. I D yw

State Space H optimization - DGKF formulas The solution involves two AREs with Hamiltonian matrices H = A γ 2 B w Bw B u Bu CzC z A J = A γ 2 Cz C z CyC y B w Bw A Theorem: There exists a stabilizing controller K such that T zw < γ if and only if the following three conditions hold: 1 H dom(ric) and X = Ric(H ) 0, 2 J dom(ric) and Y = Ric(J ) 0, 3 ρ(x Y ) < γ 2.

Moreover, one such controller is [  Z K sub (s) = L F 0 ] where  = A + γ 2 B w B wx + B u F + Z L C y, F = B u X, L = Y C y, Z = (I γ 2 Y X ) 1. Furthermore, the set of all stabilizing controllers such that T wz < γ can be explicitly described (see [Zhou,p. 271]). [Doyle J., Glover K., Khargonekar P., Francis B., State Space Solution to Standard H 2 and H Control Problems, IEEE Trans. on AC 34 (1989) 831 847.]

Matlab - General H design [K,CL,GAM,INFO] = hinfsyn(p,nmeas,ncon)

Matlab [K,CL,GAM,INFO]=mixsyn(G,W1,W2,W3) or mixsyn H-infinity mixed-sensitivity synthesis method for robust control design. Controller K stabilizes plant G and minimizes the H-infinity cost function W1*S W2*K*S W3*T Hinf where S := inv(i+g*k) % sensitivity T := I-S = G*K/(I+G*K) % complementary sensitivity W1, W2 and W3 are stable LTI weights

Matlab - mixsyn Minimizes H norm of W 1 (I + GK) 1 W 2 K(I + GK) 1 W 3 GK(I + GK) 1 [C,CL,GAM,INFO] = mixsyn(g,w1,w2,w3) G = (s-1)/(s+1)^2; W1 = 5*(s+2)/(100*s+1); W2 = 0.1; [K,CL,GAM] = mixsyn(g,w1,w2,[]); L = G*K; S = inv(1+l); T = 1-S; sigma(s, g,t, r,gam/w1, g-.,gam*g/ss(w2), r-. )

Result 10 1 Singular Values 10 0 Singular Values (abs) 10-1 10-2 10-3 10-4 S T GAM/W1 GAM*G/ss(W2) 10-5 10-4 10-2 10 0 10 2 10 4 Frequency (rad/s)

Motor Control [Glad-Ljung Ex. 10.1] Motor P(s) = 20 s(s + 1). Minimize H norm of W 1 (I + PC) 1 W 2 C(I + PC) 1, W 3 PC(I + PC) 1 with W 1 = k s 2 W 2 = 1 W 3 = 1 Increasing k gives higher bandwidth at the cost of larger controller gain Shape of W 1 will enforce integral action. Try k = 1, 5, 30. Needed to change to P(s) = 20 (s + ǫ)(s + 1) and W 1 = k (s + ǫ) 2

Result - S, KS and T for k = 1, 5, 30 10 2 Singular Values 10 1 Singular Values 10 1 10 0 Singular Values (abs) 10 0 10-1 10-2 Singular Values (abs) 10-1 10-2 10-3 10-3 10 1 10-4 10-4 10 10-2 10-1 10 0 10 1 10 2 10 3-2 10-1 10 0 10 1 10 2 10 3 Frequency (rad/s) Frequency (rad/s) Singular Values 10 0 Singular Values (abs) 10-1 10-2 10-3 10-4 10-5 10-2 10-1 10 0 10 1 10 2 10 3 Frequency (rad/s)

Result - GangofFour for k = 1, 5, 30 10 2 1/(1+PC) 10 0 10-2 10-4 10-6 10-2 10 0 10 2 Frequency [Hz] 10 1 C/(1+PC) 10 0 10-1 10-2 10-3 10-4 10-2 10 0 10 2 Frequency [Hz] 10 1 P/(1+PC) 10 0 10-1 10-2 10-3 10-4 10-5 10-2 10 0 10 2 Frequency [Hz] 10 1 PC/(1+PC) 10 0 10-1 10-2 10-3 10-4 10-5 10-2 10 0 10 2 Frequency [Hz]

Resonant System From earlier lectures and exercises: P(s) = 1 s 2 + 0.02s + 1 Minimize H norm of W 1 S W 2 CS, W 3 T where W 1 = kp W 2 = 1 W 3 = [ ]

Result - GangofFour for k = 1, 10, 100, 420 10 1 1/(1+PC) 10 2 P/(1+PC) 10 0 10-1 10-2 10 0 10-2 10-4 10-6 10-3 10-2 10 0 10 2 10 4 Frequency [rad/s] 10-8 10-2 10 0 10 2 10 4 Frequency [rad/s] 2 C/(1+PC) 10 1 10 0 10-1 10-2 10-2 10 0 10 2 10 4 Frequency [rad/s] 2 PC/(1+PC) 10 0 10-2 10-4 10-6 10-8 10-10 10-2 10 0 10 2 10 4 Frequency [rad/s] k = 420 gives PS = 0.1 and CS = 42 (similar value as our best design on the exercise)

Result - further optimization Does the controller really need high gain beyond 10 4 rad/s? Change to W 2 = s (or really W 2 = (s + ǫ)/(1 + ǫs)) and retune k 10 1 1/(1+PC) 10 0 P/(1+PC) 10 0 10-2 10-1 10-4 10-2 10-6 10-3 10-2 10 0 10 2 10 4 Frequency [Hz] 10-8 10-2 10 0 10 2 10 4 Frequency [Hz] 2 C/(1+PC) 10 1 10 0 10-1 10-2 10-2 10 0 10 2 10 4 Frequency [Hz] 2 PC/(1+PC) 10 0 10-2 10-4 10-6 10-8 10-10 10-2 10 0 10 2 10 4 Frequency [Hz] To achieve same PS we need CS = 67, was 42. Excellent reduction in noise power ( CS 2 = 126, was 4200)

Result - S, KS and T 10 2 Singular Values 10 5 Singular Values 10 1 10 4 Singular Values (abs) 10 0 10-1 10-2 Singular Values (abs) 10 3 10 2 10 1 10 0 10-3 10-1 10 2 10-4 10-2 10 10-2 10-1 10 0 10 1 10 2 10 3-2 10-1 10 0 10 1 10 2 10 3 10 4 Frequency (rad/s) Frequency (rad/s) Singular Values 10 0 Singular Values (abs) 10-2 10-4 10-6 10-8 10-10 10-2 10-1 10 0 10 1 10 2 10 3 10 4 Frequency (rad/s)

Robust Control 1 MIMO performance 2 Robustness and the H -norm 3 H -control 4 ν-gap metric 5 Glover-MacFarlane Theme: You get what you ask for!

The GOF matrix d n P y u K [ ] [ ] y I [ ] [ ] = (I + PK) 1 n I P u K d

What is Good Performance? d n P y u K What is captured by the norm of the GOF matrix? [ ] I [ ] (I + PK) 1 I P K?

A Notion of Loop Stability Margin, b P,K A popular notion of stability margin is [ ] I [ ] 1 (I + PK) 1 I P if K stabilizes P b P,K = K 0 otherwise The larger b P,K [0, 1] is, the more robustly stable the closed loop system is. Remark: Note that b P,K depends on scalings of inputs and outputs.

Relation to Gain and Phase Margins If P is a SISO plant and K a stabilizing controller then gain margin 1 + b P,K 1 b P,K, phase margin 2 arcsin(b P,K ). Proof: Exercise

ν-gap Metric [Vinnicombe] δ ν (P 1, P 2 ) = (I+P 2 P 2 ) 1 2 (P 1 P 2 )(I+P 1 P 1) 1 2 if det(i + P 2 P 1) 0 on jr and wno det(i+p 2 P 1) + η(p 1 ) = η(p 2 ), 1 otherwise where η (η) is the number of closed (open) RHP poles and wno is winding number. In scalar case it takes on the particularly simple form P 1 (jω) P 2 (jω) δ ν (P 1, P 2 ) = sup ω R 1 + P1 (jω) 2 1 + P 2 (jω) 2 whenever the winding number condition is satisfied. Geometrical interpretation: Distance on the Riemann sphere

Geometric Interpretation

Example Consider P 1 (s) = 1 s, P 2(s) = We have P 1 P 2 = +. However δ ν (P 1, P 2 ) 0.0995 1 s + 0.1. which means that the system are, in fact, very close. [gap,nugap] = gapmetric(1/s,1/(s+0.1)) gap = 9.9510e-02 nugap = 9.9504e-02

Robustness Guarantees Theorem For any P 0, P and K arcsin b P,K arcsin b P0,K arcsin δ ν (P 0, P). Corollary 1: If b P0,K > δ ν (P 0, P) then (P, K) is stable. Corollary 2: For any P 0, P, K 0 and K arcsin b P,K arcsin b P0,K 0 arcsin δ ν (P 0, P) arcsin δ ν (K 0, K).

b P,K and Coprime Factor Uncertainty Let P = M 1 Ñ, where Ñ(iω)Ñ(iω) + M(iω) M(iω) 1. This is called normalized coprime factorization. Large b P,K gives good robustness against coprime factor uncertainty

Computing Normalized Coprime Factors Given P(s) = C(sI A) 1 B, let Y be the stabilizing solution to AY + Y A Y C CY + BB = 0. The matrix A + LC is stable with L := Y C. Lemma: A normalized factorization is given by ( ] A + LC B L [Ñ(s) M(s) = C 0 I ), Proof: Denote A(s) = (si A + Y C C) 1 and calculate ÑÑ + M M = I CAY C CY A C + CA(B B+Y C CY )A C = I + CA(B B+Y C CY Y (A ) 1 A 1 Y )A C = I + CA(B B Y C CY +AY +Y A }{{ )A } C = I =0

b P,K and Coprime Factor Uncertainty The process P = ( M + M ) 1 (Ñ + N ) in feedback with the controller K is stable for all = [ N M ] with ǫ iff [ ] I [ ] (I + PK) 1 I P K < 1 ǫ (1) Finding K that minimizes LHS of (1) is an H problem. Actually, no γ iteration needed!

Proof of (1) The interconnection of P = ( M + M ) 1 (Ñ + N ) and K can be rewritten as an interconnection of = [ N M ] and [ ] I (I + PK) 1 1 M K

Proof of (1) - continued The small gain theorem therefore gives the stability condition [ ] 1 ǫ > I (I + PK) 1 1 M K [ ] I = (I + PK) 1 M [ 1 Ñ K M ] [ ] I [ ] = (I + PK) 1 I P K

H Optimization of Normalized Coprime Factors Theorem: Assume Y 0 is the stabilizing solution to AY + Y A Y C CY + BB = 0. Then P = M 1 Ñ is a normalized left coprime factorization and [ ] I inf K stab K (I + PK) 1 1 M = 1 1 λmax (Y Q) =: γ opt where Q(A Y C C) + (A Y C C) Q + C C = 0. Moreover, a controller achieving γ > γ opt is K(s) = X = ( A BB X Y C C Y C B X 0 γ 2 ( ) 1 γ 2 1 Q I γ2 γ 2 1 Y Q ) Note: No iteration of γ needed.

Robust Control 1 MIMO performance 2 Robustness and the H -norm 3 H -control 4 ν-gap metric 5 Glover-MacFarlane

Loop-Shaping Design A good performance controller design typically requires large gain in the low frequency region: σ(pk) >> 1, σ(kp) >> 1, σ(k) >> 1. small gain in the high frequency region: σ(pk) << 1, σ(kp) << 1, σ(k) M where M is not too large. Wouldn t it be nice to be able to do loopshaping worrying only about the gains and not care about phase and stability?

Glover McFarlane Loopshaping d s W 1 P W 2 n s y s u s K Magnitude 20 10 0-10 -20-30 -40 W 2 (iω)p(iω)w 1 (iω) Measurement errors -50-60 -70 w0 w1 Frequency 10 0 10 1 Disturbance rejection

W 1 P W 2 K 1) Choose W 1 and W 2 and absorb them into the nominal plant P to get the shaped plant P s = W 2 PW 1. 2) Calculate b opt (P s ). If it is small (< 0.25) then return to Step 1 and adjust weights. 3) Select ǫ b opt (P s ) and design the controller K such that [ ] I (I + P K s K ) 1 1 M s < 1 ǫ. 4) The final controller is K = W 1 K W 2.

Matlab - loopsyn

Remarks: In contrast to the classical loop shaping design we do not treat explicitly closed loop stability, phase and gain margins. Thus the procedure is simple. Observe that [ I ] 1 1 (I + P K sk ) M s = [ W2 W 1 K 1 ] (I + P K) 1 [ W 1 2 P W 1 ] so it has an interpretation of the standard H optimization problem with weights. BUT!!! The open loop under investigation on Step 1 is K W 2 PW 1 whereas the actual open loop is given by W 1 K W 2 P and PW 1 K W 2. This is not really what we has shaped! Thus the method needs validation in the MIMO case.

Justification of H Loop Shaping We show that the degradation in the loop shape caused by K is limited. Consider low-frequency region first. σ(pk) = σ(w2 1 P s K W 2 ) σ(p s)σ(k ), κ(w 2 ) σ(kp) = σ(w 1 K P s W1 1 ) σ(p s)σ(k ) κ(w 1 ) where κ denotes conditional number. Thus small σ(k ) might cause problem even if P s is large. Can this happen? Theorem: Any K such that b Ps,K 1/γ also satisfies σ(k ) σ(p s) γ 2 1 γ 2 1σ(P s ) + 1 if σ(p s ) > γ 2 1. Corollary: If σ(p s ) >> γ 2 1 then σ(k ) 1/ γ 2 1

Consider now high frequency region. σ(pk) = σ(w2 1 P s K W 2 ) σ(p s )σ(k )κ(w 2 ), σ(kp) = σ(w 1 K P s W1 1 ) σ(p s )σ(k )κ(w 1 ). Can σ(k ) be large if σ(p s ) is small? Theorem: Any K such that b Ps,K 1/γ also satisfies σ(k ) γ 2 1 + σ(p s ) 1 γ 2 1σ(P s ) if σ(p s ) < 1 γ 2 1. Corollary: If σ(p s ) << 1/ γ 2 1 then σ(k ) γ 2 1

Example: Vertical Aircraft Dynamics [Glad/Ljung] See LQG lecture (3 inputs, 3 outputs: height, forward speed, pitch) Singular Values (abs) Singular Values 10 4 10 3 10 2 10 1 10 0 10-1 10-2 10-3 10-4 10-5 10-6 10-2 10-1 10 0 10 1 10 2 10 3 10 4 Frequency (rad/s) Open loop singular values Will try to achieve bandwidth 10 rad/s, following Glad/Ljung. Will need control gain about 250 in some direction at 10 rad/s

Example: Vertical Aircraft Dynamics 10 4 Singular Values 10 3 10 2 Singular Values (abs) 10 1 10 0 10-1 10-2 10-3 10-4 10-5 10-6 10-2 10-1 10 0 10 1 10 2 10 3 10 4 Frequency (rad/s) Start by adding diagonal PI-controllers Singular values for GW 1 with W 1 = 8(1 + 5 s )I 3

Example: Vertical Aircraft Dynamics 10 4 Singular Values 10 3 10 2 Singular Values (abs) 10 1 10 0 10-1 10-2 10-3 10-4 10-5 10-6 10-2 10-1 10 0 10 1 10 2 10 3 10 4 Frequency (rad/s) Squeeze singular values together near 10 rad/s W 1 := W 1 (I + kre(v 3 v 3 )) where GW 1(i10) = UΣV, v 3 = V (:, 3)

Vertical Aircraft Dynamics - Gang of Four Singular Values (abs) 10 1 Singular Values 10 0 10-1 10-2 10-3 10-2 10 0 10 2 10 4 Frequency (rad/s) Singular Values (abs) 10 1 Singular Values 10 0 10-1 10-2 10-3 10-2 10 0 10 2 10 4 Frequency (rad/s) Singular Values (abs) 10 2 10 0 10-2 Singular Values Singular Values (abs) Singular Values 10 1 10 0 10-1 10-2 10-2 10 0 10 2 10 4 Frequency (rad/s) 10-3 10-2 10 0 10 2 10 4 Frequency (rad/s) S and T as wanted. Control gain quite high, see KS

Example: Vertical Aircraft Dynamics 1.5 From: In(1) Step Response From: In(2) From: In(3) To: Out(1) 1 0.5 0 1.5 Amplitude To: Out(2) To: Out(3) 1 0.5 0 1.5 1 0.5 0 0 1 2 0 1 2 Time (seconds) 0 1 2 Nice decoupled step responses. Time constant about 0.1s.

Example: Vertical Aircraft Dynamics 100 From: In(1) Step Response From: In(2) From: In(3) To: Out(1) 0-100 -200 Amplitude To: Out(2) To: Out(3) -300 10 0-10 -20-30 200 0-200 -400-600 0 1 2 0 1 2 Time (seconds) 0 1 2 Large control signals needed to move 1 meter in 0.1s. Too aggressive design with 10 rad/s bandwidth? Good start for futher tuning.

Handin Do one of the two KTH laborations, see home page H design (easiest) Dynamic Decoupling and Glover-McFarlane design