Automatic Control Systems theory overview (discrete time systems)

Similar documents
Control of Mobile Robots

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

Andrea Zanchettin Automatic Control 1 AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Spring Semester, Discrete time linear systems

Identification Methods for Structural Systems

AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Spring Semester, Introduction to Automatic Control & Linear systems (time domain)

(i) Represent discrete-time signals using transform. (ii) Understand the relationship between transform and discrete-time Fourier transform

Identification Methods for Structural Systems. Prof. Dr. Eleni Chatzi System Stability - 26 March, 2014

Designing Information Devices and Systems II Fall 2015 Note 22

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

Module 6 : Solving Ordinary Differential Equations - Initial Value Problems (ODE-IVPs) Section 3 : Analytical Solutions of Linear ODE-IVPs

Chapter Intended Learning Outcomes: (i) Understanding the relationship between transform and the Fourier transform for discrete-time signals

LESSON 8.1 RATIONAL EXPRESSIONS I

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

In these chapter 2A notes write vectors in boldface to reduce the ambiguity of the notation.

Solution of ODEs using Laplace Transforms. Process Dynamics and Control

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

Theory of Linear Systems Exercises. Luigi Palopoli and Daniele Fontanelli

Contents. 1 State-Space Linear Systems 5. 2 Linearization Causality, Time Invariance, and Linearity 31

EE 380. Linear Control Systems. Lecture 10

Designing Information Devices and Systems I Spring 2016 Official Lecture Notes Note 21

CONTROL SYSTEMS, ROBOTICS AND AUTOMATION CONTENTS VOLUME VII

Discrete and continuous dynamic systems

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

UNIT-II Z-TRANSFORM. This expression is also called a one sided z-transform. This non causal sequence produces positive powers of z in X (z).

CONTENTS. Preface Preliminaries 1

MATH 320, WEEK 11: Eigenvalues and Eigenvectors

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

Dynamic Response. Assoc. Prof. Enver Tatlicioglu. Department of Electrical & Electronics Engineering Izmir Institute of Technology.

Control Systems. Internal Stability - LTI systems. L. Lanari

Stability of Feedback Control Systems: Absolute and Relative

A system that is both linear and time-invariant is called linear time-invariant (LTI).

Damped Oscillators (revisited)

Represent this system in terms of a block diagram consisting only of. g From Newton s law: 2 : θ sin θ 9 θ ` T

Copyright (c) 2006 Warren Weckesser

Digital Signal Processing

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

Lecture 14: Minimum Phase Systems and Linear Phase

Stability Analysis Techniques

ẋ 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)

A basic canonical form of discrete-time compartmental systems

Poles, Zeros and System Response

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

Signals and Systems. Spring Room 324, Geology Palace, ,

Let H(z) = P(z)/Q(z) be the system function of a rational form. Let us represent both P(z) and Q(z) as polynomials of z (not z -1 )

Generalizing the DTFT!

Analysis of Discrete-Time Systems

Scope and Sequence Mathematics Algebra 2 400

Analysis and Synthesis of Single-Input Single-Output Control Systems

How to manipulate Frequencies in Discrete-time Domain? Two Main Approaches

Laplace Transform Part 1: Introduction (I&N Chap 13)

Table of Laplacetransform

Optimal Polynomial Control for Discrete-Time Systems

Module 4 : Laplace and Z Transform Problem Set 4

Lecture plan: Control Systems II, IDSC, 2017

EE Control Systems LECTURE 9

Control Systems. Laplace domain analysis

Lecture 19 IIR Filters

CHBE320 LECTURE V LAPLACE TRANSFORM AND TRANSFER FUNCTION. Professor Dae Ryook Yang

Stability and composition of transfer functions

Laplace Transforms Chapter 3

Mathematics for Engineers and Scientists

CDS Solutions to Final Exam

Software Engineering/Mechatronics 3DX4. Slides 6: Stability

Eigenvalues and Eigenvectors: An Introduction

We use the overhead arrow to denote a column vector, i.e., a number with a direction. For example, in three-space, we write

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

Analysis of Discrete-Time Systems

Algebraic Expressions and Identities

It is common to think and write in time domain. creating the mathematical description of the. Continuous systems- using Laplace or s-

Dynamic Systems. Modeling and Analysis. Hung V. Vu. Ramin S. Esfandiari. THE McGRAW-HILL COMPANIES, INC. California State University, Long Beach

Here are brief notes about topics covered in class on complex numbers, focusing on what is not covered in the textbook.

The Laplace Transform

Nonlinear System Analysis

Section 3: Complex numbers

Math Matrix Algebra

Theory and Problems of Signals and Systems

Discrete-Time Fourier Transform (DTFT)

Algebra I. Course Outline

Time Response of Systems

Automatic Control Motion planning

Symbolic Dynamics of Digital Signal Processing Systems

Sampling and Discrete Time. Discrete-Time Signal Description. Sinusoids. Sampling and Discrete Time. Sinusoids An Aperiodic Sinusoid.

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

5.1 Monomials. Algebra 2

Review of Linear Time-Invariant Network Analysis

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

Part A: From (14.19) in your text (see notes Stability1 ), we have

Contents. Preface for the Instructor. Preface for the Student. xvii. Acknowledgments. 1 Vector Spaces 1 1.A R n and C n 2

Contents lecture 6 2(17) Automatic Control III. Summary of lecture 5 (I/III) 3(17) Summary of lecture 5 (II/III) 4(17) H 2, H synthesis pros and cons:

sc Control Systems Design Q.1, Sem.1, Ac. Yr. 2010/11

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

Automatic Control Systems, 9th Edition

9-12 Mathematics Vertical Alignment ( )

Math 1553, Introduction to Linear Algebra

Autonomous Mobile Robot Design

Signals and Systems Laboratory with MATLAB

Module 4 : Laplace and Z Transform Lecture 36 : Analysis of LTI Systems with Rational System Functions

Algebraic. techniques1

Contents. PART I METHODS AND CONCEPTS 2. Transfer Function Approach Frequency Domain Representations... 42

Topics in linear algebra

Transcription:

Automatic Control Systems theory overview (discrete time systems) Prof. Luca Bascetta (luca.bascetta@polimi.it) Politecnico di Milano Dipartimento di Elettronica, Informazione e Bioingegneria

Motivations 2 We complete the fundamentals of systems theory with the basic knowledge on discrete time systems. The main topics we will face are: discrete time systems Linear Time Invariant systems stability of equilibria of nonlinear systems the Z transform transfer function of a LTI system time response of a first order system frequency response Prof. Luca Bascetta

Discrete time systems (I) 3 Discrete time systems are dynamical systems whose variables are referred to a time that is not continuous but discrete, i.e. time k is an integer number. Why are we interested to consider discrete time systems? Natura non facit saltus, but there are systems in economics, ecology, sociology, etc. that can be naturally described with discrete time systems the control algorithm executed by a (embedded) processor evolves like a discrete time system Prof. Luca Bascetta

Discrete time systems (II) 4 A discrete time system is characterized by m input and p output variables. As in continuous time systems, we call order n of the dynamical system the minimum number of initial conditions we need to compute the system output given the input values from the initial time. A discrete time system is described by the following n state and p output difference equations We could introduce the same classification presented for continuous time systems. Discrete time systems can be: SISO or MIMO, strictly proper or proper, linear or nonlinear, time invariant or time varying.

Discrete time systems (III) 5 Given a discrete time system, an initial condition at time k 0, and an input function for k k 0, we call state trajectory, a solution of the state equations that starts from the given initial condition output trajectory, the trajectory determined by the output equations given the state trajectory A constant trajectory, generated by a constant input function, is called equilibrium. Given a constant input തu, the equilibria are solutions of the following equations We could introduce the same definitions of stable, unstable, and asymptotically stable trajectory (or equilibrium). Prof. Luca Bascetta

Discrete time systems Example 6 We would like to find an algorithm to compute the solutions of the scalar equation where f is a general nonlinear function. We start from a guess solution x 0 and iterate following the algorithm where k represent the iteration index. We observe that the equilibria of the previous system are the solutions of the equation i.e., the equilibria are the solutions we are looking for. We conclude that, if the equilibria are asymptotically stable and the guess solution is sufficiently close to them, after some iterations the algorithm will converge to the solutions we are looking for. Prof. Luca Bascetta

Linear Time Invariant systems (I) 7 If all the functions f i and g i are linear with respect to the state and input variables, and do not depend on time k, the discrete time system is called Linear and Time Invariant (LTI) system. A LTI discrete time system is described by the following equations Given an initial condition x 0, we can iteratively compute the state trajectory From these relations we can derive the general expression of the state trajectory of LTI discrete time systems. Prof. Luca Bascetta

Linear Time Invariant systems (II) 8 Zero-input response Generated by the initial condition only Zero-state response Generated by the input only Observing that the zero-input response is linear with respect to the initial condition the zero-state response is linear with respect to the input we conclude that for LTI discrete time systems the superposition principle holds. Prof. Luca Bascetta

Linear Time Invariant systems (III) 9 Given a LTI discrete time system the state equilibria are the solutions of the following equation If matrix I n A is non singular (i.e., A has no eigenvalues λ i = 1), there exists a unique state equilibrium given by and the output equilibrium is Static gain

Linear Time Invariant systems (IV) 10 We will now recall other properties of continuous time systems that hold for discrete time systems as well. Change of variables Controllability The system is completely controllable if and only if rank K r = n. Observability The system is completely observable if and only if rank K o = n.

Linear Time Invariant systems (V) 11 Concerning the stability of LTI discrete time systems, the following conclusions, already derived for continuous time systems, hold the trajectories are all stable, all unstable or all asymptotically stable stability is a property of the system stability can be assessed studying the zero-input response of the system Analyzing the stability of continuous time systems, we discovered it depends on the zero-input response of the following system where δx is the difference between the nominal and the perturbed state trajectory. The zero-input response is given by Assuming the state matrix A is diagonalizable, we can introduce a change of variables that decouples the trajectories and simplifies the computation of the matrix exponential. Prof. Luca Bascetta

Linear Time Invariant systems (VI) 12 We conclude that the zero-input responses are linear combinations of the terms that we call characteristic modes or natural modes of the LTI discrete time system. Let s look at the different behavior of the modes for λ i R.

Linear Time Invariant systems (VII) 13 λ > 1 λ = 1 0 < λ < 1 1 < λ < 0 λ = 1 λ < 1

Linear Time Invariant systems (VIII) 14 Let s analyze the modes, assuming that λ i C (λ i = ρ i e jθ i) making the linear combination, the imaginary part is cancelled out by the imaginary part of the complex conjugate of λ i. As a consequence we have λ i k when λ i R ρ i k cos(θ i k + φ i ) when λ i C Let s know analyze these two modes in view of the stability condition. Prof. Luca Bascetta

Linear Time Invariant systems (IX) 15 The analysis of the two modes λ i k and ρ i k cos(θ i k + φ i ) reveals that: if all the eigenvalues of matrix A lie inside the unit circle (ρ i < 1), all the modes are bounded and tend to zero asymptotically if all the eigenvalues of matrix A lie inside the unit circle or on the circumference (ρ i 1), and there is at least one eigenvalue on the circumference (ρ i = 1), all the modes are bounded but the modes associated to the eigenvalues on the circumference do not tend to zero asymptotically if at least one eigenvalue of matrix A lies outside the unit circle (ρ i > 1), there is at least one mode that is not bounded

Linear Time Invariant systems (X) 16 Based on the previous analysis we conclude that an LTI discrete time system with diagonalizable state matrix is: asymptotically stable, if and only if all the eigenvalues of matrix A lie inside the unit circle ( λ i < 1 i) stable, if and only if all the eigenvalues of matrix A lie inside the unit circle ( λ i 1 i) and there is at least one eigenvalue on the circumference ( i: λ i = 1) unstable, if and only if there is at least one eigenvalue of matrix A lying outside the unit circle ( i: λ i > 1) In the general case of non diagonalizable state matrices it can be shown that, if all the eigenvalues of matrix A lie inside the unit circle, and there are multiple eigenvalues on the unit circle, the system is unstable if there is at least one eigenvalue on the unit circle whose geometric multiplicity is less than the algebraic multiplicity. As for continuous time systems, the stability is a structural property of the system.

Linear Time Invariant systems (XI) 17 As we did for continuous time systems, we would like to investigate the existence of tools to perform the stability analysis without computing the eigenvalues. If we focused on criteria to assess the stability of a system analyzing its characteristic polynomial, we can proceed in two ways: Jury criterion, it gives the conditions to ensure that a polynomial has all the roots inside the unit circle introduce a change of variables ensuring that, if the transformed polynomial has all the roots in the open left half plane, the original polynomial has all the roots inside the unit circle An example of change of variables satisfying this property is the bilinear transformation Prof. Luca Bascetta

Linear Time Invariant systems Example 18 Consider the following characteristic polynomial applying the bilinear transformation we obtain Equating to zero in order to create the characteristic equation and expanding the powers To this polynomial we can apply the Routh criterion We conclude that the polynomial in s has all the roots in the open left half plane and, consequently, the polynomial in z has all the roots inside the unit circle.

Stability of equilibria of nonlinear systems (I) 19 Given a nonlinear time invariant system and an equilibrium We can locally approximate the nonlinear system, around the equilibrium, with the linearized system where and

Stability of equilibria of nonlinear systems (II) 20 As the linearized system is a LTI system, we can assess the stability of the equilibrium point of the nonlinear system analyzing the state matrix We can state the following results: if all the eigenvalues of matrix A lie inside the unit circle ( λ i < 1), the equilibrium point is asymptotically stable if at least one eigenvalue of matrix A lies outside the unit circle ( i: λ i > 1), the equilibrium point is unstable If the eigenvalues of matrix A lie inside the unit circle and there is at least one eigenvalue on the circumference the linearization, that is a first order approximation, is too rough to assess the stability of the equilibrium point. Prof. Luca Bascetta

The Z transform (I) 21 Given a LTI system as we did for continuous time systems, we can introduce a representation of the LTI system in the frequency domain Difference equations u(k) y(k) Z transform Inverse Z transform U(z) Y(z) Algebraic equations The input-output relation in the frequency domain is again an algebraic relation between the input and output transforms. For discrete time systems this transformation is performed using the Z transform.

The Z transform (II) 22 Given a real function v k, where k is an integer number and k 0, we call Z transform of v the complex function of the complex variable z. Usually this series converges only for the values of z lying outside a circle of radius r ( z > r > 0). We will assume as the Z transform of v k the sum of the series computed for the values of z where the series is convergent. Let s see how to compute the Z transform of some common signals. Prof. Luca Bascetta

The Z transform (III) 23 Discrete time unitary impulse Given the unitary impulse (Kronecker delta) we have Discrete time exponential Given a discrete time exponential v k = a k we have If a = 1 then v k = sca k and the Z transform is Prof. Luca Bascetta

The Z transform (IV) 24 We now review the most important properties of the Z transform. Linearity Time shift First derivative in z-domain Initial value theorem Final value theorem (if p i < 1 or p i = 1)

The Z transform Examples 25 Discrete time ramp Given the ramp signal we have Discrete time exponential Consider a signal with Z transform V z = theorems we have z z a, from the initial and final value The results are coherent with v k = a k Prof. Luca Bascetta

The Z transform (V) 26 Let s recap the Z transform of the main signals we will face studying discrete time systems.

The Z transform (VI) 27 In order to come back to the time domain we need to introduce the inverse transform. If we focused on rational Z transforms (ratio of polynomials), we can use the Heaviside method to expand the rational function in partial fractions. With Z transform is better to expand V z z instead of V z. Let s see the example of a Z transform with distinct roots. The expansion in partial fractions is given by multiplying now each side by z and applying the inverse transform at each addend

The Z transform (VII) 28 Another technique to recover the signal in the time domain is the polynomial long division, that allows to compute the samples of the time domain signal. Consider the ratio between numerator and denominator from this expression the samples of v k follow Prof. Luca Bascetta

The Z transform Example (I) 29 Consider the following Z transform Applying Heaviside method we obtain and evaluating the numerator for z = 0, z = 2, z = 3

The Z transform Example (II) 30 Consequently and applying the inverse transform What happens if we perform the long division? The first four samples are and are coherent with the previous expression of v k.

Transfer function of a LTI system (I) 31 Given a LTI system and assuming zero initial conditions, we apply the Z transform to both sides of the equations, obtaining The relation in the frequency domain between U z and Y z is called transfer function and it is given by We observe that G z is a p x m matrix.

Transfer function of a LTI system (II) 32 The transfer function for a discrete time and for a continuous time system has the same analytical expression. For this reason they also shares the same properties: the transfer function is invariant with respect to change of variables for SISO systems the transfer function is a ratio between two polynomials we call zeros the roots of the numerator, and poles the roots of the denominator if there are no zero-pole cancellations the poles coincide with the eigenvalues of matrix A Prof. Luca Bascetta

Transfer function of a LTI system (III) 33 We call type g of a transfer function the number of poles/zeros in z = 1. As a consequence if: g 1, there are g poles in z = 1 g = 0, there are no zeros/poles in z = 1 g 1, there are g zeros in z = 1 Given a type 0 transfer function, we call the following constant gain of the transfer function. We observer that in this case (g = 0) the gain of the transfer function is equal to the static gain of the LTI system. If g 0 the gain definition can be generalized as follows Prof. Luca Bascetta

Transfer function of a LTI system (IV) 34 We conclude observing that in the case of discrete time systems the delay has a rational transfer function. Consider a time delay of h discrete steps Transforming each side of this relation we obtain and the transfer function of the time delay is a unity gain system with h poles in z = 0.

Time response of a first order system (I) 35 Consider a first order system We can compute the step response and Applying the inverse Z transform we obtain If p < 1 the system is asymptotically stable and the step response asymptotically converges to μ.

Time response of a first order system (II) 36 0 < p < 1 1 < p < 0 A peculiarity of discrete time systems: even the step response of a first order system can exhibit oscillations.

Frequency response (I) 37 Given a general LTI asymptotically stable discrete time system, represented by the transfer function G(z), in steady state a sinusoidal input generates a sinusoidal response of the same frequency The frequency response of a system whose transfer function is G(z) is a complex function of the real variable θ. Remember that the frequency response can be defined for stable and unstable LTI systems. Prof. Luca Bascetta