Robust Control Design with MATLAB

Size: px
Start display at page:

Download "Robust Control Design with MATLAB"

Transcription

1 D.-W. Gu, P. Hr. Petkov and M. M. Konstantinov Robust Control Design with MATLAB With 288 Figures 1 3

2 Da-Wei Gu, PhD, DIC, CEng Engineering Department, University of Leicester, University Road, Leicester, LE1 7RH, UK Petko Hristov Petkov, PhD Department of Automatics, Technical University of Sofia, 1756 Sofia, Bulgaria Mihail Mihaylov Konstantinov, PhD University of Architecture, Civil Engineering and Geodesy, 1 Hristo Smirnenski Blvd., 1046 Sofia, Bulgaria British Library Cataloguing in Publication Data Gu, D.-W. Robust control design with MATLAB. - (Advanced textbooks in control and signal processing) 1. MATLAB (Computer file) 2. Robust control 3. Control theory I. Title II. Petkov, P. Hr (Petko Hr.), III. Konstantinov, M. M. (Mihail M.), ISBN-10: Library of Congress Control Number: Apart from any fair dealing for the purposes of research or private study, or criticism or review, as permitted under the Copyright, Designs and Patents Act 1988, this publication may only be reproduced, stored or transmitted, in any form or by any means, with the prior permission in writing of the publishers, or in the case of reprographic reproduction in accordance with the terms of licences issued by the Copyright Licensing Agency. Enquiries concerning reproduction outside those terms should be sent to the publishers. Advanced Textbooks in Control and Signal Processing series ISSN ISBN-10: ISBN-13: Springer Science+Business Media springeronline.com Springer-Verlag London Limited 2005 MATLAB and Simulink are the registered trademarks of The MathWorks, Inc., 3 Apple Hill Drive, Natick, MA , U.S.A. The software disk accompanying this book and all material contained on it is supplied without any warranty of any kind. The publisher accepts no liability for personal injury incurred through use or misuse of the disk. The use of registered names, trademarks, etc. in this publication does not imply, even in the absence of a specific statement, that such names are exempt from the relevant laws and regulations and therefore free for general use. The publisher makes no representation, express or implied, with regard to the accuracy of the information contained in this book and cannot accept any legal responsibility or liability for any errors or omissions that may be made. Typesetting: Camera ready by authors Production: LE-TEXJelonek,Schmidt&VöcklerGbR,Leipzig, Germany Printed in Germany 69/ Printed on acid-free paper SPIN

3 Series Editors Foreword The topics of control engineering and signal processing continue to flourish and develop. In common with general scientific investigation, new ideas, concepts and interpretations emerge quite spontaneously and these are then discussed, used, discarded or subsumed into the prevailing subject paradigm. Sometimes these innovative concepts coalesce into a new sub-discipline within the broad subject tapestry of control and signal processing. This preliminary battle between old and new usually takes place at conferences, through the Internet and in the journals of the discipline. After a little more maturity has been acquired by the new concepts then archival publication as a scientific or engineering monograph may occur. A new concept in control and signal processing is known to have arrived when sufficient material has evolved for the topic to be taught as a specialised tutorial workshop or as a course to undergraduate, graduate or industrial engineers. Advanced Textbooks in Control and Signal Processing are designed as a vehicle for the systematic presentation of course material for both popular and innovative topics in the discipline. It is hoped that prospective authors will welcome the opportunity to publish a structured and systematic presentation of some of the newer emerging control and signal processing technologies in the textbook series. It is always interesting to look back at how a particular field of control systems theory developed. The impetus for change and realization that a new era in a subject is dawning always seems to be associated with short, sharp papers that make the academic community think again about the prevalent theoretical paradigm. In the case of the evolution of robust control theory, the conference papers of Zames (circa. 1980) on robustness and the very short paper of Doyle on the robustness of linear quadratic Gaussian control systems seem to stand as landmarks intimating that control theory was going to change direction again. And the change did come; all through the 1980s came a steady stream of papers rewriting control theory, introducing system uncertainty, H robust control and µ- synthesis as part of a new control paradigm. Change, however did not come easily to the industrial applications community because the new theories and methods were highly mathematical. In the early stages even the classical feedback diagram which so often opened control engineering courses was replaced by a less intuitively obvious diagram. Also it

4 viii Series Editors Foreword was difficult to see the benefits to be gained from the new development. Throughout the 1990s the robust control theory and methods consolidated and the first major textbooks and software toolboxes began to appear. Experience with some widely disseminated benchmark problems such as control design for distillation columns, the control design for hard-disk drives, and the invertedpendulum control problem helped the industrial community see how to apply the new method and the control benefits that accrued. This advanced course textbook on robust control system design using MATLAB by Da-Wei Gu, Petko Petkov and Mihail Konstantinov has arrived at a very opportune time. More than twenty years of academic activity in the robust control field forms the bedrock on which this course book and its set of insightful applications examples are developed. Part I of the volume presents the theory a systematic presentation of: systems notation, uncertainty modelling, robust design specification, the H design method, H loop shaping, µ-analysis and synthesis and finally the algorithms for providing the low-order controllers that will be implemented. This is a valuable and concise presentation of all the necessary theoretical concepts prior to their application which is covered in Part II. Inspired by the adage practice makes perfect, Part II of the volume comprises six fully worked-out extended examples. To learn how to apply the complex method of H design and µ-synthesis there can be no surer route than to work through a set of carefully scripted examples. In this volume, the examples range from the academic mass-damper-spring system through to the industrially relevant control of a distillation column and a flexible manipulator system. The benchmark example of the ubiquitous hard-disk drive control system is also among the examples described. The MATLAB tools of the Robust Control Toolbox, the Control System Toolbox and Simulink are used in these application examples. The CD-ROM contains all the necessary files and instructions together with a pdf containing colour reproductions of many of the figures in the book. In summary, after academic development of twenty years or so, the robust control paradigm is now fully fledged and forms a vital component of advanced control engineering courses. This new volume in our series of advanced control and signal processing course textbooks on applying the methods of H and µ- synthesis control design will be welcomed by postgraduate students, lecturers and industrial control engineers alike. M.J. Grimble and M.A. Johnson Glasgow, Scotland, U.K. February 2005

5 Preface Robustness has been an important issue in control-systems design ever since 1769 when James Watt developed his flyball governor. A successfully designed control system should be always able to maintain stability and performance level in spite of uncertainties in system dynamics and/or in the working environment to a certain degree. Design requirements such as gain margin and phase margin in using classical frequency-domain techniques are solely for the purpose of robustness. The robustness issue was not that prominently considered during the period of 1960s and 1970s when system models could be much more accurately described and design methods were mainly mathematical optimisations in the time domain. Due to its importance, however, the research on robust design has been going on all the time. A breakthrough came in the late 1970s and early 1980s with the pioneering work by Zames [170] and Zames and Francis [171] on the theory, now known as the H optimal control theory. The H optimisation approach and the µ-synthesis/analysis method are well developed and elegant. They provide systematic design procedures of robust controllers for linear systems, though the extension into nonlinear cases is being actively researched. Many books have since been published on H and related theories and methods [26, 38, 65, 137, 142, 145, 174, 175]. The algorithms to implement the design methods are readily available in software packages such as MATLAB r and Slicot [119]. However, from our experience in teaching and research projects, we have felt that a reasonable percentage of people, students as well as practising engineers, still have difficulties in applying the H and related theory and in using MATLAB r routines. The mathematics behind the theory is quite involved. It is not straightforward to formulate a practical design problem, which is usually nonlinear, into the H or µ design framework and then apply MATLAB r routines. This hinders the application of such a powerful theory. It also motivated us to prepare this book. This book is for people who want to learn how to deal with robust controlsystem design problems but may not want to research the relevant theoretic developments. Methods and solution formulae are introduced in the first part

6 x Preface of the book, but kept to a minimum. The majority of the book is devoted to several practical design case studies (Part II). These design examples, ranging from teaching laboratory experiments such as a mass-damper-spring system to complex systems such as a supersonic rocket autopilot and a flexible-link manipulator, are discussed with detailed presentations. The design exercises are all conducted using the new Robust Control Toolbox v3.0 and are in a handson, tutorial manner. Studying these examples with the attached MATLAB r and Simulink r programs (170 plus M- and MDL-files) used in all designs will help the readers learn how to deal with nonlinearities involved in the system, how to parameterise dynamic uncertainties and how to use MATLAB r routines in the analysis and design, etc.. It is also hoped that by going through these exercises the readers will understand the essence of robust control system design and develop their own skills to design real, industrial, robust control systems. The readership of this book is postgraduates and control engineers, though senior undergraduates may use it for their final-year projects. The material included in the book has been adopted in recent years for MSc and PhD engineering students at Leicester University and at the Technical University of Sofia. The design examples are independent of each other. They have been used extensively in the laboratory projects on the course Robust and Optimal Control Systems taught in a masters programme in the Technical University of Sofia. The authors are indebted to several people and institutions who helped them in the preparation of the book. We are particularly grateful to The MathWorks, Inc. for their continuous support, to Professor Sigurd Skogestad of Norwegian University of Science and Technology who kindly provided the nonlinear model of the Distillation Column and to Associate Professor Georgi Lehov from Technical University of Russe, Bulgaria, who developed the uncertainty model of the Flexible-Link Manipulator. Using the CD ROM The attached CD ROM contains six folders with M- and MDL-files intended for design, analysis and simulation of the six design examples, plus a pdf file with colour hypertext version of the book. In order to use the M- and MDLfiles the reader should have at his (her) disposition of MATLAB r v7.0.2 with Robust Control Toolbox v 3.0, Control System Toolbox v6.1 and Simulink r v6.1. Further information on the use of the files can be found in the file Readme.m on the disc.

7 Contents Part I Basic Methods and Theory 1 Introduction Control-system Representations System Stabilities Coprime Factorisation and Stabilising Controllers Signals and System Norms Vector Norms and Signal Norms System Norms Modelling of Uncertain Systems Unstructured Uncertainties Parametric Uncertainty Linear Fractional Transformations Structured Uncertainties Robust Design Specifications Small-gain Theorem and Robust Stabilisation Performance Consideration Structured Singular Values H Design Mixed Sensitivity H Optimisation Degree-Of-Freedom H Design H Suboptimal Solutions Solution Formulae for Normalised Systems Solution to S-over-KS Design The Case of D Normalisation Transformations Direct Formulae for H Suboptimal Central Controller Formulae for Discrete-time Cases

8 xii Contents 5 H Loop-shaping Design Procedures Robust Stabilisation Against Normalised Coprime Factor Perturbations Loop-shaping Design Procedures Formulae for the Discrete-time Case Normalised Coprime Factorisation of Discrete-time Plant Robust Controller Formulae The Strictly Proper Case On the Three DARE Solutions A Mixed Optimisation Design Method with LSDP µ-analysis and Synthesis Consideration of Robust Performance µ-synthesis: D-K Iteration Method µ-synthesis: µ-k Iteration Method Lower-order Controllers Absolute-error Approximation Methods Balanced Truncation Method Singular Perturbation Approximation Hankel-norm Approximation Remarks Reduction via Fractional Factors Relative-error Approximation Methods Frequency-weighted Approximation Methods Part II Design Examples 8 Robust Control of a Mass-Damper-Spring System System Model Frequency Analysis of Uncertain System Design Requirements of Closed-loop System System Interconnections Suboptimal H Controller Design Analysis of Closed-loop System with K hin H Loop-shaping Design Assessment of H Loop-shaping Design µ-synthesis and D-K Iterations Robust Stability and Performance of K mu Comparison of H, H LSDP and µ-controllers Order Reduction of µ-controller Conclusions...162

9 Contents xiii 9 A Triple Inverted Pendulum Control-system Design System Description Modelling of Uncertainties Design Specifications System Interconnections H Design µ-synthesis Nonlinear System Simulation Conclusions Robust Control of a Hard Disk Drive Hard Disk Drive Servo System Derivation of Uncertainty Model Closed-loop System-design Specifications System Interconnections Controller Design in Continuous-time µ-design H Design H Loop-shaping Design Comparison of Designed Controllers Controller-order Reduction Design of Discrete-time Controller Nonlinear System Simulation Conclusions Robust Control of a Distillation Column Introduction Dynamic Model of the Distillation Column Uncertainty Modelling Closed-loop System-performance Specifications Open-loop and Closed-loop System Interconnections Controller Design Loop-shaping Design µ-synthesis Nonlinear System Simulation Conclusions Robust Control of a Rocket Rocket Dynamics Uncertainty Modelling Performance Requirements H Design µ-synthesis Discrete-time µ-synthesis Simulation of the Nonlinear System

10 xiv Contents 12.8 Conclusions Robust Control of a Flexible-Link Manipulator Dynamic Model of the Flexible Manipulator A Linear Model of the Uncertain System System-performance Specifications System Interconnections Controller Design and Analysis Nonlinear System Simulations Conclusions References Index...387

11 Part I Basic Methods and Theory

12 1 Introduction Robustness is of crucial importance in control-system design because real engineering systems are vulnerable to external disturbance and measurement noise and there are always differences between mathematical models used for design and the actual system. Typically, a control engineer is required to design a controller that will stabilise a plant, if it is not stable originally, and satisfy certain performance levels in the presence of disturbance signals, noise interference, unmodelled plant dynamics and plant-parameter variations. These design objectives are best realised via the feedback control mechanism, although it introduces in the issues of high cost (the use of sensors), system complexity (implementation and safety) and more concerns on stability (thus internal stability and stabilising controllers). Though always being appreciated, the need and importance of robustness in control-systems design has been particularly brought into the limelight during the last two decades. In classical single-input single-output control, robustness is achieved by ensuring good gain and phase margins. Designing for good stability margins usually also results in good, well-damped time responses, i.e. good performance. When multivariable design techniques were first developed in the 1960s, the emphasis was placed on achieving good performance, and not on robustness. These multivariable techniques were based on linear quadratic performance criteria and Gaussian disturbances, and proved to be successful in many aerospace applications where accurate mathematical models can be obtained, and descriptions for external disturbances/noise based on white noise are considered appropriate. However, application of such methods, commonly referred to as the linear quadratic Gaussian (LQG) methods, to other industrial problems made apparent the poor robustness properties exhibited by LQG controllers. This led to a substantial research effort to develop a theory that could explicitly address the robustness issue in feedback design. The pioneering work in the development of the forthcoming theory, now known as the H optimal control theory, was conducted in the early 1980s by Zames [170] and Zames and Francis [171]. In the H approach, the designer from the outset specifies a model of system uncertainty, such as additive perturbation

13 4 1 Introduction and/or output disturbance (details in Chapter 2), that is most suited to the problem at hand. A constrained optimisation is then performed to maximise the robust stability of the closed-loop system to the type of uncertainty chosen, the constraint being the internal stability of the feedback system. In most cases, it would be sufficient to seek a feasible controller such that the closedloop system achieves certain robust stability. Performance objectives can also be included in the optimisation cost function. Elegant solution formulae have been developed, which are based on the solutions of certain algebraic Riccati equations, and are readily available in software packages such as Slicot [119] and MATLAB r. Despite the mature theory ([26, 38, 175]) and availability of software packages, commercial or licensed freeware, many people have experienced difficulties in solving industrial control-systems design problems with these H and related methods, due to the complex mathematics of the advanced approaches and numerous presentations of formulae as well as adequate translations of industrial design into relevant configurations. This book aims at bridging the gap between the theory and applications. By sharing the experiences in industrial case studies with minimum exposure to the theory and formulae, the authors hope readers will obtain an insight into robust industrial controlsystem designs using major H optimisation and related methods. In this chapter, the basic concepts and representations of systems and signals will be discussed. 1.1 Control-system Representations A control system or plant or process is an interconnection of components to perform certain tasks and to yield a desired response, i.e. to generate desired signal (the output), when it is driven by manipulating signal (the input). A control system is a causal, dynamic system, i.e. the output depends not only the present input but also the input at the previous time. In general, there are two categories of control systems, the open-loop systems and closed-loop systems. An open-loop system uses a controller or control actuator to obtain the design response. In an open-loop system, the output has no effect on the input. In contrast to an open-loop system, a closed-loop control system uses sensors to measure the actual output to adjust the input in order to achieve desired output. The measure of the output is called the feedback signal, and a closed-loop system is also called a feedback system. It will be shown in this book that only feedback configurations are able to achieve the robustness of a control system. Due to the increasing complexity of physical systems under control and rising demands on system properties, most industrial control systems are no longer single-input and single-output (SISO) but multi-input and multi-output (MIMO) systems with a high interrelationship (coupling) between these chan-

14 1.1 Control-system Representations 5 nels. The number of (state) variables in a system could be very large as well. These systems are called multivariable systems. In order to analyse and design a control system, it is advantageous if a mathematical representation of such a relationship (a model) is available. The system dynamics is usually governed by a set of differential equations in either open-loop or closed-loop systems. In the case of linear, time-invariant systems, which is the case this book considers, these differential equations are linear ordinary differential equations. By introducing appropriate state variables and simple manipulations, a linear, time-invariant, continuous-time control system can be described by the following model, ẋ(t) =Ax(t)+Bu(t) y(t) =Cx(t)+Du(t) (1.1) where x(t) R n is the state vector, u(t) R m the input (control) vector, and y(t) R p the output (measurement) vector. With the assumption of zero initial condition of the state variables and using Laplace transform, a transfer function matrix corresponding to the system in (1.1) can be derived as and can be further denoted in a short form by [ ] A B G(s) =: C D G(s) :=C(sI n A) 1 B + D (1.2) (1.3) It should be noted that the H optimisation approach is a frequencydomain method, though it utilises the time-domain description such as (1.1) to explore the advantages in numerical computation and to deal with multivariable systems. The system given in (1.1) is assumed in this book to be minimal, i.e. completely controllable and completely observable, unless described otherwise. In the case of discrete-time systems, similarly the model is given by or x(k +1)=Ax(k)+Bu(k) y(k) =Cx(k)+Du(k) (1.4) x k+1 = Ax k + Bu k y k = Cx k + Du k with a corresponding transfer function matrix as G(s) :=C(zI n A) 1 B + D (1.5) [ ] A B =: C D

15 6 1 Introduction 1.2 System Stabilities An essential issue in control-systems design is the stability. An unstable system is of no practical value. This is because any control system is vulnerable to disturbances and noises in a real work environment, and the effect due to these signals would adversely affect the expected, normal system output in an unstable system. Feedback control techniques may reduce the influence generated by uncertainties and achieve desirable performance. However, an inadequate feedback controller may lead to an unstable closed-loop system though the original open-loop system is stable. In this section, control-system stabilities and stabilising controllers for a given control system will be discussed. When a dynamic system is just described by its input/output relationship such as a transfer function (matrix), the system is stable if it generates bounded outputs for any bounded inputs. This is called the bounded-inputbounded-output (BIBO) stability. For a linear, time-invariant system modelled by a transfer function matrix (G(s) in (1.2)), the BIBO stability is guaranteed if and only if all the poles of G(s) are in the open-left-half complex plane, i.e. with negative real parts. When a system is governed by a state-space model such as (1.1), a stability concept called asymptotic stability can be defined. A system is asymptotically stable if, for an identically zero input, the system state will converge to zero from any initial states. For a linear, time-invariant system described by a model of (1.1), it is asymptotically stable if and only if all the eigenvalues of the state matrix A are in the open-left-half complex plane, i.e. with positive real parts. In general, the asymptotic stability of a system implies that the system is also BIBO stable, but not vice versa. However, for a system in (1.1), if [A, B, C, D] is of minimal realisation, the BIBO stability of the system implies that the system is asymptotically stable. The above stabilities are defined for open-loop systems as well as closedloop systems. For a closed-loop system (interconnected, feedback system), it is more interesting and intuitive to look at the asymptotic stability from another point of view and this is called the internal stability [20]. An interconnected system is internally stable if the subsystems of all input-output pairs are asymptotically stable (or the corresponding transfer function matrices are BIBO stable when the state space models are minimal, which is assumed in this chapter). Internal stability is equivalent to asymptotical stability in an interconnected, feedback system but may reveal explicitly the relationship between the original, open-loop system and the controller that influences the stability of the whole system. For the system given in Figure 1.1, there are two inputs r and d (the disturbance at the output) and two outputs y and u (the output of the controller K). The transfer functions from the inputs to the outputs, respectively, are T yr = GK(I + GK) 1

16 1.3 Coprime Factorisation and Stabilising Controllers 7 Fig An interconnected system of G and K T yd = G(I + KG) 1 T ur = K(I + GK) 1 T ud = KG(I + KG) 1 (1.6) Hence, the system is internally stable if and only if all the transfer [ functions ] [ ] r y in (1.6) are BIBO stable, or the transfer function matrix M from to d u is BIBO stable, where M := [ ] GK(I + GK) 1 G(I + KG) 1 K(I + GK) 1 KG(I + KG) 1 (1.7) The stability of (1.7) is equivalent to the stability of [ ] I GK(I + GK) 1 G(I + KG) ˆM := 1 K(I + GK) 1 I KG(I + KG) 1 (1.8) By simple matrix manipulations, we have [ ] (I + GK) ˆM = 1 G(I + KG) 1 K(I + GK) 1 (I + KG) 1 [ ] 1 I G = (1.9) K I Hence, the feedback system in Figure 1.1 is internally stable if (1.9) is stable. It can be shown [20] that if there is no unstable pole/zero cancellation between G and K, then any one of the four transfer functions being BIBO stable would be enough to guarantee that the whole system is internally stable. 1.3 Coprime Factorisation and Stabilising Controllers Consider a system given in the form of (1.2) with [A, B, C, D] assumed to be minimal. Matrices ( M(s), Ñ(s)) H ((M(s), N(s)) H ), where H

17 8 1 Introduction denotes the space of functions with no poles in the closed right-half complex plane, constitute a left (right) coprime factorisation of G(s) if and only if (i) M (M) is square, and det( M)(det(M)) = 0. (ii) the plant model is given by (iii) There exists (Ṽ, Ũ)((V,U)) H such that G = M 1 Ñ(= NM 1 ) (1.10) MṼ + ÑŨ = I (1.11) (UN + VM = I) Transfer functions (or rational, fractional) matrices are coprime if they share no common zeros in the right-half complex plane, including at the infinity. The two equations in (iii) above are called Bezout identities ([97]) and are necessary and sufficient conditions for ( M,Ñ) ((M, N)) being left coprime (right coprime), respectively. The left and right coprime factorisations of G(s) can be grouped together to form a Bezout double identity as the following [ ][ ] V U M Ñ M Ũ N Ṽ = I (1.12) For G(s) of minimal realisation (1.2) (actually G is required to be stabilisable and detectable only), the formulae for the coprime factors can be readily derived ([98]) as in the following theorem. Theorem 1.1. Let constant matrices F and H be such that A + BF and A + HC are both stable. Then the transfer function matrices M and Ñ (M and N) defined in the following constitute a left (right) coprime factorisation of G(s), [ ] [ ] A + HC B + HD H Ñ(s) M(s) = (1.13) C D I [ ] N(s) = M(s) A + BF B C + DF D (1.14) F I Furthermore, the following Ũ(s), Ṽ (s), U(s) and V (s) satisfy the Bezout double identity (1.12), [ Ũ(s) Ṽ (s) ] [ ] A + HC HB+ HD = (1.15) F 0 I [ ] A + BF H U(s) = F 0 (1.16) V (s) C + DF I

18 1.4 Signals and System Norms 9 It can be easily shown that the pairs (Ũ, Ṽ ) and (U, V ) are stable and coprime. Using (1.9), it is straightforward to show the following lemma. Lemma 1.2. K := Ṽ 1 Ũ = UV 1 (1.17) is a stabilising controller, i.e. the closed-loop system in Figure 1.6 is internally stable. Further, the set of all stabilising controllers for G = M 1 Ñ = NM 1 can be obtained in the following Youla Parameterisation Theorem ([98, 167, 168]). Theorem 1.3. The set of all stabilising controllers for G is {(Ṽ + QÑ) 1 (Ũ + Q M) : Q H } (1.18) The set can also be expressed as {(U + MQ)(V + NQ) 1 : Q H } (1.19) 1.4 Signals and System Norms In this section the basic concepts concerning signals and systems will be reviewed in brief. A control system interacts with its environment through command signals, disturbance signals and noise signals, etc. Tracking error signals and actuator driving signals are also important in control systems design. For the purpose of analysis and design, appropriate measures, the norms, must be defined for describing the size of these signals. From the signal norms, we can then define induced norms to measure the gain of the operator that represents the control system Vector Norms and Signal Norms Let the linear space X be F m, where F = R for the field of real numbers, or F = C for complex numbers. For x =[x 1,x 2,..., x m ] T X, the p-norm of the vector x is defined by 1-norm x 1 := m i=1 x i, for p =1 p-norm x p := ( m i=1 x i p ) 1/p, for 1 <p< -norm x := max 1 i m x i, for p = When p =2, x 2 is the familiar Euclidean norm. When X is a linear space of continuous or piecewise continuous time scalarvalued signals x(t), t R, the p-norm of a signal x(t) is defined by

19 10 1 Introduction 1-norm x 1 := x(t) dt, for p =1 ( 1/p p-norm x p := dt) x(t) p, for 1 <p< -norm x := sup t R x(t), for p = The normed spaces, consisting of signals with finite norm as defined correspondingly, are called L 1 (R), L p (R) and L (R), respectively. From a signal point of view, the 1-norm, x 1 of the signal x(t) is the integral of its absolute value. The square of the 2-norm, x 2 2, is often called the energy of the signal x(t) since that is what it is when x(t) is the current through a 1 Ω resistor. The -norm, x, is the amplitude or peak value of the signal, and the signal is bounded in magnitude if x(t) L (R). When X is a linear space of continuous or piecewise continuous vectorvalued functions of the form x(t) =[x 1 (t),x 2 (t),,x m (t)] T, t R,wemay have ( L p 1/p m m(r) :={x(t) : x p = i=1 dt) x(t) p <, for 1 p< } L m (R) :={x(t) : x = sup t R x(t) < } Some signals are useful for control systems analysis and design, for example, the sinusoidal signal, x(t) =A sin(ωt+φ), t R. It is unfortunately not a 2-norm signal because of the infinite energy contained. However, the average power of x(t) lim T 1 T x 2 (t)dt 2T T exists. The signal x(t) will be called a power signal if the above limit exists. The square root of the limit is the well-known r.m.s. (root-mean-square) value of x(t). It should be noticed that the average power does not introduce a norm, since a nonzero signal may have zero average power System Norms System norms are actually the input-output gains of the system. Suppose that G is a linear and bounded system that maps the input signal u(t) into the output signal y(t), where u (U, U ), y (Y, Y ). U and Y are the signal spaces, endowed with the norms U and Y, respectively. Then the norm, maximum system gain, of G is defined as or Gu Y G := sup (1.20) u 0 u U G = Obviously, we have sup Gu Y = sup Gu Y u U =1 u U 1

20 1.4 Signals and System Norms 11 Gu Y G u U If G 1 and G 2 are two linear, bounded and compatible systems, then G 1 G 2 G 1 G 2 G is called the induced norm of G with regard to the signal norms U and Y. In this book, we are particularly interested in the so-called -norm of a system. For a linear, time-invariant, stable system G: L 2 m(r) L 2 p(r), the -norm, or the induced 2-norm, of G is given by G = sup G(jω) 2 (1.21) ω R where G(jω) 2 is the spectral norm of the p m matrix G(jω) and G(s) is the transfer function matrix of G. Hence, the -norm of a system describes the maximum energy gain of the system and is decided by the peak value of the largest singular value of the frequency response matrix over the whole frequency axis. This norm is called the H -norm, since we denote by H the linear space of all stable linear systems.

21 2 Modelling of Uncertain Systems As discussed in Chapter 1, it is well understood that uncertainties are unavoidable in a real control system. The uncertainty can be classified into two categories: disturbance signals and dynamic perturbations. The former includes input and output disturbance (such as a gust on an aircraft), sensor noise and actuator noise, etc. The latter represents the discrepancy between the mathematical model and the actual dynamics of the system in operation. A mathematical model of any real system is always just an approximation of the true, physical reality of the system dynamics. Typical sources of the discrepancy include unmodelled (usually high-frequency) dynamics, neglected nonlinearities in the modelling, effects of deliberate reduced-order models, and system-parameter variations due to environmental changes and torn-and-worn factors. These modelling errors may adversely affect the stability and performance of a control system. In this chapter, we will discuss in detail how dynamic perturbations are usually described so that they can be well considered in system robustness analysis and design. 2.1 Unstructured Uncertainties Many dynamic perturbations that may occur in different parts of a system can, however, be lumped into one single perturbation block, for instance, some unmodelled, high-frequency dynamics. This uncertainty representation is referred to as unstructured uncertainty. In the case of linear, time-invariant systems, the block may be represented by an unknown transfer function matrix. The unstructured dynamics uncertainty in a control system can be described in different ways, such as is listed in the following, where G p (s) denotes the actual, perturbed system dynamics and G o (s) a nominal model description of the physical system.

22 14 2 Modelling of Uncertain Systems 1. Additive perturbation: Fig Additive perturbation configuration 2. Inverse additive perturbation: G p (s) =G o (s)+ (s) (2.1) Fig Inverse additive perturbation configuration 3. Input multiplicative perturbation: (G p (s)) 1 =(G o (s)) 1 + (s) (2.2) Fig Input multiplicative perturbation configuration

23 2.1 Unstructured Uncertainties Output multiplicative perturbation: G p (s) =G o (s)[i + (s)] (2.3) Fig Output multiplicative perturbation configuration 5. Inverse input multiplicative perturbation: G p (s) =[I + (s)]g o (s) (2.4) Fig Inverse input multiplicative perturbation configuration (G p (s)) 1 =[I + (s)](g o (s)) 1 (2.5) 6. Inverse output multiplicative perturbation: (G p (s)) 1 =(G o (s)) 1 [I + (s)] (2.6) 7. Left coprime factor perturbations: G p (s) =( M + M ) 1 (Ñ + Ñ ) (2.7) 8. Right coprime factor perturbations: G p (s) =(N + N )(M + M ) 1 (2.8)

24 16 2 Modelling of Uncertain Systems Fig Inverse output multiplicative perturbation configuration Fig Left coprime factor perturbations configuration Fig Right coprime factor perturbations configuration The additive uncertainty representations give an account of absolute error between the actual dynamics and the nominal model, while the multiplicative representations show relative errors. In the last two representations, ( M,Ñ)/(M,N) are left/right coprime factorizations of the nominal system model G o (s), respectively; and ( M, Ñ ) /( M, N ) are the perturbations on the corresponding factors [101]. The block (or, ( M, Ñ) /( M, N ) in the coprime factor perturbations cases) is uncertain, but usually is norm-bounded. It may be bounded by a known transfer function, say σ[ (jω)] δ(jω), for all frequencies ω, where δ is a known scalar function and σ[ ] denotes the largest singular value of a matrix. The uncertainty can thus be represented by a unit, norm-bounded block cascaded with a scalar transfer function δ(s).

25 2.2 Parametric Uncertainty 17 It should be noted that a successful robust control-system design would depend on, to certain extent, an appropriate description of the perturbation considered, though theoretically most representations are interchangeable. Example 2.1 The dynamics of many control systems may include a slow part and a fast part, for instance in a dc motor. The actual dynamics of a scalar plant may be G p (s) =g gain G slow (s)g fast (s) where, g gain is constant, and 1 G slow (s) = 1+sT ; G 1 fast(s) = ; α 1. 1+αsT In the design, it may be reasonable to concentrate on the slow response part while treating the fast response dynamics as a perturbation. Let a and m denote the additive and multiplicative perturbations, respectively. It can be easily worked out that a (s) =G p g gain G slow = g gain G slow (G fast 1) αst = g gain (1 + st )(1 + αst ) m (s) = G p g gain G slow = G fast 1= αst g gain G slow 1+αsT The magnitude Bode plots of a and m can be seen in Figure 2.9, where g gain is assumed to be 1. The difference between the two perturbation representations is obvious: though the magnitude of the absolute error may be small, the relative error can be large in the high-frequency range in comparison to that of the nominal plant. 2.2 Parametric Uncertainty The unstructured uncertainty representations discussed in Section 2.1 are useful in describing unmodelled or neglected system dynamics. These complex uncertainties usually occur in the high-frequency range and may include unmodelled lags (time delay), parasitic coupling, hysteresis and other nonlinearities. However, dynamic perturbations in many industrial control systems may also be caused by inaccurate description of component characteristics, torn-and-worn effects on plant components, or shifting of operating points, etc. Such perturbations may be represented by variations of certain system parameters over some possible value ranges (complex or real). They affect the low-frequency range performance and are called parametric uncertainties.

26 18 2 Modelling of Uncertain Systems Bode plot (Magnitude) 0 20 Solid line: absolute error Dashed line relative error 40 Magnitude (db) Frequency (rad/s) Fig Absolute and relative errors in Example 2.1 Example 2.2 A mass-spring-damper system can be described by the following second-order, ordinary differential equation m d2 x(t) dt 2 + c dx(t) dt + kx(t) =f(t) where, m is the mass, c the damping constant, k the spring stiffness, x(t) the displacement and f(t) the external force. For imprecisely known parameter values, the dynamic behaviour of such a system is actually described by (m o + δ m ) d2 x(t) dt 2 +(c o + δ c ) dx(t) dt +(k o + δ k )x(t) =f(t) where, m o, c o and k o denote the nominal parameter values and δ m, δ c and δ k possible variations over certain ranges. By defining the state variables x 1 and x 2 as the displacement variable and its first-order derivative (velocity), the 2nd-order differential equation (2.2) may be rewritten into a standard state-space form x 1 = x 2 x 2 = y = x 1 1 m o + δ m [ (k o + δ k )x 1 (c o + δ c )x 2 + f]

27 2.2 Parametric Uncertainty 19 Fig Analogue block diagram of Example 2.2 Further, the system can be represented by an analogue block diagram as in Figure Notice that m o+δ m can be rearranged as a feedback in terms of m o and δ m. Figure 2.10 can be redrawn as in Figure 2.11, by pulling out all the uncertain variations. Fig Structured uncertainties block diagram of Example 2.2 Let z 1, z 2 and z 3 be x 2, x 2 and x 1, respectively, considered as another, fictitious output vector; and, d 1, d 2 and d 3 be the signals coming out from the perturbation blocks δ m, δ c and δ k, as shown in Figure The perturbed

28 20 2 Modelling of Uncertain Systems system can be arranged in the following state-space model and represented as in Figure [ ẋ1 ][ x1 x 2 ] [ 0 1 = ẋ 2 k o m o c o m o z 1 k o m o c o m o z 2 = 0 1 z y = [ 10 ] [ ] x 1 x 2 [ x1 x 2 ] ] [ ] d 1 d 2 d 3 [ m o d 1 + d 2 d 3 1 m o 0 0 ] f f (2.9) Fig Standard configuration of Example 2.2 The state-space model of (2.9) describes the augmented, interconnection system M of Figure The perturbation block in Figure 2.12 corresponds to parameter variations and is called parametric uncertainty. The uncertain block is not a full matrix but a diagonal one. It has certain structure, hence the terminology of structured uncertainty. More general cases will be discussed shortly in Section Linear Fractional Transformations The block diagram in Figure 2.12 can be generalised to be a standard configuration to represent how the uncertainty affects the input/output relationship

29 2.3 Linear Fractional Transformations 21 of the control system under study. This kind of representation first appeared in the circuit analysis back in the 1950s ([128, 129]). It was later adopted in the robust control study ([132]) for uncertainty modelling. The general framework is depicted in Figure Fig Standard M- configuration The interconnection transfer function matrix M in Figure 2.13 is partitioned as [ ] M11 M M = 12 M 21 M 22 where the dimensions of M 11 conform with those of. By routine manipulations, it can be derived that z = [ M 22 + M 21 (I M 11 ) 1 M 12 ] w if (I M 11 ) is invertible. When the inverse exists, we may define F (M, ) =M 22 + M 21 (I M 11 ) 1 M 12 F (M, ) is called a linear fractional transformation(lft) of M and. Because the upper loop of M is closed by the block, this kind of linear fractional transformation is also called an upper linear fractional transformation(ulft), and denoted with a subscript u, i.e. F u (M, ), to show the way of connection. Similarly, there are also lower linear fractional transformations(llft) that are usually used to indicate the incorporation of a controller K into a system. Such a lower LFT can be depicted as in Figure 2.14 and defined by F l (M,K) =M 11 + M 12 K(I M 22 K) 1 M 21 With the introduction of linear fractional transformations, the unstructured uncertainty representations discussed in Section 2.1 may be uniformly described by Figure 2.13, with appropriately defined interconnection matrices Ms as listed below.

30 22 2 Modelling of Uncertain Systems Fig Lower LFT configuration 1. Additive perturbation: M = [ 0 I IG o ] (2.10) 2. Inverse additive perturbation: [ ] Go G M = o G o G o (2.11) 3. Input multiplicative perturbation: M = [ 0 I G o G o ] (2.12) 4. Output multiplicative perturbation: [ ] 0 Go M = IG o (2.13) 5. Inverse input multiplicative perturbation: M = [ ] I I G o G o (2.14) 6. Inverse output multiplicative perturbation: [ ] IGo M = I G o (2.15)

31 2.4 Structured Uncertainties Left coprime factor perturbations: M 1 M = [ 1 M G 0 M 1 G ][ ] Go I (2.16) where G o = G ÑG, a left coprime factorisation of the nominal plant; and, the perturbed plant is G p =( M G + M ) 1 (ÑG + Ñ ). 8. Right coprime factor perturbations: G o [[ M 1 M = G 0 ] M 1 ] [ G Go I ] G o (2.17) where G o = N G M G 1, a right coprime factorisation of the nominal plant; and, the perturbed plant is G p =(N G + N )(M G + M ) 1. In the above, it is assumed that [I M 11 ] is invertible. The perturbed system is thus G p (s) =F u (M, ) In the coprime factor [ perturbation ] representations, (2.16) and (2.17), = [ ] M M Ñ and =, respectively. The block in (2.10) (2.17) is N supposed to be a full matrix, i.e. it has no specific structure. 2.4 Structured Uncertainties In many robust design problems, it is more likely that the uncertainty scenario is a mixed case of those described in Sections 2.1 and 2.2. The uncertainties under consideration would include unstructured uncertainties, such as unmodelled dynamics, as well as parameter variations. All these uncertain parts still can be taken out from the dynamics and the whole system can be rearranged in a standard configuration of (upper) linear fractional transformation F (M, ). The uncertain block would then be in the following general form = diag [δ 1 I r1,,δ s I rs, 1,, f ]:δ i C, j C m j m j (2.18) where s i=1 r i + f j=1 m j = n with n is the dimension of the block. We may define the set of such as. The total block thus has two types of uncertain blocks: s repeated scalar blocks and f full blocks. The parameters δ i of the repeated scalar blocks can be real numbers only, if further information of the uncertainties is available. However, in the case of real numbers, the analysis and design would be even harder. The full blocks in (2.18) need not be square, but by restricting them as such makes the notation much simpler.

32 24 2 Modelling of Uncertain Systems When a perturbed system is described by an LFT with the uncertain block of (2.18), the considered has a certain structure. It is thus called structured uncertainty. Apparently, using a lumped, full block to model the uncertainty in such cases, for instance in Example 2.2, would lead to pessimistic analysis of the system behaviour and produce conservative designs.

33 3 Robust Design Specifications A control system is robust if it remains stable and achieves certain performance criteria in the presence of possible uncertainties as discussed in Chapter 2. The robust design is to find a controller, for a given system, such that the closed-loop system is robust. The H optimisation approach and its related approaches, being developed in the last two decades and still an active research area, have been shown to be effective and efficient robust design methods for linear, time-invariant control systems. We will first introduce in this chapter the Small-Gain Theorem, which plays an important role in the H optimisation methods, and then discuss the stabilisation and performance requirements in robust designs using the H optimisation and related ideas. 3.1 Small-gain Theorem and Robust Stabilisation The Small-Gain Theorem is of central importance in the derivation of many stability tests. In general, it provides only a sufficient condition for stability and is therefore potentially conservative. The Small-Gain Theorem is applicable to general operators. What will be included here is, however, a version that is suitable for the H optimisation designs, and in this case, it is a sufficient and necessary result. Consider the feedback configuration in Figure 3.1, where G 1 (s) and G 2 (s) are the transfer function matrices of corresponding linear, time-invariant systems. We then have the following theorem. Theorem 3.1. [21] If G 1 (s) and G 2 (s) are stable, i.e. G 1 H, G 2 H, then the closed-loop system is internally stable if and only if G 1 G 2 < 1 and G 2 G 1 < 1

34 26 3 Robust Design Specifications Fig A feedback configuration A closed-loop system of the plant G and controller K is robustly stable if it remains stable for all possible, under certain definition, perturbations on the plant. This implies, of course, that K is a stabilising controller for the nominal plant G, since we always assume that the perturbation set includes zero (no perturbation). Let us consider the case of additive perturbation as depicted in Figure 3.2, where (s) is the perturbation, a full matrix unknown but stable. Fig Additive perturbation configuration It is easy to work out that the transfer function from the signal v to u is T uv = K(I + GK) 1. As mentioned earlier, the controller K should stabilise the nominal plant G. Hence, from the Small-Gain theorem, we have the following theorem. Theorem 3.2. [14, 109] For stable (s), the closed-loop system is robustly stable if K(s) stabilises the nominal plant and the following holds and K(I + GK) 1 < 1 K(I + GK) 1 < 1

35 or, in a strengthened form, 3.1 Small-gain Theorem and Robust Stabilisation 27 K(I + GK) 1 < 1 (3.1) The second condition becomes necessary, when the unknown may have all phases. If required to find a controller to robustly stabilise the largest possible set of perturbations, in the sense of -norm, it is then clear that we need to solve the following minimisation problem min K(I + Kstabilising GK) 1 (3.2) In many cases, we may have a priori knowledge of the perturbation, say, σ( (jω)) σ(w 2 (jω)) for all ω R Then, we may rewrite the perturbation block as (s) = (s)w 2 (s) where (s) is the unit norm perturbation set. Correspondingly, the robust stabilisation condition becomes and the optimisation problem W 2 K(I + GK) 1 < 1 min W 2K(I + GK) 1 (3.3) Kstabilising Robust stabilisation conditions can be derived similarly for other perturbation representations discussed in Chapter 2 and are listed below (G o is replaced by G for the sake of simplicity). 1. Inverse additive perturbation: 2. Input multiplicative perturbation: 3. Output multiplicative perturbation: G(I + KG) 1 < 1 (3.4) KG(I + KG) 1 < 1 (3.5) GK(I + GK) 1 < 1 (3.6)

36 28 3 Robust Design Specifications 4. Inverse input multiplicative perturbation: 5. Inverse output multiplicative perturbation: (I + KG) 1 < 1 (3.7) (I + GK) 1 < 1 (3.8) 5. The cases of perturbation on coprime factors will be discussed in Chapter Remark: In the above discussion, the stability of the perturbation block has been assumed. Actually, the conclusions are also true if the perturbed systems have the same number of closed right-half plane poles as the nominal system does (see [96]). If even this is not satisfied, then we will have to use the coprime factor perturbation models, as will be discussed in Chapter 5. Robust stabilisation is an important issue not just as a design requirement. As a matter of fact, the H design and related approaches first formulate the stability as well as performance design specifications as a robust stabilisation problem and then solve the robust stabilisation problem to find a controller. 3.2 Performance Consideration Figure 3.3 depicts a typical closed-loop system configuration, where G is the plant and K the controller to be designed. r, y, u, e, d, n are, respectively, the reference input, output, control signal, error signal, disturbance and measurement noise. With a little abuse of notations, we do not distinguish the notations of signals in the time or frequency domains. The following relationships are immediately available. y =(I + GK) 1 GKr + (I + GK) 1 d (I + GK) 1 GKn u = K(I + GK) 1 r K(I + GK) 1 d K(I + GK) 1 n e =(I + GK) 1 r (I + GK) 1 d (I + GK) 1 n Assume that the signals r, d, n are energy bounded and have been normalised, i.e. lying in the unit ball of L 2 space. We, however, do not know what exactly these signals are. It is required that the usual performance specifications, such as tracking, disturbance attenuation and noise rejection, should be as good as possible for any r, d or n whose energy does not exceed 1. From the discussions in Chapter 1 on signal and system norms, it is clear that we should

37 3.3 Structured Singular Values 29 Fig A closed-loop configuration of G and K minimise the -norm, the gain, of corresponding transfer function matrices. Hence, the design problem is that over the set of all stabilising controller Ks, (i.e. those Ks make the closed-loop system internally stable), find the optimal one that minimises for good tracking, (I + GK) 1 for good disturbance attenuation, (I + GK) 1 for good noise rejection, (I + GK) 1 GK for less control energy, K(I + GK) 1 It is conventional to denote S := (I +GK) 1, the sensitivity function, and T := (I + GK) 1 GK, the complementary sensitivity function. In general, weighting functions would be used in the above minimisation to meet the design specifications. For instance, instead of minimising the sensitivity function alone, we would aim at solving min Kstabilising W 1SW d where W 1 is chosen to tailor the tracking requirement and is usually a highgain low-pass filter type, W d can be regarded as a generator that characterises all relevant disturbances in the case considered. Usually, the weighting functions are stable and of minimum phase. 3.3 Structured Singular Values Systems with uncertain dynamics can all be put in the standard M configuration of Figure The robust stabilisation conditions derived in Section 3.1 are sufficient and necessary conditions for unstructured uncertainties, i.e. is a full block and will have all phases. In the case of structured uncertainty

38 30 3 Robust Design Specifications (Section 2.4), these robust stabilization results could be very conservative. To deal with structured uncertainties, we need to introduce the so-called structured singular values (SSV). In fact, these robust stabilisation results, such as that in Theorem 3.2, can be equivalently written as [14, 109] det [I M(jω) (jω)] = 0, ω R, (3.9) where the nominal (closed-loop) system M(s) is assumed to be stable as usual. This condition for robust stability is sufficient and necessary even for structured uncertainty. Roughly speaking, in order to have the closed-loop system robustly stable, all the uncertainties of a known structure of (2.18) should be small enough not to violate the condition (i.e. not make I M(jω) (jω) singular at any frequency ω). On the other hand, for a given M with a fixed controller K and a known structure of the uncertainties, the smallest size of the uncertainty that makes I M(jω) (jω) singular at some frequency ω describes how robustly stable the controller K is in dealing with such structured uncertainties. This measurement is the so-called structured singular values (SSV) introduced below. First, as in Section 2.4, we define the structure of uncertainty of (2.18) and repeat here for convenience, = {diag[δ 1 I r1,,δ s I rs, 1,, f ]:δ i C, j C mj mj } (3.10) where s i=1 r i + f j=1 m j = n with n is the dimension of the block. We also assume the set of is bounded. And, we may thus define a normalised set of structured uncertainty by B := { : σ( ) 1, } (3.11) Definition 3.3. For M C n n, the structured singular value µ (M) of M with respect to is the number defined such that µ 1 (M) is equal to the smallest σ( ) needed to make (I M ) singular (rank deficiency). That is µ 1 (M) := min {σ( ) : det(i M )=0} (3.12) If there is no such that det(i M )=0, then µ (M) :=0. When M is an interconnected transfer matrix as in Figure 2.13, the structured singular value, with respect to, is defined by µ (M(s)) := sup µ (M(jω)) (3.13) ω R Correspondingly, the uncertainty set may be defined as M( ) :={ ( ) RH : (jω) for all ω R} (3.14)

39 3.3 Structured Singular Values 31 When the uncertainty structure is fixed, we may omit the subscript of µ (M) for brevity. The reciprocal of the structured singular value denotes a frequencydependent stability margin ([18, 132]). The robust stability result with regard to structured uncertainty is now given in the following theorem. Theorem 3.4. [23] Let the nominal feedback system (M(s)) be stable and Let β>0 be an uncertainty bound, i.e. β, ( ) M( ). The perturbed system of Figure 2.3 is robustly stable, with respect to, if and only if µ (M(s)) < 1 β. It is obvious that if the uncertainty lies in the unit ball B, the robust stability condition is then µ (M(s)) < 1. µ (M(s)) is frequency dependent and is calculated at each frequency over a reasonable range in practical applications. In the literature, µ (M(s)) is sometimes redefined as M µ for an interconnected transfer function matrix M(s). This notation is convenient; however, it should be clear that it is not a norm. It does not satisfy the three basic properties of a norm. Also, it depends on M(s) as well as the uncertainty structure of. The structured singular value plays an important role in robust design. As became clear in the early parts of this chapter, the H optimisation approach can deal with robust stabilisation problems with regard to unstructured uncertainties and can achieve nominal performance requirements. In the case of structured uncertainty, Theorem 3.4 gives a sufficient and necessary condition for robust stabilisation. Furthermore, the robust performance design can also be transformed into a robust stabilisation problem with regard to structured uncertainties, as will be described in Chapter 6. However, the computation of the structured singular value is not an easy task. It is still an open topic and requires further research. A few properties of the structured singular value and its computation are listed below. Interested readers are referred to [23, 32, 33, 120, 121, 122, 175] for details. Coded routines for the µ computation are available in software packages MATLAB r [9] and Slicot [119]. Let ρ( ) denote the spectral radius of a square matrix. By direct manipulations, we have the following lemma. Lemma 3.5. For a square, constant matrix M, µ(m) = max B ρ(m ) The following properties of µ can also be easily derived. µ(αm) = α µ(m), α C det(i M ) = 0, B µ(m) < 1

40 32 3 Robust Design Specifications if = {δi n : δ C}(s =1,f =0;r 1 = n) µ(m) =ρ(m) if = C n n (s =0,f =1;m 1 = n) = µ(m) =σ(m) In the above, s, f and n are dimensions of the uncertainty set as defined in (3.10). Further, we have the following lemma. Lemma 3.6. ρ(m) µ(m) σ(m) Lemma 3.6 gives upper and lower bounds for µ(m). They are, however, not particularly useful for the computation of µ(m), because the gap between ρ(m) and σ(m) could be arbitrarily large. More accurate bounds are needed and these can be obtained by using some transformations on M that may change the values of ρ(m) and σ(m) but not change µ(m). The following two constant matrix sets are introduced for this purpose. Define U = {U : UU = I n } and D = {D = diag [ D 1,,D s,d 1 I m1,,d f I mf ] : D i C ri ri,d i = D i > 0,d j > 0} The matrix sets U and D match the structure of. U is of a (block-) diagonal structure of unitary matrices and for any D D and, D (D 1 ) commutes with. Furthermore, for any, U U, and D D, we have U U, U, U, and σ(u )=σ( U) =σ( ) D D 1 =, D D 1, and σ(d D 1 )=σ( ) More importantly, we have ρ(mu) µ(mu)=µ(m) =µ(dmd 1 ) σ(dmd 1 ) (3.15) In the above, µ(mu)=µ(m) is derived from det(i M ) = det(i MUU ) and U, σ(u )=σ( ). Also, µ(m) =µ(dmd 1 ) can be seen from det(i DMD 1 ) = det(i DM D 1 ) = det(i M ). The relations in (3.15) directly lead to the following theorem. Theorem 3.7. max ρ(mu) µ(m) inf U U D D σ(dmd 1 )

41 3.3 Structured Singular Values 33 Theorem 3.7 provides tighter upper and lower bounds on µ(m). In [23], it was shown that the above lower bound is actually an equality, max ρ(mu)=µ(m) U U Unfortunately, this optimisation problem is not convex. ρ(mu) mayhave multiple local maxima. Direct computation of max U U ρ(mu) may not find a global maximum. On the other hand, the upper bound of µ(m) in Theorem 3.7 is easier to find, since σ(dmd 1 )isconvexinlnd ([25, 139]). However, this upper bound is not always equal to µ(m). For the cases of 2s + f 3, it can be shown that µ(m) = inf D D σ(dmd 1 ) The problem of calculating µ(m) is therefore reduced to an optimal diagonal scaling problem. Most algorithms proposed so far for the structured singular values compute this upper bound.

42 4 H Design A control system is robust if it remains stable and achieves certain performance criteria in the presence of possible uncertainties as discussed in Chapter 2. The robust design is to find a controller, for a given system, such that the closed-loop system is robust. The H optimisation approach, being developed in the last two decades and still an active research area, has been shown to be an effective and efficient robust design method for linear, timeinvariant control systems. In the previous chapter, various robust stability considerations and nominal performance requirements were formulated as a minimisation problem of the infinitive norm of a closed-loop transfer function matrix. Hence, in this chapter, we shall discuss how to formulate a robust design problem into such a minimisation problem and how to find the solutions. The H optimisation approach solves, in general, the robust stabilisation problems and nominal performance designs. 4.1 Mixed Sensitivity H Optimisation Every practising control engineer knows very well that it will never be appropriate in any industrial design to use just a single cost function, such as those formulated in Chapter 3. A reasonable design would use a combination of these functions. For instance, it makes sense to require a good tracking as well as to limit the control signal energy, as depicted in Figure 4.1. We may then want to solve the following mixed sensitivity (or, so-called S over KS) problem, min (I + GK) 1 K(I + GK) 1 (4.1) Kstabilising This cost function can also be interpreted as the design objectives of nominal performance, good tracking or disturbance attenuation, and robust stabilisation, with regard to additive perturbation.

43 36 4 H Design Fig A mixed sensitivity consideration In order to adopt a unified solution procedure, the above cost function (4.1) can be recast into a standard configuration as in Figure 4.2. This can be obtained by using the LFT technique introduced in Chapter 2 and by specifying/grouping signals into sets of external inputs, outputs, input to the controller and output from the controller, which of course is the control signal. Note that in Figure 4.2 all the external inputs are denoted by w, z denotes the output signals to be minimised/penalised that includes both performance and robustness measures, y is the vector of measurements available to the controller K and u the vector of control signals. P (s) is called the generalised plant or interconnected system. The objective is to find a stabilising controller K to minimise the output z, in the sense of energy, over all w with energy less than or equal to 1. Thus, it is equivalent to minimising the H -norm of the transfer function from w to z. Fig The standard H configuration Partitioning the interconnected system P as:

44 it can be obtained directly 4.1 Mixed Sensitivity H Optimisation 37 [ ] P11 (s) P P (s) = 12 (s) P 21 (s) P 22 (s) z =[P 11 + P 12 K(I P 22 K) 1 P 21 ]w =: F l (P, K)w where F l (P, K) isthelower linear fractional transformation of P and K. The design objective now becomes min F l(p, K) (4.2) Kstabilising and is referred to as the H optimisation problem. Referring to the problem [ ] in (4.1), [ ] it is easy to derive its standard form z1 e by defining w = r, z = =, y = e and u = u. Consequently, the z 2 u interconnected system P = I G 0 I (4.3) I G where we may set P 11 = P 21 = I [ ] I 0 [ ] G P 12 = I P 22 = G Other mixed cases of cost transfer function matrices such as S over T, SoverToverKS, etc., can be dealt with similarly to formulate into the standard configuration. In practical designs, it is often necessary to include (closed-loop) weights with these cost functions. For instance, instead of (4.1), we may have to consider with z 1 = W 1 e and z 2 = W 2 u, min W 1(I + GK) 1 W 2 K(I + GK) 1 (4.4) Kstabilising These weighting functions can be easily absorbed into the interconnected system P (s), as in this case, W 1 W 1 G P = 0 W 2 (4.5) I G

45 38 4 H Design Degree-Of-Freedom H Design Among control-system design specifications, reference-signal tracking is often a requirement. The output of a designed control system is required to follow a preselected signal, or in a more general sense, the system is forced to track, for instance, the step response of a specified model (infinite-time model following task). A 2-degree-of-freedom(2DOF) control scheme suits naturally this situation. The idea of a 2DOF scheme is to use a feedback controller (K 2 ) to achieve the internal and robust stability, disturbance rejection, etc., and to design another controller (K 1 ) on the feedforward path to meet the tracking requirement, which minimises the difference between the output of the overall system and that of the reference model. 2DOF control schemes were successfully applied in some practical designs ([67, 87, 114]). Figure 4.3 shows one structure of these 2DOF control schemes. In this configuration, in addition to the internal stability requirement, two signals e and u are to be minimised. The signal e shows the difference between the system output and the reference model output. u is the control signal and also is related to robust stability in the additive perturbation case. In Figure 4.3, two weighting functions are included to reflect the trade-off between and/or characteristics of these two penalised signals. Fig A 2DOF design configuration The configuration of Figure 4.3 can be rearranged [ ] as [ the standard ] [ configuration of Figure 4.2 by defining w = r, z = =, y = and ] z1 W1 e r z 2 W 2 u y u = u. Note that in this configuration, K =[K 1 K 2 ]. Consequently, the interconnected system

46 4.3 H Suboptimal Solutions 39 W 1 M o W 1 G P = 0 W 2 I 0 0 G where we may set [ ] W1 M P 11 = o 0 [ ] I P 21 = 0 [ ] W1 G P 12 = W 2 [ ] 0 P 22 = G 4.3 H Suboptimal Solutions The solution to the optimisation problem (4.2) is not unique except in the scalar case ([175, 59]). Generally speaking, there are no analytic formulae for the solutions. In practical design, it is usually sufficient to find a stabilising controller K such that the H -norm of the closed-loop transfer function is less than a given positive number, i.e., F l (P, K) <γ (4.6) where γ>γ o := min Kstabilising F l (P, K). This is called the H suboptimal problem. When certain conditions are satisfied, there are formulae to construct a set of controllers that solve the problem (4.6). The solution set is characterised by a free parameter Q(s), which is stable and of -norm less than γ. It is imaginable that if we successively reduce the value of γ, starting from a relatively large number to ensure the existence of a suboptimal solution, we may obtain an optimal solution. It should, however, be pointed out here that when γ is approaching its minimum value γ o the problem would become more and more ill-conditioned numerically. Hence, the solution thus obtained might be very unreliable Solution Formulae for Normalised Systems Let the state-space description of the generalised (interconnected) system P in Figure 4.2 be given by ẋ(t) =Ax(t)+B 1 w(t)+b 2 u(t) z(t) =C 1 x(t)+d 11 w(t)+d 12 u(t) y(t) =C 2 x(t)+d 21 w(t) where x(t) R n is the state vector, w(t) R m 1 the exogenous input vector, u(t) R m 2 the control input vector, z(t) R p 1 the error (output) vector, and

47 40 4 H Design y(t) R p 2 the measurement vector, with p 1 m 2 and p 2 m 1. P (s) maybe further denoted as [ ] P11 (s) P P (s) = 12 (s) P 21 (s) P 22 (s) A B 1 B 2 = C 1 D 11 D 12 (4.7) C 2 D 21 0 [ ] A B =: C D Note that in the above definition it is assumed that there is no direct link between the control input and the measurement output, i.e. D 22 = 0. This assumption is reasonable because most industrial control systems are strictly proper and the corresponding P (s) would have a zero D 22 in a sensible design configuration. The case of a nonzero direct term between u(t) and y(t) will be, however, considered in the next subsection for the sake of completeness. The H solution formulae use solutions of two algebraic Riccati equations(are). An algebraic Riccati equation E T X + XE XWX + Q =0 [ where W = ] W T and Q = Q T, uniquely corresponds to a Hamiltonian matrix E W Q E T. The stabilising solution X, if it exists, is a symmetric matrix that solves the ARE and is such that E WX is a stable matrix. The stabilising solution is denoted as [ ] E W X := Ric Q E T and Define R n := D 1 T D 1 R n := D 1 D T 1 [ ] γ 2 I m [ ] γ 2 I p where D 1 = [ D 11 D 12 ] and D 1 = [ D11 D 21 ] Assume that R n and R n are nonsingular. We define two Hamiltonian matrices H and J as

48 [ ] [ A 0 H := C1 T C 1 A T [ J := A T 0 B 1 B1 T A ] [ 4.3 H Suboptimal Solutions 41 ] B C1 T D 1 C T B 1 D T 1 ] Rn 1 [ D T 1 C 1 B ] T R n 1 [ D 1 B1 T C ] Let X := Ric (H) Y := Ric (J) Based on X and Y, a state feedback matrix F and an observer gain matrix L can be constructed, which will be used in the solution formulae, [ ] F := Rn 1 (D T 1 C 1 + B T F1 X)=: =: F 11 F F 12 2 F 2 L := (B 1 D T 1 + YC T 1 ) R n =: [ ] [ ] L 1 L 2 =: L11 L 12 L 2 where F 1, F 2, F 11 and F 12 are of m 1,m 2,m 1 p 2 and p 2 rows, respectively, and L 1,L 2,L 11 and L 12 of p 1,p 2,p 1 m 2 and m 2 columns, respectively. Glover and Doyle [48] derived necessary and sufficient conditions for the existence of an H suboptimal solution and further parameterised all such controllers. The results are obtained under the following assumptions. A1 (A, B 2 [) is stabilisable ] and (C 2,A) detectable; 0 A2 D 12 = and D I 21 = [ ] 0 I p2 ; [ m2 ] A jωi B2 A3 has full column rank for all ω; [ C 1 D 12 ] A jωi B1 A4 has full row rank for all ω. C 2 D 21 [ ] D1111 D Together with appropriate partition of D 11 = 1112, where D D 1121 D has m 2 rows and p 2 columns, the solution formulae are given in the following theorem. Theorem 4.1. [175] Suppose P (s) satisfies the assumptions A1 A4. (a) There exists an internally stabilising controller K(s) such that F l (P, K) <γ if and only if (i) γ>max(σ[d 1111,D 1112 ], σ[d 1111 T,D 1121 T ]) and (ii) there exist stabilising solutions X 0 and Y 0 satisfying the two AREs

49 42 4 H Design corresponding to the Hamiltonian matrices H and J, respectively, and such that ρ(xy ) <γ 2 where ρ( ) denotes the spectral radius. (b) Given that the conditions of part (a) are satisfied, then all rational, internally stabilising controllers, K(s), satisfying F l (P, K) <γare given by K(s) =F l (M,Φ) for any rational Φ(s) H such that Φ(s) <γ, where M(s) has the realisation  ˆB 1 ˆB2 M(s) = Ĉ 1 ˆD11 ˆD12 Ĉ 2 ˆD21 0 and ˆD 11 = D 1121 D 1111 T (γ 2 I D 1111 D 1111 T ) 1 D 1112 D 1122 ˆD 12 R m 2 m 2 and ˆD 21 R p 2 p 2 are any matrices (e.g. Cholesky factors) satisfying ˆD 12 ˆDT 12 = I D 1121 (γ 2 I D T 1111 D 1111 ) 1 T D 1121 and ˆD T 21 ˆD 21 = I D 1112 T (γ 2 I D 1111 D 1111 T ) 1 D 1112 ˆB 2 = Z(B 2 + L 12 ) ˆD 12 Ĉ 2 = ˆD 21 (C 2 + F 12 ) ˆB 1 = ZL 2 + ˆB 2 ˆD 1 12 ˆD 11 = ZL 2 + Z(B 2 + L 12 ) ˆD 11 Ĉ 1 = F 2 + ˆD 11 ˆD 1 21 Ĉ2 = F 2 ˆD 11 (C 2 + F 12 )  = A + BF + ˆB 1 ˆD 1 21 Ĉ2 = A + BF ˆB 1 (C 2 + F 12 )

50 4.3 H Suboptimal Solutions 43 where Z =(I γ 2 YX) 1 When Φ(s) = 0 is chosen, the corresponding suboptimal controller is called the central controller that is widely used in the H optimal design and has the state-space form [ ] Â ˆB1 K o (s) = In the assumptions made earlier, A2 assumes that the matrices D 12 and D 21 are in normalised forms and the system P (s) is thus a so-called normalised system. When these two matrices are of full rank but not necessarily in the normalised forms will be discussed later. Ĉ 1 ˆD Solution to S-over-KS Design The mixed sensitivity optimisation S-over-KS is a common design problem in practice. The problem is formulated as in (4.1) or (4.4), and the interconnected system is in (4.3) or (4.5). In this case, the second algebraic Riccati equation is of a special form, i.e. the constant term is zero. We list the solution formulae for this special design problem here. For simplicity, we consider the suboptimal design of (4.1). That is, for a given γ, we want to find a stabilising controller K(s) such that, (I + GK) 1 K(I + GK) 1 <γ The interconnected system in the standard configuration is I p G [ A ] [ 0 ][ B ] P = 0 I m = C Ip I I p G m C I p 0 where we assume that G(s) has m inputs and p outputs, and [ ] A B G(s) = C 0 It is clear that γ must be larger than 1 from the assumption (a)/(i) of Theorem 4.1, because the 2-norm of the constant matrix D 11 of the above P (s) is 1. In this case, the two algebraic Riccati equations are

51 44 4 H Design A T X + XA XBB T X +(1 γ 2 ) 1 C T C =0 AY + YA T YC T CY =0 And, the formula of the central controller is [ ] A BB K o = T X (1 γ 2 ) 1 ZY C T C ZY C T B T X 0 where Z =(I γ 2 YX) 1. The formulae for all suboptimal controllers are K(s) =F l (M,Φ) with M(s) having the state-space realisation A BB T X (1 γ 2 ) 1 ZY C T C ZY C T ZB M(s) = B T X 0 I m (1 γ 2 ) 1 C I p 0 and Φ(s) H, such that Φ <γ The Case of D 22 0 When there is a direct link between the control input and the measurement output, the matrix D 22 will not disappear in (4.7). The controller formulae for the case D 22 0 are discussed here. As a matter of fact, the D 22 term can be easily separated from the rest of the system as depicted in Figure 4.4. A controller K(s) for the system with zero D 22 will be synthesised first, and then the controller K(s) for the original system can be recovered from K(s) and D 22 by K(s) =K(s)(I + D 22 K(s)) 1 The state-space model of K(s) can be derived as [ ] AK B K(s) = K D 22 (I + D K D 22 ) 1 C K B K (I + D 22 D K ) 1 (I + D K D 22 ) 1 C K D K (I + D 22 D K ) 1 where we assume that [ ] AK B K(s) = K C K D K

52

53

54 12 K(s)Σ 1 21 U 21, where K(s) is a suboptimal so- with obviously K(s) =V T lution with regard to P (s). 12Σ H Suboptimal Solutions Direct Formulae for H Suboptimal Central Controller Based on the transformations discussed in the last subsection and by further manipulations, direct solution formulae can be derived for the general, nonnormalised system data (4.7) [57]. We first discuss the two algebraic Riccati equations that are essential in the computations of H suboptimal controllers. The conclusion is a little surprising: the two AREs remain the same with matrices in the normalised system data (matrices with bars) replaced by corresponding matrices in the general form (matrices without bars) of P (s). This is obtained by the following routine matrix manipulations, where C T 1 C 1 = C1 T U12U T 12 C 1 = C1 T C 1 [ ] [ B B C T = 1 V21 T B 2 V12Σ T D 1 C1 T U12U T 12 D 11 V21 T C1 T U12U T 12 D 12 V T [ ][ ] B V T = 21 0 C1 T D 1 0 V12Σ T 12 1 [ ] T V D 1 D1 = 21 D11U T 12 T [ Σ12 T U12D V 12D12U T 12 T 11V21 T U 12 D 12 V T [ ] [ ] V21 0 = 0 Σ12 T V D T V T 1 D V12Σ T 12 1 D 1 := [ D 11 D 12 ] 12Σ12 1 ] 12Σ12 1 ] (4.14) Thus, with R n = [ ] [ ] V21 0 V T 0 Σ12 T V R V12Σ T 12 1 R := D 1 T D 1 [ ] γ 2 I m (4.15) Consequently, the Hamiltonian H defined for normalised system data is given by [ ] [ ] A 0 B H = C1 T C 1 A T C1 T R 1 [ D D 1 C T 1 B ] T (4.16) 1 Similarly, the Hamiltonian J is given by

55 48 4 H Design [ J = A T 0 B 1 B1 T A ] [ C T B 1 D T 1 ] R 1 [ D 1 B1 T C ] (4.17) where and with R n = D 1 := [ D11 D 21 [ ] R := D 1 D T γ 1 2 I p [ U12 0 ] 0 Σ ] [ ] U T R U21Σ T 21 T (4.18) (4.19) Hence, we have shown that the two AREs are exactly the same and so we may, in the following, let X and Y be the stabilising solutions of the two AREs corresponding to the general system data. Another pair of matrices used in Theorem 4.1 may also be defined from the solutions X and Y, [ ] F := R 1 (D T 1 C 1 + B T F1 X)=: (4.20) F 2 L := (B 1 D 1 T + YC T ) R 1 =: [ L 1 L 2 ] (4.21) with F 1 : m 1 n, F 2 : m 2 n, L 1 : n p 1 and L 2 : n p 2. It is easy to check that and [ ] V21 0 F = F 0 Σ 12 V 12 F 11 = V 211 F 1 F 12 = V 212 F 1 F 2 = Σ 12 V 12 F 2 Similarly, we have [ ] U T L = L U21Σ T 21 and

56 4.3 H Suboptimal Solutions 49 L 11 = L 1 U T 121 L 12 = L 1 U T 122 L 2 = L 2 U T 21Σ 21 Using the above results and Theorem 4.1, with further manipulations, we can get the following corollary. Note that the assumption A2 is relaxed to the general case A2 D 12 is of full column rank and D 21 of full row rank Also, note that for the sake of simplicity, only the formulae for the central suboptimal controller is given. Formulae for all suboptimal controllers can be derived accordingly. Corollary 4.2. Suppose P (s) satisfies the assumptions A1 A4. (a) There exists an internally stabilising controller K(s) such that F l (P, K) <γ if and only if (i) γ>max{σ(u 121 D 11 ), σ(d 11 V211)} T (4.22) where U 121 and V 211 are as defined in (4.12) and (4.13), and (ii) there exist solutions X 0 and Y 0 satisfying the two AREs corresponding to (4.16) and (4.17), respectively, and such that where ρ( ) denotes the spectral radius. ρ(xy ) <γ 2 (4.23) (b) Given that the conditions of part (a) are satisfied, then the central H suboptimal controller for P (s) is given by [ ] AK B K(s) = K C K D K where D K = γ 2 (U 122 D 12 ) 1 U 122 (γ 2 I D 11 V211V T 211 D11U T 121U T 121 ) 1 D 11 V212(D T 21 V212) T (4.24) B K = Z [L 2 (B 2 + L 1 D 12 )D K ] (4.25) C K = F 2 D K (C 2 + D 21 F 1 ) (4.26) A K = A + BF B K (C 2 + D 21 F 1 ) (4.27) where Z =(I γ 2 YX) 1 (4.28) and U 12,V 21,F and L are as defined in (4.8) and (4.12), (4.9) and (4.13), (4.20), and (4.21), respectively.

57 50 4 H Design Remark: The above corollary addresses the general case of p 1 >m 2 and p 2 <m 1. There are three special cases of the dimensions in which the solution formulae would be simpler. Case 1: p 1 = m 2 and p 2 <m 1. In this case, the orthogonal transformation on D 12 is not needed. The condition (a)/(i) in Corollary 4.2 is reduced to γ>σ(d 11 V211), T and D K = D 1 12 D 11V T 212(D 21 V T 212) 1 Case 2: p 1 >m 2 and p 2 = m 1. In this case, the orthogonal transformation on D 21 is not needed. The condition (a)/(i) in Corollary 4.2 is reduced to γ>σ(u 121 D 11 ), and D K = (U 122 D 12 ) 1 U 122 D 11 D 1 21 Case 3: p 1 = m 2 and p 2 = m 1. In this case, both orthogonal transformations are not needed. The condition (a)/(i) in Corollary 4.2 is reduced to any positive γ, and D K = D12 1 D 11D21 1 Another special case is when D 11 = 0, in which the central controller is simply given by [ ] A + BF + ZL2 (C K(s) = 2 + D 21 F 1 ) ZL 2 F Formulae for Discrete-time Cases In this section, formulae for H solutions in discrete-time cases ([53, 60]) will be given. Consider a generalised, linear, discrete-time system, described by the equations x k+1 = Ax k + B 1 w k + B 2 u k z k = C 1 x k + D 11 w k + D 12 u k (4.29) y k = C 2 x k + D 21 w k + D 22 u k where x k R n is the state vector, w k R m 1 is the exogenous input vector (the disturbance), u k R m 2 is the control input vector, z k R p 1 is the error vector, and y k R p 2 is the measurement vector, with p 1 m 2 and p 2 m 1. The transfer function matrix of the system will be denoted by

58 4.4 Formulae for Discrete-time Cases 51 [ ] P11 (z) P P (z) = 12 (z) P 21 (z) P 22 (z) A B 1 B 2 = C 1 D 11 D 12 (4.30) C 2 D 21 D 22 [ ] A B =: C D Similar to the continuous-time case, the H suboptimal discrete-time control problem is to find an internally stabilising controller K(z) such that, for a prespecified positive value γ, We need the following assumptions. F l (P, K) <γ (4.31) A1 (A, B 2 ) is stabilisable and (C 2,A) is detectable; [ ] A e A2 jθ I n B 2 has full column rank for all Θ [0, 2π); C 1 D 12 [ ] A e A3 jθ I n B 1 has full row rank for all Θ [0, 2π). C 2 D 21 We shall also assume that a loop-shifting transformation that enables us to set D 22 = 0 has been carried out. The general case (D 22 0) will be dealt with at the end of this section. Note that the method under consideration does not involve reduction of the matrices D 12 and D 21 to some special form, as is usually required in the design of continuous-time H controllers. Let and define [ Ip1 0 J = 0 γ 2 I m1 C = [ C1 0 ], D = [ D11 D 12 I m1 0 ] [ ] [ ] Im1 0 Im1 0, Ĵ = 0 γ 2, J = I m2 0 γ 2 I p1 Let X be the solution to the discrete-time Riccati equation X = C T JC + A T X A L T R 1 L (4.32) ] where R = D T JD + B T X B =: [ ] R1 R2 T R 2 R 3

59 52 4 H Design L = D T JC + B T X A =: [ L1 L 2 ] Assume that there exists an m 2 m 2 matrix V 12 such that and an m 1 m 1 matrix V 21 such that Define the matrices where V T 12V 12 = R 3 V T 21V 21 = γ 2, = R 1 R T 2 R 1 3 R 2 < 0 [ ] A t Bt1 Bt2 At Bt =: C t Dt C t1 D t11 Dt12 = D t21 Dt22 C t2 A B 1 1 L B 1 V V 12 R3 1 (L 2 R 2 1 L ) V 12 R3 1 R 2V21 1 I C 2 D 21 1 L D 21 V 1 L = L 1 R T 2 R 1 3 L Let Z be the solution to the discrete-time Riccati equation Z = B t Ĵ B T t + A t Z A T t M t S 1 t M T t (4.33) in which [ ] S t = D t Ĵ D t T + C t Z Ct T St1 S =: t2 St T 2 S t3 M t = B t Ĵ D T t + A t Z C T t =: [M t1 M t2 ] Equations (4.32) and (4.33) are referred as the X-Riccati equation and Z- Riccati equation, respectively. A stabilising controller that satisfies F l (P, K) <γ exists, if and only if ([53]) 1. there exists a solution to the Riccati equation (4.32) satisfying X 0 < 0 such that A BR 1 L is asymptotically stable; 2. there exists a solution to the Riccati equation (4.33) such that

60 4.4 Formulae for Discrete-time Cases 53 Z 0 S t1 S t2 S 1 t 3 S T t 2 < 0 with A t M t St 1 C t asymptotically stable. In this case, a controller that achieves the objective may be given by ([53]) ˆx k+1 = A tˆx k + B 2 u k + M t2 S 1 t 3 (y k C t2 ˆx k ) that yields V 12 u k = C t1 ˆx k S t2 S 1 t 3 (y k C t2 ˆx k ) K 0 = (4.34) [ At B 2 V12 1 (C t 1 S t2 St 1 3 C t2 ) M t2 St 1 3 C t2 B 2 V12 1 S t 2 St M t2 St 1 ] 3 V12 1 (C t 1 S t2 St 1 3 C t2 ) V12 1 S t 2 St 1 3 This is the so-called central controller that is widely used in practice. Consider now the general case of D Suppose [ ] Âk ˆBk ˆK = ˆDk is a stabilising controller for D 22 set to zero, and satisfies [ ] ) 0 0 F l (P, 0 D ˆK <γ 22 Then Ĉ k F l (P, ˆK(I + D 22 ˆK) 1 )=P 11 + P 12 ˆK(I + D22 ˆK P22 ˆK) 1 P 21 [ ] ) 0 0 = F l (P, 0 D ˆK 22 In this way, a controller ˆK for [ ] 0 0 P 0 D 22 yields a controller K = ˆK(I + D 22 ˆK) 1 for P. It may be shown that [ Âk K = ˆB k D 22 (I m2 + ˆD k D 22 ) 1 Ĉ k ˆBk ˆB k D 22 (I m2 + ˆD ] k D 22 ) 1 ˆDk (I m2 + ˆD k D 22 ) 1 Ĉ k (I m2 + ˆD k D 22 ) 1 ˆDk In order to find K from ˆK we must exclude the possibility of the feedback system becoming ill-posed, i.e. det(i + ˆK( )D 22 )=0.

61 5 H Loop-shaping Design Procedures In the previous chapter the H optimisation approach was introduced that formulated robust stabilisation and nominal performance requirements as (sub)optimisation problems of the H norm of certain cost functions. Several formulations of cost function are applicable in the robust controller design, for instance, the weighted S/KS and S/T design methods. The optimisation of S/KS, where S is the sensitivity function and K the controller to be designed, could achieve the nominal performance in terms of tracking or output disturbance rejection and robustly stabilise the system against additive model perturbations. On the other hand, the mixed sensitivity optimisation of S/T, where T is the complementary sensitivity function, could achieve robust stability against multiplicative model perturbations in addition to the nominal performance. Both of them are useful robust controller design methods, but the model perturbation representations are limited by the condition on the number of right-half complex plane poles. Also, there may exist undesirable pole-zero cancellations between the nominal model and the H controllers ([138]). In this chapter, an alternative way to represent the model uncertainty is introduced. The uncertainty is described by the perturbations directly on the coprime factors of the nominal model ([153, 154]). The H robust stabilisation against such perturbations and the consequently developed design method, the H loop-shaping design procedure (LSDP) ([100, 101]), could relax the restrictions on the number of right-half plane poles and produce no pole-zero cancellations between the nominal model and controller designed. This method does not require an iterative procedure to obtain an optimal solution and thus raises the computational efficiency. Furthermore, the H LSDP inherits classical loop-shaping design ideas so that practising control engineers would feel more comfortable to use it.

62 56 5 H Loop-shaping Design Procedures 5.1 Robust Stabilisation Against Normalised Coprime Factor Perturbations Matrices ( M, Ñ) H, + where H + denotes the space of functions with no poles in the closed right-half complex plane, constitute a left coprime factorisation of a given plant model G if and only if (i) M is square, and det( M) = 0. (ii) the plant model is given by (iii) There exists (Ṽ, Ũ) H+ such that G = M 1 Ñ (5.1) MṼ + ÑŨ = I (5.2) A left coprime factorisation of a plant model G as defined in (5.1) is normalised if and only if where Ñ (s) =Ñ T ( s), etc. For a minimal realisation of G(s), ÑÑ + M M = I, s (5.3) G(s) =D + C(sI A) 1 B [ ] A B =: C D (5.4) A state-space construction for the normalised left coprime factorisation can be obtained in terms of the solution to the generalised filter algebraic Riccati equation (A BD T R 1 C)Z + Z(A BD T R 1 C) T ZC T R 1 CZ + B(I D T R 1 D)B T = 0 (5.5) where R := I + DD T and Z 0 is the unique stabilising solution. If H = (ZC T + BD T )R 1, then [ ] [ ] A + HC B + HD H Ñ M := R 1/2 C R 1/2 DR 1/2 (5.6) is a normalised left coprime factorisation of G such that G = M 1 Ñ. The normalised right coprime factorisation can be defined similarly and a state-space representation can be similarly obtained in terms of the solution to the generalised control algebraic Riccati equation [101], (A BS 1 D T C) T X + X(A BS 1 D T C) XBS 1 B T X + C T (I DS 1 D T )C = 0 (5.7)

63

64 58 5 H Loop-shaping Design Procedures and is given in [101] by γ o =(1 [Ñ M] 2 H) 1/2 (5.9) where H denotes the Hankel norm. From [101] [Ñ M] 2 H = λ max (ZX(I + ZX) 1 ) (5.10) where λ max ( ) represents the maximum eigenvalue, hence from (5.9), γ o =(1+λ max (ZX)) 1/2 (5.11) From [101], all controllers optimising γ are given by K = UV 1, where U and V are stable and are right coprime factorisations of K, and where [ ] [ ] Ñ U M + = [Ñ V M] H This is a Hankel approximation problem and can be solved using an algorithm developed by Glover [46]. A controller that achieves a γ>γ 0 is given in [101] by [ ] A + BF + γ K := 2 (L T ) 1 ZC T (C + DF) γ 2 (L T ) 1 ZC T B T X D T (5.12) where F = S 1 (D T C + B T X) and L =(1 γ 2 )I + XZ. However, if γ = γ o, then L = XZ λ max (XZ)I, which is singular, and thus (5.12) cannot be implemented. This problem can be resolved using the descriptor system [134, 135]. A controller that achieves a γ γ o can be given in the descriptor form by [ ] L K := T s + L T (A + BF)+γ 2 ZC T (C + DF) γ 2 ZC T B T X D T (5.13) 5.2 Loop-shaping Design Procedures In the classical control systems design with single-input-single-output (SISO) systems, it is a well-known and practically effective technique to use a compensator to alter the frequency response (the Bode diagram) of the openloop transfer function so that the unity feedback system will achieve stability, good performance and certain robustness. Indeed, these performance requirements discussed in Chapter 3 can be converted into corresponding frequency requirements on the open-loop system. For instance, in order to achieve good tracking, it is required that (I + GK) 1 should be small. That is σ((i + GK) 1 (jω)) 1, for ω over a low-frequency range, since the signals to be tracked are usually of low frequency. This in turn implies that

65 5.2 Loop-shaping Design Procedures 59 σ(gk(jω)) 1, for ω over that frequency range. Similar deductions can be applied to other design-performance specifications. However, a direct extension of the above method into multivariable systems is difficult not only because multi-input and multi-output (MIMO) are involved but also due to the lack of phase information in MIMO cases that makes it impossible to predict the stability of the closed-loop system formed by the unity feedback. However, based on the robust stabilisation against perturbations on normalised coprime factorisations, a design method, known as the H loop-shaping design procedure (LSDP), has been developed [100]. The LSDP method augments the plant with appropriately chosen weights so that the frequency response of the open-loop system (the weighted plant) is reshaped in order to meet the closed-loop performance requirements. Then a robust controller is synthesised to meet the stability. Fig One-degree-of-freedom LSDP configuration This loop-shaping design procedure can be carried out in the following steps. (i) Using a precompensator, W 1, and/or a postcompensator, W 2, as depicted in Figure 5.2, the singular values of the nominal system G are modified to give a desired loop shape. Usually, the least singular value of the weighted system should be made large over the low-frequency range to achieve good performance such as the tracking, the largest singular value is small over the high-frequency range to deal with unmodelled dynamics, and the bandwidth affects the system response speed, while the slope of the singular values near the bandwidth frequency should not be too steep. The nominal system and weighting functions W 1 and W 2 are combined to form the shaped system, G s, where G s = W 2 GW 1. It is assumed that W 1 and W 2 are such that G s contains no hidden unstable modes. (ii) A feedback controller, K s, is synthesised that robustly stabilises the normalized left coprime factorisation of G s, with a stability margin ɛ. It can be shown [100] that if ɛ is not less than 0.2, the frequency response of K s W 2 GW 1 will be similar to that of W 2 GW 1. On the other hand, if the achievable ɛ is too large, this would probably indicate an overdesigned case in respect of the robustness, which means that the performance of

66 60 5 H Loop-shaping Design Procedures the system may possibly be improved by using a larger γ in computing K s. (iii) The final feedback controller, K final, is then constructed by combining the H controller K s, with the weighting functions W 1 and W 2 such that K final = W 1 K s W 2 For a tracking problem, the reference signal generally comes between K s and W 1. In order to reduce the steady-state tracking error, a constant gain K s (0)W 2 (0) is placed on the feedforward path, where K s (0)W 2 (0) = lim s 0 K s (s)w 2 (s) The closed-loop transfer function between the reference r and the plant output y then becomes Y (s) =[I G(s)K final (s)] 1 G(s)W 1 (s)k s (0)W 2 (0)R(s) The above design procedure can be developed further into a two-degreeof-freedom (2DOF) scheme as shown in Figure 5.3. Fig Two-degree-of-freedom LSDP The philosophy of the 2DOF scheme is to use the feedback controller K 2 (s) to meet the requirements of internal and robust stability, disturbance rejection, measurement noise attenuation, and sensitivity minimisation. The precompensator K 1 is applied to the reference signal, which optimises the response of the overall system to the command input such that the output of the system would be near to that of a chosen ideal system M o. The feedforward compensator K 1 depends on design objectives and can be synthesised together with the feedback controller in a single step via the H LSDP [67]. In the 2DOF LSDP, the postcompensator W 2 is usually chosen as an identity matrix. The constant ρ is a scaling parameter used to emphasise the model-matching part in the design.

67 5.3 Formulae for the Discrete-time Case 5.3 Formulae for the Discrete-time Case 61 In this section, the formulae for the (1-block) H LSDP controller in the discrete-time case will be introduced ([58]) Normalised Coprime Factorisation of Discrete-time Plant Let G(z) be a minimal realisation, discrete-time model of a plant, G(z) =D + C(zI A) 1 B [ ] A B := C D with A : n n, B : n m, C : p n, and D : p m. Matrices ( M(z), Ñ(z)) H, + where H + denotes the space of functions with all poles in the open unit disc of the complex plane, constitute a left coprime factorisation of G(z) if and only if (i) M is square, and det( M) = 0. (ii) the plant model is given by (iii) There exists (Ṽ, Ũ) H+ such that G = M 1 Ñ (5.14) MṼ + ÑŨ = I p (5.15) A left coprime factorisation of G as defined in (5.14) is normalised if and only if Ñ(z)Ñ T ( 1 z ) + M(z) M T ( 1 z ) = I p (5.16) The concept of right coprime factorisation and normalised right coprime factorisation can be introduced similarly. However, the work presented here will follow the (normalised) left coprime factorisation, although all results concerning the (normalised) right coprime factorisation can be derived similarly. State-space constructions for the normalised coprime factorisations can be obtained in terms of the solutions to the following two discrete algebraic Riccati equations(dare), and Φ T PΦ P Φ T PBZ 1 Z 1 T B T PΦ+ C T R 1 1 C = 0 (5.17) ΦQΦ T Q ΦQC T Z T 2 Z 2 CQΦ T + BR 2 1 B T = 0 (5.18)

68 62 5 H Loop-shaping Design Procedures where R 1 = I p + DD T, R 2 = I m + D T D, Φ = A BR 1 2 D T C, Z 1 Z T 1 =(R 2 +B T PB) 1, Z T 2 Z 2 =(R 1 +CQC T ) 1. And, P 0 and Q 0 are the unique stabilising solutions, respectively. Without loss of generality, we may assume that both Z 1 and Z 2 are square matrices, and Z 1 = Z T 1, Z 2 = Z T 2. Further, by defining H = (AQC T +BD T )Z T 2 Z 2 and F = Z 1 Z T 1 (B T PA+ D T C), then [ ] [ ] A + HC B + HD H Ñ M := (5.19) Z 2 C Z 2 D Z 2 and [ ] A + BF BZ N 1 := C + DF DZ M 1 (5.20) F Z 1 are the normalised left, and right, coprime factorisations of G, correspondingly Robust Controller Formulae As in the continuous-time case, the discrete-time H loop-shaping design procedure is based on the construction of a robust stabilising controller against the perturbations on the coprime factors. The same form of cost function for robust stabilisation will be derived, and the optimal achievable γ is given by γ o =(1+λ max (QP )) 1/2 (5.21) where Q and P are the solutions to (5.17) and (5.18), respectively. For a given γ>γ o, a suboptimal H LSDP controller K in the discretetime case can be recast as a standard H suboptimal control problem as was discussed in Section 4.4. The generalised (interconnected) system in this case is [ ] P11 (z) P P (z) = 12 (z) P 21 (z) P 22 (z) 0 I m = M 1 G M 1 G A HZ 1 2 B = 0 0 I m 1 C Z 2 D (5.22) 1 C Z 2 D Following the solution procedure given in Section 4.4, one more DARE needs to be solved in order to compute the required controller. In general H

69 5.3 Formulae for the Discrete-time Case 63 suboptimal problems, two more algebraic Riccati equations are to be solved. Here, however, due to the structure of P (z) in (5.22), it can be shown that the solution to one of the DARE is always zero. The third DARE is the following [ A T X A X F T 1 ] Z2 H T (R + R 1/2 2 B T X [ 1 HZ2 BR ] 1/2 2 ) F + C T C = 0 (5.23) where and [ F 1 Z2 H T = (R + R 1/2 2 B T R = [ ( Z 2 1 C D T R 1 1/2 C ] X [ HZ2 1 BR 2 1/2 ] ) 1 ] [ 1 Z2 H T ] + R 1/2 2 B T X A) [ 2 Z2 γ 2 I p Z 1 2 R 1/2 ] 1 D D T R 1/2 1 1 Z 2 [ F1 ] Further, by defining F =, where, F F 1 : p n and F 2 : m n, a 2 suboptimal H discrete-time LSDP(DLSDP) controller K can be constructed as [ ] AK B K(z) = K C K D K where with I m A K = ÂK ˆB K D(I + ˆD K D) 1 Ĉ K B K = ˆB K (I + D ˆD K ) 1 C K =(I + ˆD K D) 1 Ĉ K D K = ˆD K (I + D ˆD K ) 1 (5.24) ˆD K = (R 2 + B T X B) 1 (D T B T X H) ˆB K = H + B ˆD K Ĉ K = R 1/2 2 F 2 ˆD K (C + Z 1 2 F 1 ) Â K = A + HC + BĈK (5.25) The Strictly Proper Case It may be appropriate to say that most (formulated) plants considered in the practical, discrete-time control-systems design are, in using the H optimisation approach in particular, strictly proper, i.e. D = 0. This is not only

70 64 5 H Loop-shaping Design Procedures because most physical plants in industrial studies are strictly proper, as in the continuous-time case, but also because the H controllers designed tend to be proper due to the flatness of the optimality sought in the synthesis. Hence, when the (formulated) plant is just proper, it is possible to encounter the problem of an algebraic loop in the implementation of the resultant controller. When the plant under consideration is strictly proper, all the computations and formulae described in Section will be significantly simpler. The two DAREs (5.17) and (5.18) become and A T PA P A T PBZ 1 Z 1 T B T PA+ C T C = 0 (5.26) AQA T Q AQC T Z T 2 Z 2 CQA T + BB T = 0 (5.27) where Z 1 Z T 1 =(I m + B T PB) 1, Z T 2 Z 2 =(I p + CQC T ) 1. The third DARE (5.23) is now the following [ A T X A X F T 1 ] Z2 H (R + T B T X [ 1 HZ2 B ] ) F + C T C = 0 (5.28) where and [ F 1 Z2 H = (R + T B T [ 1 ] Z2 C ( + 0 R = ] X [ HZ2 1 B ] ) 1 [ Z2 1 H T B T [ 2 Z2 γ 2 I p 0 ] 0 I m ] X A) H = AQC T Z T 2 Z 2 [ ] Further, by defining F F1 =, where, F 1 : p n and F 2 : m n, the F 2 suboptimal H DLSDP controller K in the case of a strictly proper G can be constructed as where [ ] AK B K(z) = K C K D K D K =(I m + B T X B) 1 B T X H B K = H + BD K C K = F 2 D K (C + Z 1 2 F 1 ) A K = A + HC + BC K (5.29)

71 5.3.4 On the Three DARE Solutions 5.3 Formulae for the Discrete-time Case 65 As discussed above, the discrete-time H LSDP suboptimal controller formulae require the solutions to the three discrete-time algebraic Riccati equations, (5.17), (5.18) and (5.23), or (5.26), (5.27) and (5.28) in the strictly proper case. In this subsection, we will show that there is a relation between these three solutions, namely the solution X to the third DARE can be calculated directly from the first two solutions P and Q. This fact is important and useful, especially in the numerical implementation of the DLSDP routines. We start with a general DARE, hence the notations are not related to those defined earlier in the chapter, F T XF X F T XG 1 (G 2 + G T 1 XG 1 ) 1 G T 1 XF + C T C = 0 (5.30) where F, H, X R n n, G 1 R n m, G 2 R m m, and G 2 = G T 2 > 0. We assume that (F, G 1 ) is a stabilisable pair and that (F, C) is a detectable pair. We also define G = G 1 G 1 2 GT 1. It is well known ([124]) that solutions to DARE (5.30) are closely linked with a matrix pencil pair (M, L), where [ ] F 0 M = (5.31) H I [ ] IG L = 0 F T It also can be shown that if there exist n n matrices S, U 1 and U 2, with U 1 invertible, such that [ ] [ ] U1 U1 M = L S (5.32) U 2 then, X = U 2 U1 1 is a solution to (5.30). Further, the matrix F G 1 (G 2 + G T 1 XG 1 ) 1 G T 1 XF shares the same spectrum as S. Hence, if S is stable, i.e. all the eigenvalues are within the open unit disc, F G 1 (G 2 +G T 1 XG 1 ) 1 G T 1 XF is also stable. Such an X is non-negative definite and unique, and is called the stabilising solution to (5.30). Under the above assumptions on (5.30), it was shown in [124] that none of the generalised eigenvalues of the pair (M, L) lies on the unit circle, and if λ = 0 is a generalised eigenvalue of the pair, then 1/λ is also a generalised eigenvalue of the same multiplicity. In other words, the stable spectrum, consisting of n generalised eigenvalues lying in the open unit disc, is unique. Therefore, if there exists another triple (V 1,V 2,T) satisfying (5.32), with V 1 being invertible and T stable, then there must exist an invertible R such that T = R 1 SR. Consequently, [ ] [ ] U1 V1 = R 1 (5.33) U 2 V 2 U 2

72 66 5 H Loop-shaping Design Procedures The solution, of course, remains the same, since X = V 2 V1 1 =(U 2 R)(U 1 R) 1 = U 2 U1 1. In the present case, we can accordingly define the three matrix pencils as [ ] Φ 0 M P = C T R1 1 [ CI ] IBR 1 L P = 2 BT 0 Φ T (5.34) [ ] Φ T 0 M Q = BR2 1 BT I [ IC L Q = T R1 1 C ] (5.35) 0 Φ [ [ A HZ2 1 BR ]R 1/2 1 Z2 1 C ] 2 M X = D T R 1/2 0 1 C [ [ C T C + C T Z2 1 C T R 1/2 1 D ]R 1 Z2 1 C ] D T R 1/2 I 1 C [ [ Z I HZ2 1 BR 1/2 1 ] ]R 1 2 HT 2 L X = R 1/2 2 B T [ [ Z 0 A T C T Z2 1 C T R 1/2 1 ] 1 D ]R 1 2 HT R 1/2 2 B T (5.36) With all the above properties of the DAREs and the notations, the following theorem may be proved ([58]). Theorem 5.1. Let P, Q and X be the stabilising solutions to the DAREs (5.17), (5.18) and (5.23), (or, (5.26), (5.27) and (5.28) when G is strictly proper), respectively, the following identity holds X = P [( 1 γ 2) I n γ 2 QP ] 1 = γ 2 P [ γ 2 I n (I n + QP ) ] 1 (5.37) A similar result can be found in [155] for the relationship between three discrete-time algebraic Riccati equations arising in the general H suboptimal design. The results concerning the discrete-time loop-shaping design procedure are with three different DAREs and the conclusion is of a slightly different form.

73 5.4 A Mixed Optimisation Design Method with LSDP A Mixed Optimisation Design Method with LSDP It is well known that control-system design problems can be naturally formulated as constrained optimisation problems, the solutions of which will characterise acceptable designs. The numerical optimisation approach to controller design can directly tackle design specifications in both the frequency domain and the time domain. The optimisation problems derived, however, are usually very complicated with many unknowns, many nonlinearities, many constraints, and in most cases, they are multiobjective with several conflicting design aims that need to be simultaneously achieved. It is also known that a direct parameterisation of the controller will increase the complexity of the optimisation problem. On the other hand, the H loop-shaping design procedure (LSDP) discussed in this chapter is an efficient, robust design method that just depends on appropriate choice of weighting functions to shape the open-loop system. In general, the weighting functions are of low orders. This indicates if we take the weighting functions as design parameters it may well combine the advantages of both the numerical optimisation approach and the H LSDP in terms of flexible formulation of design objectives, mature numerical algorithms, tractable optimisation problems, guaranteed stability and a certain degree of robustness. Such a design method is proposed in [161]. The numerical optimisation component of the method is based on the method of inequalities(moi). Performance specifications for control-systems design are frequently, and more naturally, given in terms of algebraic or functional inequalities, rather than in the minimisation of some objective function. For example, the system may be required to have a rise time of less than one second, a settling time of less than five seconds and an overshoot of less than 10%. In such cases, it is obviously more logical and convenient if the design problem is expressed explicitly in terms of such inequalities. The method of inequalities [169] is a computer-aided multiobjective design approach, where the desired performance is represented by such a set of algebraic inequalities and where the aim of the design is to simultaneously satisfy these inequalities. The design problem is expressed as φ i (p) ɛ i, for i =1,,n (5.38) where ɛ i are real numbers, p P is a real vector (p 1,p 2,,p q ) chosen from a given set P, and φ i are real functions of p. The functions φ i are performance indices, the components of p represent the design parameters, and ɛ i are chosen by the designer and represent the largest tolerable values of φ i. The aim is the satisfaction of the set of inequalities so that an acceptable design p is reached. For control-systems design, the functions φ i (p) may be functionals of the system step response, for example, the rise-time, overshoot or the integral absolute tracking error, or functionals of the frequency responses, such as the bandwidth. They can also represent measures of the system stability, such

74 68 5 H Loop-shaping Design Procedures as the maximum real part of the closed-loop poles. Additional inequalities that arise from the physical constraints of the system can also be included, to restrict, for example, the maximum control signal. In practice, the constraints on the design parameters p that define the set P are also included in the inequality set, e.g. to constrain the possible values of some of the design parameters or to limit the search to stable controllers only. Each inequality φ i (p) ɛ i of the set of inequalities (5.38) defines a set S i of points in the q-dimensional space R q and the coordinates of this space are p 1,p 2,,p q,so S i = {p : φ i (p) ɛ i } (5.39) The boundary of this set is defined by φ i (p) = ɛ i. A point p R q is a solution to the set of inequalities (5.38) if and only if it lies inside every set S i,i=1, 2,,n, and hence inside the set S that denotes the intersection of all the sets S i n S = S i (5.40) i=1 S is called the admissible set and any point p in S is called an admissible point denoted p s. The objective is thus to find a point p such that p S. Such a point satisfies the set of inequalities (5.38) and is said to be a solution. In general, a point p s is not unique unless the set S is a singleton in the space R q.in some cases, there is no solution to the problem, i.e. S is an empty set. It is then necessary to relax the boundaries of some of the inequalities, i.e. increase some of the numbers ɛ i, until an admissible point p s is found. The actual solution to the set of inequalities (5.38) may be obtained by means of numerical search algorithms, such as the moving-boundaries process (MBP); details of the MBP may be found in [159, 169]. The procedure for obtaining a solution is interactive, in that it requires supervision and intervention from the designer. The designer needs to choose the configuration of the design, which determines the dimension of the design parameter vector p, and initial values for the design parameters. The progress of the search algorithm should be monitored and, if a solution is not found, the designer may either change the starting point, relax some of the desired bounds ɛ i, or change the design configuration. Alternatively, if a solution is found easily, to improve the quality of the design, the bounds could be tightened or additional design objectives could be included in (5.38). The design process is thus a two-way process, with the MOI providing information to the designer about conflicting requirements, and the designer making decisions about the trade-offs between design requirements based on this information as well as on the designer s knowledge, experience, and intuition about the particular problem. The designer can be supported in this role by various graphical displays [117] or expert systems [56].

75 5.4 A Mixed Optimisation Design Method with LSDP 69 A difficult problem in control-systems design using the MOI method is how to define the design parameter vector p. A straightforward idea is to directly parametrise the controller, i.e. let p be the system matrices of the controller, or the coefficients of the numerator and denominator polynomials of the controller. In doing so, the designer has to choose the order of the controller first. In general, the lower the dimension of the design vector p, the easier it is for numerical search algorithms to find a solution, if one exists. Choosing a low-order controller, say a PI controller p 1 + p 2 s, may reduce the dimension of p. However, it may not yield a solution and, in that case, a solution may exist with higher order controllers. A further limitation of using the MOI alone in the design is that an initial point that gives the stability of the closed-loop system must be located as a prerequisite to searching the parameter space in order to improve the index set of (5.38). Two aspects of the H LSDP make it amenable to combine this approach with the MOI. First, unlike the standard H -optimisation approaches, the H -optimal controller for the weighted plant can be synthesised from the solutions of two algebraic Riccati equations (5.5) and (5.7) and does not require time-consuming γ-iteration. Second, in the LSDP described earlier in this chapter, the weighting functions are chosen by considering the open-loop response of the weighted plant, so effectively the weights W 1 and W 2 are the design parameters. This means that the design problem can be formulated as in the method of inequalities, with the parameters of the weighting functions used as the design parameters p to satisfy the set of closed-loop performance inequalities. Such an approach to the MOI overcomes the limitations of the MOI. The designer does not have to choose the order of the controller, but instead chooses the order of the weighting functions. With low-order weighting functions, high-order controllers can be synthesised that often lead to significantly better performance or robustness than if simple low-order controllers were used. Additionally, the problem of finding an initial point for system stability does not exist, because the stability of a closed-loop system is guaranteed through the solution to the robust stabilisation problem, provided that the weighting functions do not cause undesirable pole/zero cancellations. The design problem is now stated as follows. Problem: For the system of Figure 5.2, find a (W 1,W 2 ) such that and where γ o (W 1,W 2 ) ɛ γ (5.41) φ i (W 1,W 2 ) ɛ i for i =1,,n (5.42) γ o =[1+λ max (ZX)] 1/2 with Z and X the solutions of the two AREs, (5.5) and (5.7), of the weighted plant.

76 70 5 H Loop-shaping Design Procedures In the above formulation, φ i are functionals representing design objectives, ɛ γ and ɛ i are real numbers representing desired bounds on γ o and φ i, respectively, and (W 1,W 2 ) a pair of fixed order weighting functions with real parameters w =(w 1,w 2,,w q ). Consequently, a design procedure can be stated as follows. Design Procedure: A design procedure to solve the above problem is 1. Define the plant G, and define the functionals φ i. 2. Define the values of ɛ γ and ɛ i. 3. Define the form and order of the weighting functions W 1 and W 2. Bounds should be placed on the values of w j to ensure that W 1 and W 2 are stable and minimum phase to prevent undesirable pole/zero cancellations. The order of the weighting functions, and hence the value of q, should be small initially. 4. Define initial values of w j based on the open-loop frequency response of the plant. 5. Implement the MBP, or other appropriate algorithms, in conjunction with (5.12) or (5.13) to find a (W 1,W 2 ) that satisfies inequalities (5.41) and (5.42). If a solution is found, the design is satisfactory; otherwise, either increase the order of the weighting functions, or relax one or more of the desired bounds ɛ, or try again with different initial values of w. 6. With satisfactory weighting functions W 1 and W 2, a satisfactory feedback controller is obtained from (5.12) or (5.13). This mixed optimisation design approach has been applied in some design cases. Examples of application and some extensions can be found in [115, 147, 161, 160, 162, 158, 163].

77 6 µ-analysis and Synthesis As discussed earlier in the book, the H optimisation approach may achieve robust stabilisation against unstructured system perturbations and nominal performance requirements. It is though possible that by applying appropriate weighting functions some robust performance requirements can be obtained. Satisfactory designs have been reported, in particular when using the H loop-shaping design methods. In order to achieve robust stability and robust performance, design methods based on the structured singular value µ can be used. In this chapter, we first show how a robust performance design specification for a control system with unstructred/structured perturbations can be transformed into a robust stabilisation problem with regard to structured perturbation. We then discuss how these design specifications are related to some indications of this new setting, followed by introduction of two iterative µ-synthesis methods, the D-K iteration and µ-k iteration methods. We recall, as defined in Chapter 3, for M C n n and a known structure of (usually representing uncertainties), = {diag[δ 1 I r1,,δ s I rs, 1,, f ]:δ i C, j C m j m j } (6.1) where s i=1 r i + f j=1 m j = n with n is the dimension of the block, the structure singular value µ is defined by µ 1 (M) := min {σ( ) : det(i M )=0} (6.2) If there is no such that det(i M ) = 0, then µ (M) :=0. Some important properties of µ have been listed in Chapter Consideration of Robust Performance When M is an interconnected transfer function matrix M(s) formed with respect to the uncertainty set, the structured singular value of M(s)

78 72 6 µ-analysis and Synthesis µ (M(s)) := sup µ (M(jω)) (6.3) ω R indicates the robust stability of the perturbed system. Without loss of generality, we assume that the uncertainties have been normalised in the rest of this chapter, i.e. B. From Theorem 3.4, the standard configuration Figure 6.1 is robustly stable if M(s) is stable and µ (M(s)) < 1 (or, M µ < 1). Fig Standard M- configuration As discussed in Chapter 3 in design of control systems, in addition to the stability the performance of the system must be taken into account. The designed system should perform well (for instance, good tracking) against exogenous disturbances, which requires a closed-loop structure. The feedback controller is usually designed based on a nominal plant model. In the case of the existence of plant perturbations, the closed-loop system may well possibly perform badly, even degrade to an unsatisfactory level. The robust performance requires that a designed control system maintains a satisfactory performance level even in the presence of plant dynamic uncertainties. We now expand Figure 6.1 to include input and output signals, as depicted in Figure 6.2. In Figure 6.2, w, z, v and d are usually vector signals. w denotes the exogenous input typically including command signals, disturbances, noises, etc.; z denotes the error output usually consisting of regulator output, tracking errors, filtered actuator signals, etc.; v and d are the input and output signals of the dynamic uncertainties. System-performance specifications can usually be interpreted as reduction of z with respect of w. With the assumption that w and z are both energy-bounded signals, the performance requirement is equivalent to the minimisation of the H norm of the transfer function from w to z. Let M be partitioned accordingly as [ ] M11 M M = 12 M 21 M 22

79 6.1 Consideration of Robust Performance 73 Fig Standard M- configuration for RP analysis it can be easily derived that z = [ M 22 + M 21 (I M 11 ) 1 M 12 ] w = F u (M, )w (6.4) Using normalisation, a satisfactory level of performance requirement can be set as F u (M, ) < 1 (6.5) Equation (6.5) implies the stability of F u (M, ) that denotes the robust stability with respect to the plant perturbations. Condition (6.5) is equivalent to the system loop in Figure 6.3 to be robustly stable with regard to a fictitious uncertainty block p. p is unstructured with appropriate dimensions, satisfies p 1 and is usually called the performance uncertainty block. The part enclosed in the dotted line is, of course, F u (M, ). For robust performance, (6.5) should hold for all B. Based on Figure 6.3, the robust performance design as well as robust stabilisation against, can be equivalently considered as a robust stabilisation problem in Figure 6.1 with the uncertainty block to be replaced by where := {diag{, p } : B, p 1} This is thus a robust stabilisation problem with respect to a structured uncertainty. And, we have the following indications. Robust Performance (RP) M µ < 1, for structured uncertainty Robust Stability (RS) M 11 µ < 1, for structured uncertainty B Nominal Performance (NP) M 22 < 1 Nominal Stability (NS) M is internally stable Of course, if the uncertainty is unstructured, then the robust stability requirement corresponds to M 11 < 1.

80 74 6 µ-analysis and Synthesis Fig Standard M- configuration with p analysis It is easy to see that, by setting p 0, M µ < 1 implies M 11 µ < 1. Hence, the former condition yields a robust stability and robust performance(rsrp) design. 6.2 µ-synthesis: D-K Iteration Method The transfer function matrix M(s) in Figure 6.2 usually contains the controller K, hence a closed-loop interconnected matrix. For the purpose of controller design, we may rearrange the configuration and explicitly show the dependence of the closed-loop system on the controller K. That is, Figure 6.2 is reshown in Figure 6.4. The nominal, open-loop interconnected transfer function matrix P (s) in Figure 6.4 does not include the controller K(s) nor any perturbations that are under consideration. P (s) may be partitioned as P 11 P 12 P 13 P (s) = P 21 P 22 P 23 P 31 P 32 P 33 The signals y and u represent the feedback signals (measured output, tracking error, etc., the input to the controller) and the control signal (the output from the controller), respectively. The relationship between M in Figure 6.2 and P can be obtained by straightforward calculations as M(P, K) =F l (P, K) [ ] P11 P = 12 + P 21 P 22 [ P13 P 23 ] K(I P 33 K) 1 [ P 31 P 32 ] (6.6)

81 6.2 µ-synthesis: D-K Iteration Method 75 Fig Standard M- configuration with K where M(s) is explicitly written as M(P, K) to show that M is formed by P and K. For the RSRP design, it is required to find a stabilising controller K such that sup µ[m(p, K)(jω)] < 1 (6.7) ω R where the subscript has been suppressed for the sake of simplicity. Or, for the optimal RSRP design, the objective is to solve for K inf sup µ[m(p, K)(jω)] (6.8) K(s) ω R An iterative method was proposed to solve (6.8) in [24]. The method is called the D-K iteration µ-synthesis method, and is based on solving the following optimisation problem, for a stabilising controller K and a diagonal constant scaling matrix D, inf sup K(s) ω R inf σ[dm(p, D D K)D 1 (jω)] (6.9) where the scaling matrix set D is defined in Section 3.3. The justification for using (6.9) is obvious, from Theorem 3.7 and the discussion afterwards, with µ[m(p, K)] replaced by its upper bound inf D D σ[dm(p, K)D 1 ]. Corresponding to the case of (6.7), a stabilising controller is to be found such that sup inf σ[dm(p, D D K)D 1 (jω)] < 1 (6.10) ω R

82 76 6 µ-analysis and Synthesis The D-K iteration method is to alternately minimise (6.9), or to reduce the left-hand-side value of (6.10), for K and D in turn while keeping the other one fixed. For a given matrix D, either constant or transfer function, (6.9) is a standard H optimisation problem that can be further written as inf DM(P, K(s) K)D 1 (6.11) inf DF l(p, K)D 1 = inf F l( P,K) (6.12) K K [ ] [ ] with P D 0 D = P 1 0 compatible with the partition of P. 0 I 0 I On the other hand, for a fixed K(s), inf D D σ[dm(p, K)D 1 (jω)] is a convex optimisation problem at each frequency ω. After the minimisation over a range of frequency of interest, the resultant diagonal (constant) matrices Ds can be approximated, via curve fitting, by a stable, minimum phase, rational transfer function matrix D(s), which will be used in the next iteration for K. The D-K iterative µ-synthesis algorithm is thus: Step 1: Start with an initial guess for D, usually set D = I. Step 2: Fix D and solve the H -optimisation for K, K = arg inf K F l( P,K) Step 3: Fix K and solve the following convex optimisation problem for D at each frequency over a selected frequency range, D(jω) = arg inf D D σ[df l(p, K)D 1 (jω)] Step 4: Curve fit D(jω) to get a stable, minimum-phase D(s); goto Step 2 and repeat, until a prespecified convergence tolerance or (6.10) is achieved, or a prespecified maximum iteration number is reached. Successful applications of the D-K iteration method have been reported. This method has also been applied in the case studies in Part II of this book. It should be noticed, however, that the algorithm may not converge in some cases. The resultant controller may be very conservative, particularly in the case of real and/or mixed perturbations, due to the possible gap between µ(m) and inf D D σ[dmd 1 ] in general cases, and due to the lack of powerful algorithms to compute the real and mixed µ values and to solve the optimisation problem for D. Another adverse effect in practical designs is that the order of resultant µ-controllers is usually very high, and hence controller-order reduction must be applied.

83 6.3 µ-synthesis: µ-k Iteration Method 6.3 µ-synthesis: µ-k Iteration Method 77 As discussed above, the structured singular value µ plays an important role in the robust stability and robust performance designs. The µ-design is to seek a stabilising controller that either minimises or reduces the µ value over a frequency range. There is another design method proposed in the literature that can be applied to find a µ-controller. That is the so-called µ-k iteration method ([89, 90, 127]). It is shown in [64] that in many optimisation-based control-system designs, the resultant, optimal controller will make a well-posed cost function (i.e. satisfying certain assumptions ([64], Theorem 4.1)) constant in the frequency ω almost everywhere. This feature is obvious in the H optimisations and can also be observed in the µ-designs using the D-K iterations where the controller K(s) obtained in the iteration gradually flattens the curve of µ(m). The µ- K iteration method is motivated by the above. In the µ-k iterations, the obtained µ curves are used as weighting functions on the H cost function F l ( P,K) with the aim to suppress the peak values of the µ curves in the successive iterations. An algorithm to implement the µ-k iteration method is described below. Step 1: Solve the H -optimisation problem for K 0, K 0 := arg inf K F l( P,K) Step 2: Compute the µ curve corresponding to K 0 over a chosen frequency range, µ 0 (jω):=µ[f l (P, K 0 )(jω)] Step 3: Normalise µ 0 by its maximum value, i.e. µ 0 µ 0 := max ω µ 0 Step 4: Curve fit µ 0 (jω) to get a stable, minimum-phase, rational µ 0 (s). Step 5: Solve for the H optimal controller K 1 (s), K 1 := arg inf K µ 0F l ( P,K) (6.13) goto Step 2, multiply the newly obtained µ curve function onto the previous cost function in (6.13) (e.g. µ 1 µ 0 F l ( P,K) ); repeat until the µ curve is sufficiently flat or until a desired level of performance (measured by the peak value of µ) has been achieved.

84 7 Lower-order Controllers There is a dilemma concerning design of control systems. Due to increasing demands on quality and productivity of industrial systems and with deeper understanding of these systems, mathematical models derived to represent the system dynamics are more complete, usually of multi-input-multi-output form, and are of high orders. Consequently, the controllers designed are complex. The order of such controllers designed using, for instance, the H optimisation approach or the µ-method, is higher than, or at least similar to, that of the plant. On the other hand, in the implementation of controllers, high-order controllers will lead to high cost, difficult commissioning, poor reliability and potential problems in maintenance. Lower-order controllers are always welcomed by practising control engineers. Hence, how to obtain a loworder controller for a high-order plant is an important and interesting task, and is the subject of the present chapter. In general, there are three directions to obtain a lower-order controller for a relatively high-order plant, as depicted in Figure 7.1, (1) plant model reduction followed by controller design; (2) controller design followed by controller-order reduction; and, (3) direct design of low-order controllers. Approaches (1) and (2) are widely used and can be used together. When a controller is designed using a robust design method, Approach (1) would usually produce a stable closed loop, though the reduction of the plant order is likely to be limited. In Approach (2), there is freedom in choosing the final order of the controller, but the stability of the closed-loop system should always be verified. The third approach usually would heavily depend on some properties of the plant, and require numerous computations. This approach will not be introduced in this book. Interested readers are referred to [10, 17, 55, 68, 71]. From the viewpoint of being a control system, model reductions (usually referred to the reduction of orders of the original plant models) and controller

85 80 7 Lower-order Controllers High-order plant Controller design High-order controller Model reduction Low-order plant Direct design Controller reduction Controller design Low-order controller Fig Diagram for design of low-order controllers reductions are similar. Indeed, most methods introduced in this chapter are applicable in both cases, though some methods may be more suitable for one of them. This will be discussed along with the introduction of methods. In this book, only details of continuous-time case reduction will be discussed. Where the method is applicable in the discrete-time case as well references will be given. When we say order reductions of plants/systems, we actually refer to the order reduction of a model of the plant/system. In the rest of the chapter, let the original system have a state-space representation G(s) :=C(sI A) 1 B + D (7.1) [ ] A B =: (7.2) C D where A : n n, B : n m, C : p n, D : p m, and [A, B, C] is assumed to be a minimal realisation. A reduced-order system G r (s) is represented by G r (s) :=C r (si A r ) 1 B r + D r (7.3) [ ] Ar B =: r (7.4) C r D r with A r : r r, B r : r m, C r : p r, D r : p m, and r<n. 7.1 Absolute-error Approximation Methods The aim of the following methods is to find a reduced-order system G r (s) such that some norm of the error system is small, i.e. to minimise

86 7.1 Absolute-error Approximation Methods 81 G(s) G r (s) (7.5) Three methods are to be introduced: Balanced Truncation, Singular Perturbation Approximation (Balanced Residualisation), and Hankel-Norm Approximation. These methods are for stable systems only. The case of unstable systems will be discussed at the end of this section Balanced Truncation Method The general idea of truncation methods is to neglect those parts of the original system that are less observable or/and less controllable. Hopefully, this would lead to a system that is of lower order and retains the important dynamic behaviour of the original system. However, in some systems, a mode would be weakly observable but highly controllable, or vice versa. To delete such a mode may be inappropriate with regard to the whole characteristics of the system. Hence, in the balanced truncation method ([30, 29, 108, 126]), a state similarity transformation is applied first to balance the controllability and observability features of the system. A stable system G(s) is called balanced if the solutions P and Q to the following Lyapunov equations AP + PA T + BB T = 0 (7.6) A T Q + QA + C T C = 0 (7.7) are such that P = Q = diag(σ 1,σ 2,,σ n ):=Σ, with σ 1 σ 2 σ n > 0. P and Q are called the controllability gramian and observability gramian, respectively. When the system is balanced, both gramians are diagonal and equal. σ i, i =1,,n,istheith Hankel singular value of the system. For a general system not in the balanced realisation form, the following algorithm ([81]) can be applied. Balanced Realisation Algorithm: Step 1 : Calculate the gramians P and Q from (7.6) and (7.7), respectively Step 2 : Calculate a Cholesky factor R of Q, i.e. Q = R T R Step 3 : Form a positive-definite matrix RP R T and diagonalise it, RP R T = UΣ 2 U T where U is an orthonormal matrix, U T U = I, and Σ = diag(σ 1,σ 2,,σ n ), σ 1 σ 2 σ n > 0 Step 4 : Let T = Σ 1 2 U T R.[T,T 1 ] is a required state similarity transformation (balancing transformation). That is, [TAT 1,TB,CT 1 ]isa balanced realisation.

87 82 7 Lower-order Controllers We now assume that the state-space model of the original system G(s), [A, B, C, D], is already in the balanced realisation form. Assume Σ = diag(σ 1,Σ 2 ), with Σ 1 = diag(σ 1,,σ r ), Σ 2 = diag(σ r+1,,σ n ), where σ r > [ σ r+1. The ] matrices [ ] A, B and C can be partitioned compatibly as A11 A A = 12 B1, B =, and C = [ ] C A 21 A 22 B 1 C 2. Then, a reduced-order system G r (s) can be defined by 2 [ ] G r (s) =C 1 (si A 11 ) 1 A11 B B 1 + D = 1 (7.8) D Such a G r (s) isofrth order and is called a balanced truncation of the full order (nth) system G(s). It can be shown that G r (s) is stable, in the balanced realisation form, and G(s) G r (s) 2tr(Σ 2 ) (7.9) where tr(σ 2 ) denotes the trace of the matrix Σ 2, i.e. tr(σ 2 )=σ r+1 + +σ n, the sum of the last (n r) Hankel singular values ([30, 46]). In most applications, to reduce the original system into an rth-order system there should be a large gap between σ r and σ r+1, i.e. σ r σ r+1. C Singular Perturbation Approximation In many engineering systems, the steady-state gain of a system, usually called dc-gain (the system gain at infinitive time, equivalent to G(0)), plays an important role in assessing system performances. It is thus better to maintain the dc gain in a reduced-order model, i.e. G r (0) = G(0). The Balanced Truncation method introduced in the last subsection does not keep the dc gain unchanged in the reduced-order system. The singular perturbation approximation method [93] (or, balanced residualisation method [136]) presented below does retain the dc gain. Assume that [A, B, C, D] is a minimal and balanced realisation of a stable system G(s), and partitioned compatibly as in the previous subsection. It can be shown that A 22 is stable (e.g. see Theorem 4.2 of [46]), and thus invertible. Define A reduced-order system G r (s) defined by A r = A 11 A 12 A 1 22 A 21 (7.10) B r = B 1 A 12 A 1 22 B 2 (7.11) C r = C 1 C 2 A 1 22 A 21 (7.12) D r = D C 2 A 1 22 B 2 (7.13) G r (s) =C r (si A r ) 1 B r + D r (7.14)

88 7.1 Absolute-error Approximation Methods 83 is called a singular perturbation approximation (or, balanced residualisation) of G(s). It is a straightforward computation to show that the dc-gain remains unchanged, i.e. by noting that and CA 1 B + D = C r A 1 r B r + D r (7.15) [ A 1 ][ I 0 22 A 21 I [ IA12 A I ] I 0 22 A = I 21 I ] (7.16) = I (7.17) A 1 ][ I A12 A I ([ I A12 A 1 ][ ][ ]) 1 22 A11 A 12 I 0 0 I A 21 A 22 A 1 22 A = 21 I [ A 1 r 0 ] 0 A 1 22 (7.18) It can also be shown that such a reduction G r (s) is a stable and balanced realisation [136] and enjoys the same error bound as the balanced truncation method, i.e. G(s) G r (s) 2(σ r σ n ) It can be seen that instead of discarding the less important part totally as in the balanced truncation method, the derivative of x 2 in the following equation is set to zero, in the singular perturbation approximation (balanced residualisation) method, x 2 = A 21 X 1 + A 22 x 2 + B 2 u (7.19) x 2 is then solved in (7.19) in terms of x 1 and u, and is substituted as residual into the state equation of x 1 and output equation to obtain the reduced-order system G r (s) as given above. This idea resembles what happens in analysis of singular perturbation systems with ɛx 2 = A 21 X 1 + A 22 x 2 + B 2 u where 0 <ɛ 1, and hence the term of singular perturbation approximation Hankel-norm Approximation For a stable system G(s) with Hankel singular values defined in Section 7.1.1, the largest Hankel singular value σ 1 is defined as the Hankel-norm of G(s) ([46]). The Hankel-norm denotes the largest possible L 2 -gain from past inputs to future outputs. In some order-reduction cases, minimisation of the Hankelnorm of the error system is more appropriate and thus required.

89 84 7 Lower-order Controllers Approximation 1: Let G(s) represent a stable and square system with a statespace model [A, B, C, D] of minimal and balanced realisation. Let the gramians be P = Q = diag(σ 1,σI l ), where σ is the smallest Hankel singular value with multiplicity l and every diagonal element of Σ 1 is larger than σ. Let [A, B, C] be partitioned compatibly. An (n l)th-order system G h (s) can be constructed as follows. Define  = Γ 1 (σ 2 A T 11 + Σ 1 A 11 Σ 1 σc T 1 UB T 1 ) (7.20) ˆB = Γ 1 (Σ 1 B 1 + σc T 1 U) (7.21) T Ĉ = C 1 Σ 1 + σub 1 (7.22) ˆD = D σu (7.23) where U is an orthonormal matrix satisfying and The reduced-order system G h (s) is defined as B 2 = C 2 T U (7.24) Γ = Σ 1 2 σ 2 I (7.25) G h (s) =Ĉ(sI Â) 1 ˆB + ˆD (7.26) It is shown in [46] that the (n l)th-order G h (s) is stable and is an optimal approximation of G(s) satisfying G(s) G h (s) H = σ (7.27) And, it is also true that G(s) G h (s) isall-pass with the inf-norm G(s) G h (s) = σ (7.28) Approximation 2: It can be shown that the Hankel singular values of G h (s) defined in (7.26) are correspondingly equal to those first (n l) Hankel singular values of G(s). Hence, the above reduction formula can be repeatedly applied to get further reduced-order systems with known error bounds. Let the Hankel singular values of G(s) beσ 1 > σ 2 > > σ r with multiplicities m i,i=1,,r, i.e. m 1 + m m r = n. By repeatedly applying the formulae (7.20) (7.26), we may have G(s) =D 0 + σ 1 E 1 (s)+σ 2 E 2 (s)+ + σ r E r (s) (7.29) where D 0 is a constant matrix and E i (s), i =1,,r, are stable, norm- 1, all-pass transfer function matrices. E i (s)s are the differences at each approximation. Consequently, we may define reduced-order models, for k =1,,r 1,

90 7.1 Absolute-error Approximation Methods 85 Ĝ k (s) =D 0 + Σ k i=1σ i E i (s) (7.30) Such a Ĝk(s) is stable, with the order m m k, and satisfies G(s) Ĝk(s) (σ k σ r ) (7.31) However, Ĝk(s) is not an optimal Hankel approximation, for k<r 1. The method to obtain an optimal Hankel approximation with general order is given below. Approximation 3: Let the Hankel singular values of G(s) beσ 1 σ 2 σ k >σ k+1 = = σ k+l >σ k+l+1 σ n. Apply appropriate state similarity transformations to make the gramians of G(s) be arranged as Σ = diag(σ 1,σ 2,,σ k,σ k+l+1,,σ n,σ k+1,,σ k+l ). Define the last l Hankel singular values to be σ. Following the formulae (7.20) (7.26), define an (n l)th-order Ĝ(s). This Ĝ(s) is not stable but has exactly k stable poles. The kth-order stable part G h,k (s) ofĝ(s), obtained by using modal decompositions say, is an kth-order Hankel optimal approximation of G(s) and satisfies G(s) G h,k (s) H = σ (7.32) Nonsquare plants can be augmented with zero columns/rows and then be applied by the above procedures Remarks 1. The three methods introduced in the last 3 subsections can be applied to original systems (plants) as well as to controllers. However, most reported cases are on plant reductions. This may be due to robust controller design methods used subsequently that leads to better closed-loop performance even with a reduced-order plant. Examples of application on controllersize reduction can be found in [136]. In [136] it is also observed that the Balanced Truncation method and the Hankel-norm Approximation usually perform better at high frequency, while the singular perturbation approximation (balanced residualisation) method performs better in the low- and medium-frequency ranges. 2. Glover shows in [46] that any stable, rth-order approximation G r of G(s) can never achieve G(s) G r (s) σ r+1. This lower error bound may serve as a yardstick to compare with the actual error obtained in practice. 3. All the three methods are applicable for stable systems only. If a system is unstable, modal decomposition can be applied first. That is, find a stable G s (s) and an antistable G us (s) (with all the poles in the closed right-half complex plane) such that G(s) =G s (s)+g us (s) (7.33)

91 86 7 Lower-order Controllers Then, G s (s) can be reduced to G sr (s), by using any of the three methods, and a reduced-order system of the original G(s) can be formed as G r (s) =G sr (s)+g us (s) (7.34) The routines to calculate a modal decomposition can be found in software packages such as MATLAB r or Slicot. 4. The formulae introduced here are for continuous-time systems. In the case of discrete-time systems, the gramians are calculated from the discrete Lyapunov equations instead, AP A T P + BB T = 0 (7.35) A T QA Q + C T C = 0 (7.36) The balanced truncation method can then be applied similar to the case of continuous time. However, it should be noted that the reduced-order system is no longer in a balanced realisation form ([126, 34]), though the same error bound still holds ([8]). For using the singular perturbation approximation (balanced residualisation) on a system with zero D-matrix, the reduced-order system G r (s) = [A r,b r,c r,d r ] can be instead defined by A r = A 11 + A 12 (I A 22 ) 1 A 21 B r = B 1 + A 12 (I A 22 ) 1 B 2 C r = C 1 + C 2 (I A 22 ) 1 A 21 D r = C 2 (I A 22 ) 1 B 2 (7.37) Such a reduced-order system is still in a balanced realisation and enjoys the same error bound ([8, 35, 93, 111]). The discrete-time case of Hankel-norm approximation has been studied for a long time and is also called the Hankel-matrix approximation. Details can be found in [6, 78, 79, 116, 173]. 5. Research has been conducted on numerical implementations of the above reduction methods. For instance, in balanced transformation in order to avoid numerical instability of forming products BB T and C T C, algorithms for direction calculation of the Choleski factors and improved balanced truncation scheme have been proposed ([62, 82, 148]). Also, to avoid illconditioned computational problems, balancing-free approaches can be considered ([133, 134, 151]). It is recommended that the model-reduction subroutines developed in the software package Slicot be used because of their superior numerical properties. 7.2 Reduction via Fractional Factors The modal decomposition can be used to reduce the order of a general, unstable system as discussed in the last section. However, the order of the antistable

92 7.2 Reduction via Fractional Factors 87 part will not be reduced at all. Another reduction method applicable in the case of unstable systems is via reduction of normalised coprime factors of the system introduced in Chapter 5. [ ] A B For a minimal realisation model G(s) =, recall that a normalised C 0 left coprime factorisation is defined by G(s) = M(s) 1 Ñ(s), where M(s) and Ñ(s) are stable and satisfy (5.2) and (5.3). Note that we assume G(s) has a zero D-matrix and model reduction is conducted with regard to such a strictly proper system. In the case of a nonzero feedthrough term in G(s), the nonzero D-matrix should be added to the reduced-order model. Such a treatment greatly simplifies formulae. It will keep the high-frequency gain of the original system in the fractional balanced truncation(fbt) method, or maintain the dc-gain in the fractional singular perturbation approximation(fspa) method, both introduced below. The factors M(s) and Ñ(s) have the following state-space models [ ] [ ] A + HC BH Ñ M = (7.38) C 0 I where H = ZC T with Z>0 solves the following algebraic Riccati equation AZ + ZA T ZC T CZ + BB T = 0 (7.39) [ ] Ñ M in (7.38) is stable and a balanced realisation transformation can be found. Following the balanced realisation algorithm in Section 7.1.1, a state similarity transformation [T,T 1 ] can be obtained such that [T (A + HC)T 1,T [ BH ],CT 1 ] is a balanced realisation with the gramian Σ = diag(σ 1,σ 2,,σ n ). To reduce the system to rth order, where σ r >σ r+1, let [ ] [ ] T (A + HC)T 1 Ã11 Ã =: 12 A11 + H = 1 C 1 A 12 + H 1 C 2 Ã 21 Ã 22 A 21 + H 2 C 1 A 22 + H 2 C 2 (7.40) T [ BH ] [ ] [ ] B1 B1 H =: = 1 (7.41) B 2 B 2 H 2 CT 1 =: [ ] [ ] C1 C2 = C1 C 2 (7.42) D := [ 0 I ] (7.43) where [ ] TAT 1 A11 A =: 12 A 21 A 22 [ ] B1 TB =: B 2 CT 1 =: [ ] C 1 C 2 [ ] H1 TH =: H 2 (7.44) (7.45) (7.46) (7.47)

93 88 7 Lower-order Controllers Accordingly, the gramian is divided as [ ] Σ1 0 Σ = 0 Σ 2 (7.48) with Σ 1 = diag(σ 1,,σ r ) and Σ 2 = diag(σ r+1,,σ n ). Now, the reduction methods introduced in Section 7.1 can be applied to obtain a rth-order [ ] Ñ r Mr which leads to a reduced order (rth-order) model G r (s) = M r (s) 1 Ñ r (s). Fractional Balanced Truncation(FBT) Method In this direct truncation method, we define [ ] [ ] [ ] Ã11 B1 A11 + H Ñr Mr := [ ] = 1 C 1 B 1 H 1 C 1 0 I C 1 0 I (7.49) It is easy to check that the above realisation of [ Ñ r realisation with the gramian Σ 1. Define Mr ] is still a balanced G r (s) := M r (s) 1 Ñ r (s) (7.50) By direct manipulations, we have G r (s) = [ ] A11 B 1 C 1 0 (7.51) An error bound directly follows the result in Section and is shown in [107], that is [ Ñ Ñr M M ] n r 2 σ i (7.52) i=r+1 Fractional Singular Perturbation Approximation(FSPA) Method Naturally, the singular perturbation approximation method (or, the balanced residualisation method) in Section can be used to reduce the order of [ Ñ M ]. Define A r = Ã11 Ã12Ã 1 22 Ã21 (7.53) B r = B 1 Ã12Ã (7.54) C r = C 1 C 2 Ã 1 22 Ã21 (7.55) D r = D C 2 Ã (7.56)

94 7.2 Reduction via Fractional Factors 89 Furthermore, B r and D r can be compatibly partitioned as B r = [ ] [ B r,1 B r,2 := B1 Ã12Ã 1 22 B 2 H 1 Ã12Ã 1 22 H ] 2 Hence, let D r = [ ] [ D r,1 D r,2 := C2 Ã 1 22 B 2 I C 2 Ã 1 22 H ] 2 [ ] [ ] Ar B Ñr Mr := r,1 B r,2 C r D r,1 D r,2 (7.57) (7.58) (7.59) which is of balanced realisation form with the gramian Σ 1.Anrth-order model G r (s) is then obtained by [ G r (s) = M r (s) 1 Ar B r,2 Dr,2 1 Ñ r (s) = C r B r,1 B r,2 Dr,2 1 D ] r,1 Dr,2 1 C r Dr,2 1 D r,1 (7.60) In the case that the original model G(s) is not strictly proper, the nonzero feedthrough term should be added in the D-matrix in (7.60). The error bound (7.52) obviously holds here as well, from the result in Section Remarks: 1. Meyer [107] shows that [ Ñ M ] H < 1, i.e. Σ<I. Also, the infinitive norm [ Ñ M ] = 1, because of the normalised coprime factorisation. 2. It can be obtained that, in either the FBT method or FSPA method, we have G(s) G r (s) M r 1 [ Ñ Ñr M M r ] M 1 (7.61) by writing M 1 G G r = M 1 Ñ r Ñ r ( 1 [ ] [ ]) I = M r Ñ Ñ r M Mr M 1 Ñ ( [ ]) 1 [ ] = M r Ñ Ñ r M Mr M 1 M Ñ [ ] M and by the fact that =1. Ñ (7.62)

95 90 7 Lower-order Controllers 3. Note that the methods introduced above are based on the left coprime factorisation. Similarly, model reductions can be done with regard to the normalised right coprime factorisation. 4. The model reduction in the discrete-time case using the fractional balanced truncation method is straightforward, and using the fractional singular perturbation approximation method can be found in [112, 111]. 7.3 Relative-error Approximation Methods As discussed in Section 7.1.4, the balanced truncation method gives a good approximation over high-frequency ranges, while the singular perturbation approximation performs better over low- and medium-frequency ranges. If a reduced-order system is required in some practical problems to approximate equally well over the whole frequency range, then the method called the balanced stochastic truncation(bst) method may be considered [19, 52, 51, 92, 152]). The effect of this method may be viewed as, for a stable, square and invertible G(s), a minimisation of G 1 (s)(g(s) G r (s)) (7.63) Hence, the reduced-order system G r (s) approximates the original system in the sense of making G 1 G r nearer to identity. Problem (7.63) represents a minimisation of a relative error and is one of several relative-error approximation methods (e.g., see [47, 49]). The idea of the BST method is the following. First, a spectral factor W (s) of G(s)G (s) is to be found. That is, W (s)w (s) =G(s)G (s) where W (s) :=W T ( s), similarly for G (s); and W (s) is stable, square and of minimum phase (i.e. (W (s)) 1 H ). W (s) contains the magnitude part of G(s). Correspondingly, a phase matrix of G(s) can be defined as F (s) =(W (s)) 1 G(s). F (s) is an all-pass transfer function matrix and contains both stable and unstable modes. The BST method is then to apply a balanced truncation on the stable part of F (s) (which is of the same order as G(s)), with the same state similarity transformation and partition on the state space model of G(s) to obtain a reduced-order G [ r (s). ] A B For a given nth-order, stable and square G(s) = we assume this C D is a minimal realisation and the invertibility of G(s) implies the existence of D 1. The computational steps of the BST method can be described as: Step 1: Solve the Lyapunov equation where the solution P>0. AP + PA T + BB T = 0 (7.64)

96 7.3 Relative-error Approximation Methods 91 Step 2: Let B W = PC T + BD T (7.65) C W = D 1 (C B T W Q W ) (7.66) where Q W is the stabilising solution to the following Riccati equation A T Q W + Q W A + C T W C W = 0 (7.67) Remark: (A, B W,C W ) forms the stable part of F (s). Step 3: Decide a balanced realisation transformation with regard to (P, Q W ) and apply the transformation onto G(s). Let the balanced gramian matrix be Σ = diag(σ 1,,σ n ) in descending order. Remarks: (1) After applying the above transformation, G(s) is, in general, not in the balanced realisation form, but with its controllability gramian being Σ; (2) Σ I, due to F (s) being an all-pass matrix. Step 4: Partition Σ as [ ] Σ1 0 Σ = (7.68) 0 Σ 2 where Σ 1 = diag(σ 1,,σ r ), Σ 2 = diag(σ r+1,,σ n ), with σ r >σ r+1. Partition compatibly the matrices [ A, ] B and C [(of the ] transformed statespace model of G(s)) A = 12 B1 A11 A, B =, and C = [ ] C A 21 A 22 B 1 C 2. 2 Then, a reduced-order system G r (s) can be defined by G r (s) =C 1 (si A 11 ) 1 B 1 + D (7.69) as For this reduced-order system, a relative error bound can be derived ([52]) G 1 (G G r ) n i=r+1 1+σ i 1 σ i 1 (7.70) The errors between the phase matrices, with the same antistable and constant parts, are bounded by F (s) F r (s) 4(σ r σ n ) (7.71) F (s) F r (s) H 2(σ r σ n ) (7.72) Remarks: 1. The BST method can be applied to nonsquare G(s) as well, with slight modifications. The invertibility of G(s) is changed to the assumption that

97 92 7 Lower-order Controllers D is of full row rank. The constant matrix of the square spectral factor W (s) would be D W, with DW T D W = DD T, and the output matrix C W = D W (DD T ) 1 (C BW T Q W ). However, in the nonsquare case, there would be no explicit explanation of the relative error format (7.63). The reduction just shows an approximation with respect to phase. 2. In the above method, instead of balanced truncation, the Hankel-norm approximation can be used ([47]). That is, the balanced realisation of the stable part, F s (s), of the phase matrix F (s) is to be approximated by a Hankel-norm approximant, F s,r (s), calculated using the formula in Section The reduced model, G r, can then be defined as G r = G W (F s F s,r ) (7.73) It can be shown ([47, 52]) that G r is stable and satisfies the following error bound n G 1 (G G r ) (1 + σ i ) 1 (7.74) i=r Frequency-weighted Approximation Methods The model-order reduction approaches introduced above can be in theory applied to plants (the original system models) as well as to controllers. However, to reduce the order of a designed controller, it is necessary to take into account the plant that is being compensated and other design specifications of the closed-loop system. With such considerations, the controller-order reduction problem would be better formulated as a frequency-weighted model reduction, and suitable approaches have been suggested. Assume that a controller K(s) has been designed for a plant with a model G(s), and denote a reduced-order controller by K r (s). The configuration with K(s) replaced by K r (s) in the closed-loop system can be depicted by Figure 7.2. From the Small-Gain Theorem (Theorem 3.1), it is easy to obtain that the closed-loop system with the reduced-order controller K r (s) remains stable if K(s) and K r (s) have the same number of unstable poles and if or [K(s) K r (s)]g(s)[i + K(s)G(s)] 1 < 1 (7.75) [I + G(s)K(s)] 1 G(s)[K(s) K r (s)] < 1 (7.76) Let W i (s) :=G(s)[I +K(s)G(s)] 1 and W o (s) :=[I +G(s)K(s)] 1 G(s). Then in order to reserve the stability of the closed-loop system, a reduced-order controller K r (s) is sought to minimise the frequency-weighted cost functions

98 7.4 Frequency-weighted Approximation Methods 93 Fig Closed-loop system with reduced-order controllers [K(s) K r (s)]w i (s) (7.77) or W o (s)[k(s) K r (s)] (7.78) Note in this case the input frequency weight function W i (s) equals the output frequency weight function W o (s). Another consideration is about the performance of the closed-loop system. The performance is closely related to the transfer function of the closedloop system. Naturally, to maintain the performance of the designed, closedloop system, it requires the transfer function of the closed-loop system with reduced-order controller to be as near as possible to that with the original controller. The two transfer functions are, respectively, G(s)K(s)[I + G(s)K(s)] 1 G(s)K r (s)[i + G(s)K r (s)] 1 The difference between these two transfer functions, by neglecting terms of second and higher orders in K K r,is G(s)[I + K(s)G(s)] 1 [K(s) K r (s)][i + G(s)K(s)] 1 Hence, a reduced-order controller K r (s) should try to minimise W o (s)[k(s) K r (s)]w i (s) (7.79) where W i (s) :=[I + G(s)K(s)] 1 and W o (s) :=G(s)[I + K(s)G(s)] 1. Let us now concentrate on the general form of frequency-weighted model reduction of (7.79), but replacing K(s) and K r (s) byg(s) and G r (s), respectively. Assume that G(s)is stable and has the minimal realisation as defined in (7.2). The input weight function W i (s) and [ the output ] weight W o (s) [ are also ] Ai B stable with minimal realisations: W i (s) = i Ao B and W C i D o (s) = o, i C o D o respectively.

99 94 7 Lower-order Controllers Remark: Obviously the stability assumption of G(s) would be a restriction in the case of controller-order reduction. In the case of unstable G(s), the modal decomposition discussed in Section can be considered. The augmented systems G(s)W i (s) and W o (s)g(s) have the state-space models [ ] ABC i BD i Âi ˆBi G(s)W i (s) = = 0 A i B i (7.80) Ĉ i ˆDi CDC i DD i [ ] A 0 Âo ˆBo W o G(s) = = B o CA o Ĉ o ˆDo D o CC o BB o D (7.81) D o D Let ˆP and ˆQ be two non-negative matrices satisfying the following two Lyapunov equations, respectively, Â ˆP + ˆP ÂT + ˆB ˆB T = 0 (7.82) Â T ˆQ + ˆQÂ + ĈT Ĉ = 0 (7.83) Furthermore, partition ˆP and ˆQ as [ ] P P12 ˆP = P12 T P 22 [ ] Q Q12 ˆQ = Q T 12 Q 22 (7.84) (7.85) where, P and Q are of n-dimension, and are called the input weighted gramian and output weighted gramian, respectively. Several frequency-weighted model-reduction algorithms use balanced realisation transformations on P and Q or are related with truncations. Three such methods are introduced below. Frequency-weighted Balanced Truncation(FWBT) Enns [30, 29] proposes to find a balanced realisation on P and Q, i.e. to find an invertible n n matrix T (see Section 7.1.1) such that TPT T =(T 1 ) T QT 1 = diag(σ 1,,σ r,σ r+1,,σ n ) with σ 1 σ 2 σ r >σ r+1 σ n 0. Apply such a state similarity transformation (T,T 1 )ong(s) and partition it accordingly,

100 7.4 Frequency-weighted Approximation Methods 95 [ ] TAT 1 A TB 11 A 12 CT 1 = B A D 21 A 1 B 2 22 C 1 C 2 D (7.86) where A 11 is of r r dimension. A reduced-order G r (s) can then be defined by [ ] A11 B G r (s) = 1 (7.87) D G r (s) obtained in (7.87) is not necessarily stable, except in the cases where either W i = I or W o = I (one-side weight only). There is an error bound derived ([75]) for C 1 W o (s)[g(s) G r (s)]w i (s) However, this bound has to be computed iteratively, depending on reducedorder models of n 1,,r+ 1, and is not practically useful. Frequency-weighted Singular Perturbation Approximation(FWSPA) Lin and Chiu [88] introduce another truncation method to obtain a frequencyweighted reduced model. Assume that P 22 and Q 22 in (7.84) and (7.85), respectively, are nonsingular. This condition is guaranteed, for example, in the case that the realisations (7.80) and (7.81) are minimal, i.e. if there are no pole/zero cancellations between G(s) and W i (s), nor between W o (s) and G(s). Instead of applying a balanced realisation transformation on P and Q as in the Enns method, a balanced realisation transformation is to be found with regard to P P 12 P 1 22 P T 12 and Q Q T 12Q 1 22 Q 12. This balanced realisation is then applied onto the original model G(s) and truncation taken in the same way as in (7.86) and (7.87). Apparently, this method is so named because the matrices P P 12 P22 1 P 12 T and Q Q T 12Q 1 22 Q 12 are in the form of the reduced-order state matrix used in the Singular Perturbation Approximation [ method (Section 7.1.2). It I P12 P 1 ] [ ] is observed that, by pre/postmultiplying 22 I 0 and 0 I P22 1 P 12 T I on (7.82), and similar multiplications with regard to Q on (7.83), matrices P P 12 P22 1 P 12 T and Q Q T 12Q 1 22 Q 12 satisfy two Lyapunov equations, respectively. Hence, the diagonalised matrices of these two after the balanced realisation transformations satisfy the Lyapunov equations, too. This indicates the reduced-order system is guaranteed to be stable. There is an error bound available for this method ([144]). However, it suffers the same weakness as the error bound for the Enns method. The error bound cannot be simply calculated from the original model data.

101 96 7 Lower-order Controllers Frequency-weighted Modulii Truncation Method(FWMT) The error bounds for the above two methods are not practically useful. In [157], Wang et al. propose another truncation method with a priori computable error bound. Quoting the upper-left blocks of (7.82) and (7.83) gives the following two matrix equations: Let AP + PA T + BC i P 12 + P12C T i T B T + BD i Di T B T = 0 (7.88) A T Q + QA + Q 12 B o C + C T Bo T Q T 12 + C T Do T D o C = 0 (7.89) X = BC i P 12 + P T 12C T i B T + BD i D T i B T (7.90) Y = Q 12 B o C + C T B T o Q T 12 + C T D T o D o C (7.91) Note that X and Y defined above are symmetric but not sign-definite in general. Apply congruent transformations on X and Y to obtain orthogonal matrices U and V such that X = UΘU T (7.92) Y = VΓV T (7.93) where Θ = diag(θ 1,,θ i, 0,, 0), Γ = diag(γ 1,,γ o, 0,, 0), with θ 1 θ i > 0 and γ 1 γ o > 0. Now, define B = Udiag( θ 1 1 2,, θi 1 2, 0,, 0) (7.94) C = diag( γ 1 1 2,, γo 1 2, 0,, 0)V T (7.95) Solve the following two Lyapunov equations: A P + PA T + B B T = 0 (7.96) QA + A T Q + CT C = 0 (7.97) It can be shown ([157]) that (A, B, C) is a minimal realisation and hence the solutions P and Q to (7.96) and (7.97), respectively, are positive definite. Similar to FWBT and FWSPA methods, a balanced realisation is found with regard to P and Q and the transformation is applied to the original model (A, B, C) to yield a reduced-order model G r (s). Such a G r (s) is stable, following the same reasoning as in the FWSPA method. Furthermore, the following error bound can be derived ([157]). Define K = diag( θ 1 1 2,, θi 1 2, 0,, 0)U T B (7.98) L = CV diag( γ 1 1 2,, γo 1 2, 0,, 0) (7.99)

102 Then, it is shown in ([157]) that where 7.4 Frequency-weighted Approximation Methods 97 W o (s)(g(s) G r (s))w i (s) k k =2 W o (s)l KW i (s) n j=r+1 σ j (7.100) and (σ 1,,σ r,σ r+1,,σ n ) are the diagonal elements of the balanced form of P ( Q).

103 Part II Design Examples

104 8 Robust Control of a Mass-Damper-Spring System In this chapter we consider the design of a robust control system for a simple, second-order, mechanical system, namely a mass-damper-spring system. The mass-damper-spring system is a common control experimental device frequently seen in an undergraduate teaching laboratory. As the first case study considered in this book, we show in detail the design of three different controllers for this system and present robust stability and robust performance analysis of the corresponding closed-loop systems, respectively. In order to keep the designs simple we take into account only the structured (parametric) perturbations in the plant coefficients. In this design example we give some information for several basic commands from the Robust Control Toolbox that are used in the analysis and design in this and subsequent case studies. To illuminate in a clear way the implementation of the most important Robust Control Toolbox commands, we include in the chapter all files used in computations related to the analysis and design of the mass-damper-spring control system. It is hoped that this chapter may serve as a tutorial introduction not only to robust control systems analysis and design but also to the use of the Robust Control Toolbox. 8.1 System Model The one-degree-of-freedom(1dof) mass-damper-spring system is depicted in Figure 8.1. The dynamics of such a system can be described by the following 2nd-order differential equation, by Newton s Second Law, mẍ + cẋ + kx = u where x is the displacement of the mass block from the equilibrium position and u = F is the force acting on the mass, with m the mass, c the damper constant and k the spring constant. A block diagram of such a system is shown in Figure 8.2.

105 102 8 Robust Control of a Mass-Damper-Spring System Fig Mass-damper-spring system Fig Block diagram of the mass-damper-spring system In a realistic system, the three physical parameters m, c and k are not known exactly. However, it can be assumed that their values are within certain, known intervals. That is, m = m(1 + p m δ m ),c= c(1 + p c δ c ),k= k(1 + p k δ k ) where m =3,c =1,k = 2 are the so-called nominal values of m, c and k. p m, p c and p k and δ m, δ c and δ k represent the possible (relative) perturbations on these three parameters. In the present study, we let p m =0.4, p c =0.2, p k = 0.3 and 1 δ m,δ c,δ k 1. Note that this represents up to 40% uncertainty in the mass, 20% uncertainty in the damping coefficient and 30% uncertainty in the spring stiffness. The three constant blocks in Figure 8.2 can be replaced by block diagrams in terms of m, p m, δ m, etc., in a unified approach. We note that the quantity 1 m may be represented as a linear fractional transformation (LFT) in δ m 1 m = 1 m(1 + p m δ m ) = 1 m p m m δ m(1 + p m δ m ) 1 = F U (M mi,δ m ) with M mi = [ ] 1 pm m 1 p m m

106 8.1 System Model 103 Similarly, the parameter c = c(1 + p c δ c ) may be represented as an upper LFT in δ c c = F U (M c,δ c ) with M c = [ ] 0 c p c c and the parameter k = k(1 + p k δ k ) may be represented as an upper LFT in δ k, k = F U (M k,δ k ) with M k = [ ] 0 k p k k All these LFTs are depicted by block diagrams in Figure 8.3. Fig Representation of uncertain parameters as LFTs To further represent the system model as an LFT of the unknown, real perturbations δ m, δ c and δ k, we use the block diagrams in Figure 8.3 and denote the inputs and outputs of δ m,δ c and δ k as y m,y c,y k and u m,u c,u k, respectively, as shown in Figure 8.4. With the above substitutions, the equations relating all inputs to corresponding outputs around these perturbed parameters can now be obtained as [ ym ẍ ] = [ yc v c [ yk [ pm 1 m 1 p m m ][ ] [ 0 c = p c c ] [ 0 k = v k p k k u m = δ m y m u c = δ c y c u k = δ k y k ] u m u v c v k ][ ] uc ẋ ][ uk x ]

107 104 8 Robust Control of a Mass-Damper-Spring System Fig Block diagram of the mass-damper-spring system with uncertain parameters Let us set such that x 1 = x, x 2 =ẋ =ẋ 1,y= x 1 ẋ 2 =ẍ =ẍ 1 As a result, we obtain the following equations ẋ 1 = x 2 ẋ 2 = p m u m + 1 m (u v c v k ) y m = p m u m + 1 m (u v c v k ) y c = cx 2 y k = kx 1 v c = p c u c + cx 2 v k = p k u k + kx 1 y = x 1 u m = δ m y m u c = δ c y c u k = δ k y k By eliminating the variables v c and v k, the equations governing the system dynamic behaviour are given by

108 ẋ 1 ẋ 2 y m y c y k y k m c m p m pc m p k 1 m m = k m c m p m p c m p k 1 m m 0 c k u m u c = u k δ m δ c δ k y m y c y k 8.1 System Model 105 Let G mds denote the input/output dynamics of the mass-damper-spring system, which takes into account the uncertainty of parameters as shown in Figure 8.5. G mds has four inputs (u m,u c,u k,u), four outputs (y m,y c,y k,y) and two states (x 1, x 2 ). x 1 x 2 u m u c u k u Fig Input/output block diagram of the mass-damper-spring system The state space representation of G mds is A B 1 B 2 G mds = C 1 D 11 D 12 C 2 D 21 D 22 where [ 0 1 A = k m c m C 1 = k m c m 0 c,d 11 = k 0 ] [ 0 0 0,B 1 = p m p c m p k m p m pc m p k m C 2 = [ 10 ],D 21 = [ 000 ],D 22 =0 ] [ ] 0,B 2 = 1 m,d 12 = 1 m 0 0 Note that G mds depends only on m, c, k, p m, p c, p k and on the original differential equation connecting y with u. Hence, G mds is known and contains no uncertain parameters.

109 106 8 Robust Control of a Mass-Damper-Spring System Below, we give the M-file mod mds.m, which can be used to compute the system matrix G mds and to save it in the MATLAB r variable G. File mod mds.m m = 3; c = 1; k = 2; pm = 0.4; pc = 0.2; pk = 0.3; % A = [ 0 1 -k/m -c/m]; B1 = [ pm -pc/m -pk/m]; B2 = [ 0 1/m]; C1 = [-k/m -c/m 0 c k 0 ]; C2 = [ 1 0 ]; D11 = [-pm -pc/m -pk/m ]; D12 = [1/m 0 0 ]; D21 = [0 0 0]; D22 = 0; G = pck(a,[b1,b2],[c1;c2],[d11 D12;D21 D22]); The uncertain behaviour of the original system can be described by an upper LFT representation y = F U (G mds, )u with diagonal uncertainty matrix = diag(δ m,δ c,δ k ), as shown in Figure 8.6. It should be noted that the unknown matrix, which will be called the uncertainty matrix, has a fixed structure. It is a diagonal matrix. It could, in general, be block diagonal. Such uncertainty is thus called structured uncertainty. Apart from the method presented above in which system equations are derived first followed by explicitly defining all those coefficient matrices, the system matrix G mds may also be obtained by using the MATLAB r command sysic. The following file sys mds.m shows how this can be done.

110 8.2 Frequency Analysis of Uncertain System 107 Fig LFT representation of the mass-damper-spring system with uncertainties File sys mds.m m_nom = 3; c_nom = 1; k_nom = 2; p_m = 0.4; p_c = 0.2; p_k = 0.3; mat_mi = [-p_m 1/m_nom; -p_m 1/m_nom]; mat_c = [0 c_nom; p_c c_nom]; mat_k = [0 k_nom; p_k k_nom]; int1 = nd2sys([1],[1 0]); int2 = nd2sys([1],[1 0]); systemnames = mat_mi mat_c mat_k int1 int2 ; sysoutname = G ; inputvar = [um;uc;uk;u] ; input_to_mat_mi = [um;u-mat_c(2)-mat_k(2)] ; input_to_mat_c = [uc;int1] ; input_to_mat_k = [uk;int2] ; input_to_int1 = [mat_mi(2)] ; input_to_int2 = [int1] ; outputvar = [mat_mi(1);mat_c(1);mat_k(1);int2] ; sysic; 8.2 Frequency Analysis of Uncertain System The frequency responses of the perturbed open-loop system may be computed by using the command starp at a few different values of the perturbation parameters δ m,δ c,δ k. In the M-file pfr mds below, three values of each perturbation are chosen, the corresponding open-loop transfer function matrices generated and frequency responses calculated and plotted.

111 108 8 Robust Control of a Mass-Damper-Spring System File pfr mds.m % % Frequency responses of the perturbed plants % mod_mds omega = logspace(-1,1,100); [delta1,delta2,delta3] = ndgrid([-1 0 1],[-1 0 1],... [-1 0 1]); for j = 1:27 delta = diag([delta1(j),delta2(j),delta3(j)]); olp = starp(delta,g); olp_ic = sel(olp,1,1); olp_g = frsp(olp_ic,omega); figure(1) vplot( bode,olp_g, c- ) subplot(2,1,1) hold on subplot(2,1,2) hold on end subplot(2,1,1) olp_ic = sel(g,4,4); olp_g = frsp(olp_ic,omega); vplot( bode,olp_g, r-- ) subplot(2,1,1) title( BODE PLOTS OF PERTURBED PLANTS ) hold off subplot(2,1,2) hold off The Bode plots of the family of perturbed systems for 1 δ m,δ c,δ k 1 are shown in Figure Design Requirements of Closed-loop System The design objective for the mass-damper-spring system in this study is to find a linear, output feedback control u(s) = K(s)y(s), which ensures the following properties of the closed-loop system. Nominal stability and performance: The controller designed should make the closed-loop system internally stable. Further, the required closed-loop system performance should be achieved for

112 8.3 Design Requirements of Closed-loop System Bode plots of perturbed plants Magnitude (Log) Frequency (rad/s) 0 50 Phase (deg) Frequency (rad/s) Fig Bode plots of perturbed open-loop systems the nominal plant model G mds. In this case study, the performance criterion for the closed-loop system is the so-called SoverKSdesign and is described by [ ] Wp S(G mds ) W u KS(G mds ) < 1 (8.1) where S(G mds )=(I + G mds K) 1 is the output sensitivity function of the nominal system, and W p, W u are weighting functions chosen to represent the frequency characteristics of some external (output) disturbance d and performance requirement (including consideration of control-effort constraint) level. Satisfaction of the above norm inequality indicates that the closed-loop system successfully reduces the effect of the disturbance to an acceptable level, and achieves the required performance. It should also be noted that the sensitivity function S denotes the transfer function of the reference tracking error.

113

114 8.3 Design Requirements of Closed-loop System 111 Hence, the performance criterion is that the transfer functions from d to e p and e u should be small in the sense of., for all possible uncertain transfer matrices. The weighting functions W p and W u are used to reflect the relative significance of the performance requirement over different frequency ranges. In the given case, the performance weighting function is a scalar function W p (s) =w p (s) and is chosen as w p (s) =0.95 s2 +1.8s +10 s s which ensures, apart from good disturbance attenuation, good transient response (settling time less than 10 s and overshoot less than 20% for the nominal system). The control weighting function W u is chosen simply as the scalar w u =10 2. Note that finding appropriate weighting functions is a crucial step in robust controller design and usually needs a few trials. For complex systems, significant efforts may be required. To define the chosen weighting functions in MATLAB r, the following file wts mds.m is used. File wts mds.m nuwp = [ ]; dnwp = [ ]; gainwp = 0.95; Wp = nd2sys(nuwp,dnwp,gainwp); nuwu = 1; dnwu = 1; gainwu = 10^(-2); Wu = nd2sys(nuwu,dnwu,gainwu); To achieve the desired performance of disturbance rejection (or, of tracking error) it is necessary to satisfy the inequality W p (I + GK) 1 < 1. Since W p is a scalar function in the present case, the singular values of the sensitivity function (I +GK) 1 1 over the frequency range must lie below that of w p. This indicates W p (I + GK) 1 < 1 if and only if for all frequencies σ[(i + GK) 1 (jω)] < 1/w p (jω). The inverse weighting function 1 w p is calculated by the commands omega = logspace(-4,4,100); Wp_g = frsp(wp,omega); Wpi_g = minv(wp_g); vplot( liv,lm,wpi_g) title( Inverse of Performance Weighting Function ) xlabel( Frequency (rad/sec) ) ylabel( Magnitude ) 1 The singular values of w p in Figure 8.9. over the frequency range [10 4, 10 4 ] are shown

115 112 8 Robust Control of a Mass-Damper-Spring System 10 1 Inverse of performance weighting function 10 0 Magnitude Frequency (rad/s) Fig Singular values of 1 w p This weighting function shows that for low frequencies the closed-loop system (the nominal as well as perturbed) must attenuate the output disturbance in the ratio of 10 to In other words, The effect of a unit disturbance on the steady-state output should be of the order 10 3 or less. (The same is also valid for the reference tracking error since in the given case the corresponding transfer function coincides with the sensitivity transfer function.) This performance requirement becomes less stringent with increasing frequency. It is seen in Figure 8.9 that from the frequency 1 rad/s the disturbance is no longer to be attenuated. This shows in the time response the effect of disturbance will not be alleviated until some time later and will then be reduced to a scale of 10 3 or even less. 8.4 System Interconnections The structure of the open-loop system is represented in Figure The variable y c (the controller input) is taken with negative sign since the commands intended for design in the Robust Control Toolbox produce controllers with positive feedback. The variables pertin and pertout have three elements, and the variables control, dist, e p, e u and y c have one element. The command sysic can be used to create the structure of open-loop systems in MATLAB r. In the present case study, the open-loop system is

116

117

118

119 116 8 Robust Control of a Mass-Damper-Spring System Output arguments controller (matrix of type SYSTEM) closed-loop system (matrix of type SYSTEM) k clp In the present exercise, the open-loop interconnection is saved in the variable hin ic. It consists of one measurement (obtained by a sensor), two error signals, one control input, one disturbance and four states (two states of the plant plus two of the weighting function W p ). Note that for the given structure, the open-loop system whose norm is to be minimised has 1 input and 2 outputs. The interval for γ iteration is chosen between 0.1 and 10 with tolerance tol = At each iteration the program displays the current value of γ and the results of five tests for existence of a suboptimal controller. At the end of each iteration the symbol p or f is displayed, which indicates the value of the current γ is either accepted or rejected. The symbol # is used to denote which of the five conditions for the existence of H (sub)optimal controllers is violated for the γ used. When the iteration procedure succeeds, the achievable minimum value of γ is given. The transfer function matrix of the closed-loop system from dist to e is saved in the variable clp. Below, we give the file hin mds.m used to design an H (sub)optimal controller K hin, followed by the display of results obtained in the exercise. File hin mds.m nmeas = 1; ncon = 1; gmin = 1; gmax = 10; tol = 0.001; hin_ic = sel(sys_ic,4:6,4:5); [K_hin,clp] = hinfsyn(hin_ic,nmeas,ncon,gmin,gmax,tol); Resetting value of Gamma min based on D_11, D_12, D_21 terms Test bounds: < gamma <= gamma hamx_eig xinf_eig hamy_eig yinf_eig nrho_xy p/f e e e e p e e e e p e e e e p e e e e p e e e e p e e e e p e e e e p e e e e p e e e e p

120 8.6 Analysis of Closed-loop System with K hin e e e e p e e e e p e e e e p e e e e p e e e e p e e e e p Gamma value achieved: The controller obtained is of 4th order. To check the achieved H -norm of the closed-loop system that is found to be 0.95 in the iteration, the following command line can be used. hinfnorm(clp) 8.6 Analysis of Closed-loop System with K hin From the last section, it is obvious that the required condition [ ] Wp (I + G mds K) 1 W u K(I + G mds K) 1 < 1 is satisfied and thus the closed-loop system achieves nominal performance requirements. Further, we use the following commands to form the transfer function of Figure 8.13, with the designed (sub)optimal H controller K hin, to analyse the behaviour of the closed-loop system. minfo(k_hin) spoles(k_hin) omega = logspace(-2,6,100); clp_g = frsp(clp,omega); vplot( liv,lm,vsvd(clp_g)) title( Singular Value Plot of clp ) xlabel( Frequency (rad/sec) ) ylabel( Magnitude ) Figure 8.14 shows the singular values of the closed-loop system clp. Since clp is of dimensions 2 1, there is just one (nonzero) singular value at each frequency. Since the H -norm of the closed-loop system is less than one, the condition W p (I + G mds K) 1 < 1 is satisfied in the given case. This may be checked by computing the sensitivity function of the closed-loop system and comparing it with the inverse of the performance weighting function. The following file sen mds.m can be used for this purpose.

121 118 8 Robust Control of a Mass-Damper-Spring System 0.95 Singular Value Plot of clp Magnitude Frequency (rad/s) Fig Singular values of the closed-loop system with K hin File sen mds.m sim_mds K = K_hin; clp = starp(sim_ic,k); % % inverse performance weighting function wts_mds omega = logspace(-4,2,100); Wp_g = frsp(wp,omega); Wpi_g = minv(wp_g); % % sensitivity function sen_loop = sel(clp,4,5); sen_g = frsp(sen_loop,omega); vplot( liv,lm,wpi_g, m--,vnorm(sen_g), y- ) title( CLOSED-LOOP SENSITIVITY FUNCTION ) xlabel( Frequency (rad/sec) ) ylabel( Magnitude ) The result of the comparison is shown in Figure It is seen that in the low-frequency range the sensitivity function lies below 1 w p. The test for robust stability is conducted on the leading 3 3 diagonal block of the transfer function matrix clp and the test for nominal performance is tested on its bottom-right (the (4 4) element), 2 1 transfer function. These transfer functions may be obtained by using the command sel from clp, and their frequency responses can be calculated afterwards. Or, it is

122 8.6 Analysis of Closed-loop System with K hin Closed loop sensitivity function Magnitude Solid line nominal sensitivity function Dashed line: inverse weighting function Frequency (rad/s) Fig Sensitivity function with K hin possible to calculate the frequency response clp g of the whole system clp first, and then use sel to obtain corresponding frequency responses. The closed-loop transfer function matrix clp ic is obtainable from the open-loop interconnection sys ic together with the controller K by implementing the function starp. Since the uncertainty considered is structured, verification of the robust stability and robust performance needs the frequency response in terms of µ values. The syntax of the command mu is as the following. [bnds,dvec,sens,pvec] = mu(matin,deltaset) The function mu for µ-analysis computes upper and lower bounds for the structured singular value of the matrix matin with respect to the block structure deltaset. The matrix matin may be a matrix of the type CONSTANT or a matrix of the type VARYING, such as the frequency response of the closedloop system. The command mu finds the upper and lower bounds for µ values in the 1 2 matrix bnds of the type VARYING, the frequency-dependent D- scaling matrices in dvec, the frequency-dependent perturbation, related to the lower bound, in pvec and the sensitivity of the upper bound to the D-scalings in sens. To achieve robust stability it is necessary that the upper bound of µ values is less than 1 over the frequency range. In the present example, the frequency response in terms of µ values is denoted by rob stab and the block structure is set by

123 120 8 Robust Control of a Mass-Damper-Spring System blksr = [-1 1;-1 1;-1 1] This means that in the robust stability analysis the parametric perturbations are assumed to be real. However, for better convergence of the algorithm that computes the lower bound of µ, we include 1% complex perturbations. This may, of course, produce some conservativeness in the design. The file rob mds.m below analyses the robust stability of the designed system, in which K = K_hin; has been defined in advance. The same file may be used for robust stability analysis of other controllers K. File rob mds.m clp_ic = starp(sys_ic,k); omega = logspace(-1,2,100); clp_g = frsp(clp_ic,omega); blkrsr = [-1 1;-1 1;-1 1]; rob_stab = sel(clp_g,[1:3],[1:3]); pdim = ynum(rob_stab); fixl = [eye(pdim); 0.1*eye(pdim)]; % 1% Complex fixr = fixl ; blkrs = [blkrsr; abs(blkrsr)]; clp_mix = mmult(fixl,rob_stab,fixr); [rbnds,rowd,sens,rowp,rowg] = mu(clp_mix,blkrs); disp( ) disp([ mu-robust stability:... num2str(pkvnorm(sel(rbnds,1,1)))]) disp( ) vplot( liv,lm,sel(rbnds,1,1), y--,sel(rbnds,1,2), m-,... vnorm(rob_stab), c-. ) title( ROBUST STABILITY ) xlabel( Frequency (rad/s) ) ylabel( mu ) The frequency responses of the upper and lower bounds of µ are shown in Figure It is clear from the figure that the closed-loop system with K hin achieves robust stability. The maximum value of µ is that shows 1 that structured perturbations with norm less than are allowable, i.e., the stability maintains for < In the same figure we also plot the frequency response of the maximum singular value of the leading 3 3 transfer function matrix, which characterises the robust stability with respect to unstructured perturbations. It is seen that the latter is greater than 1 over the frequency interval [0.5, 1] rad/s roughly. Thus, the robust stability

124 8.6 Analysis of Closed-loop System with K hin Robust stability µ Solid line: upper bound Dashed line: lower bound Dash dotted line: H bound Frequency (rad/s) Fig Robust stability analysis of K hin is not preserved if the uncertainty is unstructured, which shows that the µ values give less conservative results if further information is known about the uncertainty. The nominal performance of the closed-loop system (with respect to the weighting performance function) is analysed by means of the frequency response of the lower-right 2 1 transfer function block of clp. The nominal performance is achieved, if and only if for the frequency range considered the response magnitude is less than 1. The robust performance of the closed-loop system with K hin may be tested by means of the µ-analysis. The closed-loop transfer function clp have four inputs and five outputs. The first three inputs/outputs correspond to the three channels of perturbations, while the 4th input/4th and 5th outputs pair corresponds to the weighted mixed sensitivity function. Hence, for µ- analysis of the robust performance the block structure must consist of a 3 3 uncertainty block and an 1 2 performance block as {[ ] } 0 P := : R 3 3, 0 F C 1 2 F The robust performance of the designed system is achieved, if and only if µ P ( ) is less than 1 for each frequency.

125 122 8 Robust Control of a Mass-Damper-Spring System The nominal and robust performance of the closed-loop system with the controller K hin is analysed using the file nrp mds.m, which may be used for other controllers as well by defining, accordingly, the controller K. File nrp mds.m clp_ic = starp(sys_ic,k);; omega = logspace(-1,2,100); clp_g = frsp(clp_ic,omega); blkrsr = [-1 1;-1 1;-1 1]; % % nominal performance nom_perf = sel(clp_g,4,4); % % robust performance rob_perf = clp_g; blkrp = [blkrsr;[1 2]]; bndsrp = mu(rob_perf,blkrp); vplot( liv,lm,vnorm(nom_perf), y-,sel(bndsrp,1,1), m--,... sel(bndsrp,1,2), c-- ) tmp1 = NOMINAL PERFORMANCE (solid) and ; tmp2 = ROBUST PERFORMANCE (dashed) ; title([tmp1 tmp2]) xlabel( Frequency (rad/s) ) disp( ) disp([ mu-robust performance:... num2str(pkvnorm(sel(bndsrp,1,1)))]) disp( ) The frequency responses showing the nominal and robust performance are given in Figure It is seen from this figure that the system with K hin achieves nominal performance but fails to satisfy the robust performance criterion. This conclusion follows from the fact that the frequency response of the nominal performance has a maximum of 0.95, while the µ curve for the robust performance has a maximum of With respect to the robust performance, this means in the present case that the size of the perturbation matrix must be limited to , to ensure the (perturbed) performance function satisfying [ ] Wp (I + F U (G mds, G )K) 1 W u K(I + F U (G mds, G )K) 1 1 The closed-loop simulation with the file clp mds.m includes determination of the transient responses in respect to the reference and disturbance, in which the command trsp is used.

126 8.6 Analysis of Closed-loop System with K hin Nominal performance (solid) and robust performance (dashed) Frequency (rad/s) Fig Nominal and robust performance of K hin File clp mds.m % response to the reference sim_mds clp = starp(sim_ic,k); timedata = [ ]; stepdata = [1 0 1]; dist = 0; ref = step_tr(timedata,stepdata,0.1,60); u = abv(0,0,0,ref,dist); y = trsp(clp,u,60,0.1); figure(1) vplot(sel(y,4,1), y-,ref, r-- ) title( CLOSED-LOOP TRANSIENT RESPONSE ) xlabel( Time (secs) ) ylabel( y (m) ) % % response to the disturbance timedata = [ ]; stepdata = [1 0 1]; dist = step_tr(timedata,stepdata,0.1,60); ref = 0; u = abv(0,0,0,ref,dist); y = trsp(clp,u,60,0.1); figure(2)

127 124 8 Robust Control of a Mass-Damper-Spring System vplot(sel(y,4,1), y-,dist, r-- ) title( TRANSIENT RESPONSE TO THE DISTURBANCE ) xlabel( Time (secs) ) ylabel( y (m) ) The transient responses to the reference input and to the disturbance input are shown in Figures 8.18 and 8.19, respectively. The transient responses are relatively slow and have slight overshoots. 1.4 Closed loop transient response y (m) Time (s) Fig Transient response to reference input (K hin ) 1.5 Transient response of the disturbance y (m) Time (s) Fig Transient response to disturbance input (K hin )

128 8.7 H Loop-shaping Design H Loop-shaping Design Let us consider now using the H loop-shaping design procedure (LSDP) for the mass-damper-spring system. For this aim the pre- and postcompensators (see Chapter 5) are taken as 8s +1 W 1 (s) =2 0.9, W 2(s) =1 The precompensator W 1 is chosen so as to introduce an integrating effect in the low-frequency range that leads to good attenuation of disturbances Frequency response of the precompensator Magnitude Frequency (rad/s) Fig Frequency response of the precompensator The frequency response of the precompensator W 1 is shown in Figure 8.20, and the frequency responses of the plant and of the shaped plant are given in Figure The H LSDP controller is computed by calling the function ncfsyn from the Robust Control Toolbox. The syntax, input and output arguments of ncfsyn are [sysk,emax,sysobs] = ncfsyn(sysgw,factor,opt) The arguments have the following meanings: Input arguments sysgw the shaped plant (matrix of type SYSTEM);

129 126 8 Robust Control of a Mass-Damper-Spring System 10 2 Frequency responses of the plant and shaped plant Magnitude Solid line frequency response of the plant Dashed line: frequency response of the shaped plant Frequency (rad/s) Fig Frequency responses of the plant and shaped plant factor = 1 implies that optimal controller is required. > 1 implies that suboptimal controller is required achieving a performance that is FACTOR times less than the optimal one; opt ref the controller includes an additional set of reference signals and should be implemented as a two-degree-of-freedom controller (optional). Output arguments sysk H loop-shaping controller; emax Stability margin that shows the robustness to unstructured perturbations. emax is always less than 1 and values of emax larger than 0.3 generally indicate good robustness margins; sysobs H controller with state observer. This variable is created only if factor>1 and opt = ref.

130 8.7 H Loop-shaping Design 127 The loop-shaping design of the mass-damper-spring system is executed by the file lsh mds.m below. The parameter factor is chosen as 1.1, which means that the resulted suboptimal controller will be close to the optimal one. The designed controller is named K lsh in the program. File lsh mds.m % % set the precompensator nuw1 = [2 1]; dnw1 = [0.9 0]; gainw1 = 8; w1 = nd2sys(nuw1,dnw1,gainw1); % % frequency response of w1 omega = logspace(-2,4,100); w1g = frsp(w1,omega); figure(1) vplot( liv,lm,w1g, r- ) title( Frequency response of the precompensator ) xlabel( Frequency (rad/sec) ) ylabel( Magnitude ) % % form the shaped plant G_l = sel(g,4,4); sysgw = mmult(g_l,w1); % % frequency responses of the plant and shaped plant omega = logspace(-1,1,100); G_lg = frsp(g_l,omega); sysgwg = frsp(sysgw,omega); figure(2) vplot( liv,lm,g_lg, c-,sysgwg, m-- ) title( Frequency responses of the plant and shaped plant ) xlabel( Frequency (rad/sec) ) ylabel( Magnitude ) % % compute the suboptimal positive feedback controller [sysk,emax] = ncfsyn(sysgw,1.1); disp([ Stability margin emax = num2str(emax)]); K = mmult(w1,sysk); % % construct the negative feedback controller [ak,bk,ck,dk] = unpck(k);

131 128 8 Robust Control of a Mass-Damper-Spring System ck = -ck; dk = -dk; K_lsh = pck(ak,bk,ck,dk); 8.8 Assessment of H Loop-shaping Design The H LSDP controller K lsh ensures a stability margin emax = 0.395, which is a good indication with respect to the robust stability. As in the case of the previous H design, the order of the resulting controller is equal to Closed loop sensitivity function Magnitude Solid line nom nal sensitivity function Dashed line: inverse weighting function Frequency (rad/s) Fig Sensitivity function of K lsh The sensitivity function of the closed-loop system of K lsh is shown in Figure It is clear that the requirement for disturbance attenuation is satisfied. To check the robust stability of the designed closed-loop system with K lsh, the upper- and low-bounds of µ values of the corresponding transfer function matrix (the leading 3 3 diagonal block of clp with K lsh ) are shown in Figure It is clear from that figure that the closed-loop system achieves robust stability for the parametric perturbations under consideration. The nominal and robust performance of the closed-loop system are assessed in Figure It is seen in the figure that with the designed H

132 8.8 Assessment of H Loop-shaping Design Robust stability 10 1 µ Solid ine upper bound Dashed line: lower bound Frequency (rad/s) Fig Robust stability of closed-loop system with K lsh LSDP controller the closed-loop system achieves both nominal and robust performance. 1 Nominal performance (solid) and robust performance (dashed) Frequency (rad/s) Fig Nominal and robust performance of K lsh

133 130 8 Robust Control of a Mass-Damper-Spring System Further, the transient responses of the closed-loop system are obtained, once more using the file clp mds.m, and are shown in Figures 8.25 and The time responses are slower than in the case of the H controller but with smaller overshoots (less than 25%). 1.4 Closed loop transient response y (m) Time (s) Fig Transient response to reference input (K lsh ) 1 Transient response to the disturbance y (m) Time (s) Fig Transient response to disturbance input (K lsh )

134

135 132 8 Robust Control of a Mass-Damper-Spring System d 1 (s) D r (s) = 0 d 2 (s) d 3 (s) d 4 (s) where d 1 (s), d 2 (s), d 3 (s), d 4 (s) are scaling transfer functions. The finding of a minimum value of the cost function and construction of a controller K, which would achieve performance arbitrary close to the optimal level, is called the µ-synthesis. In other words, the aim of µ-synthesis is to find a stabilising controller K, such that for each frequency ω [0, ] the structured singular value is to satisfy the condition µ P [F L (P, K)(jω)] < 1 Fulfilment of the above condition guarantees robust performance of the closedloop system, i.e., [ ] Wp (I + F U (G mds, )K) 1 W u K(I + F U (G mds, )K) 1 < 1 The µ-synthesis is executed by the M-file dkit from the Robust Control Toolbox, which automates the procedure by using D-K iterations. To implement the function dkit it is necessary to prepare a file such as the following dk mds.m, in which the necessary variables are assigned. The file below can be easily modified for the µ-synthesis of other systems. File dk mds.m % dk_mds % % This script file contains the USER DEFINED VARIABLES % for the mutools DKIT script file. The user MUST define % the 5 variables below. % % % REQUIRED USER DEFINED VARIABLES % % % % Nominal plant interconnection structure NOMINAL_DK = sys_ic; % Number of measurements NMEAS_DK = 1; % Number of control inputs NCONT_DK = 1; % Block structure for mu calculation

136 BLK_DK = [-1 1;-1 1;-1 1;1 2]; % Frequency response range OMEGA_DK = logspace(-2,4,100); 8.9 µ-synthesis and D-K Iterations 133 AUTOINFO_DK = [ *ones(1,size(BLK_DK,1))]; NAME_DK = mds ; % end of dk_mds % The variables, set in the above file, have the following meanings. NOMINAL DK A variable containing the nominal open-loop system NMEAS DK Number of measurements (number of inputs of K) NCONT DK Number of control inputs (number of outputs of K) BLK DK Block structure for computation of µ (involves the uncertainty blocks as well as the performance block) OMEGA DK AUTINFO DK Frequency response range Variable, which is used for full automation of the D-K-iteration. It has the following components: AUTOINFO DK(1) Initial iteration AUTOINFO DK(2) Final iteration AUTOINFO DK(3) Visualisation flag (1 - the results appear on the display, 2 - the results are not displayed) The rest elements in AUTOINFO DK (their number is equal to the number of blocks in BLK DK) set the maximum dynamic order of the transfer functions during the D-scaling NAME DK Suffix to the names of the saved variables After preparing the file dk mds, it is necessary to assign the name of the string variable DK DEF NAME, in the MATLAB r workspace, to DK MDS. Now the command dkit can be called, with which begins the D-K-iteration procedure. The whole design is completed by the file ms mds.m below. File ms mds.m DK_DEF_NAME = dk_mds ; dkit

137 134 8 Robust Control of a Mass-Damper-Spring System K_mu = k_dk4mds; Note that the µ-controller named as K µ is obtained after four iterations in this exercise. The results from the first iteration are listed below, in which the numbers have been shortened for display. Iteration Number: Resetting value of Gamma min based on D_11, D_12, D_21 terms Test bounds: < gamma <= gamma hamx_eig xinf_eig hamy_eig yinf_eig nrho_xy p/f e e e e p e e e e p e e e e p e e e e p e e e e p e e e e p e e e e # f e e e e p Gamma value achieved: Calculating MU of closed-loop system: points completed points completed Iteration Summary Iteration # 1 Controller Order 4 Total D-Scale Order 0 Gamma Acheived 3.097

138 Peak mu-value Auto Fit in Progress Block 1, MaxOrder=4, Order = Block 2, MaxOrder=4, Order = Block 3, MaxOrder=4, Order = Block 4, MaxOrder=4, Order = µ-synthesis and D-K Iterations 135 The results obtained may be interpreted in the following way. First, the design of a fourth-order H controller is finished (initially the open-loop system is of fourth order), with the scaling matrix being set equal to the unit matrix. With this controller one achieves a value of γ equal to and maximum value of µ equal to Then, an approximation (curve fitting) of the diagonal elements of the scaling matrix, obtained in the computation of µ, takes place. These elements are functions of the frequency and are approximated by stable minimum phase transfer functions whose orders do not exceed 4. It is seen from the results that the first diagonal element is approximated by a fourth-order transfer function, the second one by a third-order transfer function, the third one by a second-order transfer function, and the fourth one by a scalar. These transfer functions are absorbed into the transfer function P, which is to be used in the H design at the second iteration. Altogether, the order of the absorbed transfer functions is = 18. This increase of the open-loop system order leads to the increase of the controller order at the second iteration to 22. The structured singular value µ of the closed-loop system with the H controller from the first step and the H -norm of the scaled system are shown in Figure The latter is an upper bound of the former. The second iteration gives: Iteration Number: Resetting value of Gamma min based on D_11, D_12, D_21 terms Test bounds: < gamma <= gamma hamx_eig xinf_eig hamy_eig yinf_eig nrho_xy p/f e e e e p e e e e p e e e e # f e e e e p e e e e p e e e e p Gamma value achieved: Calculating MU of closed-loop system:

139 136 8 Robust Control of a Mass-Damper-Spring System 2.4 Closed loop MU: Controller MU Frequency (rad/s) 2.4 MU bounds(solid) and D*M*D 1 (dashed): Iteration Frequency (rad/s) Fig µ values and D scaling at first iteration points completed points completed

140 Iteration Summary Iteration # 1 2 Controller Order 4 22 Total D-Scale Order 0 18 Gamma Acheived Peak mu-value Auto Fit in Progress Block 1, MaxOrder=4, Order = Block 2, MaxOrder=4, Order = Block 3, MaxOrder=4, Order = Block 4, MaxOrder=4, Order = µ-synthesis and D-K Iterations 137 After this iteration, the value of γ decreases to 1.333, and the value of µ reduces to This is achieved, however, by a 22nd-order controller. The corresponding closed-loop system obtained is of 26th order. The diagonal elements of the scaling matrix are approximated by transfer functions of orders 4, 3, 3 and 0, respectively, which increases the order of the open-loop system by 20. Thus, the open-loop system is now of 24th order. Note that the increase of the open-loop system order is significant for the controller order only at the next step and there is no accumulation of order in the absorbed transfer functions in the sense that at each iteration new scaling functions are generated and old ones are discarded. The µ values and the H -norm of DMD 1 at Iteration 2 are shown in Figure Note the approximation error in the range from 1 rad/s to 1000 rad/s. The results after the third iteration are: Iteration Number: Resetting value of Gamma min based on D_11, D_12, D_21 terms Test bounds: < gamma <= gamma hamx_eig xinf_eig hamy_eig yinf_eig nrho_xy p/f e e e e p e e e e p e e e e p e e e e # f e e e e # f e e e e # f Gamma value achieved:

141 138 8 Robust Control of a Mass-Damper-Spring System 1.3 Closed loop MU: Controller MU Frequency (rad/s) 1.8 MU bounds(solid) and D*M*D 1 (dashed): Iteration Frequency (rad/s) Fig µ and D scaling at second iteration Calculating MU of closed-loop system: points completed points completed

142 8.9 µ-synthesis and D-K Iterations Iteration Summary Iteration # Controller Order Total D-Scale Order Gamma Acheived Peak mu-value Auto Fit in Progress Block 1, MaxOrder=4, Order = Block 2, MaxOrder=4, Order = Block 3, MaxOrder=4, Order = Block 4, MaxOrder=4, Order = 0 The value of γ after this iteration is 1.085, and the maximum value of µ is The elements of the scaling matrix are approximated by transfer functions of 3rd, 3rd, 2nd and 0th orders, respectively, so that the order of the open-loop system for computation of a controller at the next iteration becomes 20. The µ values of M and the H -norm of DMD 1 at the third iteration are shown in Figure After the fourth iteration we obtain: Iteration Number: Resetting value of Gamma min based on D_11, D_12, D_21 terms Test bounds: < gamma <= gamma hamx_eig xinf_eig hamy_eig yinf_eig nrho_xy p/f e e e e p e e e e p e e e e p e e e e p Gamma value achieved: Calculating MU of closed-loop system: points completed

143 140 8 Robust Control of a Mass-Damper-Spring System 1 15 Closed loop MU Controller MU Frequency (rad/s) 1.15 MU bounds (solid) and D*M*D 1 (dashed): Iteration Frequency (rad/s) Fig µ and D scaling at third iteration points completed Iteration Summary Iteration # Controller Order

144 8.10 Robust Stability and Performance of K mu 141 Total D-Scale Order Gamma Acheived Peak mu-value Next MU iteration number: 5 It is seen that at this iteration the value of γ decreases to and the value of µ becomes equal to 0.965, which means that robust performance has been achieved. The µ plot of the closed-loop system with the newly obtained controller K mu at Iteration 4 is shown in Figure Closed loop MU Controller MU Frequency (rad/s) Fig µ plot after fourth iteration 8.10 Robust Stability and Performance of K mu In Figure 8.32 we show the sensitivity function of the closed-loop system with the 20th-order controller K mu. It is clear that the sensitivity function is below the inverse of the performance weighting function, which shows that the nominal performance is achieved. The robust stability of the closed-loop system with µ-controller is analysed by calling the file rob mds.m, with defining in advance K = K_mu; The upper and lower bounds of µ are shown in Figure It is seen that in this case the robust stability of the closed-loop system is achieved since the maximum value of µ is equal to 0.468, i.e., the system stability is preserved for <

145 142 8 Robust Control of a Mass-Damper-Spring System 10 1 Closed loop sensitivity function Magnitude Solid line nominal sensitivity function Dashed line: inverse weighting function Frequency (rad/s) Fig Sensitivity function of K mu The frequency responses of the nominal and robust performance criteria are obtained by the commands from the file nrp mds.m, also used in the analysis of the H controller, and are shown in Figure The maximum value of µ in the robust performance analysis is This means that the closed-loop system with µ-controller achieves robust performance since [ ] Wp (I + F U (G mds, )K) 1 W u K(I + F U (G mds, )K) 1 < 0.96 for every diagonal with < 1. To illustrate the robust properties of the system with the µ-controller, we show in Figure 8.35 the frequency response of the sensitivity functions of the perturbed closed-loop systems, obtained by using the file psf mds.m below. File psf mds.m % % Sensitivity functions of perturbed systems % sim_mds clp = starp(sim_ic,k);

146 8.10 Robust Stability and Performance of K mu Robust stability 10 1 µ Solid line: upper bound Dashed line: lower bound Frequency (rad/s) Fig Robust stability of K mu % % inverse performance weighting function wts_mds omega = logspace(-4,2,100); Wp_g = frsp(wp,omega); Wpi_g = minv(wp_g); figure(1) vplot( liv,lm,wpi_g, m-- ) hold on [delta1,delta2,delta3] = ndgrid([-1 0 1],[-1 0 1],... [-1 0 1]); for j = 1:27 delta = diag([delta1(j),delta2(j),delta3(j)]); clp = starp(delta,starp(sim_ic,k)); sen_loop = sel(clp,1,2); clp_g = frsp(sen_loop,omega); figure(1) vplot( liv,lm,clp_g, c- ) hold on end title( PERTURBED SENSITIVITY FUNCTIONS ) xlabel( Frequency (rad/s) )

147 144 8 Robust Control of a Mass-Damper-Spring System 1 Nominal performance (solid) and robust performance (dashed) Frequency (rad/s) Fig Nominal and robust performance of K mu ylabel( Magnitude ) hold off It is seen that the frequency responses of the perturbed sensitivity functions remain below the frequency response of the inverse of the performance weighting function. In Figure 8.36 we show the magnitude responses of [ ] Wp (I + F U (G mds, )K) 1 W u K(I + F U (G mds, )K) 1 (the weighted, mixed sensitivity function) of the perturbed system, using the following file ppf mds.m. It is clear from Figure 8.36 that for all perturbed systems, the magnitudes over the frequency range are below the criterion for the closed-loop system robust performance. File ppf mds.m % % Performance of the perturbed closed-loop systems % % perturbed peformance

148 8.10 Robust Stability and Performance of K mu Perturbed sensitivity functions Magnitude Solid line perturbed sensitivity functions Dashed line: inverse weighting function Frequency (rad/s) Fig Sensitivity functions of perturbed systems with K mu omega = logspace(-2,2,100); [delta1,delta2,delta3] = ndgrid([-1 0 1],[-1 0 1],... [-1 0 1]); for j = 1:27 delta = diag([delta1(j),delta2(j),delta3(j)]); clp = starp(delta,starp(sys_ic,k)); clp_g = frsp(clp,omega); figure(1) vplot( liv,lm,vsvd(sel(clp_g,1:2,1)), c- ) hold on end % % robust performance clp_ic = starp(sys_ic,k); clp_g = frsp(clp_ic,omega); % real perturbations blkrsr = [-1 1;-1 1;-1 1]; rob_perf = clp_g; blkrp = [blkrsr;[1 2]]; bndsrp = mu(rob_perf,blkrp); figure(1)

149 146 8 Robust Control of a Mass-Damper-Spring System Perturbed performance (solid) and robust performance (dashed) Frequency (rad/s) Fig Performance of perturbed systems with K mu vplot( liv,lm,sel(bndsrp,1,1), y--,sel(bndsrp,1,2), m-- ) tmp1 = PERTURBED PERFORMANCE (solid) and ; tmp2 = ROBUST PERFORMANCE(dashed) ; title([tmp1 tmp2]) xlabel( Frequency (rad/s) ) hold off In Figure 8.37 we show the frequency responses of the perturbed closedloop systems. These responses are obtained by the commands included in the file pcf mds.m. File pcf mds.m % % Frequency responses of the perturbed closed-loop % systems % sim_mds omega = logspace(-1,2,100); [delta1,delta2,delta3] = ndgrid([-1 0 1],[-1 0 1],... [-1 0 1]);

150 8.10 Robust Stability and Performance of K mu Bode plots of perturbed closed loop systems Magnitude (Log) Frequency (rad/s) Phase (deg) Frequency (rad/s) Fig Frequency responses of perturbed systems with K mu for j = 1:27 delta = diag([delta1(j),delta2(j),delta3(j)]); clp = starp(delta,starp(sim_ic,k)); clp_g = frsp(clp,omega); figure(1) vplot( bode,sel(clp_g,1,1), c- ) subplot(2,1,1) hold on subplot(2,1,2) hold on end subplot(2,1,1) clp = starp(sim_ic,k); clp_g = frsp(clp,omega); vplot( bode,sel(clp_g,4,4), r-- ) subplot(2,1,1) title( BODE PLOTS OF PERTURBED CLOSED-LOOP SYSTEMS ) hold off

151 148 8 Robust Control of a Mass-Damper-Spring System subplot(2,1,2) hold off We see from Figure 8.37 that the frequency responses of the closed-loop, perturbed systems maintain their magnitude over a wider frequency band, in comparison to that of the open-loop system (Figure 8.7). Hence, faster responses would be expected with the designed closed-loop system. In Figures 8.38 and 8.39 we show the transient responses of the system with µ-controller. Comparing with the responses in the case of the LSDP controller (Figures 8.25 and 8.26), we see that the µ-controller ensures smaller overshoot (10%) while maintaining the similar settling time. 1.2 Closed loop transient response y (m) Time (s) Fig Transient response to reference input (K mu ) In Figure 8.40 we show the transient responses (to the reference input) of a family of perturbed closed-loop systems with µ-controller. In all cases the overshoot does not exceed 20% that demonstrates satisfactory performance in the presence of parametric perturbations, i.e., the closed-loop system achieves robust performance.

152 8.10 Robust Stability and Performance of K mu Transient response to the disturbance y (m) Time (s) Fig Transient response to disturbance input (K mu) 1.2 Transient responses of perturbed systems y (m) Time (s) Fig Transient responses of perturbed systems (K mu )

153 150 8 Robust Control of a Mass-Damper-Spring System 8.11 Comparison of H, H LSDP and µ-controllers The comparison of the designed systems with H, H loop-shaping and µ-controllers begins with the frequency responses of these three controllers. These responses are produced by using the file kf mds.m below and are shown in Figure File kf mds.m omega = logspace(-2,3,100); % % H_infinity controller K_hing = frsp(k_hin,omega); % % Loop Shaping controller K_lshg = frsp(k_lsh,omega); % % mu-controller K_mug = frsp(k_mu,omega); % figure(1) vplot( bode,k_hing, r-,k_lshg, m--,k_mug, c-. ) subplot(2,1,1) title( BODE PLOTS OF ALL CONTROLLERS ) subplot(2,1,2) It can be seen from Figure 8.41 that the H loop-shaping controller and µ- controller are characterised by larger gains compared with the H controller, in the frequency range above 5 rad/s. All the phase responses are close to each other up to about 3 rad/s and after that frequency the H controller continues to introduce a larger phase delay. The comparison of frequency responses of the nominal closed-loop systems is conducted by the commands included in the file clf mds.m, and the results are shown in Figure File clf mds.m sim_mds omega = logspace(-2,2,100); % % H_infinity controller clp_hin = starp(sim_ic,k_hin); ref_hin = sel(clp_hin,4,4); ref_hing = frsp(ref_hin,omega);

154 8.11 Comparison of H, H LSDP and µ-controllers Bode plots of all controllers Magnitude (Log) Solid line: H controller Dashed line: loop shaping controller Dash dotted line: µ controller Frequency (rad/s) Phase (deg) Frequency (rad/s) Fig Frequency responses of controllers % % Loop Shaping controller clp_lsh = starp(sim_ic,k_lsh); ref_lsh = sel(clp_lsh,4,4); ref_lshg = frsp(ref_lsh,omega); % % mu-controller clp_mu = starp(sim_ic,k_mu); ref_mu = sel(clp_mu,4,4); ref_mug = frsp(ref_mu,omega); figure(1) vplot( bode,ref_hing, r-,ref_lshg, m--,ref_mug, c-. ) subplot(2,1,1) title( BODE PLOTS OF CLOSED-LOOP SYSTEMS ) subplot(2,1,2) Figure 8.42 shows that the systems with the H loop-shaping and µ- controllers are characterised by larger bandwidth that leads to faster dynamics of the corresponding closed-loop systems.

155 152 8 Robust Control of a Mass-Damper-Spring System 10 2 Bode plots of closed loop systems Magnitude (Log) Solid line: H controller Dashed line: loop shaping controller Dash dotted line: µ controller Frequency (rad/s) Phase (deg) Frequency (rad/s) Fig Frequency responses of closed-loop systems The comparison of the robust stability is conducted by the file rbs mds.m. File rbs mds.m omega = logspace(-1,2,100); % Real perturbations blkrs_r = [-1 1;-1 1;-1 1]; blkrs = [blkrsr; abs(blkrsr)]; pdim = 3; % % Hinf controller clp_h = starp(sys_ic,k_hin); clp_hg = frsp(clp_h,omega); rob_stab = sel(clp_hg,[1:3],[1:3]); fixl = [eye(pdim); 0.1*eye(pdim)]; % 1% Complex fixr = fixl ; clp_mix = mmult(fixl,rob_stab,fixr);

156 8.11 Comparison of H, H LSDP and µ-controllers 153 rbnds_h = mu(clp_mix,blkrs); % % Loop Shaping controller clp_lsh = starp(sys_ic,k_lsh); clp_lshg = frsp(clp_lsh,omega); rob_stab = sel(clp_lshg,[1:3],[1:3]); fixl = [eye(pdim); 0.1*eye(pdim)]; % 1% Complex fixr = fixl ; clp_mix = mmult(fixl,rob_stab,fixr); rbnds_lsh = mu(clp_mix,blkrs); % % mu-controller clp_mu = starp(sys_ic,k_mu); clp_mug = frsp(clp_mu,omega); rob_stab = sel(clp_mug,[1:3],[1:3]); fixl = [eye(pdim); 0.1*eye(pdim)]; % 1% Complex fixr = fixl ; clp_mix = mmult(fixl,rob_stab,fixr); rbnds_mu = mu(clp_mix,blkrs); % figure(1) vplot( liv,lm,sel(rbnds_h,1,1), r-,... sel(rbnds_lsh,1,1), m--,... sel(rbnds_mu,1,1), c-. ) title( ROBUST STABILITY FOR ALL CONTROLLERS ) xlabel( Frequency (rad/s) ) ylabel( Upper bound of \mu ) The frequency responses of µ for three controllers are shown in Figure The system with the H loop-shaping controller is characterized with best robust stability since in this case the destabilising perturbations have the largest norm (note that the norm of these perturbations is inversely proportional to the maximum value of µ). The nominal performance of the closed-loop systems is obtained by the file prf mds.m. The frequency responses of the weighted sensitivity functions of the nominal systems are shown in Figure Again, the systems with the H loop-shaping and µ-controllers achieve better performance. File prf mds.m omega = logspace(-2,2,100); % % H_infinity controller clp_hin = starp(sys_ic,k_hin);

157 154 8 Robust Control of a Mass-Damper-Spring System 10 0 Robust stability for all controllers 10 1 Upper bound of µ 10 2 Solid line: H controller Dashed line: loop shaping controller 10 3 Dash dotted line: µ controller Frequency (rad/s) Fig Comparison of robust stability for 3 controllers prf_hin = sel(clp_hin,4,4); prf_hing = frsp(prf_hin,omega); % % Loop Shaping controller clp_lsh = starp(sys_ic,k_lsh); prf_lsh = sel(clp_lsh,4,4); prf_lshg = frsp(prf_lsh,omega); % % mu-controller clp_mu = starp(sys_ic,k_mu); prf_mu = sel(clp_mu,4,4); prf_mug = frsp(prf_mu,omega); figure(1) vplot( liv,m,vnorm(prf_hing), r-,vnorm(prf_lshg),... m--,vnorm(prf_mug), c-. ) title( NOMINAL PERFORMANCE: ALL CONTROLLERS ) xlabel( Frequency (rad/sec) ) The comparison of the robust performance is obtained by the file rbp mds.m.

158 8.11 Comparison of H, H LSDP and µ-controllers Nominal performance: all controllers 0.9 Solid line: H controller Dashed line: loop shaping controller 0.8 Dash dotted line: µ controller Frequency (rad/s) Fig Comparison of nominal performance for 3 controllers File rbp mds.m blkrsr = [-1 1;-1 1;-1 1]; blkrp = [blkrsr;[1 2]]; omega = logspace(-2,2,100); % % H_infinity controller clp_hin = starp(sys_ic,k_hin); rbp_hin = frsp(clp_hin,omega); bnd_hin = mu(rbp_hin,blkrp); % % Loop Shaping controller clp_lsh = starp(sys_ic,k_lsh); rbp_lsh = frsp(clp_lsh,omega); bnd_lsh = mu(rbp_lsh,blkrp); % % mu-controller clp_mu = starp(sys_ic,k_mu); rbp_mu = frsp(clp_mu,omega); bnd_mu = mu(rbp_mu,blkrp); figure(1)

159 156 8 Robust Control of a Mass-Damper-Spring System vplot( liv,m,bnd_hin, r-,bnd_lsh, m--,bnd_mu, c-. ) title( ROBUST PERFORMANCE: ALL CONTROLLERS ) xlabel( Frequency (rad/sec) ) ylabel( \mu ) text(2.d+0,1.7d+0, - H_\infty controller ) text(2.d+0,1.6d+0, -- Loop shaping controller ) text(2.d+0,1.5d+0, -. \mu-controller ) The µ values over the frequency range for all three designed systems are plotted in Figure This confirms again that the system with the H controller does not achieve the robust performance criterion. 1.8 Robust performance: all controllers 1.6 Solid line: H controller Dashed line: loop shaping controller 1.4 Dash dotted line: µ controller 1.2 µ Frequency (rad/s) Fig Comparison of robust performance for 3 controllers In summary, all three controllers ensure robust stability of the closed-loop system with respect to the parametric perturbations that are included in the 3 3 diagonal uncertainty matrix. However, the closed-loop system performance varies in a different way under the action of these diagonal perturbations. In the following file, pdc mds.m, we use the function wcperf, which allows us to find the worst-case perturbation with respect to the performance, and to compare the performance of the three systems when the norm of perturbations increases. (The execution of this file may be accompanied by some warnings.)

160 8.11 Comparison of H, H LSDP and µ-controllers 157 File pdc mds.m omega = logspace(-2,3,100); % Real perturbations blks = [-1 1;-1 1;-1 1]; % % H_infinity controller clp_hin = starp(sys_ic,k_hin); clp_hing = frsp(clp_hin,omega); % % Loop Shaping controller clp_lsh = starp(sys_ic,k_lsh); clp_lshg = frsp(clp_lsh,omega); % % mu-controller clp_mu = starp(sys_ic,k_mu); clp_mug = frsp(clp_mu,omega); % alpha = 0.1; npts = 10; [deltabadh,lowbndh,uppbndh] = wcperf(clp_hing,blks,... alpha,npts); [deltabadlsh,lowbndlsh,uppbndlsh] = wcperf(clp_lshg,... blks,alpha,npts); [deltabadmu,lowbndmu,uppbndmu] = wcperf(clp_mug,blks,... alpha,npts); figure(1) vplot(lowbndh, r-,uppbndh, r-,lowbndlsh, m--,... uppbndlsh, m--,lowbndmu, c-.,uppbndmu, c-. ) axis([ ]) title( PERFORMANCE DEGRADATION CURVES FOR ALL CONTROLLERS ) xlabel( Size of Uncertainty ) text(1.0,0.6, -H_\infty controller ) text(1.0,0.4, -- Loop shaping controller ) text(1.0,0.2, -. \mu-controller ) The results in Figure 8.46 show that the H loop-shaping controller and the µ-controller ensure robust performance for larger perturbations, with the former slightly outperforming the latter. The closed-loop performance deteriorates most rapidly with increasing perturbation magnitude in the case of the H controller. The comparison results indicate that in the present exercise the H loopshaping controller might be the best one to choose in terms of system robustness, though the µ-controller is not that far behind. It is important to stress that in the above comparison the µ-controller is a reduced-order one of order 4. The order of the original µ-controller is actually

161 158 8 Robust Control of a Mass-Damper-Spring System 2 Performance degradation curves for all controllers Solid lines: H controller 0.4 Dashed lines: loop shaping controller 0.2 Dash dotted lines: µ controller Size of Uncertainty Fig Performance degradation for 3 controllers 20. However, the use of such a reduced-order µ-controller will be justified in the next section, which shows that the reduced-order controller does not seriously deteriorate the closed-loop system performance. It is also important to point out that for different design cases these three design approaches may well produce different results. That is, even the use of the H controller may lead to acceptable results in terms of performance and controller complexity. However, in general, in the case of structured uncertainty, the µ-synthesis will always produce more satisfactory and less conservative controllers Order Reduction of µ-controller As shown in Section 8.9, the order of the µ-controller K mu is 20, which makes it difficult in implementation. A reduced-order controller would be usually preferred. Various methods may be used to reduce the order, as discussed in Chapter 7. In this case study, the Hankel-norm approximation is used and implemented in the file red mds.m. Two important commands in the file are sysbal and hankmr. The command sysbal generates the balanced realisation of a system (input argument) of the type SYSTEM. This command removes the unobservable and/or uncontrollable modes, if the system is not minimal. The command sysbal also returns the Hankel singular values of the system that

162 8.12 Order Reduction of µ-controller 159 can be used to choose the order to be reduced. To use the file red mds.m, first define K = K_mu; File red mds.m omega = logspace(-2,4,100); K_g = frsp(k,omega); [Kb,hsig] = sysbal(k); Kred = hankmr(kb,hsig,4, d ); Kred_g = frsp(kred,omega); vplot( bode,k_g, y-,kred_g, m-- ) subplot(2,1,1) title( BODE PLOTS OF FULL AND REDUCED ORDER CONTROLLERS ) subplot(2,1,2) K = Kred; In the present case the balanced realization Kb turns out to be of 20th order as well, which means that the state-space model of the µ-controller is already minimal. The Hankel singular values are hsig = 1.0e+003 *

163 160 8 Robust Control of a Mass-Damper-Spring System Some of these values are very small, which suggests that the controller order can be greatly reduced. In this exercise this order is set equal to 4 in the command hankmr and the test with this reduced-order controller shows that the closed-loop system obtained is stable. Actually, a 3rd-order controller has been tried as well, but noticeable differences exist in the frequency responses in the range of rad/s. The system matrices of this 4th order controller are [Ak,Bk,Ck,Dk] = unpck(k) Ak = Bk = Ck = Dk = In Figure 8.47 we display the frequency responses of the full-order and reduced-order controllers. The responses plots practically coincide with each other, for frequencies up to 100 rad/s (up to about 1000 rad/s in magnitude) that ensures almost the same closed-loop performance for both controllers. In particular, the transient responses of the closed-loop systems with fullorder and reduced-order controllers are practically indistinguishable (compare Figure 8.48 with Figure 8.38). Clearly, the 4th-order controller is implemented much easier compared to the 20th-order controller.

164 8.12 Order Reduction of µ-controller Bode plots of full and reduced order contollers Magnitude (Log) Solid line: full order controller Dashed line: reduced order controller Frequency (rad/s) 50 Phase (deg) Frequency (rad/s) Fig Frequency responses of full- and reduced-order controllers 1.2 Closed loop transient response y (m) Time (s) Fig Transient response for reduced-order controller

165 162 8 Robust Control of a Mass-Damper-Spring System 8.13 Conclusions The design exercise of the mass-damper-spring system leads to the following conclusions. Even for a low-order plant such as the mass-damper-spring system the derivation of the uncertainty model may not be straightforward. For a system with parametric perturbations, it has to form a standard configuration in order to use the analysis and design commands from the Robust Control Toolbox. In this procedure, it may be convenient to consider separately the uncertain parameters, describe these perturbation influences by simple LFTs and construct the whole uncertainty model of the plant by using the function sysic. Finding appropriate weighting functions is a crucial step in robust control designs. It usually involves trial and error. Design experience and knowledge of the plants will help in choosing weighting functions. Best design results for this particular system are obtained by using the H loop-shaping design procedure and µ-synthesis. With nearly identical robustness properties, the µ-controller gives better transient responses with smaller overshoot than the H LSDP controller. Even for a second-order plant like this, the order of the µ-controller may be very high (20 in the given design). This makes it necessary to apply model reductions. Usually, the order may be reduced significantly without serious performance degradation. Notes and References The derivation of the uncertainty model of mass-damper-spring system is shown in [175, Chapter 10]. A model, obtained by using the function sysic and implemented by the file sys mds.m, is presented in [9, Chapter 4].

166 9 A Triple Inverted Pendulum Control-system Design Robust design of a triple inverted pendulum control system is discussed in this chapter. The triple inverted pendulum is an interesting control system that resembles many features found in, for instance, walking robots and flexible space structures, and other industrial applications. This kind of pendulum system is difficult to control due to the inherent instability and nonlinear behaviour. Some of the pendulum parameters may not be known exactly in practice, which influences significantly the system dynamics. In the design of a robust control system for triple inverted pendulums it is conventionally assumed that the system is affected by unstructured uncertainties and thus the robust properties of the closed-loop system could be achieved by using an H controller. In real cases, however, the uncertainties of such a pendulum system would be more reasonably considered to have some structures. For instance, because the moments of inertia and the friction coefficients are difficult to estimate precisely, it makes sense to assume unknown deviations in those parameters. Also, we would like to design the closed-loop control system to be more robust against those parameters that have a larger or more serious influence upon the system behaviour. For instance, the viscous friction in the joints may destroy the controllability of the linearised model. Hence, it would be important to treat uncertainties in such parameters individually rather than congregate them in an overall, unstructured uncertainty of the system dynamics. Consequently, it may be more suitable to apply the µ- synthesis technique that may lead to a less-conservative design to meet tighter design specifications. In the pendulum control-system design we first model the uncertainties as a mixed type that consists of complex uncertainties in the actuators, real uncertainties in the moments of inertia and in the viscous friction coefficients. A two-degree-of-freedom (2DOF) design framework is adopted. Both H suboptimal and µ-controllers are designed. The H controller shows better transient and disturbance responses but does not ensure robust stability nor robust performance. The µ-controller achieves both robust stability and robust per-

167 164 9 A Triple Inverted Pendulum Control-system Design formance, however, at the price of poorer time responses. The µ-controller designed is initially of quite high order, which makes it unsuitable for implementation in practice. A model reduction is then conducted that leads to a reduced-order controller maintaining the required robust stability and robust performance of the closed-loop system. 9.1 System Description The triple inverted pendulum considered is the experimental setup realized by Furuta et al. [41] (Figure 9.1). The pendulum consists of three arms that are hinged by ball bearings and can rotate in the vertical plane. The torques of the two upper hinges are controlled by motors, with the lowest hinge made free for rotation. By controlling the angles of the two upper arms around specified values, the pendulum can be stabilised inversely with the desired angle attitudes. A horizontal bar is fixed to each of the arms to ease the control by increasing the moment of inertia. Two dc motors, M 1 and M 2, are mounted on the first and third arm, respectively, acting as actuators that provide torques to the two upper hinges through timing belts. The potentiometers P 1, P 2 and P 3 are fixed to the hinges to measure the corresponding angles. III M2 P3 II P2 M1 I P1 Fig Triple inverted pendulum

168 l System Description 165 Let Θ i denote the angle of the ith arm. The first potentiometer measures the angle Θ 1, and the second and third potentiometers measure the angles Θ 2 Θ 1 and Θ 3 Θ 2, respectively (Figure 9.2). l 3 h 3 Θ 3 I 3, M 3 h 2 l 2 C 3 Θ 2 I 2, M 2 C 2 h 1 Θ 1 I 1, M 1 C 1 Fig Geometric relationship of potentiometers The mathematical description of the triple inverted pendulum is derived under the following assumptions: (a) each arm is a rigid body; (b) the lengths of the belts remain constant during the operation of the system; (c) the friction force in the bottom hinge is proportional to the velocity of the bottom arm and the friction forces in the upper hinges are proportional to the differences of the respective velocities of two neighbouring arms. We shall first consider the mathematical model of the pendulum itself, without the actuators. The pendulum model is constructed using the Lagrange differential equations [41] that yield the following nonlinear vector-matrix differential equation Θ 1 Θ 1 M(Θ) Θ 2 + N Θ 2 + q [ ] 1 q 2 tm1 + G = T τ 1 τ t 2 (9.1) Θ 3 Θ 3 q m2 3 τ 3

169 166 9 A Triple Inverted Pendulum Control-system Design Θ 1 where, Θ = Θ 2 Θ 3 M(Θ) = J 1 + I p1 l 1 M 2 cos(θ 1 Θ 2 ) I p1 l 1 M 3 cos(θ 1 Θ 3 ) l 1 M 2 cos(θ 1 Θ 2 ) I p1 J 2 + I p1 + I p2 l 2 M 3 cos(θ 2 Θ 3 ) I p2 l 1 M 3 cos(θ 1 Θ 3 ) l 2 M 3 cos(θ 2 Θ 3 ) I p2 J 3 + I p2 N = C 1 + C 2 + C p1 C 2 C p1 0 C 2 C p1 C p1 + C p2 + C 2 + C 3 C 3 C p2 0 C 3 C p2 C 3 + C p2 q 1 = l 1 M 2 sin(θ 1 Θ 2 ) Θ l 1 M 3 sin(θ 1 Θ 3 ) Θ 3 2 M 1 g sin(θ 1 ) q 2 = l 1 M 2 sin(θ 1 Θ 2 ) Θ l 2 M 3 sin(θ 2 Θ 3 ) Θ 3 2 M 2 g sin(θ 2 ) q 3 = l 1 M 3 sin(θ 1 Θ 3 )( Θ Θ 1 Θ 3 )+l 2 M 3 sin(θ 2 Θ 3 )( Θ Θ 2 Θ 3 ) M 3 g sin(θ 3 ), G = K 1 0 K 1 K 2,T= K C pi = C p + Ki 2 C mi,i pi = I i p + Ki 2 I mi, i M 1 = m 1 h 1 + m 2 l 1 + m 3 l 1,M 2 = m 2 h 2 + m 3 l 2,M 3 = m 3 h 3 J 1 = I 1 + m 1 h m 2 l m 3 l 2 1,J 2 = I 2 + m 2 h m 3 l 2 2 J 3 = I 3 + m 3 h 2 3 and all other parameters and variables are defined in Table 9.1. After linearisation of (9.1) under the assumptions of small deviations of the pendulum from the vertical position and of small velocities, one obtains the following equation Θ 1 Θ 1 M Θ 2 + N Θ 2 + P Θ 3 Θ 3 Θ 1 Θ 2 Θ 3 + G [ tm1 t m2 ] = T τ 1 τ 2 τ 3 (9.2) where J 1 + I p1 l 1 M 2 I p1 l 1 M 3 M = l 1 M 2 I p1 J 2 + I p1 + I p2 l 2 M 3 I p2 l 1 M 3 l 2 M 3 I p2 J 3 + I p2 P = M 1g M 2 g M 3 g By introducing the control torques vector t m =[t m1 t m2 ] T and the vector of disturbance torques d =[τ 1,τ 2,τ 3 ] T, (9.2) can be rewritten in the form

170 Table 9.1. System nomenclature 9.2 Modelling of Uncertainties 167 Symbol u j t mj τ i l i h i m i I i C i Θ i C mi I mi K i C p i I p i α i g Description input voltage to the jth motor control torque of the jth motor disturbance torque to the ith arm length of the ith arm the distance from the bottom to the centre of gravity of the ith arm mass of the ith arm moment of inertia of the i-th arm around the centre of gravity coefficient of viscous friction of the ith hinge angle of the ith arm from vertical line viscous friction coefficient of the ith motor moment of inertia of the ith motor ratio of teeth of belt-pulley system of the ith hinge viscous friction coefficient of the belt-pulley system of the ith hinge moment of inertia of the belt-pulley system of the ith hinge gain of the ith potentiometer acceleration of gravity M Θ + N Θ + PΘ+ Gt m = Td i.e., Θ = M 1 N Θ M 1 PΘ M 1 Gt m + M 1 Td. The block-diagram of the pendulum system is shown in Figure 9.3 and the nominal values of the parameters are given in Table Modelling of Uncertainties Based on practical considerations, we in particular consider the variations of the moments of inertia I 1,I 2 and I 3 of the three arms and the variations of the viscous friction coefficients C 1,C 2,C 3 and C p1,c p2. It is assumed that the moments of inertia are constants but with possible relative error of 10% around the nominal values; similarly, the friction coefficients may have with 15% relative errors. Notice that in the rest of the chapter, a parameter with a bar above denotes its nominal value. Therefore, the actual moments of inertia are presented as I i = I i (1 + p i δ Ii ),i=1, 2, 3

171 168 9 A Triple Inverted Pendulum Control-system Design d T t m G + Σ M Θ Θ Θ N P Fig Block diagram of the triple inverted pendulum system Table 9.2. Nominal values of the parameters Symbol (unit) value Symbol (unit) value l 1 (m) 0.5 α 1 (V/rad) l 2 (m) 0.4 α 2 (V/rad) h 1 (m) 0.35 α 3 (V/rad) h 2 (m) C m1 (Nms) h 3 (m) C m2 (Nms) m 1 (kg) 3.25 I m1 (kg m 2 ) m 2 (kg) 1.90 I m2 (kg m 2 ) (N m s) 0 m 3 (kg) 2.23 C p 1 I 1 (kg m 2 ) C p (N m s) 0 2 I 2 (kg m 2 ) I p (kg m 2 ) I 3 (kg m 2 ) I p (kg m 2 ) C 1 (Nms) K C 2 (Nms) K C 3 (Nms) where I i is the nominal value of the corresponding moment of inertia, p i =0.10 is the maximum relative uncertainty in each of these moments and 1 δ Ii 1, i=1, 2, 3. As a result, the matrix M is obtained in the form M = M + M p I where the elements of M are determined by the nominal values of the moments of inertia,

172 9.2 Modelling of Uncertainties 169 J 1 + I p1 l 1 M 2 I p1 l 1 M 3 M = l 1 M 2 I p1 J 2 + I p1 + I p2 l 2 M 3 I p2 l 1 M 3 l 2 M 3 I p2 J 3 + I p2 and I 1 p M p = 0 I 2 p 2 0, I = δ I δ I I 3 p δ I3 Next we calculate the matrix M 1. We have that M 1 =(Mp 1 M + I ) 1 Mp 1 Using the Matrix Inversion Lemma, we obtain (Mp 1 M + I ) 1 = M 1 M p M 1 M p I (M 1 M p I + I 3 ) 1 M 1 M p where I 3 is the 3 3 unit matrix. Therefore, we have M 1 = M 1 M 1 M p I (I 3 + M 1 M p I ) 1 M 1 The matrix M 1 can be represented as an upper linear fractional transformation (LFT) where M 1 = F U (Q I, I )=Q I22 + Q I21 I (I 3 Q I11 I ) 1 Q I12 Q I11 = M 1 M p,q I12 = M 1 Q I21 = M 1 M p,q I22 = M 1 such that [ QI11 Q I = Q ] [ ] I 12 M 1 M = p M 1 Q I21 Q I22 M 1 M p M 1 Let us now consider the uncertainties in the friction coefficients. It can be seen that C p1 and C 2 always appear together and so do C p2 and C 3, in the matrix N. Further, the magnitude of C p1 and C p2 is much smaller in comparison to that of C 2 and C 3, Hence, the related uncertainties in C p1 and C p2 have much less influence with regard to the system dynamics. We may therefore assume C 2 + C p1 =(C 2 + C p1 )(1 + s 2 δ C2 ) C 3 + C p2 =(C 3 + C p2 )(1 + s 3 δ C3 ) where s 2 = s 3 =0.15 and 1 δ C2,δ C3 1. Similarly, we set where s 1 =0.15 and 1 δ C1 1. C 1 = C 1 (1 + s 1 δ C1 )

173 170 9 A Triple Inverted Pendulum Control-system Design Taking into account the uncertainties in the friction coefficients, we obtain N = N + N where C 1 + C 2 + C p1 C 2 C p1 0 N = C 2 C p1 C 2 + C p1 + C 3 + C p2 C 3 C p2 0 C 3 C p2 C 3 + C p2 and N = C 1 s 1 δ C1 +(C 2 + C p1 )s 2 δ C2 (C 2 + C p1 )s 2 δ C2 0 (C 2 + C p1 )s 2 δ C2 (C 2 + C p1 )s 2 δ C2 (C 3 + C p2 )s 3 δ C3 +(C 3 + C p2 )s 3 δ C3 0 (C 3 + C p2 )s 3 δ C3 (C 3 + C p2 )s 3 δ C3 The matrix N may be represented as N = N 1 C N 2 where C 1 s 1 (C 2 + C p1 )s 2 0 N 1 = 0 (C 2 + C p1 )s 2 (C 3 + C p2 )s (C 3 + C p2 )s 3 N 2 = , C = δ C δ C δ C3 In turn, the matrix N = N + N 1 C N 2 can be rewritten as an upper LFT N = F U (Q C, C )=Q C22 + Q C21 C (I 3 Q C11 C ) 1 Q C12 where Q C11 =0 3 3,Q C12 = N 2,Q C21 = N 1,Q C22 = N such that [ ] [ ] QC11 Q Q C = C N = 2 Q C21 Q C22 N 1 N To represent the pendulum model as an LFT of the real uncertain parameters δ I1, δ I2, δ I3, and δ C1, δ C2, δ C3, we first extract out the uncertain parameters and then denote the inputs and outputs of I and C as y I,y C and u I,u C, respectively, as shown in Figure 9.4. The dynamic equation of the pendulum system is then rearranged as

174 9.2 Modelling of Uncertainties 171 d t m G T + Σ u I I Q I y I.. Θ. Θ Θ y C C u C v C Q C P Fig System block diagram with uncertain parameters [ ] [ yï = Θ [ yc v c u I u C M 1 M p M 1 M 1 M p M 1 ] [ 03 3 N = 2 N 1 N = I y I = C y C ][ ] uċ Θ ] [ u I ] Td (Gt m + v C + PΘ) The pendulum state vector x =[x 1 x 2 x 3 x 4 x 5 x 6 ] T is defined by x 1 = Θ 1,x 2 = Θ 2,x 3 = Θ 3,x 4 = Θ 1,x 5 = Θ 2,x 6 = Θ 3 Hence and [ ẋ1 ẋ 2 ẋ 3 ] T = Θ [ ẋ4 ẋ 5 ẋ 6 ] T = Θ As for the output vector, we define y =[Θ 1 Θ 2 Θ 3 ] T The outputs are measured by linear potentiometers, whose voltages are given by y p1 = α 1 Θ 1,y p2 = α 2 (Θ 2 Θ 1 ),y p3 = α 3 (Θ 3 Θ 2 )

175 172 9 A Triple Inverted Pendulum Control-system Design By introducing the vector of the measured outputs y p =[y p1 y p2 y p3 ] T we obtain that α y p = C p Θ, C p = α 2 α α 3 α 3 As a result, we obtain the equations of the system ẋ1 = Θ ẋ 2 ẋ 3 ẋ4 ẋ 5 = M 1 M p u I + M 1 Td M 1 (Gt m + v C + PΘ) ẋ 6 y I = M 1 M p u I + M 1 Td M 1 (Gt m + v C + PΘ) y C = N 2 Θ v C = N 1 u C + N Θ y = Θ y p = C p Θ u I = I y I u C = C y C By substituting the variable v C in the equations of Θ and y I, respectively, the system equations are summarised as ẋ 1 x 1 ẋ 2 x 2 ẋ 3 x 3 ẋ 4 x 4 ẋ 5 x 5 ẋ 6 = Π x 6 (9.3) y I u I y C u C y d y p t m [ ] [ ][ ] ui I 0 yi = (9.4) u C 0 C y C where Π =

176 9.2 Modelling of Uncertainties I M 1 P M 1 N M 1 M p M 1 N 1 M 1 T M 1 G M 1 P M 1 N M 1 M p M 1 N 1 M 1 T M 1 G N I C p Thus, the open-loop, pendulum model y I u I y C y = G u C pend d y p t m is an eleven-input, twelve-output system with six states, where A B 1 B 2 G pend = C 1 D 11 D 12 C 2 D 21 D 22 and [ ] [ ] 03 3 I A = M 1 P M 1,B 1 = N M 1 M p M 1 N 1 [ ] B 2 = M 1 T M 1 G [ 1 1 ] [ 1 C 1 = M P M N,D 11 = M Mp M 1 ] N N [ 1 1 ] D 12 = M T M G [ ] I3 3 0 C 2 = 3 3,D C p 0 21 =0 6 6,D 22 = This pendulum model is implemented by the M-file mod pend.m. (Note that the system matrix G pend may be obtained by using the function sysic, too.) The input/output relation of the perturbed, pendulum system is described by the upper LFT [ ] [ ] y d = F U (G pend, pend ) yp t m

177 174 9 A Triple Inverted Pendulum Control-system Design with the diagonal, uncertain matrix [ ] I 0 pend = 0 C as depicted in Figure 9.5. I 0 0 C t m d G pend y y p Fig The LFT representation of the perturbed triple inverted pendulum The singular value plot of the triple, inverted pendulum system (the nominal system) is shown in Figure Singular value plot of G Frequency (rad/s) Fig Singular values of the pendulum system

178 9.2 Modelling of Uncertainties 175 We now consider the models of the actuators. The nominal transfer functions of the actuators are taken as first-order, phase-lag models of with parameters G m1 = K m 1 T m1 s +1, G m 2 = K m 2 T m2 s +1 K m1 =1.08, T m1 =0.005, K m2 =0.335, T m2 =0.002 It is assumed that the actual gain coefficients (K m1, K m2 ) are constants with relative error 10% around their nominal values and the time constants (T m1,t m2 ) with relative error 20%. The uncertain frequency responses of the actuators are shown in Figure 9.7. In order to account for unmodelled dynamics and nonlinear effects, the uncertainties in the actuator models are approximated by input multiplicative uncertainties that give rise to the perturbed transfer functions where G m1 =(1+W m1 δ m1 )G m1, G m2 =(1+W m2 δ m2 )G m2 δ m1 1, δ m2 1 and the uncertainty weights W m1,w m2 are so chosen that Gm1 (jω) G m1 (jω) Gm1 (jω) Gm2 (jω) G m2 (jω) < W m1 (jω), Gm2 (jω) < W m2 (jω). The frequency responses of W m1,w m2 are found graphically as shown in Figure 9.8 and then approximated by first-order transfer functions using the file wfit.m. As a result, we obtain W m1 = s s , W s m 2 = s By introducing the vector u =[u 1, u 2 ] T, the equations of the actuators are rewritten as t m = G m (I 2 + W m m )u where [ Gm1 0 G m = 0 G m2 ] [ ] [ ] Wm1 0 δm1 0, W m =, 0 W m = m2 0 δ m2 The block diagram of the actuators with the input multiplicative uncertainty is shown in Figure 9.9. Let the inputs and outputs of the uncertain blocks (δ m1, δ m2 )bedenoted by y m1, y m2 and u m1, u m2, respectively. Defining the vectors u m = [u m1 u m2 ] T and y m =[y m1 y m2 ] T, we may rearrange the actuator models as

179 176 9 A Triple Inverted Pendulum Control-system Design 10 1 Uncertain transfer function of the first actuator 10 0 Magnitude 10 1 Solid line: G nom (jω) Dashed line: G(jω Frequency (rad/s) 10 0 Uncertain transfer function of the second actuator Magnitude 10 1 Solid line: G nom (jω) Dashed line: G(jω Frequency (rad/s) Fig Uncertain frequency responses of the actuators [ ym t m ] [ um = G act u ] (9.5) where u m = m y m (9.6) [ ] 02 2 W G act = m G m G m

180 9.2 Modelling of Uncertainties Approximation of the transfer function of the first actuator 10 1 Magnitude 10 2 Solid line: Wm(jω) Dashed line: (G(jω) G nom (jω))/g nom (jω) Frequency (rad/s) 10 0 Approximation of the transfer function of the second actuator 10 1 Magnitude 10 2 Solid line: Wm(jω) Dashed line: (G(jω) G nom (jω))/g nom (jω) Frequency (rad/s) Fig Actuators uncertainty approximations The perturbed actuators can be described by the following upper LFT and shown in Figure 9.10, t m = F U (G act, m )u Having modelled both the pendulum and the actuators with consideration of possible perturbations, the block-diagram of the whole system is seen as in Figure Note that m is a complex uncertainty, while I and C are real

181 178 9 A Triple Inverted Pendulum Control-system Design W m m u + Σ + _ G m t m Fig Block diagram of the perturbed actuators m u G act t m Fig LFT representation of the perturbed actuators uncertainties. We thus have a case of a mixed, real and complex, uncertainty configuration. m I 0 0 C u G act t m d G pend y y p Fig Triple inverted pendulum system with uncertainties The model of the whole triple inverted pendulum system is given by the equations

182 9.2 Modelling of Uncertainties 179 y m u m y I y C y = G u I sys u C (9.7) d u y p where the transfer matrix G sys is determined by the matrices G act and G pend, and can be easily obtained by using the function sysic. The whole, perturbed, triple inverted pendulum system can be described by the following upper LFT, as shown in Figure 9.12, [ ] [ ] y d = F U (G sys, ) u y p with the diagonal, uncertainty matrix = m I 0 (9.8) 0 0 C d u G sys y y p Fig LFT representation of triple inverted pendulum system with uncertainty

183

184 9.3 Design Specifications 181 to form the desired spectral contents of the actual noise signal (in the form of W n η). In the given case the matrix W n is chosen as w n (s) 0 0 W n (s) = 0 w n (s) w n (s) 5 10s+1 where the weighting transfer function w n = s+1 is a high pass filter that shapes the noise spectral density for the type of potentiometers under consideration. The magnitude plot of this filter is shown in Figure This transfer function means that in the low-frequency range the magnitude of the measurement error is about V, and in the high-frequency range, about V Sensor noise weight 10 3 Magnitude Frequency (rad/s) Fig Measurement noise weighting function The closed-loop system error e y = r y may be determined by r e y = S d η where the matrix S = S(G sys ) is considered as the nominal sensitivity function with respect to the inputs r, d and η. As for feedback signals, we shall use y c = (y p + W n η) and C p r. The performance objective requires the transfer function matrices from r, d and η to e y and e u to be small in the sense of, for all possible (stable)

185 182 9 A Triple Inverted Pendulum Control-system Design uncertainty matrices. The transfer function matrices W p and W u are used to reflect the relative significance over different frequency ranges for which the performance is required. The design problem for the triple inverted pendulum system is to find a linear, output controller K(s) to generate the output feedback [ ] yc (s) u(s) =K(s) C p r(s) to ensure the following properties of the closed-loop system. Nominal performance: The closed-loop system achieves nominal performance if the following performance objective is satisfied for the nominal plant model G sys, [ ] Wp S(G sys ) < 1 (9.9) W u KS(G sys ) where W p and W u are appropriately chosen weighting functions. This objective corresponds to the mixed S/KS sensitivity optimisation. Robust stability: The closed-loop system achieves robust stability if the closed-loop system is internally stable for each possible, perturbed plant dynamics G = F U (G sys, ). Robust performance: The closed-loop system must maintain, for each G = F U (G sys, ), the performance objective [ ] Wp S(G) < 1 (9.10) W u KS(G) where S(G) is the perturbed sensitivity function of G = F U (G sys, ). In addition to the above requirements, it is desirable that the controller designed would have acceptable complexity, i.e. it is of reasonably low order. 9.4 System Interconnections The internal structure of the nineteen-input, nineteen-output open-loop system, which is saved as the variable pend ic, is shown in Figure The inputs and outputs of the uncertainties are saved in the variables pertin and pertout, respectively, and the reference, the disturbance and the noise in the

186 9.4 System Interconnections 183 pertin {1-8} pertout {1-8} dist{1-3} G sys control{1-2} + y p {1-3} y c{1-3} Σ W n y{1-3} e y {1-3} noise{1-3} Σ W p W u e u {1-2} C p ref{1-3} Fig Open-Loop interconnection of the triple inverted pendulum system variables ref, dist, noise, respectively. The control signal is saved in the variable control. The variables pertin and pertout each have eight elements. The variables ref, dist, noise, y, y p, y c, e y have all three elements and the variables control, e u have two elements. The open-loop connection is assigned by the M-file olp pend. The schematic diagram showing the specific input/output ordering for the variable pend ic is shown in Figure The block-diagram used in the closed-loop system simulation is shown in Figure The corresponding closed-loop interconnection, which is saved in the variable pend sm, is obtained by the M-file sim pend. Figure 9.18 shows the schematic diagram of the specific input/output ordering for the variable pend sm.

187 184 9 A Triple Inverted Pendulum Control-system Design pertin{1} 1 pertin{2} 2 pertin{3} pertin{4} pertin{5} pertin{6} pertin{7} 7 pertin{8} 8 ref{1} 9 ref{2} 10 ref{3} 11 dist{1} 12 dist{2} 13 dist{3} 14 noise{1} 15 noise{2} 16 noise{3} 17 control{1} 18 control{2} 19 pend_ic pertout{1} pertout{2} pertout{3} pertout{4} pertout{5} pertout{6} pertout{7} pertout{8} e y {1} e y {2} e y {3} e u {1} e u {2} y c {1} y c {2} y c {3} ref{1} ref{2} ref{3} Fig Schematic diagram of the open-loop system pertin {1-8} pertout {1-8} dist{1-3} control{1-2} G sys y p {1-3} y{1-3} control{1-2} y c {1-3} Σ W n noise{1-3} K C p ref{1-3} Fig Closed-loop interconnection structure of the pendulum system

188 9.4 System Interconnections 185 pertin{1} 1 pertin{2} 2 pertin{3} pertin{4} pertin{5} pertin{6} pertin{7} 7 pertin{8} 8 ref{1} 9 ref{2} 10 ref{3} 11 dist{1} 12 dist{2} 13 dist{3} 14 noise{1} 15 noise{2} 16 noise{3} 17 control{1} 18 control{2} 19 pend_sm pertout{1} pertout{2} pertout{3} pertout{4} pertout{5} pertout{6} pertout{7} pertout{8} y{1} y{2} y{3} u{1} u{2} y c {1} y c {2} y c {3} ref{1} ref{2} ref{3} Fig Schematic diagram of the closed-loop system

189 186 9 A Triple Inverted Pendulum Control-system Design 9.5 H Design The design goal in this case is to find an H (sub)optimal control law for the interconnection shown in Figure 9.19, in which we neglect the uncertainty inputs and outputs. The variable hin ic, which corresponds to the transfer function matrix of the augmented system, may be obtained by the command line hin_ic = sel(pend_ic,[9:19],[9:19]) The H optimal control minimises the norm of F L (P, K) over the stabilising controller transfer matrix K, where P is the transfer function matrix of the augmented system. In the given case F L (P, K) is the nominal closedloop system transfer matrix from the references, disturbances and noises (the signals r, d and η) to the weighted outputs e y and e u (Figure 9.19). Fig Block diagram for H design In the given case the weighting performance functions are chosen in the forms of w p1 (s) 0 0 [ ] W p (s) = 0 w p2 (s) 0 wu (s) 0, W u (s) = 0 w 0 0 w p3 (s) u (s) where w p1 (s) =10 6 s 4 +12s 3 +80s 2 +80s +65 s s s s s 4 +12s 3 +80s 2 +80s +65 w p2 (s) = s s s s s 4 +12s 3 +80s 2 +80s +65 w p3 (s) = s s s s and w u (s) =10 6.

190 9.5 H Design 187 The small gain in the first weighting function (w p1 ) indicates that the first error may be allowed to be large. This is due to the fact that the requirement on precision position of the first arm may be relaxed a little in this case. The weighting functions are set in the M-file wts pend.m. The H design is conducted by using the M-file hinf pend.m. It utilises the function hinfsyn, which determines a (sub)optimal H control law, based on the prescribed open-loop interconnection. The interval for γ iteration is chosen between 0 and 10 with a tolerance tol = The controller obtained is of 28th order and for this controller the closed-loop system achieves H norm equal to An undesired property of the controller is that it has a pole at 33.6, i.e. this controller is unstable, which makes it less favourable in practice. The singular value plot of the H controller transfer matrix is shown in Figure Singular value plot of the controller Frequency (rad/s) Fig Singular values of the H controller The closed-loop, transient responses (reference tracking) are obtained by using the file clp pend. The transient response of the closed-loop system with H controller for the reference vector 0 r = (the references are measured in radians) is shown in Figure The response is fast (settling time approximately equal to 6 s) with small overshoots of the output variables. The steady-state errors are small, except for a small error on the position of the first arm.

191 188 9 A Triple Inverted Pendulum Control-system Design 0.5 Closed loop transient response 0.4 Dashed line: y 1 Dash dotted line: y Solid line: y 3 y 1, y 2, y 3 (rad) Time (s) Fig Closed-loop transient response of H controller 0.05 Closed loop disturbance response 0.04 Dashed line: y 1 Dash dotted line: y Solid line: y 3 y 1, y 2, y 3 (rad) Time (s) Fig Disturbance rejection of H controller The disturbance rejection of the closed-loop system with the H controller is shown in Figure The disturbance vector is set to

192 and measured in N m. 0.1 d = H Design Singular value plot of the closed loop transfer function matrix Frequency (rad/s) Fig Closed-loop singular values with H controller In Figure 9.23 we show the singular values plot of the closed-loop transfer matrix with the H controller. The test for robust stability is based on the µ values of the upper 8 8 block of the closed-loop transfer function matrix. The block structure of the uncertainty is set as blks = [1 1;1 1;-1 1;-1 1;-1 1;-1 1;-1 1;-1 1] The upper and lower bounds of the structured singular value µ (over the frequency range) are shown in Figure It is clear that the closed-loop system with H controller does not achieve robust stability, since the maximum value of µ is equal to The robust performance of the closed-loop system with H controller is checked with the µ-analysis, too. The block-structure of the uncertainty P consists of an 8 8 diagonal uncertainty block and a 9 5 full (complex) uncertainty performance block, i.e., {[ ] } 0 P := : C 8 8, 0 F C 9 5 F The µ values corresponding to the case of robust performance analysis are shown in Figure Again, the closed-loop system does not achieve robust performance either, because the maximum value of µ is equal to

193 190 9 A Triple Inverted Pendulum Control-system Design 10 1 Robust stability 10 0 mu 10 1 Solid ine: upper bound Dashed line lower bound Frequency (rad/s) Fig Robust stability test of H controller Hence, it is concluded that the designed H controller leads to good closed-loop transient responses, but does not ensure the necessary robustness of the closed-loop system as required. 1.8 Robust performance Solid line: upper bound 1.2 Dashed line: lower bound 1 mu Frequency (rad/s) Fig Robust performance of H controller

194 9.6 µ-synthesis µ-synthesis Let us denote by P (s) the transfer function matrix of the nineteen-input, sixteen-output, open-loop system consisting of the pendulum system model plus the weighting functions, and let the block structure P of uncertainties be defined by {[ ] } 0 P := : R 8 8, 0 F C 9 5 F The first block of the matrix P, the uncertainty block, corresponds to the parametric uncertainties modelled in the triple inverted pendulum system. The second block, F, is a fictitious uncertainty block, introduced to include the performance objectives in the framework of the µ-approach. To meet the design objectives a stabilising controller K is to be found such that, at each frequency ω [0, ], the structured singular value µ satisfies the condition µ P [F L (P, K)(jω)] < 1 The fulfillment of this condition guarantees robust performance of the closedloop system, i.e., [ ] Wp S(G) < 1 W u KS(G) where G = F U (G sys, ), for all stable perturbations with < 1. The µ-synthesis is conducted by using the M-file ms pend.m. The uncertainty structure and other parameters used in the D-K iteration are assigned in the auxiliary file dk pend.m. The experiments with µ-synthesis show that the use of the weighting functions, used in the H design, leads to very slow transient responses. Hence, these functions are appropriately modified to w p1 (s) =10 6 s 4 +12s 3 +80s 2 +80s s s s s s 4 +12s 3 +80s 2 +80s +65 w p2 (s) =2.5 15s s s s s 4 +12s 3 +80s 2 +80s +65 w p3 (s) =10 15s s s s The control weighting functions are again taken as w u (s) =10 6. The progress of the D-K iteration is shown in Table 9.3. It can be seen from the table that after the third iteration the maximum value of µ is equal to 0.960, which indicates that the robust performance has been achieved. The final controller obtained is of 84th order. Note that this controller is stable.

195 192 9 A Triple Inverted Pendulum Control-system Design Table 9.3. D-K iterations results in µ-synthesis Iteration Controller order Maximum value of µ Singular value plot of the controller Frequency (rad/s) Fig Singular values of the µ-controller The singular value plot of the µ-controller is shown in Figure Similar to the H controller, the µ-controller has an integrating action in the low frequency range. The structured singular values for the robust stability study (over the frequency range) are shown in Figure The maximum value of µ is which means that the stability of the system is preserved under perturbations that satisfy < The µ values over the frequency range for the case of robust performance analysis are shown in Figure The closed-loop system achieves robust performance, since the maximum value of µ is equal to Consider now the closed-loop transient responses obtained by using the M-file clp pend. The same reference signal as used in the H simulation is used here. That is, 0 r = The transient response is shown in Figure To compare with those of the

196 9.6 µ-synthesis Robust stability Solid line upper bound mu Dashed line lower bound Frequency (rad/s) Fig Robust stability of µ controller 0.9 Robust performance Solid line: upper bound Dashed line lower bound 0.6 mu Frequency (rad/s) Fig Robust performance of µ controller H controller, it can be seen that the transient response (reference tracking) of the µ-controller is slower and the steady-state errors are slightly larger, though with less overshoot (undershoot).

197 194 9 A Triple Inverted Pendulum Control-system Design 0.25 Closed loop transient response Dashed line: y 1 y 1, y 2, y 3 (rad) Dash dotted line: y 2 Solid line: y Time (s) Fig Closed-loop transient response of µ-controller 0.02 Closed loop control Solid line: u 1 Dashed line: u 2 u 1, u 2 (V) Time (s) Fig Control action of µ-controller The control action in the case of a µ-controller is shown in Figure The motor voltages are kept within 0.12 V.

198 9.6 µ-synthesis 195 The disturbance rejection of the closed-loop system with the µ-controller is shown in Figure We see that the overshoot of the third output is almost 7 times larger than in the case of the H controller Closed loop disturbance response 0.3 Dashed line: y Dash dotted line: y Solid line: y 3 y 1, y 2, y 3 (rad) Time (s) Fig Disturbance rejection of µ-controller Hence, it is clear that the (nominal) transient responses in terms of reference tracking and disturbance attenuation are worse in the case of the µ- controller. This is the price that has to be paid to ensure the robust stability and robust performance of the closed-loop system. In Figure 9.32, we show the noise w n η 3 that acts at the output of the third potentiometer, and the corresponding response of the output y 3. From the magnitudes of w n η 3 and y 3, one may conclude that the closed-loop system is susceptible to noises. The closed-loop frequency responses are obtained by the M-file frs pend.m. The singular values of the closed-loop transfer matrix with the µ-controller are plotted in Figure The comparison with the plot shown in Figure 9.23 reveals that the closed-loop bandwidth in the case of a µ-controller is smaller, which leads to a slower response and worse disturbance attenuation. The singular values of the transfer function matrix concerning disturbance rejection are shown in Figure We see that the disturbance attenuation is worst for frequencies around 1 rad/s. From the singular values plot of the transfer function matrix concerning noise attenuation, shown in Figure 9.35, we see that the influence of noises on the system output would be maximal for frequencies between 1 rad/s and 10 rad/s.

199 196 9 A Triple Inverted Pendulum Control-system Design 2 x 10 3 Sensor output η Time (s) 6 x 10 4 Closed loop noise response 4 2 y 3 (rad) Time (s) Fig Sensor noise and closed-loop noise response As mentioned earlier, the controller obtained by µ-synthesis is initially of 80th order, which makes its implementation in practice very difficult. Therefore, it is necessary to reduce the controller order. For this purpose, we implements the M-file red pend.m. We use the model reduction algorithm based on system balancing followed by optimal Hankel approximation. This algorithm allows us to reduce the controller order to 27. Further reduction of the controller order leads to deterioration of the closed-loop transient responses and would even cause the instability of the closed-loop system. In Figure 9.36 we compare the frequency responses (the maximum singular values) of the full-order and reduced-order µ-controllers. Up to the frequency 10 4 rad/s the frequency plots of both controllers coincide with each other, which implies very similar performance of the closed-loop systems. In fact,

200 9.6 µ-synthesis Singular value plot of the closed loop transfer function matrix Frequency (rad/s) Fig Closed-loop singular value plot 10 1 Singular value plot of the disturbance transfer function matrix Frequency (rad/s) Fig Singular values of the disturbance rejection transfer function matrix the closed-loop transient responses with the full-order controller and those with the reduced-order controller (not included in the book) are practically undistinguishable. A discrete-time controller may be obtained by sampling the already designed continuous-time controller for a sampling frequency f s =1/T s. This can be conducted by the M-file dcl pend.m that utilises the Robust Control Toolbox function samhld. The resulting, sampled-data closed-loop system can be simulated by using the function sdtrsp. Since the inverted pendu-

201 198 9 A Triple Inverted Pendulum Control-system Design 10 1 Singular value plot of the noise transfer function matrix Frequency (rad/s) Fig Singular values of the noise-attenuation transfer function matrix 10 3 Maximum singular values of the controller transfer function matrices Solid l ne: u l order con roller Dashed line reduced order controller Frequency (rad/s) Fig Frequency responses of the full- and reduced-order controllers lum is a relatively slow system, the sampling frequency may be chosen to be small. For instance, if this frequency is 100 Hz then the transient responses of the sampled-data system are close to the corresponding responses of the continuous-time system.

202 9.7 Nonlinear System Simulation 9.7 Nonlinear System Simulation 199 The nonlinear, closed-loop system of the triple inverted pendulum is simulated by using the Simulink r models c pend.mdl (for the continuous-time system) and d pend.mdl (for the sampled-data system). Both models allow us to simulate the closed-loop system for different references, disturbances and noise signals. Both models utilise the M-file S-function s pend.m that includes the nonlinear differential equations (9.1) of the triple inverted pendulum. The initial conditions of the pendulum are assigned in the M-file inc pend.m. The sampled-data model consists of the discretised controller, a 14-bit analogue-to-digital converter with maximum input voltage 5 V, and a 14-bit digital-to-analogue converter with maximum output voltage 5 V. It is assumed that the calculation of the control action requires no longer than one sampling period T s. Before simulating the system it is necessary to set the model parameters by using the M-file init c pend.m (in the continuous-time case) or the M-file init d pend.m (in the discrete-time case). The simulation of the nonlinear system for small references and disturbances produces results that are very close to the results obtained for the linearised model. The Simulink r model c pend.mdl of the continuous-time, nonlinear, pendulum system is shown in Figure In Figure 9.38 we show the transient response of the continuous-time, nonlinear system for a reference r =[ ] T. The transient response is close to that of the linear system (Figure 9.29). Since the triple inverted pendulum is essentially nonlinear, the simulation results may differ in the case of large references and disturbances. In Figure 9.39 we show the transient response of the continuous-time, nonlinear system for a reference r =[000.6] T. It is seen that for this relatively large reference the closed-loop system even becomes unstable.

203

204 9.7 Nonlinear System Simulation Nonlinear system transient response Dashed line: y 1 Dash dotted line: y 2 y 1, y 2, y 3 (rad) Solid line: y Time (s) Fig Transient response of the nonlinear system - small reference 1 Nonlinear system transient response y 1, y 2, y 3 (rad) Dashed line: y 1 Dash dotted line: y 2 Solid line: y Time (s) Fig Transient response of the nonlinear system - large reference

205 202 9 A Triple Inverted Pendulum Control-system Design 9.8 Conclusions The experience gained in the design of the triple inverted pendulum control system makes it possible to make the following comments. The derivation of the uncertainty model of the triple inverted pendulum system is a difficult task. It is necessary to make several justifiable assumptions in order to obtain a relatively simple model. The use of a two-degree-of-freedom control structure allows us to obtain acceptable performance as well as robustness of the closed-loop system. The necessity to achieve robust stability and robust performance of the closed-loop system leads to decrease of the closed-loop bandwidth that in turn leads to slower response and worse disturbance attenuation. Thus, there is a trade-off between nominal performance and robustness of the closed-loop system. In the given case an acceptable trade-off is achieved by using a µ-controller. The order of the µ-controller is very high that thus requires controller order reduction to preserve the closed-loop performance and robustness while making implementation of the controller easier and more reliable. The triple inverted pendulum is an essentially nonlinear system and the results obtained by using the linearised model are valid only for sufficiently small arm angles and arm velocities. Notes and References As noted in [166] the inverted pendulum is frequently used as a good example to show the power of modern control theory. The design of inverted pendulum control systems is initially done by using state-space methods [110]. The single and double inverted pendulums are relatively easy to stabilize by using linear controllers [40, 80, 165]. The triple inverted pendulum is more difficult to control and it is very sensitive to torque disturbances, joint frictions and measurement noises [149]. The design of analogue and digital controllers for triple inverted pendulum systems has been considered in several papers (see, for instance, [41, 104]). References [28, 102] address the challenging problem of stabilising a triple inverted pendulum, a cart system that uses only one actuator. The robust control of different types of inverted pendulums is considered in several publications, see, for instance, [72, 103, 149, 150].

206 10 Robust Control of a Hard Disk Drive This chapter considers the design of a robust servo system of a hard disk drive(hdd). Three robust design methods are applied, namely, the µ-synthesis, H optimal design and the H loop-shaping design procedure (LSDP). After a description of the HDD servo-system dynamics in the first section, it is shown in detail (in Section 10.2) how to derive the plant model that involves several uncertain parameters. Then we consider the synthesis of continuoustime controllers using the available methods for robust control design. These controllers are compared in aspects of robustness of closed-loop system stability and of performance in the frequency domain and in the time-domain. The design of discrete-time controller is also included, for two sampling frequencies. Finally, we present the simulation results of the nonlinear continuous-time and discrete-time closed-loop systems, followed by conclusions at the end of the chapter. The prevalent trend in hard-disk design is towards smaller disks with increasingly larger capacities. This implies that the track width has to be smaller leading to lower error tolerance in the positioning of the read/write heads. The controller for track following has to achieve tighter regulation in the presence of parameter variations, nonlinearities and noises. Hence, it is appropriate to use advanced design methods like µ-synthesis and H optimisation in order to achieve robust stability and robust performance of the closed-loop servo system Hard Disk Drive Servo System The schematic diagram of a typical hard disk drive is shown in Figure The disk assembly consists of several flat disks called platters coated on both sides with very thin layers of magnetic material (thin-film media). The magnetic material is used to store the data in the form of magnetic patterns. The platters rotate at high speed, driven by a spindle motor. Recently, the spindle speed is 5400 r.p.m., 7200 r.p.m. or even 10,000 and 15,000 r.p.m. The

207

208 10.1 Hard Disk Drive Servo System 205 The head arms are moved on the surface of the platter by a rotary voice coil actuator frequently called the Voice Coil Motor(VCM). The VCM consists of a voice coil, mounted at the end of the head arm assembly, and permanent electromagnets. By controlling the current in the coil, the heads can move in one direction or the other in order to follow precisely the data track. The goal of the hard disk drive servo control system is to achieve a precise positioning of the read/write heads on the desired track (track-following mode) while data are being written or read, and a quick transition from one track to another target track (seeking mode). As the drive initiates a seek command, it switches to a seek control algorithm that is a type of time-optimal (bang-bang) control algorithm. When the head is positioned over the desired track, the drive switches into track-following mode. In the present work we consider the servo controller of the track-following mode. All modern hard disk drives read the relative position of the head to track directly from the disk media by using a method called embedded servo or sector servo. In this method the servo information is interleaved with user data across the entire surface of all platters. Position information is placed on the disk surfaces in servo frames during the manufacturing of the disk and cannot be rewritten. This is why the disk heads are locked out by the drive controller from writing to the areas where servo information is written. Because of the interleaving of servo information with data, the embedded servo system is a sampled-data system. Increasing the number of servo frames within a track improves the performance of the servo system due to the higher sample rate but limits the maximum data storage. The servo information is read by the same head that reads the data. The position information usually consists of two parts: coarse position giving track number and fine position information relative to each track. The position error, representing the difference between the reference track position and the head position, is measured by making use of position bursts that are part of the servo information. The position bursts are patterns of alternating magnetic polarity written on the disk surface with a particular frequency. The periodic signal, obtained from the read head passing over a burst pattern, has an amplitude that is proportional to how much the read head is directly over the burst pattern. The signals corresponding to 2 or 4 bursts of position information are demodulated by a servo demodulator in order to compose the position error signal(pes). This signal is used by the servo controller to change the voice coil current appropriately and hence the read/write heads position. It should be pointed out that the absolute head position is not generally known from the servo information that is read off of the disk. Only a signal proportional to the position error is available, which means that for track following the reference signal is ideally equal to zero. The failure of the head to follow the track on a platter surface faithfully as the disk spins is referred to as runout. The runout could have serious consequences, especially during writing where data in adjacent tracks might be overwritten. There are two types of runout, namely the repeatable runout(rro) and nonrepeatable runout(nrro). Repeatable runout is caused

209 Robust Control of a Hard Disk Drive by both imbalance in the spindle and imperfections in the servowriting process that result in noncircular position information. This information is encoded at the spindle frequency, yielding a repeatable noncircular track for the disk servo to follow. The nonrepeatable runout is caused by a windage induced actuator arm, slider motion and mechanical vibrations that can arise from various sources such as ball bearing defects, spindle motor vibrations and slider vibrations. The RRO may be reduced through feedforward compensation at the corresponding frequency by using harmonic correctors. k b PA VC i c kt t m t d t a Hd (s) t h 1 Js ω 1 s Θ u D/A K d + A/D S/H + + y r y ref + + η y R.tpm. k y Fig Block diagram of the hard disk drive servo system The block-diagram of the HDD servo system is shown in Figure The R/W heads are moved by a VCM that is driven by the output current i c of a power amplifier(pa). The actual position signal y is compared with the signal y ref that represents the desired head position. For the track following, the reference input y ref is theoretically equal to zero and y(t) appears as an error signal. In practice, y ref must be set equal to the signal representing both RRO and NRRO. The digital signal y r is a reference for the desired track and is used during the seeking mode. The error signal is sampled by an analogueto-digital(a/d) converter and serves as part of an input to the digital servo controller K d that is typically implemented on a DSP chip. The output of the controller is converted to analogue form by a digital-to-analog(d/a) converter and amplified by the PA. Since the motor torque is proportional to the voice coil current, the amplifier is configured as a current source. The exogenous signal t d is the torque disturbance due to external shock and vibrations, power amplifier noise, digital-to-analogue converter noise, pivot bearing friction and flex cable bias. The increase of the spindle speed increases the air flow inside the disk (windage) that in turn increases the disturbance torque on the actuator. The disturbance is a low-frequency signal with spectral content usually

210 10.1 Hard Disk Drive Servo System 207 below 500 Hz. The position noise signal η includes quantisation errors due to servo demodulator noise, finite resolution of the analogue-to-digital converter, media noise and preamplifier noise. The position noise is a high-frequency signal with spectral content usually above 1 khz. Since the measured PES is contaminated with noise, the true PES, y ref y, is not available. One of the limitations inherent in the design of servo controllers for high track density HDD is the influence of actuator mechanical resonant modes on the head-positioning servo. If the actuator input contains a periodic component with frequency equal to a resonance frequency, this component may be amplified greatly that results in large off-track deviation of the read/write heads. Usually, the actuator is mechanically designed in such a way that the resonant modes occur at frequencies that will be attenuated by the servo system. However, as servo bandwidth increases to meet higher performance requirements, this attenuation may not be achieved due to mechanical design constraints. It is also important to note that the presence of resonant modes may limit the servo bandwidth via stability margin constraints. With a reduced bandwidth, the servo system may not be able to achieve the desired performance. The rotary actuators of hard disks may have tens of resonances that may lead to a high order model. However, in practice only 3 to 4 main resonances are taken into account. Usually, these are the first and second torsion modes (in the range Hz) as well as the first sway mode (in the range Hz). A common approach to reduce the effect of resonance modes is to put notch filters in the servoloop that attenuates or filters out vibrations at selected major resonant frequencies. However, each notch filter introduces phase margin loss at low frequencies thus reducing the system robustness. Also, the presence of uncertainty in the resonant modes may decrease significantly the efficiency of those filters. Our goal in this chapter is to design a robust track-following servo control system for a 3.5-inch HDD with track density TPI. The desired settling time is about 1 ms in the presence of four resonances, several uncertain parameters, position sensing noise and disturbances. The parameters of the rigid-body model and their tolerances are given in Table For dimensional compatibility, the track density is given in tracks per metre, instead of in TPI. We now first consider the derivation of a HDD servo system model. The dynamics of the rotary arm is described by the equation J d2 Θ dt 2 = t m + t d where J is the arm moment of inertia, Θ is the angle of arm rotation, t m is the VCM torque and t d is the disturbance torque. The VCM torque is given by t m = k t i c

211 Robust Control of a Hard Disk Drive Table Rigid body model parameters and tolerances Para- Description Value Units Tolemeter rance J arm moment of inertia kg m 2 ±10.0% R arm length m ±0.1% k PA amplifier gain 10.0 V/V ±0.0% k t VCM torque constant N m/a ±10.0% k b back e.m.f. constant N m/a ±10.0% tpm tracks per meter 10 6 tracks k y position measurement gain 1.2 V/track ±5.0% R coil coil resistance 8.00 Ω ±20.0% R s sense resistance in the 0.2 Ω ±1.0% power amplifier feedback L coil coil inductance H +0, 15% e max saturated power amplifier 12.0 V 0, +5% voltage RPM disk rotation rate 7200 rev/min ±1.0% t w track width 1 µ m ±1.0% where k t is the motor torque constant and i c is the current through the VCM coil. The voice coil has a resistance R coil and an inductance L coil. An additional current sense resistance R s is connected in serial with the voice coil to implement a feedback from the power amplifier output. Hence the voice coil admittance is described by the transfer function G vca (s) = i c(s) e c (s) = 1/R c τs+1 where e c is the input voltage to the voice coil, τ = L coil /R c and R c = R coil + R s. The block diagram of the power amplifier with voice coil is shown in Figure The input of the voice coil is the difference e c = e p e b, where e p is the output voltage of the amplifier and e b = k b ω is the back electromotive force (e.m.f.) that is generated during the moving of the coil in the magnetic field. Since the saturation voltage of the amplifier is e max, in the absence of back e.m.f., the amplifier will saturate for an input voltage greater than e max /k PA. In the study limited to linear systems, the amplifier saturation is neglected. The length of the arc, corresponding to the arm rotation angle Θ, is equal to RΘ. For small values of Θ the number of tracks contained in the arc is R Θ tpm. This gives an output signal y = R tpm k y Θ. If we neglect the dynamics of the voice coil, the transfer function of the servoactuator considered as a rigid body is obtained in the form of a dou-

212 10.2 Derivation of Uncertainty Model 209 ω k b u + e max k PA e max e b e p e c 1 1 R C τ s + 1 i c R S Fig Block diagram of the power amplifier with voice coil ble integrator. Such a model oversimplifies the system dynamics and cannot produce reliable results if used in the design. The next step is to take into account the high frequency resonant modes of the head disk assembly represented by the transfer function H d (s). In the given case H d (s) consists of four resonant modes and is obtained as 4 b 2j ω j s + b 2j 1 ωj 2 H d (s) = s 2 +2ξ j ω j s + ωj 2 j=1 (see Figure 10.4). Here ω j, ξ j and b 2j, b 2j 1 are respectively the resonance frequency, the damping coefficient and the coupling coefficients of the jth mode, for j = 1,..., 4. The resonance parameters are usually determined experimentally and for the servo system under consideration their values are shown in Table It is important to note that all model parameters are known with some tolerances and may vary with the changing of working conditions as well as with time. Also, the closed-loop system can be very sensitive to the external disturbance t d and the position-sensing noise η. Both factors would lead to an actual system dynamics far away from the dynamics of the nominal closedloop system. Thus, it is necessary to use control-system design methods that ensure the desired closed-loop stability and performance in the presence of uncertain parameters, noises and disturbances Derivation of Uncertainty Model In order to implement robust control design methods we must have a plant model that incorporates uncertain parameters. As is seen from Tables 10.1

213

214 10.2 Derivation of Uncertainty Model 211 u _ k PA k b _ G vca (s) i c k t t m t d ω + t a t h 1 R.tpm y Hd(s) k y Js s R s Fig Block diagram of the plant Consider first the derivation of the uncertainty model for the resonant modes. All four modes have similar transfer functions. A state-space model is ẋ 1 = ωx 2, ẋ 2 = ω( x 1 2ξx 2 + t a ) y a = b 1 x 1 + b 2 x 2 t a + ω. x 2. x 2 x x ω 1 1-2ξ Fig Block diagram of a resonant mode The block diagram corresponding to the state equations of a resonant mode is shown in Figure The variations in the frequency ω and the damping coefficient ξ are represented, respectively, by ω = ω(1 + p ω δ ω ) and ξ = ξ(1 + p ξ δ ξ ) where ω and ξ are the nominal values, p ω and p ξ are the maximum relative uncertainties with 1 δ ω 1 1 δ ξ 1 being the relative variations in these parameters.

215 Robust Control of a Hard Disk Drive The parameter ω may be represented as an upper linear fractional transformation (LFT) in δ ω, ω = F U (M ω,δ ω ) with M ω = [ ] 0 ω p ω ω and the parameter ξ may be represented similarly as ξ = F U (M ξ,δ ξ ) with M ξ = [ ] 0 ξ p ξ ξ t a + u ω ω M ω y ω. x 2 x 2 v ω ω M ω z ω. x 1 x 1 y ξ ξ u ξ -2 v ξ M ξ Fig Resonant mode with uncertain parameters The block diagram of a resonant mode with uncertain parameters is given in Figure Based on this diagram we derive the following equations [ ] [ ][ ] yω 0 ω u = ω ẋ 2 p ω ω t a 2v ξ x 1 and [ zω ] [ 0 ω = ẋ 1 p ω ω ] [ 0 ξ = v ξ p ω ξ [ yξ ][ vω ][ uξ x 2 ] x 2 ], y a = [ ] [ ] x b 1 b 1 2 x 2

216 10.2 Derivation of Uncertainty Model 213 From these equations we further obtain the perturbed model of a resonant mode in the form of ẋ 1 x 1 ẋ 2 x 2 y ω z ω = Π u ω v ω y ξ u ξ y a t a where Π = 0 ω 0 p ω 0 0 ω 2ωξ p ω 0 2ωp ξ ω ω 2ωξ 0 0 2ωp ξ ω 0 ω ξ b 1 b u ω v ω u ξ t a y ω z ω y ξ y a Fig Block representation of a resonant mode A block with four inputs and four outputs can be used to represent a resonant mode (Figure 10.8). We now consider other uncertain parameters of the plant. The uncertain parameters of the rigid-body model are taken as k t = k t (1 + p kt δ kt ) J = J(1 + p J δ J ) k y = k y (1 + p ky δ ky ) where k t, J, k y are the corresponding nominal parameters and 1 δ kt 1 1 δ J 1

217 Robust Control of a Hard Disk Drive 1 δ ky 1 are variations. These parameters are represented as LFTs in the related uncertainties δ kt,δ J,δ ky : k t = F U (M kt,δ kt ) J = F U (M Ji,δ J ) k y = F U (M ky,δ ky ) where [ 0 kt M kt = p kt k t ] [ 1 ] pj, M Ji = J 1, M p ky = J J [ ] 0 ky p ky k y u ω1 v ω1 u ξ1 t a 1 y ω1 z ω1 y ξ1 y a1 u ω2 y ω2 v ω2 u ξ2 t a u ω3 v ω3 u ξ3 t a 2 3 z ω2 y ξ2 y a2 u kt y kt t d i c t m t a t h M kt y ω3 z ω3 y ξ3 y a3 u ω4 v ω4 u ξ4 t a 4 y ω4 z ω4 y ξ4 y a4 Fig Representations of uncertain motor torque constant and resonant modes In Figure 10.9 we show the part of the uncertainty model involving the motor torque constant and the four resonant modes, and in Figure we show the part of the model involving the arm moment of inertia and position measurement gain. Overall, we have twelve uncertain parameters but four of them (ω 1,ω 2,ω 3 and ω 4 ) are repeated twice. By puling out the uncertain parameters from

218 10.3 Closed-loop System-design Specifications 215 t h u J J M Ji y J ω Θ R.tpm u ky ky M ky y ky y Fig Block diagram of uncertain arm moment of inertia and position gain the nominal part of the model, we obtain a perturbed plant model in the form of an upper LFT F U (G nom, ) as shown in Figure with a matrix, = diag(δ ω1,δ ω1,δ ξ1,δ ω2,δ ω2,δ ξ2,δ ω3,δ ω3,δ ξ3,δ ω4,δ ω4,δ ξ4,δ kt,δ J,δ ky ) that contains all the uncertain parameters. In the given case the matrix G nom is obtained by the function sysic using the interconnections shown in Figures 10.5, 10.7, 10.9 and The system model is of order 11. The uncertainty model of the HDD servo system is implemented by the M-file mod hdd.m. u G nom y Fig Plant model in the form of an upper LFT 10.3 Closed-loop System-design Specifications The design of the HDD servo controller will be first conducted in the continuous-time case. In general, it may obtain best possible performance in the continuous-time case that can then be considered as a limit for discretetime designs. Also, in the continuous-time case it is easier to find appropriate performance weighting functions that again may be implemented in the discrete-time design. The block diagram of the closed-loop system, which includes the feedback structure and the controller as well as the elements representing the model uncertainty and the performance objectives, is shown in Figure

219 Robust Control of a Hard Disk Drive W u e u w z d r + u + G nom y + + K W p e y + + W n M n Fig Block diagram of the closed-loop system with performance specifications The system has a reference input (r), an input disturbance (d), a noise (n) and two output costs (e y and e u ). The system M is an ideal model of performance, to which the designed closed-loop system tries to match. The rectangle, shown with dashed lines, represents the plant transfer function matrix G. Inside the rectangle is the nominal model G nom of the Hard Disk Drive plant and the block that parameterises the model uncertainties. The matrix is unknown, but has a diagonal structure and norm bound < 1. The performance objective requires the transfer matrices from r, d and n to e y and e u to be small in the sense of, for all uncertain matrices under consideration. The position noise signal is obtained by passing the unit-bounded signal n through the weighting transfer matrix W n. The transfer matrices W p and W u are used to reflect the relative significance of the different frequency ranges for which the performance is required. Hence, the performance objective can be recast, with possible slight conservativeness, as that the of the transfer function matrix from r, d and n to e y and e u is less than 1. It is straightforward to show that [ ] [ ] r ey Wp (S = o GK M) W p S o G W p S o GKW n d (10.1) e u W u S i K W u KS o G W u KS o W n n where S i =(I + KG) 1, S o =(I + GK) 1 are the input and output sensitivities, respectively. Note that S o G is the transfer function between d and y.

220 10.3 Closed-loop System-design Specifications 217 This objective is similar to the usual mixed S/KS sensitivity optimization and it would meet both robust stability and performance criteria by incorporating performance specifications in the matching model M. The six functions to be minimised are described in Table Table H functions to be minimised Function Description W p (S o GK M) Weighted difference between the ideal and actual closed-loop systems W p S o G Weighted disturbance sensitivity W p S o GKW n Weighted noise sensitivity W us ik Weighted control effort due to reference W u KS o G Weighted control effort due to disturbance W uks ow n Weighted control effort due to noise The controller synthesis problem of the Hard Disk Drive Servo System is to find a linear, output feedback controller K(s) that has to ensure the following properties of the closed-loop system. Nominal performance: The closed-loop system achieves nominal performance if the performance objective is satisfied for the nominal plant model. The nominal performance objective is to satisfy the inequality [ ] Wp (S o G nom K M) W p S o G nom W p S o G nom KW n < 1 (10.2) W u S i K W u KS o G nom W u KS o W n Robust stability: The closed-loop system achieves robust stability if the closed-loop system is internally stable for each possible plant dynamics G = F U (G nom, ). Robust performance: The closed-loop system must remain internally stable for each G = F U (G nom, ) and in addition the performance criterion [ ] Wp (S o GK M) W p S o G W p S o GKW n < 1 (10.3) W u S i K W u KS o G W u KS o W n

221 Robust Control of a Hard Disk Drive should be satisfied for each G = F U (G nom, ). This means that the structured w singular value, corresponding to the transfer function matrix from r d to n z [ ] e y 0 (in Figure 10.12) should be less than 1, with regard to where 0 e F u F is a fictitious 3 2 complex uncertainty block. In addition to these requirements it is desirable that the controller designed would have acceptable complexity, i.e. it is of reasonably low order. According to the above considerations, the aim of the design is to determine a controller K, such that for all stable perturbations with < 1, the perturbed closed-loop system remains stable and the performance objective is satisfied for all such perturbations System Interconnections The internal structure of the eighteen-input, seventeen-output system, which is saved in the variable sys ic, is shown in Figure The inputs and outputs of the uncertainties are saved in the variables pertin and pertout, the reference, the disturbance and the noise in the variables ref, dist, noise, respectively, and the control signal in the variable control. Both variables pertin and pertout have fifteen elements and ref, dist, noise, y, y c, e y and e u are scalar variables. pertin {1-15} pertout {1-15} dist + + G nom y + W p e_y control W u e_u + W n noise M y_c + ref Fig Block diagram of the open-loop system with performance specifications

222 10.5 Controller Design in Continuous-time 219 The open-loop connection is obtained by the M-file olp hdd. The schematic diagram showing the specific input/output ordering for the variable sys ic is shown in Figure pertin{1} 1 1 pertin{2} 2 2 pertin{3} pertin{4} pertin{5} pertin{6} pertin{7} 7 7 pertin{8} 8 8 pertin{9} 9 9 pertin{10} sys_ic pertin{11} pertin{12} pertin{13} pertin{14} pertin{15} ref dist noise control 19 pertout{1} pertout{2} pertout{3} pertout{4} pertout{5} pertout{6} pertout{7} pertout{8} pertout{9} pertout{10} pertout{11} pertout{12} pertout{13} pertout{14} pertout{15} e y e u y c Fig Schematic diagram of the open-loop connection The block-diagram used in the simulation of the closed-loop system is shown in Figure The corresponding closed-loop interconnection, which is saved in the variable sim ic, is obtained by the M-file sim hdd. The schematic diagram showing the specific input/output ordering for the variable sim ic is shown in Figure Controller Design in Continuous-time There are a few further hard constraints for the controller design, as listed below.

223 Robust Control of a Hard Disk Drive pertin {1-15} pertout {1-15} dist + + G nom y control + W n noise K y_c + ref Fig Block diagram of the closed-loop system Peak closed-loop gain < 4dB Open-loop gain > 20 db at 100 Hz Steady-state error < 0.1 µ m Settling time < 1.5ms Closed-loop bandwidth > 1000 Hz Gain margin > 5dB Phase margin > 40 deg The designed control system must achieve good disturbance rejection and noise attenuation. In addition, it is necessary to have control action smaller than 1.2 V in order to avoid power-amplifier saturation. To design the controller we shall use µ-synthesis, H optimisation and the H loop shaping design procedure (LSDP) in this exercise. In the case of µ-synthesis and H optimisation design, we have to specify the model transfer function M and the weighting transfer functions W n, W p and W u. The model transfer function is chosen so that the time response to the reference signal would have an overshoot less than 20 % and a settling time less than 1 ms. A possible model satisfying the requirements is M = s s +1

224 10.5 Controller Design in Continuous-time 221 pertin{1} pertin{2} pertin{3} pertin{4} pertin{5} pertin{6} pertin{7} pertin{8} pertin{9} pertin{10} pertin{11} pertin{12} pertin{13} pertin{14} pertin{15} ref dist noise control sym_ic pertout{1} pertout{2} pertout{3} pertout{4} pertout{5} pertout{6} pertout{7} pertout{8} pertout{9} pertout{10} pertout{11} pertout{12} pertout{13} pertout{14} pertout{15} y control y c Fig Schematic diagram of the closed-loop connection The noise shaping function W n is determined on the basis of the spectral density of the position noise signal. In the given case it is taken as the highpass filter 4 0.1s +1 W n = s +1 whose output has a significant spectral content above 500 Hz. For this shaping filter, the position noise signal is only 0.6 mv in the low-frequency range but it is 60 mv in the high-frequency range that corresponds to a position error of 5% of the track width. The weighting functions W p and W u have to be chosen so as to ensure an acceptable trade-off between the nominal performance and the robust performance of the closed-loop system. They are selected in the course of the µ-synthesis, since this particular design method allows us to achieve maximum performance of the perturbed, closed-loop system µ-design In the µ-synthesis it is necessary to specify individually the inputs and outputs of the uncertainty blocks. In this exercise, only the inputs and outputs

225 Robust Control of a Hard Disk Drive of the uncertainty in the rigid-body model (i.e. the parameters k t, J and k y ) will be considered. The inclusion of the uncertainties of resonant modes would make the D K iterations difficult to converge. This confirms that the resonant modes may create difficulties in the controller design. However, these resonant modes (with nominal values) are included in the plant dynamics and will be considered, with parametric variations, in the assessment of designed controllers in Section u kt u J u ky r d n nominal_dk y kt y J y ky e y e u u K y c Fig Block diagram of the closed-loop system with µ-controller The block diagram of the closed-loop system used in the µ-synthesis is shown in Figure Denote by P (s) the transfer matrix of the seven-input, six-output, open-loop system nominal dk and let the block structure of the uncertainty P be defined by {[ ] } r 0 P := : 0 r R 3 3, F C 3 2 F The first block of this uncertainty matrix corresponds to the block r containing the uncertainties in the rigid-body model. The second block F is a fictitious uncertainty block that is used for the performance requirements in the framework of the µ approach. In order to satisfy the robust performance requirements it is necessary to find a stabilising controller K(s), such that for each frequency ω [0, ] the structured singular value satisfies the condition µ P [F L (P, K)(jω)] < 1 The fulfillment of this condition guarantees robust performance of the closedloop system, i.e. [ ] Wp (S o GK M) W p S o G W p S o GKW n < 1 (10.4) W u S i K W u KS o G W u KS o W n

226 10.5 Controller Design in Continuous-time 223 The µ-synthesis is conducted by using the M-file ms hdd along with the file dk hdd describing the interconnection of the design. It should be noted that the robust performance achieved during the D K iteration is only with respect to the uncertainties in the rigid-body model, since only these uncertainties are taken into account in the design. Hence it is necessary to make additional robust stability and robust performance analysis that takes into account the other uncertainties. The closed-loop system performance specifications are reflected by the weighting performance function W p (s). Three performance weighting functions are considered in the design. They are W p1 (s) =10 4 s s s s and W p2 (s) =10 4 s s s s W p3 (s) =10 4 s s s s The inverse of performance weighting functions 70 1 Solid line: W p Dashed line: W p2 1 Dash dotted line: W p3 Magnitude (db) Frequency (Hz) Fig Frequency response of the inverse of W p In Figure we show the frequency responses of the inverses of these three weighting functions, i.e. Wp1 1,W 1 1 p2 and Wp3. It is seen that in all three

227 Robust Control of a Hard Disk Drive selections, the aim is to achieve a small difference between the system and model outputs, and a small effect of the disturbance on the system outputs. This will ensure good tracking of the reference input and small error due to low-frequency disturbances. Changing the performance weighting function from W p1 to W p3 moves the inverse weighting frequency response to the right (to higher frequencies) which forces the system to match the model in over a larger frequency range. The control weighting function is usually chosen as high-pass filters in order to ensure that the control action will not exceed 1.2 V. Again, three such weighting functions are considered in the design and are listed below: W u1 (s) = s 2 + s s s +1 W u2 (s) = s 2 + s s s +1 and W u3 (s) = s 2 + s s s +1 These three control weighting functions are paired with the three performance weighting functions, in the given order, in the µ-synthesis. The final choice of the appropriate performance and control weighting functions is obtained by comparing the results from the corresponding µ- designs. (Six D K iterations are used in each case.) The robust stability and robust performance analysis conducted by the file mu hdd gives the results shown in Table Table Robust stability and robust performance for three controllers Controller Order Robust stability Robust performance µ max µ max In the first and third design cases, corresponding to the weighting functions (W p1,w u1 ) and (W p3,w u3 ), we take the controllers from the 6th D K iteration and in the second case we take the controller obtained at the 5th D K iteration. The closed-loop system achieves robust stability and robust performance for all three controllers; however, the best results, in terms of gain and phase margins, come from the first controller. This can also be seen from the corresponding µ-values. The gain and phase margins for all three design cases are listed in Table 10.5.

228 10.5 Controller Design in Continuous-time 225 Table Gain and phase margins for three controllers Controller Gain margin Phase margin db deg The closed-loop transient responses are shown in Figure 10.19, for a simulated runout of 1 track width (1µ m) and a torque disturbance t d = N m. 1.2 Closed loop transient response Solid line: the first controller Position error signal (track) Dashed line: the second controller Dash dotted line: the third controller Time (s) x 10 3 Fig Transient responses of three µ-controllers It is seen from Figure that the first controller gives a response with the smallest undershoot (about 20%), but this response is the slowest one. The third controller gives the fastest response but the undershoot in this case is the largest one (about 50%). Figure shows that as a result of the appropriate tuning of the control weighting functions all three controllers produce a control action whose amplitude is slightly less than 1.2 V. The comparison of the transient responses to disturbance, shown in Figure 10.21, reveals that the worst disturbance rejection is found in the first

229 Robust Control of a Hard Disk Drive Control action due to the reference Solid line: the first controller 0.6 Dashed line: the second controller u (V) Dash dotted line: the third controller Time (s) x 10 4 Fig Control actions of three µ-controllers controller case and the best in the third controller case. This is a result of the tightest closed-loop bandwidth of 2 khz (measured at 3 db) in the first controller case compared with the bandwidth of 3.2 khz in the third controller case (see Figure 10.22). Note that the largest peak of the magnitude is found in the third controller case, which results in the largest undershoot of the transient response. The results obtained from different weighting functions show that moving the frequency response of the inverse performance weighting function to the right would lead to larger closed-loop system bandwidth, and consequently, faster time-responses of the closed-loop system, though may introduce larger over(under)shoot. However, at the same time, this may reduce the robustness of the closed-loop system. Hence, one has to compromise between the different objectives in the design. In the present design case, it seems that the second controller leads to a good trade-off between the requirements in terms of transient response, disturbance rejection and robustness. Hence, we will use the weighting functions W p2 and W u2 in both the µ-synthesis and H design.

230 10.5 Controller Design in Continuous-time Transient response to the disturbance Position error signal (track) Solid line: the first controller Dashed line: the second controller 0.25 Dash dotted line: the third controller Time (s) x 10 3 Fig Transient responses to disturbance of three µ-controllers 10 Closed loop magnitude plot Magnitude (db) Solid line: the first controller Dashed line: the second controller Dash dotted line: the third controller Frequency (Hz) Fig Closed-loop magnitude plots of three µ-controllers

231 Robust Control of a Hard Disk Drive H Design The aim of the design in this case is to find an H (sub)optimal, output controller for the interconnection shown in Figure in which we exclude the inputs and outputs of the uncertainty block. r d n P e y e u u K y c Fig Closed-loop system with H controller The variable hin ic that corresponds to the transfer function P of the open-loop system is obtained by the command line hin_ic = sel(sys_ic,[16:18],[16:19]) The H optimal control minimises the -norm of F L (P, K) with respect to the transfer function K of the controller. In the given case F L (P, K) (as the transfer function matrix in (10.2)) is the nominal closed-loop transfer function matrix from the reference, disturbance and noise signals (the variables ref, dist and noise) to the weighted outputs e y and e u. The design is conducted using the M-file hinf hdd.m, which computes a (sub)optimal H control law for a given open-loop system. The value of γ is chosen 10% higher than the minimum possible value. The controller such obtained is of 18th order H Loop-shaping Design The design of a robust control for the Disk Drive System can be successfully accomplished using the H loop-shaping design procedure (LSDP) as well, as described in this subsection. Note that in the case of H LSDP, we do not use the performance weighting function implemented in the cases of µ and H designs. Instead, we use a prefilter W 1 and a postfilter W 2 in order to shape appropriately the frequency response of the augmented, open-loop transfer function W 2 GW 1 (see Chapter 5). In the present case we choose a prefilter with transfer function W 1 =4 0.05s +1 s

232 10.6 Comparison of Designed Controllers 229 The gain of 4 is chosen to ensure a steady-state error, due to the disturbance, of less than 10% of the track width. Larger gain leads to smaller steady-state errors but possibly worse transient response. The postfilter is taken simply as W 2 = 1. The magnitude plots of the original and shaped systems are shown in Figure The design of the H LSDP controller uses the M-file lsh hdd that implements the function ncfsyn. The controller obtained is of order Frequency responses of the plant and the shaped plant 150 Magnitude (db) Solid line: the original plant Dashed line: the shaped plant Frequency (Hz) Fig Magnitudes of the original and shaped systems 10.6 Comparison of Designed Controllers The comparison of the closed-loop system with µ, H and H LSDP controllers begins with the robust stability and performance analysis. The robust stability is tested on the upper block of the closedloop transfer function matrix. To achieve robust stability it is necessary that the µ-values are less than 1 over the frequency range. In Figure we compare the structured singular values, for the robust stability analysis, of the closed-loop systems with the three controllers (µ, H, and H LSDP). This shows that all three closed-loop systems achieve the robust stability. The best robustness is obtained by the µ-controller. The nominal performance is tested on the bottom 3 2 block of the closedloop transfer matrix. The comparison of the nominal performance for the three controllers, in Figure 10.26, shows that the performance in the H

233 Robust Control of a Hard Disk Drive 1 Robust stability of three controllers 0.9 Solid line: µ contro ler Dashed line: H controller 0.8 Dash dotted line: loop shaping controller 0.7 Upper bound of µ Frequency (Hz) Fig Robust stability of the closed-loop systems LSDP controller case over the low-frequency range is much worse than that in the other two cases. This is a consequence of the fact that the performance specifications used in the µ-design and H design are not explicitly adopted in the design of the H LSDP controller. The larger magnitude over the low frequencies leads to an expectation of larger steady-state errors. The robust performance of the closed-loop system is studied also with the aid of the µ-analysis. The closed-loop transfer function matrix has 18 inputs and 17 outputs. The first 15 inputs/outputs correspond to the 15 channels connecting the perturbation matrix, while the last 3 inputs and 2 outputs correspond to the weighted sensitivity of the closed-loop system. Hence, for a µ-analysis of the robust performance the block-structure of the uncertainty should consist of a diagonal real uncertainty block and a 3 2 complex uncertainty block. {[ ] } 0 P := : C 15 15, 0 F C 3 2 F The robust performance (with respect to the uncertainty and performance weighting functions) is achieved if and only if for each frequency µ P (.), computed for the closed-loop frequency response, is less than 1. The robust performance test for all controllers is shown in Figure Again, the H LSDP controller shows large µ-values over the low-frequency range.

234 10.6 Comparison of Designed Controllers Nominal performance of three controllers 10 0 Magnitude Solid line: µ controller Dashed line: H controller Dash dotted ine: loop shaping controller Frequency (Hz) Fig Nominal performance of the closed-loop systems Robust performance of three controllers 10 0 Upper bound of µ Solid line: µ controller Dashed line: H controller Dash dotted line: loop shaping controller Frequency (Hz) Fig Robust performance of the closed-loop systems The robust stability and robust performance analysis also shows that the worse results may possibly occur over frequencies around the resonant frequencies.

235 Robust Control of a Hard Disk Drive 10 Closed loop magnitude plot 8 Solid line: µ controller 6 Dashed line: H controller 4 Dash dotted line: loop shaping controller Magnitude (db) Frequency (Hz) Fig Magnitudes of the closed-loop systems 50 Closed loop phase plot Phase (deg) Solid line: µ controller Dashed line: H controller Dash dotted line: loop shaping controller Frequency (Hz) Fig Phase plots of the closed-loop systems The Bode plots of the closed-loop systems with three controllers are shown in Figures and It is seen that the system with the H LSDP controller has the largest bandwidth that may lead to a fast transient response.

236 10.6 Comparison of Designed Controllers 233 A larger bandwidth, however, may also lead to a larger effect of noises and resonances. 60 Output sensitivity to the disturbance Magnitude (db) Solid line: µ controller Dashed line H controller 0 Dash dotted line: loop shaping controller Frequency (Hz) Fig Output sensitivity to disturbance The plot of the output sensitivity to disturbances (Figure 10.30) shows that in the low-frequency range the influence of the disturbance on the system output in the case of the H LSDP controller is the largest. Better disturbance attenuation for this controller may be achieved by choosing higher gain in the prefilter. This will lead, however, to greater overshoot in the transient response. The sensitivity to disturbance in the cases of µ and H controllers reaches a maximum value in the frequency range from 300 Hz to 700 Hz, which is inside of the closed-loop bandwidth. This means that the closed-loop system will be susceptible to disturbances over that frequency range. It is interesting to notice that the sensitivity of the H LSDP controller over the same range is 8 db lower. The output sensitivity to noise is shown in Figure (Note that the sensitivity is with respect to the unit-bounded noise, the input of the noise shaping filter.) The lowest sensitivity to noise has been achieved by the system with the µ-controller and the largest sensitivity by the system with the H LSDP controller. The Bode plots of the three controllers are compared in Figures and It is seen that the H LSDP controller has a very low gain in the range from 1 Hz to 500 Hz which is the reason for the weak attenuation of the disturbances over that range.

237 Robust Control of a Hard Disk Drive 15 Output sensitivity to the noise Magnitude (db) Solid line: µ controller 55 Dashed line: H controller 60 Dash dotted line: loop shaping controller Frequency (Hz) Fig Output sensitivity to noise 30 Controller magnitude plot Magnitude (db) Solid l ne: µ contro ler Dashed line: H controller Dash dotted line: loop shaping controller Frequency (Hz) Fig Magnitude plots of three controllers The transient responses of the closed-loop systems are obtained by using the file clp hdd. In Figure we show the transient responses of the closedloop systems to a reference signal, equivalent to 1 track. While for the H

238 10.6 Comparison of Designed Controllers Controller phase plot Solid line: µ controller 100 Dashed line: H controller Dash dotted line: loop shaping controller 50 Phase (deg) Frequency (Hz) Fig Phase plots of three controllers 1.2 Closed loop transient response 1 Solid line: µ controller 0.8 Dashed line: H controller 0.6 Dash dotted line: loop shaping controller Position error signal (track) Time (s) x 10 3 Fig Transient responses with three controllers and H LSDP controllers the undershoot is about 60%, it is only 28% for the µ-controller. The settling time for the H LSDP, µ and H controllers is 0.8 ms, 1 ms and 1.5 ms, respectively.

239 Robust Control of a Hard Disk Drive 1.5 Control action due to the reference 1 Solid line: µ controller Dashed line: H controller 0.5 Dash dotted line: loop shaping controller u (V) Time (s) x 10 4 Fig Control actions of three controllers The control actions of the three controllers are shown in Figure For all controllers the control signal amplitude does not exceed 1.2 V, as required. In Figure we show the system response to a step torque disturbance t d = N m (equivalent to a force of N applied to the disk head sssembly). The transient error for the H LSDP controller has the smallest undershoot (11.5%) but has a nonzero steady-state error. This reveals that in the given case the LSDP controller does not have integrating action with respect to the disturbance. The transient error for µ and H controllers is less than 17% of the track width and the steady-state error is practically equal to zero. The output response to the position-sensing noise is simulated for a noise signal with an amplitude that does not exceed 60 mv (5% of the track width). This signal is obtained at the output of the noise shaping filter whose input is chosen as a sequence of uniformly distributed random numbers in the interval [ 1, 1]. In the case of the µ-controller the output due to noise is less than 1.9% of the track width. The largest output to the noise (2.3% of the track width) is seen in the H LSDP controller case due to the largest closed-loop bandwidth of this controller. The comparison of the robust stability and robust performance for the three controllers, as well as the comparison of the corresponding frequency

240 10.7 Controller-order Reduction Transient response to the disturbance Position error signal (track) Solid line: µ controller Dashed line: H controller Dash dotted line: loop shaping controller Time (s) x 10 3 Fig Transient disturbance responses of three controllers and transient responses shows that it is reasonable to conclude that the µ controller is preferable Controller-order Reduction The controller obtained by the µ-synthesis is initially of 38th order. It is useful to reduce as much as possible the controller order, which will simplify the implementation and increase the reliability. To do this we use the system balancing followed by optimal Hankel approximation (see Chapter 7). There is a clear gap between the 12th and 13th Hankel singular values. Hence, the order of the µ-controller is reduced to 12. Further reduction of the controller order leads to deterioration of the closed-loop performance. In Figures and 10.38, we compare the Bode plots of the full order and reduced-order controllers. The corresponding plots practically coincide with each other, which implies similar performances in the closed-loop systems. In particular, the transient responses of the closed-loop system with full order and that with the reduced-order controller are practically undistinguishable.

241 Robust Control of a Hard Disk Drive 30 Controller magnitude plots Magnitude (db) Solid line: the full order controller Dashed line the reduced order controller Frequency (Hz) Fig Magnitude plots of full- and reduced-order µ-controllers 150 Controller phase plots 100 Solid line: the full order controller Dashed line: the reduced order controller 50 Phase (deg) Frequency (Hz) Fig Phase plots of full- and reduced-order µ-controllers

242 10.8 Design of Discrete-time Controller 10.8 Design of Discrete-time Controller 239 In general, there are two approaches to designing a discrete-time servo controller. The first approach is to sample the already designed continuous-time controller at a given sampling frequency f s =1/T s. This may be accomplished by the M-file dcl hdd.m that utilises the Robust Control Toolbox function samhld. It is assumed that the control-action calculation requires one sampling period T s. This introduces a pure delay equal to T s that is approximated by a rational transfer function using the command pade. The resultant sampled-data, closed-loop system is simulated by using the function sdtrsp. This approach gives satisfactory results for a sufficiently high sampling frequency (say, 100 khz in the given case). The second method is to sample the continuous-time, open-loop system (including the weighting filters) and to design directly a discrete-time controller by using H optimisation (implementing the function dhinfsyn) or µ-synthesis (implementing the function dkit). The choice of the sampling frequency in the discrete-time case has a strong influence on the closed-loop system performance. A low sampling frequency limits the system bandwidth and would deteriorate the transient performance such as the disturbance rejection. On the other hand, the increase of the sampling frequency would complicate the controller implementation and raise the cost of the HDD. Later we consider the µ-synthesis of the discrete-time controller for two sampling rates 24 khz and 36 khz. In both cases we use the same performance weighting function W p2 (s) =10 4 s s s s utilised already in the continuous-time design. Depending on the sample rate we use two different control weighting functions (for f s = 24 khz) and W u1 (s) =10 6 4s 2 +2s s s +1 W u2 (s) = s 2 +2s s s +1. (for f s = 36 khz). This allows, in both cases, to obtain control signals that do not exceed 1.2 V. The noise shaping filter is the same as in the continuous-time case. The sampling of the extended open-loop system for the given sampling rate is conducted by the M-file dlp hdd.m. The discrete-time µ-synthesis is

243 Robust Control of a Hard Disk Drive accomplished by the file dms hdd.m that is used in conjunction with the auxiliary file ddk hdd.m. The file ddk hdd.m sets the structure of the uncertainty and the parameter values of the D K iteration. As in the continuous-time µ-synthesis, only the rigid-body uncertain parameters are taken into account. The frequency is set on the unit circle in the interval [0,π]. In the discrete-time case it is also necessary to add the operator DISCRETE_DK = 1; in the file ddk hdd.m. The results from the µ-synthesis for f s = 24 khz show that for the chosen weighting functions the closed-loop system almost achieves robust performance at the fifth D K iteration (µ max =1.06) but the closed-loop response is relatively slow and the undershoot is large (44%). The maximum control amplitude is 1.19 V. To obtain better results it is necessary to increase the sampling frequency Solid line: the upper bound Dashed line: the lower bound Robust stability µ Frequency (Hz) Fig Robust stability of f s = 36 khz design We now present in more detail the results from the µ-synthesis at f s = 36 khz. In this case an appropriate controller is obtained after three D K iterations and the maximum robust performance achieved is µ max = In Figures and 10.40, we show the µ-plots, obtained by the M-file dmu hdd.m, for robust stability analysis and robust performance analysis, respectively. In both plots the worst results are seen around the second resonant frequency of 2.2 khz.

244 10.8 Design of Discrete-time Controller Robust performance Solid line: the upper bound Dashed line: the lower bound 10 0 µ Frequency (Hz) Fig Robust performance of f s = 36 khz design The closed-loop transient response is obtained by the file dsl hdd.m that uses the function sdtrsp. The function sdtrsp also computes the control signal obtained at the output of the digital-to-analogue converter. The closedloop transient response is shown in Figure and the corresponding control action in Figure The undershoot of the transient response is less than 36% and the peak amplitude of the control is less than 1.05 V. The transient response to disturbance is shown in Figure Overall, the results obtained are almost as good as the results obtained with the continuous-time, µ-controller.

245 Robust Control of a Hard Disk Drive 1.2 Closed loop sampled data transient response Position error signal (track) Time (s) x 10 3 Fig Transient response of f s = 36 khz design 1.5 Controller output due to the reference u (V) Time (s) x 10 3 Fig Control action of f s = 36 khz design

246 10.8 Design of Discrete-time Controller Transient response to the disturbance Position error signal (track) Time (s) x 10 3 Fig Transient response to disturbance of f s = 36 khz design

247 Robust Control of a Hard Disk Drive 10.9 Nonlinear System Simulation In order to obtain a realistic idea about the behaviour of the designed system, the nonlinear, closed-loop servo system is simulated by using Simulink r.for this aim, two models are developed, namely c hdd.mdl for the continuoustime system and d hdd.mdl for the sampled-data system. In the simulation we take into account the amplifier saturation, which was neglected in the design so far. Both models allow us to simulate the closed-loop system for different reference, disturbance and noise signals. Before simulating the continuous-time system it is necessary to assign the model parameters by using the M-file init c hdd.m. The sampled-data model involves the discrete-time controller, 16-bit analogueto-digital converter with maximum input voltage 2.5 V and 16-bit digital-toanalogue converter with maximum output voltage 10 V. It is assumed that the discrete-time controller is implemented on a digital signal processor(dsp) with word length of 64 bits. These parameters are set prior to the simulation by using the M-file init d hdd.m. It is assumed that the control action calculation requires one sampling period T s. In Figure we show the Simulink r model d hdd.mdl of the nonlinear, sampled-data, closed-loop system. As in the linear case, the transient responses of the nonlinear closed-loop system are obtained for a simulated runout of 1 track width (1µm) and torque disturbance t d = N m. In Figure and in Figure we compare the results from the simulation of the continuous-time and discrete-time nonlinear systems. The continuous-time controller is the reduced-order µ-controller in Section 10.7 and the discrete-time controller is the controller designed at the sampling frequency of 36 khz. The transient responses of the nonlinear system are close to the corresponding responses of the linear system due to the small input signals (amplitude less than 1.2 V). It should be mentioned that the controllers designed are appropriate for small reference signals (equivalent to one track). For larger references the amplifier saturates and it is necessary to implement an appropriate seeking algorithm.

248

249 Robust Control of a Hard Disk Drive 0.2 Nonlinear system response to the reference Solid line: the continuous time system Position error signal (track) Dashed line: the discrete time system Time (s) x 10 3 Fig Transient responses of the nonlinear systems 0.1 Nonlinear system response to the disturbance Position error signal (track) Solid line: the continuous time system Dashed line: the discrete time system Time (s) x 10 3 Fig Disturbance responses of the nonlinear systems

250 10.10 Conclusions Conclusions The experience gained in the design of the HDD servo controllers makes it possible to derive the following conclusions: The implementation of designed µ, H and H LSDP controllers in the HDD servo system gives satisfactory results with respect to robustness and performance. All three controllers ensure robust stability of the closed-loop system. The best robust performance is achieved by using the µ and H controllers. The implementation of the H LSDP controller gives the fastest transient response and the corresponding design is less complicated. This controller, however, leads to the worst performance in the low-frequency range, which results in a large steady-state error. In the given case the best trade-off between the robustness and transient response requirements is achieved by using the µ-controller that is, to some extent, due to the specially chosen weighting functions. The number of original uncertain parameters is very large (more than 25 in the given case). This complicates the derivation of the uncertainty model and produces heavy computation demands. This is why it is necessary to investigate the parameter importance with respect to the robustness and performance in order to reduce their number to an acceptable value. However, in the evaluation of the design, it is better to take into account all the possible uncertainties to ensure a satisfactory design in a real case. In the µ-synthesis, the order of the resultant controller depends on the order of the plant, of the weighting functions and of the scaling diagonal elements approximations. The designed controllers are usually of high orders, which complicates the implementation of the controller. Hence, an order reduction should usually be considered right after the controller design. Most controllers used in the HDD designs are of order between 8 and 15. Good disturbance attenuation requires sufficiently large closed-loop bandwidth. This may, however, lead to difficulties in achieving robust stability and robust performance in the presence of resonant modes. Some resonances whose frequencies are much higher than the closed-loop bandwidth and thus seem innocent may even actually destroy the robust stability of the system. In such cases, it is necessary to increase the damping of these modes by using techniques of passive/active damping. The presence of resonant modes may require sufficiently high sampling rates in the case of using a discrete-time controller. It is important to stress that better results, with respect to the transient response (overshoot and settling time), are difficult to obtain for the current plant parameters. If higher performance demands are required, it is necessary to change the HDD parameters, for instance to increase the VCM torque constant.

251 Robust Control of a Hard Disk Drive Notes and References The history of the Hard Disk Drive control is presented in the fascinating papers of Abramovitch and Franklin [1, 2]. An excellent survey on similarities and contrasts in the magnetic and optical disk controls is given in [5]. In [77] one may find an attractive description of the HDD construction and functioning. The book of Chen et al. [15] is the only book up to the moment that is entirely devoted to HDD servo systems and contains rich information related to the design of such systems. A tutorial on HDD control can be found in [106]. A detailed model of the HDD servo system, which has very much influenced the model used in this chapter, is presented in the book of Franklin et al. [39, Chapter 14]. Below 100 Hz the rotary actuator dynamics is affected by pivot bearing nonlinearity, which is known under the name stick-slip. It has a strong effect particularly in the case of small disk drives with lower actuator inertia. Analysis and simulation of this phenomenon are presented in [4, 156]. An important step in the design of HDD servo systems is the reliable estimation of the various disturbances and noises acting on the system. Methods for such estimations are described in [3, 27, 61]. The harmonic compensation used to reduce RRO is considered in [16, 74]. The track-seeking and track-following modes require different control algorithms. Track-seeking algorithms are described in [39, 123]. The switching of control mode from track-seeking to track-following should be smooth so that the residual vibration of the read/write head suspension is minimal. There are several control algorithms that work for both track-seeking and following, see for instance [70, 63]. Such algorithms utilise two-degree-of-freedom (2DOF) controllers in which case the track seeking is accomplished by using a feedforward controller along with a reference trajectory. Apart from the track seeking and track following the HDD also contains a spindle velocity control loop. The purpose of this loop is to control the air flow over the disk in order to guarantee the appropriate flying height of the read/write head. This is a low-frequency control loop and its design does not represent a serious difficulty. Further expansion of the closed-loop bandwith of the HDD control system may be achieved by using the so-called dual-stage servos that consist of a low-bandwidth coarse actuator (the usual VCM) and a high bandwidth fine actuator. The fine actuator has a small stroke and may be implemented as a piezoelectric transducer(pzt) [31]. The design of dual-stage servos is considered in [22, 66, 76]. Other important aspects of the analysis and design of HDD servo systems are presented in [50, 69, 83, 99, 164], to name a few.

252 11 Robust Control of a Distillation Column In this chapter we present the design of a robust control system for a highpurity distillation column. The original nonlinear model of the column is of high order and it includes parametric gain and time-delay uncertainty. A low-order linearised distillation column model is used in the design of a twodegree-of freedom (2DOF) H loop-shaping controller and a µ-controller. Both controllers ensure robust stability of the closed-loop system and fulfillment of a mixture of time-domain and frequency-domain specifications. A reduced order µ-controller is then found that preserves the robust stability and robust performance of the closed-loop system. The simulation of the closed-loop system with the nonlinear distillation column model shows very good performance for different reference and disturbance signals as well as for different values of the uncertain parameters Introduction Distillation is an important process in the separation and purification of chemicals. The process exploits the difference at boiling points of multicomponent liquids. The control of distillation columns is difficult, because the distillation process is highly nonlinear and the corresponding linearised models are often ill-conditioned around the operating point. The aim of the design, presented in this chapter, is to find a controller that achieves robust stability and robust performance of the closed-loop control system of a high-purity distillation column. The original nonlinear model of the column is of 82nd order and it includes uncertainties in the form of parametric gains and time delay. The uncertainty model is considered in the form of an input multiplicative complex uncertainty. In our design exercises, we found that it is difficult to achieve the desired performance of the closed-loop system using one-degree-of-freedom controllers. Hence, we turned to the H two-degree-offreedom loop-shaping design procedure and µ-synthesis/analysis method. The

253 Robust Control of a Distillation Column designs are based on a 6th-order linearised distillation column model. Both designed controllers ensure robust stability of the closed-loop system and achieve a mixed set of time-domain and frequency-domain specifications. We present several time-domain and frequency-domain characteristics of the corresponding closed-loop systems that makes possible the comparison of controllers efficiency. An 11th-order reduced-order µ-controller is found that preserves the stability and performance of the closed-loop system in the presence of uncertainties. The simulation of the closed-loop system with this µ-controller and with the nonlinear distillation column model is conducted in Simulink r and shows very good performance for different reference and disturbance signals as well as for different values of the uncertain parameters Dynamic Model of the Distillation Column A typical two-product distillation column is shown in Figure The objective of the distillation column is to split the feed F, which is a mixture of a light and a heavy component with composition z F, into a distillate product D with composition y D, which contains most of the light component, and a bottom product B with composition z B, which contains most of the heavy component. For this aim, the column contains a series of trays that are located along its height. The liquid in the columns flows through the trays from top to bottom, while the vapour in the column rises from bottom to top. The constant contact between the vapour and liquid leads to increasing concentration of the more-volatile component in the vapour, while simultaneously increasing concentration of the less volatile component in the liquid. The operation of the column requires that some of the bottom product is reboiled at a rate V to ensure the continuity of the vapor flow and some of the distillate is refluxed to the top tray at a rate L to ensure the continuity of the liquid flow. The notations used in the derivation of the column model are summarised in Table 11.1 and the column data are given in Table The index i denotes the stages numbered from the bottom (i =1)tothe top (i = N tot ) of the column. Index B denotes the bottom product and D the distillate product. A particular high-purity distillation column with 40 stages (39 trays and a reboiler) plus a total condensor is considered. The nonlinear model equations are: 1. Total material balance on stage i dm i /dt = L i+1 L i + V i 1 V i 2. Material balance for the light component on each stage i d(m i x i )/dt = L i+1 x i+1 + V i 1 y i 1 L i x i V i y i This equation leads to the following expression for the derivative of the liquid mole fraction

254

255 Robust Control of a Distillation Column Table Column nomenclature Symbol Description F Feed rate [kmol/min] z F feed composition [mole fraction] q F fraction of liquid in feed D and B distillate (top) and bottom product flowrate [kmol/min] y D and x B distillate and bottom product composition (usually of light component) [mole fraction] L reflux flow [kmol/min] V boilup flow [kmol/min ] N number of stages (including reboiler) N tot = N + 1 total number of stages (including condensor) i stage number (1 bottom, N F feed stage, N T total condensor) L i and V i liquid and vapour flow from stage i [kmol/min] x i and y i liquid and vapour composition of light component on stage i M i liquid holdup on stage i [kmol] (M B reboiler, M D condensor holdup) α relative volatility between light and heavy component time constant for liquid flow dynamics on each stage [min] τ L Table Column data N N tot N F F z F q F D B L V y D x B M i τ L L i = L0 i +(M i M0 i )/τ L + λ(v i 1 V 0 i 1 ) where L0 i [kmol/min] and M0 i [kmol] are the nominal values for the liquid flow and holdup on stage i and V 0 i is the nominal boilup flow. If the vapour flow into the stage effects the holdup then the parameter λ is different from zero. For the column under investigation λ = 0. The above equations apply at all stages except in the top (condensor), feed stage and bottom (reboiler). 1. For the feed stage, i = N F (it is assumed that the feed is mixed directly into the liquid at this stage) dm i /dt = L i+1 L i + V i 1 V i + F d(m i x i )/dt = L i+1 x i+1 + V i 1 y i 1 L i x i V i y i + Fz F

256 11.2 Dynamic Model of the Distillation Column For the total condensor, i = N tot (M Ntot = M D,L Ntot = L T ) dm i /dt = V i 1 L i D d(m i x i )/dt = V i 1 L i x i Dx i 3. For the reboiler, i =1(M i = M B,V i = V B = V ) d(m i x i )/dt = L i+1 x i+1 V i y i Bx i As a result, we obtain a nonlinear model of the distillation column of 82nd order. There are two states per tray, one representing the liquid composition and the other representing the liquid holdup. The model has four manipulated inputs (L T,V B,D and B) and three disturbances (F, z F and q F ). In order to find a linear model of the distillation column it is necessary to have a steady-state operating point around which the column dynamics is to be linearised. However, the model contains two integrators, because the condensor and reboiler levels are not under control. To stabilise the column, we make use of the so called LV-configuration of the distillation column where we use D to control M D and B to control M B. This is done by two proportional controllers with both gains equal to 10. The nonlinear model is linearised at the operating point given in Table 11.2 (the values of F, L, V, D, B, y D,x B and z F ). These steady-state values correspond to an initial state where all liquid compositions are equal to 0.5 and the tray holdups are also equal to 0.5 [kmol]. The steady-state vector is obtained for t = 5000 min by numerical integration of the nonlinear model equations of the LV-configuration given in the M-file cola lv.m. The linearisation is carried out by implementing the M-file cola lin that makes use of the equations given in the file cola lv lin.m. The 82nd-order, linear model is stored in the variable G 4 u and has four inputs (the latter two are actually disturbances) [L T V B F z F ] and two outputs [y D x B ] Before reducing the model order, the model G 4 u is scaled in order to make all inputs/disturbances and all outputs at about the same magnitude. This is done by dividing each variable by its maximum change, i.e. u = U/U max ; y = Y/Y max where U, Y are the input and output of the model G 4 u in original units, U max,y max are the corresponding maximum values allowed, and u, y are the scaled variables. The scaling is achieved by using the input scaling matrix S i =

257 Robust Control of a Distillation Column and output scaling matrix S o = [ ] The scaled model is then found as G 4 = SoG 4 us i. The final stage in selecting the column model is the order reduction of the scaled model G 4. This is done by using the commands sysbal and hankmr. As a result, we obtain a 6th-order model saved in the variable G. All commands for finding the 6th-order linear model of the distillation column are contained in the file mod col.m. The frequency responses of the singular values of G are compared with the singular values of the 82nd order linearised model G 4 in Figure It is seen that the behaviour of both models is close until the frequency 2 rad/min Singular value plots of G and G Magnitude Solid line: singular values of G 10 2 Dashed line: singular values of G Frequency (rad/min) Fig Singular values of G and G Uncertainty Modelling The uncertainties considered in the distillation column control systems are a gain uncertainty of ±20% and a time delay of up to 1 min in each input channel. Thus, the uncertainty may be represented by the transfer matrix

258 11.3 Uncertainty Modelling 255 G d W 1 1 u u 2 W G y 1 y 2 Fig Distillation column with input multiplicative uncertainty W u = [ k1 e Θ 1s 0 ] 0 k 2 e Θ 2s where k i [ ]; Θ i [ ]; i =1, 2. It is convenient to represent this uncertainty by an input multiplicative uncertainty, as shown in Figure 11.3, with [ ] 1 0 = 0 2 where 1 1, 2 1. The uncertainty weighting function [ ] W 1 0 W = 0 W 2 is determined in the following way. Denote by W ui = 1 the nominal transfer function in the ith channel for k i = 1 and Θ i =0; i =1, 2. According to Figure 11.3 we have that W ui =(1+W i i )W ui, i =1, 2 Taking into account that i 1it follows that the relative uncertainty should satisfy Wui (jω) W ui (jω) W ui (jω) W i (jω),i=1, 2 where W ui (jω)=k i e jωθ i = k i (cos(ωθ i )+jsin(ωθ i )). In this way, to choose the uncertainty weight W i is equivalent to determining an upper bound of the frequency response of the relative uncertainty W ui (jω) W ui (jω) W ui (jω) = (k i cos(ωθ i ) 1) 2 +(k i sin(ωθ i )) 2.

259 Robust Control of a Distillation Column 2.5 Approximation of uncertain time delay by multiplicative perturbation Magnitude Frequency (rad/min) Fig Approximation of the uncertain time delay The frequency responses of the relative uncertainty Wui (jω) W ui (jω) W ui (jω) are computed by the file unc col.m and shown in Figure These responses are then approximated by 3rd-order transfer functions using the file wfit.m. As a result, one obtains W i = s s s s s s ,i=1, Closed-loop System-performance Specifications The aim of the distillation column control-system design is to determine a controller that meets robust stability and robust performance specifications for the LV configuration. Since these specifications are difficult to satisfy with a one-degree-of-freedom controller, we present the design of two-degree-offreedom controllers that ensure robust stability and robust performance of the closed-loop system. In the given case, the robust stability means guaranteed closed-loop stability for all 0.8 k 1,k and 0 Θ 1,Θ 2 1 min. The time-domain specifications are given in terms of step-response requirements, which must be met for all values of k 1,k 2,Θ 1 and Θ 2. Specifically, for a unit

260 11.4 Closed-loop System-performance Specifications 257 step command to the first input channel at t = 0, the scaled plant outputs y 1 (tracking) and y 2 (interaction) should satisfy: y 1 (t) 0.9 for all t 30 min; y 1 (t) 1.1 for all t; 0.99 y 1 ( ) 1.01; y 2 (t) 0.5 for all t; 0.01 y 2 ( ) Correspondingly, similar requirements should be met for a unit step command at the second input channel. In addition, the following frequency-domain specification should be met: σ( ˆK y Ŝ)(jω) < 316, for each ω, where ˆK y denotes the feedback part of the unscaled controller. (Here and latter, a variable with a hat refers to the case of unscaled plant.) This specification is included mainly to avoid saturation of the plant inputs. σ(ĝ ˆK y )(jω) < 1, for ω 150; or σ( ˆK y Ŝ)(jω) 1, for ω 150. In the above, σ denotes the largest singular value, and Ŝ =(I + Ĝ ˆK y ) < 1is the sensitivity function for Ĝ. W u e u W r K u + G y W p e y W n M n Fig Closed-loop interconnection structure of the distillation column system The block diagram of the closed-loop system incorporating the design requirements consideration represented by weights is shown in Figure The plant enclosed by the dashed rectangle consists of the nominal scaled model G plus the input multiplicative uncertainty. The controller K implements a

261 Robust Control of a Distillation Column feedback from outputs y D and x B and a feedforward from the reference signal r. The measurement of the distillate and bottom products composition is corrupted by the noise n. The desired dynamics of the closed-loop system is sought by implementation of a suitably chosen model M. The model M represents the desired dynamic behaviour of the closed-loop system from the reference signal to the outputs. The usage of a model of the desired dynamics allows us to take easily into account the design specifications. The transfer function matrix of the model M is selected as [ 1 ] Ts M = 2 +2ξTs Ts 2 +2ξTs+1 The coefficients of the transfer functions (T = 6, ξ = 0.8) in both channels of the model are chosen such as to ensure an overdamped response with a settling time of about 30 min. The off-diagonal elements of the transfer matrix are set as zeros in order to minimise the interaction between the channels Model frequency response Magnitude Frequency (rad/min) Fig Model frequency response The frequency response of the model M is shown in Figure Let the scaled, two-degree-of-freedom controller be partitioned as K(s) =[K y (s) K r (s)] where K y is the feedback part of the controller and K r is the prefilter part. It is easy to show that [ ] [ ep Wp (S = GK ][ ] r M) W p TW n r e u W u (I + K y G) 1 K r W u K y SW n n

262 11.4 Closed-loop System-performance Specifications 259 where S =(I+ GK y ) 1 is the sensitivity function for the scaled plant, T =(I+ GK y ) 1 GKy is the complementary sensitivity function and G = G(I +W ) is the uncertain, scaled plant model. The performance objective is to satisfy [ Wp (S GK ] r M) W p TW n W u (I + K y G) 1 < 1 (11.1) K r W u K y SW n for each uncertain G. The performance and control action weighting functions are chosen as [ s+3 ] [ W p = 9.5s s+1 ] s+3, W u = 0.01s s s s+1 The implementation of the performance weighting function W p aims to ensure closeness of the system dynamics to the model over the low-frequency range. Note that this function contains nonzero off-diagonal elements that make it easier to meet the time-domain specifications. A small constant equal to 10 4 is added in the denominator in each channel to make the design problem regular. The usage of the control weighting function W u allows us to limit the magnitude of control actions over the specified frequency range (ω 150) Inverse of the performance weighting function Magnitude Frequency (rad/min) Fig Inverse of performance weighting function The magnitude plot of the inverse of the performance weighting function W p is shown in Figure 11.7 and the magnitude plot of the control weighting function is shown in Figure The noise shaping filter

263 Robust Control of a Distillation Column 10 2 Control action weighting function 10 1 Magnitude Frequency (rad/min) Fig Control-action weighting function W n = [ 10 2 s ] s s s+1 is determined according to the spectral contents of the sensor noises accompanying the measurement of the distillate and bottom product composition Sensor noise weighting function 10 3 Magnitude Frequency (rad/min) Fig Noise weighting function The magnitude plot of the noise shaping filter is shown in Figure The model transfer function, the performance and control weighting functions as well as the noise shaping filter are all set in the file wts col.m.

264 11.5 Open-loop and Closed-loop System Interconnections 11.6 Controller Design 261 pertout {1-2} pertin {1-2} W G y + W p e_y control W u e_u W n noise M Fig Open-loop interconnection structure of the distillation column system ref The open-loop system interconnection is obtained by the M-file olp col. The internal structure of the eight-input, ten-output open-loop system, which is saved as the variable sys ic, is shown in Figure The inputs and outputs of the uncertainties are saved as the variables pertin and pertout, the references and the noises as the variables ref and noise, respectively, and the controls as the variable control. All variables have two elements (i.e. 2-dimensional vectors). The schematic diagram showing the specific input/output ordering for the variable sys ic is given in Figure The block-diagram used in the simulation of the closed-loop system is shown in Figure The corresponding closed-loop system interconnection, which is saved as the variable sim ic, is obtained by the M-file sim col.m. The schematic diagram showing the specific input/output ordering for the variable sim ic is shown in Figure Controller Design Successful design of the distillation column control system may be obtained by using the H loop-shaping design procedure (LSDP) and the µ-synthesis. Note that in the case of LSDP we do not use the performance specifications implemented in the case of µ-synthesis. Instead of these specifications we use a prefilter W 1 and a postfilter W 2 in order to shape appropriately the open-loop transfer function W 1 GW 2.

265 Robust Control of a Distillation Column pertin{1} pertin{2} ref{1} ref{2} noise{1} noise{2} control{1} control{2} sys_ic pertout{1} pertout{2} e_y{1} e_y{2} e_u{1} e_u{2} -y{1}-noise{1} -y{2}-noise{2} ref{1} ref{2} Fig Schematic diagram of the open-loop interconnection pertout {1-2} pertin {1-2} W G d y control W n noise ref Fig Closed-loop interconnection structure of the distillation column system Loop-shaping Design In the present case, we choose a prefilter with transfer function [ ] s+1 W 1 = 10s s+1 10s

266 11.6 Controller Design 263 pertin{1} pertin{2} ref{1} ref{2} noise{1} noise{2} control{1} control{2} sim_ic pertout{1} pertout{2} y{1} y{2} control{1} control{2} -y{1}-noise{1} -y{2}-noise{2} ref{1} ref{2} Fig Schematic diagram of the closed-loop interconnection The choice of the gain equal to 1.7 is done to ensure a sufficiently small steady-state error. Larger gain leads to smaller steady-state errors but worse transient response. The postfilter is taken simply as W 2 = I Frequency responses of the original plant and the shaped plant Magnitude Solid line: the original plant 10 2 Dashed line: the shaped plant Frequency (rad/min) Fig Singular values of the original system and shaped system

267 Robust Control of a Distillation Column 10 0 Robust stability 10 1 mu Frequency (rad/min) Fig Robust stability for loop-shaping controller The singular value plots of the original and shaped systems are shown in Figure The design of the two-degree-of-freedom LSDP controller is done by using the M-file lsh col.m that implements the function ncfsyn. The controller obtained is of order 10. The robust stability analysis of the closed-loop system is done by the file mu col the frequency response plot of the structured value µ shown in Figure According to this plot the closed-loop system preserves stability for all perturbations with norm less than 1/ As usual, the requirements for nominal performance and robust performance are not fulfilled with this controller. The closed-loop frequency responses are obtained by using the file frs col.m. The singular value plot of the unscaled closed-loop system transfer function is shown in Figure Both low-frequency gains are equal to 1 that ensures zero steady-state errors in both channels. The singular value plots of the transfer function matrix with respect to the noises (Figure 11.17) show that the noises are attenuated by at least a factor of 10 4 times at the system output. The singular-value plots of the transfer function matrices Ĝ ˆK y and ˆK y Ŝ are shown in Figures and 11.19, respectively. The maximum of the largest singular value of Ĝ ˆK y is less than 1 for ω 150 and the maximum of the largest singular value of ˆKy Ŝ is less than 200 so that the corresponding frequency-domain specification is met.

268 11.6 Controller Design Singular value plot of the closed loop transfer function matrix Frequency (rad/min) Fig Frequency response of the closed-loop system with loop-shaping controller 10 3 Singular value plot of the noise transfer function matrix Frequency (rad/min) Fig Frequency response to the noises

269 Robust Control of a Distillation Column 10 6 Singular value plot of GKy Frequency (rad/min) Fig Singular-value plot of Ĝ ˆK y 10 3 Singular value plot of KyS Frequency (rad/min) Fig Singular-value plot of ˆK y Ŝ

270 11.6 Controller Design Transient responses of the perturbed systems 1 y Time (min) Fig Perturbed transient response y 11 for loop-shaping controller 1.5 Transient responses of the perturbed systems 1 y Time (min) Fig Perturbed transient response y 12 for loop-shaping controller In Figures we show the transient responses of the scaled closed-loop system obtained by the file prtcol.m for different values of the

271 Robust Control of a Distillation Column 1.5 Transient responses of the perturbed systems 1 y Time (min) Fig Perturbed transient response y 21 for loop-shaping controller 1.5 Transient responses of the perturbed systems 1 y Time (min) Fig Perturbed transient response y 22 for loop-shaping controller uncertain gain and time delay. The time-domain specification is met and the closed-loop system transient response has a small settling time. The control action in the closed-loop system for the same variations of the uncertain parameters is shown in Figures

272 11.6 Controller Design Control action in the perturbed systems 1 u Time (min) Fig Perturbed control action u 11 for loop-shaping controller 1.5 Control action in the perturbed systems 1 u Time (min) Fig Perturbed control action u 12 for loop-shaping controller

273 Robust Control of a Distillation Column 1.5 Control action in the perturbed systems 1 u Time (min) Fig Perturbed control action u 21 for loop-shaping controller 1.5 Control action in the perturbed systems 1 u Time (min) Fig Perturbed control action u 22 for loop-shaping controller

274 11.6 Controller Design µ-synthesis Let us denote by P (s) the transfer function matrix of the eight-input, tenoutput open-loop system consisting of the distillation column model plus the weighting functions and let the block structure P is defined as {[ ] } 0 P := : C 2 2, 0 F C 4 4 F The first block of this matrix corresponds to the uncertainty block, used in modelling the uncertainty of the distillation column. The second block F is a fictitious uncertainty 4 4 block, introduced to include the performance objectives in the framework of the µ-approach. The inputs to this block are the weighted error signals e p and e u the outputs being the exogenous inputs r and n. To meet the design objectives a stabilising controller K is to be found such that, at each frequency ω [0, ], the structured singular value satisfies the condition µ P [F L (P, K)(jω)] < 1 The fulfillment of this condition guarantees robust performance of the closedloop system, i.e., [ Wp (S GK ] r M) W p TW n W u (I + K y G) 1 < 1 (11.2) K r W u K y SW n The µ-synthesis is done by using the M-file ms col.m. The uncertainty structure and other parameters used in the D-K iteration are set in the auxiliary file dk col.m. Table Results of the µ-synthesis Iteration Controller order Maximum value of µ The progress of the D-K iteration is shown in Table In the given case an appropriate controller is obtained after the fourth D-K iteration. The controller is stable and its order is equal to 28. It can be seen from Table 11.3 that after the fourth iteration the maximum value of µ is equal to The µ-analysis of the closed-loop system is done by the file mu col.

275 Robust Control of a Distillation Column 10 0 Robust stability mu Frequency (rad/min) Fig Robust stability for µ-controller The frequency-response plot of the structured singular value for the case of robust stability is shown in Figure The maximum value of µ is 0.709, 1 Robust performance mu Frequency (rad/min) Fig Robust performance for µ-controller

276 11.6 Controller Design 273 which means that the stability of the system is preserved under perturbations that satisfy < The frequency response of µ for the case of robust performance, analysis is shown in Figure The closed-loop system achieves robust performance, the maximum value of µ being equal to Singular value plot of the closed loop transfer function matrix Frequency (rad/min) Fig Closed-loop singular-value plots The unscaled closed-loop system singular-value plot is shown in Figure The closed-loop bandwidth is about 0.1 rad/min. The frequency responses with respect to the noise are shown in Figure It is seen from the figure that the noises in measuring the distillate and bottom-product composition have a relatively small effect on the system output. In Figure we show the singular-value plot of the unscaled sensitivity function Ŝ. The singular-value plots of the unscaled µ-controller are shown in Figure The singular-value plots of Ĝ ˆK y and ˆK y Ŝ are shown in Figures and 11.35, respectively. The maximum of the largest singular value of Ĝ ˆK y is less than 1 for ω 150 and the maximum of the largest singular value of ˆK y Ŝ is less than 300, thus the frequency-domain specification is met. Consider now the effect of variations of uncertain parameters on the system dynamics.

277 Robust Control of a Distillation Column 10 3 Singular value plot of the noise transfer function matrix Frequency (rad/min) Fig Frequency responses with respect to noises The frequency responses of the perturbed sensitivity function Ŝ obtained by the file pfr col.m are shown in Figure The frequency responses of the perturbed transfer function matrix ˆK y Ŝ are shown in Figure The maximum of the largest singular value of this matrix does not exceed 300 for all values of the uncertain parameters.

278 11.6 Controller Design Singular value plot of the sensitivity function Frequency (rad/min) Fig Frequency responses of the sensitivity function 10 5 Singular value plot of the controller Frequency (rad/min) Fig Singular values of the controller

279 Robust Control of a Distillation Column 10 6 Singular value plot of GKy Frequency (rad/min) Fig Frequency responses of Ĝ ˆK y 10 3 Singular value plot of KyS Frequency (rad/min) Fig Frequency responses of of ˆK y Ŝ

280 11.6 Controller Design Singular value plots of the sensitivity functions Frequency (rad/min) Fig Frequency responses of the perturbed sensitivity function 10 3 Singular value plots of KyS Frequency (rad/min) Fig Perturbed frequency responses of ˆK y Ŝ

281 Robust Control of a Distillation Column 1.5 Transient responses of the perturbed systems 1 y Time (min) Fig Perturbed transient response y 11 for µ-controller 1.5 Transient responses of the perturbed systems 1 y Time (min) Fig Perturbed transient response y 12 for µ-controller The perturbed transient responses of the scaled closed-loop system with a µ-controller are shown in Figures The responses to the cor-

282 11.6 Controller Design Transient responses of the perturbed systems 1 y Time (min) Fig Perturbed transient response y 21 for µ-controller 1.5 Transient responses of the perturbed systems 1 y Time (min) Fig Perturbed transient response y 22 for µ-controller responding references have no overshoots and the interaction of channels is weaker than in the case of using loop-shaping controller. The control actions in the case of perturbed system with the µ-controller is shown in Figures

283 Robust Control of a Distillation Column 1.5 Control action in the perturbed systems 1 u Time (min) Fig Perturbed control action u 11 for µ-controller 1.5 Control action in the perturbed systems 1 u Time (min) Fig Perturbed control action u 12 for µ-controller

284 11.6 Controller Design Control action in the perturbed systems 1 u Time (min) Fig Perturbed control action u 21 for µ-controller 1.5 Control action in the perturbed systems 1 u Time (min) Fig Perturbed control action for µ-controller

285 Robust Control of a Distillation Column Consider now the reduction of controller order. For this aim we implement the M-file red col.m. After balancing of the controller and neglecting the small Hankel singular values its order is reduced to Maximum singular values of the controller transfer function matrices Solid line: the full order controller 10 5 Dashed line the reduced order controller Frequency (rad/min) Fig Frequency responses of the full-order and reduced-order controllers In Figure we compare the frequency responses of the maximum singular values of the scaled full-order and reduced-order controllers. The frequency responses of both full-order and reduced-order controllers coincide up to 23 rad/min that is much more than the closed-loop bandwidth of the system. This is why the transient responses of the closed-loop system with fullorder and with reduced-order controllers are practically undistinguishable.

286 11.7 Nonlinear System Simulation 11.7 Nonlinear System Simulation 283 The LSDP controller and µ-controller designed are investigated by simulation of the corresponding nonlinear closed-loop system. The simulation is carried out by the Simulink r model nls col.mdl that implements the nonlinear plant model given in Section To simulate the nonlinear plant we use the M-files colamod and colas by kind permission of the author, Sigurd Skogestad. The Simulink r model of the distillation column control system shown in Figure allows us to carry out a number of simulations for different set points and disturbances. Note that the inputs to the controller are formed as differences between the values of the corresponding variables and their nominal (steady-state) values used in the linearisation. In contrast, the controller outputs are added to the corresponding nominal inputs in order to obtain the full inputs to the nonlinear model of the column. Before simulation of the system it is necessary to set the model parameters by using the M-file init col.m. Also, the controller is rescaled so as to implement the unscaled input/output variables. The nonlinear system simulation is done for the following reference and disturbance signals. At t = 10 min the feed rate F increases from 1 to 1.2, at t = 100 min the feed composition z F increases from 0.5 to0.6 and at t = 200 min the set point in y D increases from 0.99 to The time response of the distillate y D for the case of the reduced-order µ-controller is given in Figure It is seen from the figure that the disturbances are attenuated well and the desired set point is achieved exactly. The time response of the bottom-product composition x B for the same controller is given in Figure The simulation results show that the robust design method is appropriately chosen and confirm the validity of the uncertain model used.

287

288 11.7 Nonlinear System Simulation Nonlinear system simulation Product composition y D Time (min) Fig Transient response of the nonlinear system - y D Nonlinear system simulation Product composition x B Time (min) Fig Transient response of the nonlinear system - x B

289 Robust Control of a Distillation Column 11.8 Conclusions The results from the analysis and design of a distillation column control system may be summarised as follows. It is possible to use a sufficiently low-order linearised model of the given nonlinear plant, so that the designed linear controllers allow to be achieved satisfactory dynamics of the nonlinear closed-loop system. The linearised model is scaled in order to avoid very small or very large signals. The one-degree-of-freedom controller does not allow us to meet the timedomain and frequency-domain specifications, which makes it necessary to use two-degree-of-freedom controllers. Two controllers are designed one by using the H loop-shaping design method and the other by using the µ-synthesis method. Both controllers satisfy the time-domain and frequency-domain specifications and ensure robust stability of the corresponding closed-loop systems. It is impressive how the low-order, easily designed loop-shaping controller allows us to obtain practically the same characteristics of the closed-loop systems as the µ-controller, while the latter requires much more experiments for tuning the weighting functions. The nonlinear system simulation results confirm the ability of the loopshaping controller and the reduced-order µ-controller to achieve disturbance attenuation and good responses to reference signals. The simulation confirms the validity of the uncertain model used. Notes and References The distillation column control problem presented in this chapter was introduced by Limebeer [86] as a benchmark problem at the 1991 Conference on Decision and Control. In [86] the uncertainty is defined in terms of parametric gain and delay uncertainty and the control objectives are a mixture of time-domain and frequency-domain specifications. The problem originates from Skogestad et al. [141] where a simple model of a high-purity distillation column was used and uncertainty and performance specifications were given as frequency-dependent weighting functions. A tutorial introduction to the dynamics of the distillation column is presented in [140]. A design of a two-degree-of-freedom loop-shaping controller for the distillation column is presented in [53] where an 8th-order model of the column is used. A two-degree-of-freedom controller for the distillation column system is proposed in [95] with a reference model and using µ-synthesis. In that paper, one may find a selection procedure for the weighting functions described in details. Our design differs from the design in [95] in several respects. First, instead of a 2nd-order model with time delay we use a 6th-order model that is justified by the results from nonlinear system simulation. Second, we use modified weighting functions in order to obtain better results. In particular, we use

290 11.8 Conclusions 287 a performance weighting transfer function matrix with nonzero off-diagonal elements that meets the time-domain specifications much better. Also, the control weighting functions are taken as first-order, low-pass filters. Various design methods have been reported, in addition to the above, to tackle this distillation column problem ([127, 161, 147, 113, 142]). In [161], the design problem is formulated as a mixed optimisation problem. It is well known that control-system design problems can be formulated as constrained optimisation problems. Design specifications in both the time and frequency domains as well as stability can be naturally formulated as constraints. Numerical optimisation approaches can be used directly and a solution obtained, if there is one, will characterise an acceptable design. However, the optimisation problems so derived are usually very complicated with many unknowns, many nonlinearities, many constraints, and in most cases, they are multiobjective with several conflicting design aims that need to be simultaneously achieved. Furthermore, a direct parameterization of the controller will increase the complexity of the optimisation problem. In [161], the H loop-shaping design procedure is followed. Instead of direct parameterization of controllers, the pre- and postweighting functions used to shape the open-loop, augmented system are chosen as design (optimisation) parameters. The low order and simple structure of such weighting functions make the numerical optimisation much more efficient. The H norm requirement is also included in the cost/constraint set. The stability of the closed-loop system is naturally met by such designed controllers. Satisfactory designs are reported in that paper. Reference [147] further extends the optimisation approach in [161] by using a Genetic Algorithm to choose the weighting function parameters.

291 12 Robust Control of a Rocket In this chapter we consider the design of a robust system for attitude stabilisation of a winged supersonic rocket flying at altitudes between 1000 m and m. The plant to be controlled is timevariant, which makes the controller design difficult. To simplify the design, we first derive linearised equations of the longitudinal motion of the rocket. Variations of the aerodynamic coefficients of this motion are considered as parametric uncertainties in the design. In this study, both continuous-time and discrete-time µ-controllers are designed that are implemented for pitch and yaw control and ensure the desired closed-loop dynamics in the presence of uncertainty, disturbances and noises. Robust stability and robust performance of the closed-loop systems with the implementation of each controller are investigated, respectively, and the nonlinear closed-loop, sampled-data system simulation results are given Rocket Dynamics We consider a winged rocket that has a canard aerodynamic configuration and is equipped with a solid propellant engine. The actuators of the attitudestabilization system in the longitudinal and lateral motions are four control surfaces (fins) that may rotate in pairs about their axes. The roll angle stabilisation is realised by auxiliary surfaces (ailerons). The control aim is to ensure accurate tracking of required acceleration maneuvers in the presence of uncertainties in the aerodynamic characteristics, disturbances (wind gusts) and sensor noises. The controller produces the inputs to two servo-actuators that rotate the fins. The normal acceleration in each plane and the pitch (yaw) rate are measured, respectively, by an accelerometer and a rate gyro, and are feedback signals to the controller. To describe the rocket motion in space we shall need three orthogonal reference frames: the vehicle-carried vertical reference frame, the body-fixed reference frame and the flight-path reference frame. These three reference frames all have their origin in the rocket s mass centre.

292 Robust Control of a Rocket Fig Relationship between the vehicle-carried vertical reference frame and the body-fixed reference frame The x -axis of the vehicle-carried vertical reference frame is directed to the North, the y -axis to the East, and the z -axis points downwards along the local direction of the gravity. The x 1 -axis of the body-fixed reference frame is directed towards to the nose of the rocket, the y 1 -axis points to the top wing, and the z 1 -axis points to the right wing. In Figure 12.1 we show the relationship between the vehicle-carried vertical reference frame O x y z and the body-fixed reference frame Ox 1 y 1 z 1. The rocket attitude (i.e. the position of the frame Ox 1 y 1 z 1 with respect to O x y z ) is characterised by the angles ϑ, ψ, γ that are called pitch angle, yaw angle, and roll angle, respectively. The value of the roll angle in the nominal motion is usually very small. The x-axis of the flight-path reference frame is aligned with the velocity vector V of the rocket and the y-axis lies in the plane Ox 1 y 1. The relationship between the body-fixed reference frame and the flight-path reference frame is shown in Figure The orientation of the body-fixed reference frame with respect to the flight-path reference frame is determined by the angle of attack α and the sideslip angle β. Finally, the relationship between the vehicle-carried vertical reference frame O x y z and the flight-path reference frame Oxyz is shown in Figure The position of the frame Oxyz with respect to O x y z is determined

293 12.1 Rocket Dynamics 291 Fig Relationship between the body-fixed reference frame and the flight-path reference frame by the flight-path angle Θ, the bank angle Ψ and the aerodynamic angle of roll γ c. The characteristic points along the longitudinal body axis of the rocket are shown in Figure 12.4, where x G is the coordinate of the mass centre of the rocket; x C is the coordinate of the aerodynamic centre of pressure (the point where the aerodynamic forces are applied upon); x R is the coordinate of the fins rotation axis. The rocket will be statically stable or unstable depending on the location of the centre of pressure relative to the centre of mass. If x G <x C then the rocket is statically stable. The control of the lateral acceleration of the rocket is carried out in the following way. The moments about the mass centre, due to the fins deflections, create the corresponding angle of attack and sideslip angle. These angles, in turn, lead to the lifting forces and accelerations in the corresponding planes. The control problem consists of generation of the fins deflections by the autopilot that produce angle of attack and sideslip angle, corresponding to a maneuver called for by the guidance law, while stabilising the rocket rotational motion. The nonlinear differential and algebraic equations describing the six degreeof-freedom motion of the rocket are as follows.

294 Robust Control of a Rocket Fig Relationship between the vehicle-carried vertical reference frame and the flight-path reference frame Fig Coordinates of the characteristic points of the body 1. Equations describing the motion of the mass centre m V = P cos α cos β Q G sin Θ + F x (t) mv Θ = P (sin α cos γ c + cos α sin β sin γ c ) +Y cos γ c Z sin γ c G cos Θ + F y (t) (12.1) mv cos Θ Ψ = P (sin α sin γ c cos α sin β cos γ c )

295 +Y sin γ c + Z cos γ c + F z (t) 12.1 Rocket Dynamics 293 In these equations, P is the engine thrust, Q is the drag force, Y and Z are the lift forces in directions y and z, respectively, G = mg is the rocket weight (g = m/s 2 is the acceleration of gravity at sea level), F x (t), F y (t), F z (t) are generalised disturbance forces in directions x, y, z, respectively. Also, m is the mass of the rocket in the current moment of the time. The engine thrust is given by P = P 0 +(p 0 p)s a, where P 0 is the engine thrust at the sea level, p 0 = N/m 2 is the atmospheric pressure at the sea level, p is the pressure at the flight altitude, and S a is the area of the engine nozzle output section. It is assumed that the mass consumption rate µ of the propellant remains constant, i.e. P 0 = const. Further, let S and L be the reference area and the length of the rocket body, respectively and let q = ρv 2 2 be the dynamic pressure, where ρ is the air density at the corresponding altitude. Then, Q = Q a + Q c, where Q a = c x qs is the drag force of the body and wings, Q c =(c δ y x δ y + c δ z x δ z )qs is the drag force due to the fins deflections, δ y,δ z are the angles of the fins deflection in the longitudinal and lateral motion, respectively, and c x,c δy x,c δz x are dimensionless coefficients; Y = Y a + Y c, where Y a = c y qs is the lift force of the body and wings, Y c = c δ z y δ z qs is the lift force due to the deflection of the horizontal fins, c y = c α y α and c α y is a dimensionless coefficient. Similar expressions hold for the lift force Z: Z = Z a + Z c, Z a = c z qs, Z c = c δ y z δ y qs, where c z = c β z β. Due to the rocket symmetry c β z = c α y,c δy z = c δz y. The aerodynamic coefficients c x, c δy x, c δz x,c α y, c β z depend on the rocket geometry as well as on the Mach number M = V a, where a is the sound speed at the corresponding altitude. These coefficients are determined by approximate formulae and are defined more precisely using experimental data. 2. Equations, describing the rotational motion about the mass centre I x ω x +(I z I y )ω y ω z = Mx f + Mx d + Mx c + M x (t) I y ω y +(I x I z )ω z ω x = My f + My d + My c + M y (t) (12.2) I z ω z +(I y I x )ω x ω y = Mz f + Mz d + Mz c + M z (t) ψ =(ω y cos γ ω z sin γ)/ cos θ θ = ω y sin γ + ω z cos γ (12.3) γ = ω x tan θ(ω y cos γ ω z sin γ) In these equations, I x, I y, I z are the rocket moments of inertia; M f x, M f y, M f z are aerodynamic moments due to the angle of attack α and the sideslip

296 Robust Control of a Rocket angle β; Mx, d My d, Mz d are aerodynamic damping moments due to the roll, pitch and yaw rates ω x, ω z, ω y, respectively; Mx, c My, c Mz c are control moments due to the fins deflections δ x, δ y, δ z, respectively, and M x (t), M y (t), M z (t) are generalised disturbance moments about corresponding axes. We have that Mx f =(m α xα + m β xβ)qsl; My f = m β y βqsl; Mz f = m α z αqsl, where m α x,m β x,m β y,m α z are dimensionless coefficients; Mx d = m ωx x ω x qsl 2 /V, My d = m ωy y ω y qsl 2 /V, Mz d = m ωz z ω z qsl 2 /V, where m ωx x,m ωy y,m ωz z are dimensionless coefficients; M c x = m δ x x δ x qsl, M c y = m δ y y δ y qsl, Mz c = m δ z z δ z qsl, where m δ x are dimensionless coefficients. For the given rocket configura- m δ y y, m δ z z tion it is fulfilled that My c = Z c (x G x R ) cos β, Mz c = Y c (x G x R ) cos α so that m δ y y = c δ y z (x G x R )/L cos β, m δ z z x, = c δ z y (x G x R )/L cos α. 3. Equations providing the relationships between the angles ψ, θ, γ, α, β, Ψ, Θ, γ c sin β = (sin θ sin γ cos(ψ ψ) cos γ sin(ψ ψ)) cos Θ cos θ sin γ sin Θ sin α = ((sin θ cos γ cos(ψ ψ) + sin γ sin(ψ ψ)) cos Θ (12.4) cos θ cos γ sin Θ)/ cos β sin γ c = (cos α sin β sin θ (sin α sin β cos γ cos β sin γ) cos θ)/ cos Θ 4. Equations providing the accelerations n x1,n y1,n z1 in the body-fixed reference frame n x1 = n x cos α cos β + n y sin α n z cos α sin β n y1 = n x sin α cos β + n y cos α + n z sin α sin β (12.5) n z1 = n x sin β + n z cos β where the accelerations n x,n y,n z in the flight-path reference frame are given by n x =(P cos α cos β Q)/G n y =(P sin α + Y )/G n z =( P cos α sin β + Z)/G Note that the accelerations n y1,n z1 are measured by accelerometers fixed with the axes y 1, z 1, respectively. For brevity, later instead of n y1, n z1 we shall write n y,n z. Equations (12.1) (12.5) are used later in the simulation of the nonlinear rocket stabilization system. For small deviations from the nominal(unperturbed) motion, the threedimensional motion of the rocket can be decomposed with sufficient accuracy

297

298 Robust Control of a Rocket 3. Equation giving the relationships between the angles α, θ, Θ This equation is obtained from (12.4) for Ψ =0,ψ=0. 4. Equation giving the normal acceleration n y This equation is obtained from (12.5) for β =0. n y = P cos α Q G α = θ Θ (12.9) sin α + P sin α + Y G cos α (12.10) Later, it is assumed that the rocket velocity V (or Mach number) is constant and the nonlinear differential equation (12.6) associated with V is dropped from the design model. This assumption is justified by the results from the nonlinear system simulation presented later. Also, as is often customary, we shall neglect the effect of the gravitational force in (12.7). In order to obtain a linear controller (12.7) (12.10) are linearised about trim operating points (Θ = Θ o, θ = θ o, α = α o, ω z = ωz, o δ z = δz) o under the assumptions that the variations Θ = Θ Θ o, θ = θ θ o, α = α α o, ω z = ω z ωz, δ o z = δ z δz o are sufficiently small. In such a case it is fulfilled that sin α α, cos α 1. As a result, the linearised equations of the perturbed motion of the rocket take the form (for convenience the symbol is omitted) Θ = P + Y α α + Y δ z mv mv δ z + F y(t) mv ω z = M z α α + M z ωz ω z + M z δz δ z + M z(t) J z J z J z J z θ = ω z (12.11) α = θ Θ n y = Q + Y α G α + Y δz G δ z where Y α = c α y qs, Y δ z = c δ z y qs, Mz α = m α z qsl, M ω z z m δ z z δ z qsl. Equations (12.11) are represented as Θ = a ΘΘ α + a Θδz + F y (t) = m ω z z qsl 2 /V, M δ z z = θ = a θ θ θ + aθθ α + a θδz δ z + M z (t) (12.12) α = θ Θ where n y = a nyαα + a nyδ z δ z a ΘΘ = P +Y α mv,a Θδ z = Y δ z mv a θ θ = M ωz z J z, a θθ = M α z a θδz a nyδ z J z = M δ z z J z, a ny α = Q+Y α G = Y δ z G

299 12.1 Rocket Dynamics 297 and In (12.12) we used the notation F y (t) = F y(t) mv M z (t) = M z(t) J Equations (12.12) are extended by the equation describing the rotation of the fins δ z +2ξ δz ω δz δz + ω 2 δ z δ z = ω 2 δ z δ o z (12.13) where δ o z is the desired angle of fin s deflection (the servo-actuator reference), ω δz is the natural frequency and ξ δz the damping coefficient of the servoactuator. The set of equations (12.12) and (12.13) describes the perturbed rocket longitudinal motion. The block diagram of the stabilisation system, based on (12.12) and (12.13), is shown in Figure In the following we consider the attitude stabilisation of a hypothetical rocket whose parameters are given in Table Table Rocket parameters Para- Description Value Dimension meter L rocket length 1.6 m d rocket diameter 0.12 m S reference area m 2 S a engine nozzle output section area m 2 m o initial rocket mass 45 kg µ propellant consumption per second 0.3 kg/s J x0 initial rocket moment of inertia kg m 2 about x-axis J y0 initial rocket moment of inertia 9.64 kg m 2 about y-axis J z0 initial rocket moment of inertia 9.64 kg m 2 about z-axis P 0 engine thrust at the sea level 740g N x G0 initial rocket mass centre coordinate 0.8 m x C0 initial rocket pressure centre coordinate 1.0 m x R fins rotation axis coordinate 0.3 m ω δz natural frequency of the servo-actuator 150 rad/s ξ δz servo-actuator damping t f duration of the active stage of the 40 s flight

300 Robust Control of a Rocket Fig Block diagram of the stabilisation system During the flight the coefficients of the rocket motion equations vary due to the decreasing of the vehicle mass and also due to variation of the aerodynamic coefficients as a result of the velocity and altitude change.

301 12.1 Rocket Dynamics 299 The coefficients in the motion equations are to be determined for the nominal (unperturbed) rocket motion. Nominal values of the parameters are assumed in the absence of disturbance forces and moments. The unperturbed longitudinal motion is described by the equations where m V = P cos α Q mg 0 sin Θ mv Θ = P sin α + Y mg 0 cos Θ Ḣ = V sin Θ ṁ = µ α = θ Θ δ z = (m α z /m δ z z )α Q = c x qs + c δ z x δ z qs Y = c α y α qs + c δz y δ zqs q = ρv 2 2,ρ= ρ(h) c x = c x (M), c α y = c α y (M), c δ z y M = V /a,a = a (H) m α z =(c x + c α y )(x G x C )/L, m δz z θ = θ (t) = c δ z y (M) = c δz y (x G x R )/L In these equations, θ (t) is the desired time program for changing the pitch angle of the vehicle. We now consider the dynamics of the stabilisation system with coefficients calculated for the unperturbed motion in which the rocket performs a horizontal flight in the atmosphere, i.e. ϑ =0 with initial velocity V = 300 m/s and different altitude H. The parameters of the unperturbed motion are computed by numerical integration of the equations given above, taking into account the change of the vehicle mass during the flight, the dependence of the air density on the flight altitude and the dependence of the aerodynamic coefficients on the Mach number. The parameters of the unperturbed motion are obtained by the function sol rock that invokes the function dif rock, setting the differential equations, and the MATLAB r function ode23tb intended to solve stiff differential equations. The dependence of the aerodynamic coefficients on the Mach number for the specific vehicle is described in the files cx fct.m and cy fct.m. The flight parameters p, ρ and M are computed as functions of the altitude by the command air data that implements an approximate model of the international standard atmosphere(isa). The time program of the pitch angle is set by the function theta rock.

302 Robust Control of a Rocket 1500 Rocket velocity at different altitudes H 0 = m 1000 H 0 = m V (m/s) H 0 = m Time (s) Fig Rocket velocity at different altitudes The rocket velocity as a function of the time for initial velocity V = 300 m/s and flights at altitudes 1000, 5000 and m is shown in Figure It is seen that between the 15th second and 40th second of the flight the velocity may be assumed constant. The flight parameters corresponding to the unperturbed motion with initial altitude H = 5000 m are given in Table 12.2 for different time periods. The coefficients in the differential equations of the perturbed motion are computed on the basis of the parameters of unperturbed motion by using the function cfn rock. We consider the following as a rocket transfer function G ny δ o z (s) =n y(s) δ o z(s) In Figure 12.8 we show a family of magnitude frequency responses (logarithmic) of the vehicle for initial altitude H 0 = 5000 m and various time instants. The magnitude response of the open-loop system has a large peak and varies with time. In the following sections, we will consider the controller design of the stabilisation system for the rocket dynamics at the 15th second of flight at an initial altitude H = 5000 m.

303 12.2 Uncertainty Modelling 301 Table Flight parameters for the unperturbed motion t (s) V (m/s) M H (m) x G (m) Fig Family of logarithmic magnitude frequency responses of the rocket 12.2 Uncertainty Modelling The main variation of coefficients of perturbed motion happens in the aerodynamics coefficients c x, c α y, m α z, m ω z z. As noted above, these coefficients are usually determined experimentally as functions of the Mach number and may vary in sufficiently wide intervals in practice. This is why it is supposed

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

Lecture 6. Chapter 8: Robust Stability and Performance Analysis for MIMO Systems. Eugenio Schuster. Lecture 6 Chapter 8: Robust Stability and Performance Analysis for MIMO Systems Eugenio Schuster schuster@lehigh.edu Mechanical Engineering and Mechanics Lehigh University Lecture 6 p. 1/73 6.1 General

More information

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

Chapter 7 Interconnected Systems and Feedback: Well-Posedness, Stability, and Performance 7. Introduction Feedback control is a powerful approach to o Lectures on Dynamic Systems and Control Mohammed Dahleh Munther A. Dahleh George Verghese Department of Electrical Engineering and Computer Science Massachuasetts Institute of Technology c Chapter 7 Interconnected

More information

ROBUST STABILITY AND PERFORMANCE ANALYSIS* [8 # ]

ROBUST STABILITY AND PERFORMANCE ANALYSIS* [8 # ] ROBUST STABILITY AND PERFORMANCE ANALYSIS* [8 # ] General control configuration with uncertainty [8.1] For our robustness analysis we use a system representation in which the uncertain perturbations are

More information

A Comparative Study on Automatic Flight Control for small UAV

A Comparative Study on Automatic Flight Control for small UAV Proceedings of the 5 th International Conference of Control, Dynamic Systems, and Robotics (CDSR'18) Niagara Falls, Canada June 7 9, 18 Paper No. 13 DOI: 1.11159/cdsr18.13 A Comparative Study on Automatic

More information

Uncertainty and Robustness for SISO Systems

Uncertainty and Robustness for SISO Systems Uncertainty and Robustness for SISO Systems ELEC 571L Robust Multivariable Control prepared by: Greg Stewart Outline Nature of uncertainty (models and signals). Physical sources of model uncertainty. Mathematical

More information

Universitext. Series Editors:

Universitext. Series Editors: Universitext Universitext Series Editors: Sheldon Axler San Francisco State University, San Francisco, CA, USA Vincenzo Capasso Università degli Studi di Milano, Milan, Italy Carles Casacuberta Universitat

More information

Finite Element Analysis for Heat Transfer. Theory and Software

Finite Element Analysis for Heat Transfer. Theory and Software Finite Element Analysis for Heat Transfer Theory and Software Hou-Cheng Huang and Asif S. Usmani Finite Element Analysis for Heat Transfer Theory and Software With 62 Figures Springer-Verlag London Berlin

More information

FEL3210 Multivariable Feedback Control

FEL3210 Multivariable Feedback Control FEL3210 Multivariable Feedback Control Lecture 5: Uncertainty and Robustness in SISO Systems [Ch.7-(8)] Elling W. Jacobsen, Automatic Control Lab, KTH Lecture 5:Uncertainty and Robustness () FEL3210 MIMO

More information

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

APPLICATION OF D-K ITERATION TECHNIQUE BASED ON H ROBUST CONTROL THEORY FOR POWER SYSTEM STABILIZER DESIGN APPLICATION OF D-K ITERATION TECHNIQUE BASED ON H ROBUST CONTROL THEORY FOR POWER SYSTEM STABILIZER DESIGN Amitava Sil 1 and S Paul 2 1 Department of Electrical & Electronics Engineering, Neotia Institute

More information

Structured Uncertainty and Robust Performance

Structured Uncertainty and Robust Performance Structured Uncertainty and Robust Performance ELEC 571L Robust Multivariable Control prepared by: Greg Stewart Devron Profile Control Solutions Outline Structured uncertainty: motivating example. Structured

More information

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

CDS 101/110a: Lecture 10-1 Robust Performance CDS 11/11a: Lecture 1-1 Robust Performance Richard M. Murray 1 December 28 Goals: Describe how to represent uncertainty in process dynamics Describe how to analyze a system in the presence of uncertainty

More information

(Refer Slide Time: 00:01:30 min)

(Refer Slide Time: 00:01:30 min) Control Engineering Prof. M. Gopal Department of Electrical Engineering Indian Institute of Technology, Delhi Lecture - 3 Introduction to Control Problem (Contd.) Well friends, I have been giving you various

More information

ThM06-2. Coprime Factor Based Closed-Loop Model Validation Applied to a Flexible Structure

ThM06-2. Coprime Factor Based Closed-Loop Model Validation Applied to a Flexible Structure Proceedings of the 42nd IEEE Conference on Decision and Control Maui, Hawaii USA, December 2003 ThM06-2 Coprime Factor Based Closed-Loop Model Validation Applied to a Flexible Structure Marianne Crowder

More information

FEL3210 Multivariable Feedback Control

FEL3210 Multivariable Feedback Control FEL3210 Multivariable Feedback Control Lecture 8: Youla parametrization, LMIs, Model Reduction and Summary [Ch. 11-12] Elling W. Jacobsen, Automatic Control Lab, KTH Lecture 8: Youla, LMIs, Model Reduction

More information

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

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules Advanced Control State Regulator Scope design of controllers using pole placement and LQ design rules Keywords pole placement, optimal control, LQ regulator, weighting matrixes Prerequisites Contact state

More information

FEL3210 Multivariable Feedback Control

FEL3210 Multivariable Feedback Control FEL3210 Multivariable Feedback Control Lecture 6: Robust stability and performance in MIMO systems [Ch.8] Elling W. Jacobsen, Automatic Control Lab, KTH Lecture 6: Robust Stability and Performance () FEL3210

More information

Linear System Theory. Wonhee Kim Lecture 1. March 7, 2018

Linear System Theory. Wonhee Kim Lecture 1. March 7, 2018 Linear System Theory Wonhee Kim Lecture 1 March 7, 2018 1 / 22 Overview Course Information Prerequisites Course Outline What is Control Engineering? Examples of Control Systems Structure of Control Systems

More information

Problem Set 4 Solution 1

Problem Set 4 Solution 1 Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.245: MULTIVARIABLE CONTROL SYSTEMS by A. Megretski Problem Set 4 Solution Problem 4. For the SISO feedback

More information

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

Robust control for a multi-stage evaporation plant in the presence of uncertainties Preprint 11th IFAC Symposium on Dynamics and Control of Process Systems including Biosystems June 6-8 16. NTNU Trondheim Norway Robust control for a multi-stage evaporation plant in the presence of uncertainties

More information

Automatic Control II Computer exercise 3. LQG Design

Automatic Control II Computer exercise 3. LQG Design Uppsala University Information Technology Systems and Control HN,FS,KN 2000-10 Last revised by HR August 16, 2017 Automatic Control II Computer exercise 3 LQG Design Preparations: Read Chapters 5 and 9

More information

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

Chapter Stability Robustness Introduction Last chapter showed how the Nyquist stability criterion provides conditions for the stability robustness of Lectures on Dynamic Systems and Control Mohammed Dahleh Munther A Dahleh George Verghese Department of Electrical Engineering and Computer Science Massachuasetts Institute of Technology c Chapter Stability

More information

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

Lecture 7 : Generalized Plant and LFT form Dr.-Ing. Sudchai Boonto Assistant Professor Dr.-Ing. Sudchai Boonto Assistant Professor Department of Control System and Instrumentation Engineering King Mongkuts Unniversity of Technology Thonburi Thailand Linear Quadratic Gaussian The state space

More information

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

Introduction. Performance and Robustness (Chapter 1) Advanced Control Systems Spring / 31 Introduction Classical Control Robust Control u(t) y(t) G u(t) G + y(t) G : nominal model G = G + : plant uncertainty Uncertainty sources : Structured : parametric uncertainty, multimodel uncertainty Unstructured

More information

MIMO analysis: loop-at-a-time

MIMO analysis: loop-at-a-time MIMO robustness MIMO analysis: loop-at-a-time y 1 y 2 P (s) + + K 2 (s) r 1 r 2 K 1 (s) Plant: P (s) = 1 s 2 + α 2 s α 2 α(s + 1) α(s + 1) s α 2. (take α = 10 in the following numerical analysis) Controller:

More information

UNCERTAINTY MODELING VIA FREQUENCY DOMAIN MODEL VALIDATION

UNCERTAINTY MODELING VIA FREQUENCY DOMAIN MODEL VALIDATION AIAA 99-3959 UNCERTAINTY MODELING VIA FREQUENCY DOMAIN MODEL VALIDATION Martin R. Waszak, * NASA Langley Research Center, Hampton, Virginia Dominick Andrisani II, Purdue University, West Lafayette, Indiana

More information

Design Methods for Control Systems

Design Methods for Control Systems Design Methods for Control Systems Maarten Steinbuch TU/e Gjerrit Meinsma UT Dutch Institute of Systems and Control Winter term 2002-2003 Schedule November 25 MSt December 2 MSt Homework # 1 December 9

More information

ECE557 Systems Control

ECE557 Systems Control ECE557 Systems Control Bruce Francis Course notes, Version.0, September 008 Preface This is the second Engineering Science course on control. It assumes ECE56 as a prerequisite. If you didn t take ECE56,

More information

Analysis and Control of Nonlinear Process Systems

Analysis and Control of Nonlinear Process Systems Analysis and Control of Nonlinear Process Systems K.M. Hangos J. Bokor G. Szederkényi Springer Advanced Textbooks in Control and Signal Processing Springer London Berlin Heidelberg New York Hong Kong Milan

More information

Linear State Feedback Controller Design

Linear State Feedback Controller Design Assignment For EE5101 - Linear Systems Sem I AY2010/2011 Linear State Feedback Controller Design Phang Swee King A0033585A Email: king@nus.edu.sg NGS/ECE Dept. Faculty of Engineering National University

More information

FINITE HORIZON ROBUST MODEL PREDICTIVE CONTROL USING LINEAR MATRIX INEQUALITIES. Danlei Chu, Tongwen Chen, Horacio J. Marquez

FINITE HORIZON ROBUST MODEL PREDICTIVE CONTROL USING LINEAR MATRIX INEQUALITIES. Danlei Chu, Tongwen Chen, Horacio J. Marquez FINITE HORIZON ROBUST MODEL PREDICTIVE CONTROL USING LINEAR MATRIX INEQUALITIES Danlei Chu Tongwen Chen Horacio J Marquez Department of Electrical and Computer Engineering University of Alberta Edmonton

More information

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

H-INFINITY CONTROLLER DESIGN FOR A DC MOTOR MODEL WITH UNCERTAIN PARAMETERS Engineering MECHANICS, Vol. 18, 211, No. 5/6, p. 271 279 271 H-INFINITY CONTROLLER DESIGN FOR A DC MOTOR MODEL WITH UNCERTAIN PARAMETERS Lukáš Březina*, Tomáš Březina** The proposed article deals with

More information

Richiami di Controlli Automatici

Richiami di Controlli Automatici Richiami di Controlli Automatici Gianmaria De Tommasi 1 1 Università degli Studi di Napoli Federico II detommas@unina.it Ottobre 2012 Corsi AnsaldoBreda G. De Tommasi (UNINA) Richiami di Controlli Automatici

More information

Autonomous Mobile Robot Design

Autonomous Mobile Robot Design Autonomous Mobile Robot Design Topic: Guidance and Control Introduction and PID Loops Dr. Kostas Alexis (CSE) Autonomous Robot Challenges How do I control where to go? Autonomous Mobile Robot Design Topic:

More information

A brief introduction to robust H control

A brief introduction to robust H control A brief introduction to robust H control Jean-Marc Biannic System Control and Flight Dynamics Department ONERA, Toulouse. http://www.onera.fr/staff/jean-marc-biannic/ http://jm.biannic.free.fr/ European

More information

ẋ n = f n (x 1,...,x n,u 1,...,u m ) (5) y 1 = g 1 (x 1,...,x n,u 1,...,u m ) (6) y p = g p (x 1,...,x n,u 1,...,u m ) (7)

ẋ n = f n (x 1,...,x n,u 1,...,u m ) (5) y 1 = g 1 (x 1,...,x n,u 1,...,u m ) (6) y p = g p (x 1,...,x n,u 1,...,u m ) (7) EEE582 Topical Outline A.A. Rodriguez Fall 2007 GWC 352, 965-3712 The following represents a detailed topical outline of the course. It attempts to highlight most of the key concepts to be covered and

More information

Zeros and zero dynamics

Zeros and zero dynamics CHAPTER 4 Zeros and zero dynamics 41 Zero dynamics for SISO systems Consider a linear system defined by a strictly proper scalar transfer function that does not have any common zero and pole: g(s) =α p(s)

More information

Exam. 135 minutes, 15 minutes reading time

Exam. 135 minutes, 15 minutes reading time Exam August 6, 208 Control Systems II (5-0590-00) Dr. Jacopo Tani Exam Exam Duration: 35 minutes, 5 minutes reading time Number of Problems: 35 Number of Points: 47 Permitted aids: 0 pages (5 sheets) A4.

More information

Chapter 9 Observers, Model-based Controllers 9. Introduction In here we deal with the general case where only a subset of the states, or linear combin

Chapter 9 Observers, Model-based Controllers 9. Introduction In here we deal with the general case where only a subset of the states, or linear combin Lectures on Dynamic Systems and Control Mohammed Dahleh Munther A. Dahleh George Verghese Department of Electrical Engineering and Computer Science Massachuasetts Institute of Technology c Chapter 9 Observers,

More information

Lecture 7 (Weeks 13-14)

Lecture 7 (Weeks 13-14) Lecture 7 (Weeks 13-14) Introduction to Multivariable Control (SP - Chapters 3 & 4) Eugenio Schuster schuster@lehigh.edu Mechanical Engineering and Mechanics Lehigh University Lecture 7 (Weeks 13-14) p.

More information

Astronomy with a Budget Telescope

Astronomy with a Budget Telescope Astronomy with a Budget Telescope Springer-Verlag London Ltd. Patrick Moore and John Watson Astro omy w h a Budget elescope With 100 Figures, 98 in colour, Springer British Library Cataloguing in Publication

More information

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

6.245: MULTIVARIABLE CONTROL SYSTEMS by A. Megretski. Solutions to Problem Set 1 1. Massachusetts Institute of Technology Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.245: MULTIVARIABLE CONTROL SYSTEMS by A. Megretski Solutions to Problem Set 1 1 Problem 1.1T Consider the

More information

Predictive Control of Gyroscopic-Force Actuators for Mechanical Vibration Damping

Predictive Control of Gyroscopic-Force Actuators for Mechanical Vibration Damping ARC Centre of Excellence for Complex Dynamic Systems and Control, pp 1 15 Predictive Control of Gyroscopic-Force Actuators for Mechanical Vibration Damping Tristan Perez 1, 2 Joris B Termaat 3 1 School

More information

5. Observer-based Controller Design

5. Observer-based Controller Design EE635 - Control System Theory 5. Observer-based Controller Design Jitkomut Songsiri state feedback pole-placement design regulation and tracking state observer feedback observer design LQR and LQG 5-1

More information

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

Andrea Zanchettin Automatic Control AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Spring Semester, Linear systems (frequency domain) 1 AUTOMATIC CONTROL Andrea M. Zanchettin, PhD Spring Semester, 2018 Linear systems (frequency domain) 2 Motivations Consider an LTI system Thanks to the Lagrange s formula we can compute the motion of

More information

Automatic Control Systems

Automatic Control Systems Automatic Control Systems Edited by Dr. Yuri Sokolov Contributing Authors: Dr. Victor Iliushko, Dr. Emaid A. Abdul-Retha, Mr. Sönke Dierks, Dr. Pascual Marqués. Published by Marques Aviation Ltd Southport,

More information

10 Transfer Matrix Models

10 Transfer Matrix Models MIT EECS 6.241 (FALL 26) LECTURE NOTES BY A. MEGRETSKI 1 Transfer Matrix Models So far, transfer matrices were introduced for finite order state space LTI models, in which case they serve as an important

More information

DESIGN OF ROBUST CONTROL SYSTEM FOR THE PMS MOTOR

DESIGN OF ROBUST CONTROL SYSTEM FOR THE PMS MOTOR Journal of ELECTRICAL ENGINEERING, VOL 58, NO 6, 2007, 326 333 DESIGN OF ROBUST CONTROL SYSTEM FOR THE PMS MOTOR Ahmed Azaiz Youcef Ramdani Abdelkader Meroufel The field orientation control (FOC) consists

More information

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

Raktim Bhattacharya. . AERO 422: Active Controls for Aerospace Vehicles. Dynamic Response .. AERO 422: Active Controls for Aerospace Vehicles Dynamic Response Raktim Bhattacharya Laboratory For Uncertainty Quantification Aerospace Engineering, Texas A&M University. . Previous Class...........

More information

P.M. Cohn. Basic Algebra. Groups, Rings and Fields. m Springer

P.M. Cohn. Basic Algebra. Groups, Rings and Fields. m Springer Basic Algebra P.M. Cohn Basic Algebra Groups, Rings and Fields m Springer P.M. Cohn, MA, PhD, FRS Department of Mathematics, University College London, Gower Street, London WC1E 6BT, UK British Library

More information

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

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 Lectures on Dynamic Systems and Control Mohammed Dahleh Munther A. Dahleh George Verghese Department of Electrical Engineering and Computer Science Massachuasetts Institute of Technology c Chapter 9 Robust

More information

H-Infinity Controller Design for a Continuous Stirred Tank Reactor

H-Infinity Controller Design for a Continuous Stirred Tank Reactor International Journal of Electronic and Electrical Engineering. ISSN 974-2174 Volume 7, Number 8 (214), pp. 767-772 International Research Publication House http://www.irphouse.com H-Infinity Controller

More information

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

Automatic Control 2. Loop shaping. Prof. Alberto Bemporad. University of Trento. Academic year Automatic Control 2 Loop shaping Prof. Alberto Bemporad University of Trento Academic year 21-211 Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 21-211 1 / 39 Feedback

More information

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

Chapter Robust Performance and Introduction to the Structured Singular Value Function Introduction As discussed in Lecture 0, a process is better desc Lectures on Dynamic Systems and Control Mohammed Dahleh Munther A Dahleh George Verghese Department of Electrical Engineering and Computer Science Massachuasetts Institute of Technology c Chapter Robust

More information

Topic # Feedback Control Systems

Topic # Feedback Control Systems Topic #1 16.31 Feedback Control Systems Motivation Basic Linear System Response Fall 2007 16.31 1 1 16.31: Introduction r(t) e(t) d(t) y(t) G c (s) G(s) u(t) Goal: Design a controller G c (s) so that the

More information

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

Robust Control. 2nd class. Spring, 2018 Instructor: Prof. Masayuki Fujita (S5-303B) Tue., 17th April, 2018, 10:45~12:15, S423 Lecture Room Robust Control Spring, 2018 Instructor: Prof. Masayuki Fujita (S5-303B) 2nd class Tue., 17th April, 2018, 10:45~12:15, S423 Lecture Room 2. Nominal Performance 2.1 Weighted Sensitivity [SP05, Sec. 2.8,

More information

Uwe Mackenroth. Robust Control Systems

Uwe Mackenroth. Robust Control Systems Uwe Mackenroth Robust Control Systems Springer-Verlag Berlin Heidelberg GmbH Uwe Mackenroth Robust Control Systems Theory and Case Studies With 221 Figures Springer Professor Dr. Uwe Mackenroth Fachhochschule

More information

MRAGPC Control of MIMO Processes with Input Constraints and Disturbance

MRAGPC Control of MIMO Processes with Input Constraints and Disturbance Proceedings of the World Congress on Engineering and Computer Science 9 Vol II WCECS 9, October -, 9, San Francisco, USA MRAGPC Control of MIMO Processes with Input Constraints and Disturbance A. S. Osunleke,

More information

Optimal Polynomial Control for Discrete-Time Systems

Optimal Polynomial Control for Discrete-Time Systems 1 Optimal Polynomial Control for Discrete-Time Systems Prof Guy Beale Electrical and Computer Engineering Department George Mason University Fairfax, Virginia Correspondence concerning this paper should

More information

Operator based robust right coprime factorization and control of nonlinear systems

Operator based robust right coprime factorization and control of nonlinear systems Operator based robust right coprime factorization and control of nonlinear systems September, 2011 Ni Bu The Graduate School of Engineering (Doctor s Course) TOKYO UNIVERSITY OF AGRICULTURE AND TECHNOLOGY

More information

CHAPTER 5 ROBUSTNESS ANALYSIS OF THE CONTROLLER

CHAPTER 5 ROBUSTNESS ANALYSIS OF THE CONTROLLER 114 CHAPTER 5 ROBUSTNESS ANALYSIS OF THE CONTROLLER 5.1 INTRODUCTION Robust control is a branch of control theory that explicitly deals with uncertainty in its approach to controller design. It also refers

More information

EEE582 Homework Problems

EEE582 Homework Problems EEE582 Homework Problems HW. Write a state-space realization of the linearized model for the cruise control system around speeds v = 4 (Section.3, http://tsakalis.faculty.asu.edu/notes/models.pdf). Use

More information

Iterative Learning Control Analysis and Design I

Iterative Learning Control Analysis and Design I Iterative Learning Control Analysis and Design I Electronics and Computer Science University of Southampton Southampton, SO17 1BJ, UK etar@ecs.soton.ac.uk http://www.ecs.soton.ac.uk/ Contents Basics Representations

More information

Introduction to Feedback Control

Introduction to Feedback Control Introduction to Feedback Control Control System Design Why Control? Open-Loop vs Closed-Loop (Feedback) Why Use Feedback Control? Closed-Loop Control System Structure Elements of a Feedback Control System

More information

L2 gains and system approximation quality 1

L2 gains and system approximation quality 1 Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.242, Fall 24: MODEL REDUCTION L2 gains and system approximation quality 1 This lecture discusses the utility

More information

Lecture 9. Introduction to Kalman Filtering. Linear Quadratic Gaussian Control (LQG) G. Hovland 2004

Lecture 9. Introduction to Kalman Filtering. Linear Quadratic Gaussian Control (LQG) G. Hovland 2004 MER42 Advanced Control Lecture 9 Introduction to Kalman Filtering Linear Quadratic Gaussian Control (LQG) G. Hovland 24 Announcement No tutorials on hursday mornings 8-9am I will be present in all practical

More information

Follow links Class Use and other Permissions. For more information, send to:

Follow links Class Use and other Permissions. For more information, send  to: COPYRIGHT NOTICE: Stephen L. Campbell & Richard Haberman: Introduction to Differential Equations with Dynamical Systems is published by Princeton University Press and copyrighted, 2008, by Princeton University

More information

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

Chapter 3. LQ, LQG and Control System Design. Dutch Institute of Systems and Control Chapter 3 LQ, LQG and Control System H 2 Design Overview LQ optimization state feedback LQG optimization output feedback H 2 optimization non-stochastic version of LQG Application to feedback system design

More information

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

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review Week Date Content Notes 1 6 Mar Introduction 2 13 Mar Frequency Domain Modelling 3 20 Mar Transient Performance and the s-plane 4 27 Mar Block Diagrams Assign 1 Due 5 3 Apr Feedback System Characteristics

More information

Lecture 1: Feedback Control Loop

Lecture 1: Feedback Control Loop Lecture : Feedback Control Loop Loop Transfer function The standard feedback control system structure is depicted in Figure. This represend(t) n(t) r(t) e(t) u(t) v(t) η(t) y(t) F (s) C(s) P (s) Figure

More information

Model Uncertainty and Robust Stability for Multivariable Systems

Model Uncertainty and Robust Stability for Multivariable Systems Model Uncertainty and Robust Stability for Multivariable Systems ELEC 571L Robust Multivariable Control prepared by: Greg Stewart Devron Profile Control Solutions Outline Representing model uncertainty.

More information

Control Systems Design

Control Systems Design ELEC4410 Control Systems Design Lecture 18: State Feedback Tracking and State Estimation Julio H. Braslavsky julio@ee.newcastle.edu.au School of Electrical Engineering and Computer Science Lecture 18:

More information

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

Subject: Optimal Control Assignment-1 (Related to Lecture notes 1-10) Subject: Optimal Control Assignment- (Related to Lecture notes -). Design a oil mug, shown in fig., to hold as much oil possible. The height and radius of the mug should not be more than 6cm. The mug must

More information

Advanced Aerospace Control. Marco Lovera Dipartimento di Scienze e Tecnologie Aerospaziali, Politecnico di Milano

Advanced Aerospace Control. Marco Lovera Dipartimento di Scienze e Tecnologie Aerospaziali, Politecnico di Milano Advanced Aerospace Control Dipartimento di Scienze e Tecnologie Aerospaziali, Politecnico di Milano ICT for control systems engineering School of Industrial and Information Engineering Aeronautical Engineering

More information

Raktim Bhattacharya. . AERO 632: Design of Advance Flight Control System. Preliminaries

Raktim Bhattacharya. . AERO 632: Design of Advance Flight Control System. Preliminaries . AERO 632: of Advance Flight Control System. Preliminaries Raktim Bhattacharya Laboratory For Uncertainty Quantification Aerospace Engineering, Texas A&M University. Preliminaries Signals & Systems Laplace

More information

Topic # Feedback Control Systems

Topic # Feedback Control Systems Topic #19 16.31 Feedback Control Systems Stengel Chapter 6 Question: how well do the large gain and phase margins discussed for LQR map over to DOFB using LQR and LQE (called LQG)? Fall 2010 16.30/31 19

More information

On Normalized Integral Table Algebras (Fusion Rings)

On Normalized Integral Table Algebras (Fusion Rings) On Normalized Integral Table Algebras (Fusion Rings) For further volumes: www.springer.com/series/6253 Algebra and Applications Volume 16 Series Editors: Alice Fialowski Eötvös Loránd University, Budapest,

More information

Problem Set 5 Solutions 1

Problem Set 5 Solutions 1 Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science 6.245: MULTIVARIABLE CONTROL SYSTEMS by A. Megretski Problem Set 5 Solutions The problem set deals with Hankel

More information

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

Here represents the impulse (or delta) function. is an diagonal matrix of intensities, and is an diagonal matrix of intensities. 19 KALMAN FILTER 19.1 Introduction In the previous section, we derived the linear quadratic regulator as an optimal solution for the fullstate feedback control problem. The inherent assumption was that

More information

Lecture 12. Upcoming labs: Final Exam on 12/21/2015 (Monday)10:30-12:30

Lecture 12. Upcoming labs: Final Exam on 12/21/2015 (Monday)10:30-12:30 289 Upcoming labs: Lecture 12 Lab 20: Internal model control (finish up) Lab 22: Force or Torque control experiments [Integrative] (2-3 sessions) Final Exam on 12/21/2015 (Monday)10:30-12:30 Today: Recap

More information

Today (10/23/01) Today. Reading Assignment: 6.3. Gain/phase margin lead/lag compensator Ref. 6.4, 6.7, 6.10

Today (10/23/01) Today. Reading Assignment: 6.3. Gain/phase margin lead/lag compensator Ref. 6.4, 6.7, 6.10 Today Today (10/23/01) Gain/phase margin lead/lag compensator Ref. 6.4, 6.7, 6.10 Reading Assignment: 6.3 Last Time In the last lecture, we discussed control design through shaping of the loop gain GK:

More information

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

Control Systems I. Lecture 2: Modeling. Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch Emilio Frazzoli Control Systems I Lecture 2: Modeling Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch. 2-3 Emilio Frazzoli Institute for Dynamic Systems and Control D-MAVT ETH Zürich September 29, 2017 E. Frazzoli

More information

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

EECE 460. Decentralized Control of MIMO Systems. Guy A. Dumont. Department of Electrical and Computer Engineering University of British Columbia EECE 460 Decentralized Control of MIMO Systems Guy A. Dumont Department of Electrical and Computer Engineering University of British Columbia January 2011 Guy A. Dumont (UBC EECE) EECE 460 - Decentralized

More information

Introduction to CLASSICAL MECHANICS

Introduction to CLASSICAL MECHANICS Introduction to CLASSICAL MECHANICS Introduction to CLASSICAL MECHANICS A.P. FRENCH Massachusetts Institute oj Technology M.G. EBISON The Institute oj Physics, London KLUWER ACADEMIC PUBLISHERS DORDRECHT

More information

Analysis of Discrete-Time Systems

Analysis of Discrete-Time Systems TU Berlin Discrete-Time Control Systems 1 Analysis of Discrete-Time Systems Overview Stability Sensitivity and Robustness Controllability, Reachability, Observability, and Detectabiliy TU Berlin Discrete-Time

More information

EL2520 Control Theory and Practice

EL2520 Control Theory and Practice So far EL2520 Control Theory and Practice r Fr wu u G w z n Lecture 5: Multivariable systems -Fy Mikael Johansson School of Electrical Engineering KTH, Stockholm, Sweden SISO control revisited: Signal

More information

Return Difference Function and Closed-Loop Roots Single-Input/Single-Output Control Systems

Return Difference Function and Closed-Loop Roots Single-Input/Single-Output Control Systems Spectral Properties of Linear- Quadratic Regulators Robert Stengel Optimal Control and Estimation MAE 546 Princeton University, 2018! Stability margins of single-input/singleoutput (SISO) systems! Characterizations

More information

LINEAR-QUADRATIC CONTROL OF A TWO-WHEELED ROBOT

LINEAR-QUADRATIC CONTROL OF A TWO-WHEELED ROBOT Доклади на Българската академия на науките Comptes rendus de l Académie bulgare des Sciences Tome 67, No 8, 2014 SCIENCES ET INGENIERIE Automatique et informatique Dedicated to the 145th Anniversary of

More information

Robust and Optimal Control, Spring A: SISO Feedback Control A.1 Internal Stability and Youla Parameterization

Robust and Optimal Control, Spring A: SISO Feedback Control A.1 Internal Stability and Youla Parameterization Robust and Optimal Control, Spring 2015 Instructor: Prof. Masayuki Fujita (S5-303B) A: SISO Feedback Control A.1 Internal Stability and Youla Parameterization A.2 Sensitivity and Feedback Performance A.3

More information

ELEC4631 s Lecture 2: Dynamic Control Systems 7 March Overview of dynamic control systems

ELEC4631 s Lecture 2: Dynamic Control Systems 7 March Overview of dynamic control systems ELEC4631 s Lecture 2: Dynamic Control Systems 7 March 2011 Overview of dynamic control systems Goals of Controller design Autonomous dynamic systems Linear Multi-input multi-output (MIMO) systems Bat flight

More information

Alireza Mousavi Brunel University

Alireza Mousavi Brunel University Alireza Mousavi Brunel University 1 » Online Lecture Material at (www.brunel.ac.uk/~emstaam)» C. W. De Silva, Modelling and Control of Engineering Systems, CRC Press, Francis & Taylor, 2009.» M. P. Groover,

More information

Aircraft Stability & Control

Aircraft Stability & Control Aircraft Stability & Control Textbook Automatic control of Aircraft and missiles 2 nd Edition by John H Blakelock References Aircraft Dynamics and Automatic Control - McRuler & Ashkenas Aerodynamics, Aeronautics

More information

THIS paper deals with robust control in the setup associated

THIS paper deals with robust control in the setup associated IEEE TRANSACTIONS ON AUTOMATIC CONTROL, VOL 50, NO 10, OCTOBER 2005 1501 Control-Oriented Model Validation and Errors Quantification in the `1 Setup V F Sokolov Abstract A priori information required for

More information

Introduction to Control (034040) lecture no. 2

Introduction to Control (034040) lecture no. 2 Introduction to Control (034040) lecture no. 2 Leonid Mirkin Faculty of Mechanical Engineering Technion IIT Setup: Abstract control problem to begin with y P(s) u where P is a plant u is a control signal

More information

Feedback Control of Linear SISO systems. Process Dynamics and Control

Feedback Control of Linear SISO systems. Process Dynamics and Control Feedback Control of Linear SISO systems Process Dynamics and Control 1 Open-Loop Process The study of dynamics was limited to open-loop systems Observe process behavior as a result of specific input signals

More information

Control System Design

Control System Design ELEC4410 Control System Design Lecture 19: Feedback from Estimated States and Discrete-Time Control Design Julio H. Braslavsky julio@ee.newcastle.edu.au School of Electrical Engineering and Computer Science

More information

Dr Ian R. Manchester

Dr Ian R. Manchester Week Content Notes 1 Introduction 2 Frequency Domain Modelling 3 Transient Performance and the s-plane 4 Block Diagrams 5 Feedback System Characteristics Assign 1 Due 6 Root Locus 7 Root Locus 2 Assign

More information

Geophysical Interpretation using Integral Equations

Geophysical Interpretation using Integral Equations Geophysical Interpretation using Integral Equations Geophysical Interpretation using Integral Equations L. ESKOLA Head of the Geophysics Department, Geological Survey of Finland 1~lll SPRINGER-SCIENCE+BUSINESS

More information

AMME3500: System Dynamics & Control

AMME3500: System Dynamics & Control Stefan B. Williams May, 211 AMME35: System Dynamics & Control Assignment 4 Note: This assignment contributes 15% towards your final mark. This assignment is due at 4pm on Monday, May 3 th during Week 13

More information

Synthesis via State Space Methods

Synthesis via State Space Methods Chapter 18 Synthesis via State Space Methods Here, we will give a state space interpretation to many of the results described earlier. In a sense, this will duplicate the earlier work. Our reason for doing

More information

Subspace-based Identification

Subspace-based Identification of Infinite-dimensional Multivariable Systems from Frequency-response Data Department of Electrical and Electronics Engineering Anadolu University, Eskişehir, Turkey October 12, 2008 Outline 1 2 3 4 Noise-free

More information