4F3 - Predictive Control

Similar documents
4F3 - Predictive Control

Systems and Control Theory Lecture Notes. Laura Giarré

Module 07 Controllability and Controller Design of Dynamical LTI Systems

Module 03 Linear Systems Theory: Necessary Background

Discrete-time linear systems

Module 08 Observability and State Estimator Design of Dynamical LTI Systems

Control System Design

SYSTEMTEORI - ÖVNING 5: FEEDBACK, POLE ASSIGNMENT AND OBSERVER

Fall 線性系統 Linear Systems. Chapter 08 State Feedback & State Estimators (SISO) Feng-Li Lian. NTU-EE Sep07 Jan08

ESC794: Special Topics: Model Predictive Control

Control engineering sample exam paper - Model answers

1. Find the solution of the following uncontrolled linear system. 2 α 1 1

CDS Final Exam

POLE PLACEMENT. Sadegh Bolouki. Lecture slides for ECE 515. University of Illinois, Urbana-Champaign. Fall S. Bolouki (UIUC) 1 / 19

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science : Dynamic Systems Spring 2011

CONTROL DESIGN FOR SET POINT TRACKING

Linear System Theory

Optimal control and estimation

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

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

Module 9: State Feedback Control Design Lecture Note 1

4F3 - Predictive Control

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

Observers for Linear Systems with Unknown Inputs

Stabilisation of Linear Time-Invariant Systems subject to Output Saturation

5. Observer-based Controller Design

Control Over Packet-Dropping Channels

Intro. Computer Control Systems: F8

CDS 101: Lecture 5-1 Reachability and State Space Feedback

Autonomous system = system without inputs

7.1 Linear Systems Stability Consider the Continuous-Time (CT) Linear Time-Invariant (LTI) system

Lyapunov Stability Theory

Modelling and Control of Dynamic Systems. Stability of Linear Systems. Sven Laur University of Tartu

EE451/551: Digital Control. Chapter 8: Properties of State Space Models

Control Systems Lab - SC4070 Control techniques

Control Systems Design

ECE 388 Automatic Control

CHAPTER 6 FAST OUTPUT SAMPLING CONTROL TECHNIQUE

EEE582 Homework Problems

Math Ordinary Differential Equations

EL 625 Lecture 10. Pole Placement and Observer Design. ẋ = Ax (1)

Ingegneria dell Automazione - Sistemi in Tempo Reale p.1/28

16.31 Fall 2005 Lecture Presentation Mon 31-Oct-05 ver 1.1

Chap. 3. Controlled Systems, Controllability

MATH4406 (Control Theory) Unit 6: The Linear Quadratic Regulator (LQR) and Model Predictive Control (MPC) Prepared by Yoni Nazarathy, Artem

Mathematical Systems Theory: Advanced Course Exercise Session 5. 1 Accessibility of a nonlinear system

Outline. 1 Linear Quadratic Problem. 2 Constraints. 3 Dynamic Programming Solution. 4 The Infinite Horizon LQ Problem.

TRACKING AND DISTURBANCE REJECTION

Methods for analysis and control of. Lecture 6: Introduction to digital control

CDS Solutions to Final Exam

EECS C128/ ME C134 Final Thu. May 14, pm. Closed book. One page, 2 sides of formula sheets. No calculators.

Stability, Pole Placement, Observers and Stabilization

ELEC 3035, Lecture 3: Autonomous systems Ivan Markovsky

1 Similarity transform 2. 2 Controllability The PBH test for controllability Observability The PBH test for observability...

Module 06 Stability of Dynamical Systems

ME Fall 2001, Fall 2002, Spring I/O Stability. Preliminaries: Vector and function norms

EE363 homework 7 solutions

Discrete and continuous dynamic systems

Study Guide for Linear Algebra Exam 2

6.241 Dynamic Systems and Control

10/8/2015. Control Design. Pole-placement by state-space methods. Process to be controlled. State controller

Controllability. Chapter Reachable States. This chapter develops the fundamental results about controllability and pole assignment.

Review of Some Concepts from Linear Algebra: Part 2

IMPULSIVE CONTROL OF DISCRETE-TIME NETWORKED SYSTEMS WITH COMMUNICATION DELAYS. Shumei Mu, Tianguang Chu, and Long Wang

Analysis of Discrete-Time Systems

Properties of Open-Loop Controllers

Georgia Institute of Technology Nonlinear Controls Theory Primer ME 6402

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

Rural/Urban Migration: The Dynamics of Eigenvectors

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

Control Systems Design, SC4026. SC4026 Fall 2009, dr. A. Abate, DCSC, TU Delft

Automatic Control 2. Nonlinear systems. Prof. Alberto Bemporad. University of Trento. Academic year

Homogeneous and particular LTI solutions

1 Steady State Error (30 pts)

Time-Invariant Linear Quadratic Regulators!

Linearization problem. The simplest example

Nonlinear Control Systems

Control Systems Design, SC4026. SC4026 Fall 2010, dr. A. Abate, DCSC, TU Delft

Note. Design via State Space

Theorem 1. ẋ = Ax is globally exponentially stable (GES) iff A is Hurwitz (i.e., max(re(σ(a))) < 0).

Outline. Linear regulation and state estimation (LQR and LQE) Linear differential equations. Discrete time linear difference equations

Automatic Control 2. Model reduction. Prof. Alberto Bemporad. University of Trento. Academic year

Control Systems Design, SC4026. SC4026 Fall 2010, dr. A. Abate, DCSC, TU Delft

Designing Information Devices and Systems II Fall 2015 Note 22

Control, Stabilization and Numerics for Partial Differential Equations

Lecture Note #6 (Chap.10)

Eigenvalues and Eigenvectors

Analysis of Discrete-Time Systems

State Feedback and State Estimators Linear System Theory and Design, Chapter 8.

Lecture 4. Chapter 4: Lyapunov Stability. Eugenio Schuster. Mechanical Engineering and Mechanics Lehigh University.

Solution of Linear State-space Systems

Time-Invariant Linear Quadratic Regulators Robert Stengel Optimal Control and Estimation MAE 546 Princeton University, 2015

Review of Controllability Results of Dynamical System

ECEEN 5448 Fall 2011 Homework #4 Solutions

Topic # /31 Feedback Control Systems. Analysis of Nonlinear Systems Lyapunov Stability Analysis

Full State Feedback for State Space Approach

Control Systems Design

Example: Filter output power. maximization. Definition. Eigenvalues, eigenvectors and similarity. Example: Stability of linear systems.

Topics in control Tracking and regulation A. Astolfi

Digital Control & Digital Filters. Lectures 13 & 14

Transcription:

4F3 Predictive Control - Discrete-time systems p. 1/30 4F3 - Predictive Control Discrete-time State Space Control Theory For reference only Jan Maciejowski jmm@eng.cam.ac.uk

4F3 Predictive Control - Discrete-time systems p. 2/30 Course Outline Introduction to predictive control Discrete-time state space control theory handout only Predictive control without constraints Predictive control with constraints Stability and feasibility in predictive control Setpoint tracking and offset-free control Industrial case study Dr Paul Austin Fri. 5 March Examples Class 2 Examples Papers Tue. 9 March

4F3 Predictive Control - Discrete-time systems p. 3/30 Outline of Lecture 2 Review of linear algebra Discrete time models and sampled data systems Stability of discrete time systems Reachability and Observability State feedback control design Observer design Output feedback and the separation principle

4F3 Predictive Control - Discrete-time systems p. 4/30 References Linear Algebra G. Strang. Introduction to Linear Algebra, Wellesley-Cambridge Press. 3 rd ed., 2003. D. C. Lay. Linear Algebra and Its Applications, Adison Wesley. 3 rd ed., 2003. Discrete Time Control G. F. Franklin et. al. Digital Control of Dynamic Systems, Adison Wesley. 3 rd ed., 2003. K. J. Åstrom and B. Wittenmark. Computer Controlled Systems, Prentice Hall. 3 rd ed., 2003.

4F3 Predictive Control - Discrete-time systems p. 5/30 Linear Independence and Rank Definition (Linear Independence) The vectors {v 1,...,v n } are linearly independent if and only if c 1 v 1 + + c n v n = 0 only happens when c 1 = = c n v n = 0. The rank of a matrix A is defined as the number of linearly independent columns also known as the column rank. The column rank of A is the same as its row rank, i.e. ranka = ranka T

4F3 Predictive Control - Discrete-time systems p. 6/30 Solutions to Ax = b Given a set a linear inequalities Ax = b with A R r c Solution exists for a given b ranka = rank(a b) Solution exists for every b ranka = r. (Only possible when r c) If a solution exists, it is unique ranka = c (Only possible when r c) When A is square and invertible (i.e. full rank), the unique solution is x = A 1 b

4F3 Predictive Control - Discrete-time systems p. 7/30 Eigenvectors and Eigenvalues Suppose that A R n n and there exists x R n and λ R such that Ax = λx and x 0. Then: The vector x is an eigenvector of A. The scalar λ is an eigenvalue of A. The spectral radius of A is defined as: Some useful facts: ρ(a) := max { λ 1 (A),..., λ n (A) } Eigenvalues of A are the roots of its characteristic polynomial. Ax = λx det(λi A) = 0 Every eigenvalue has a non-zero eigenvector.

4F3 Predictive Control - Discrete-time systems p. 8/30 Digital (Sampled-Data) Control r(t) + r(kt) Digital Controller u(kt) DAC/ ZOH u(t) Plant y(t) Clock y(kt) ADC y(t) Sample period is T. Sample number is k. Time is t. s(t) continuous time signal. s(kt) discrete time signal. Will generally shorten s(kt) to s(k).

4F3 Predictive Control - Discrete-time systems p. 9/30 Linear Systems (Continuous Time) A linear continuous time (CT) state-space system: ẋ = Fx + Gu y = Cx + Du z = Hx x R n State vector. u R m Input vector {a.k.a. Manipulated Variables (MV)}. y R p Output vector { Measured Variables }. z R q Controlled variables (CV). In many cases, H = C, so that y = z.

4F3 Predictive Control - Discrete-time systems p. 10/30 Solution of Linear CT Systems Given: The CT linear system ẋ = Fx + Gu An initial state x(t 0 ) at time t 0 An input trajectory u( ) over the interval [t 0,t] the solution of the CT system at time t is given by: x(t) = e F(t t 0) x(t 0 ) + t t 0 e F(t τ) Gu(τ)dτ We can use this to get a DT model for our CT system.

4F3 Predictive Control - Discrete-time systems p. 11/30 DT models for Sampled-Data Systems With a ZOH at the the output of our digital controller: u(t) = u(kt) for the interval kt t k(t + 1) The DT state-space model x(kt + T) = Ax(kT) + Bu(kT) y(kt) = Cx(kT) + Du(kT) z(kt) = Hx(kT) is an exact representation of the sampled CT system if ( T ) A = e FT, B = e Fτ dτ G 0

4F3 Predictive Control - Discrete-time systems p. 12/30 DT models for Sampled-Data Systems With a ZOH at the the output of our digital controller, we can get an exact DT representation of our CT system if: the CT system is linear, or the CT system is linear with input saturation It is generally not possible to get an exact DT representation for a nonlinear CT system: ẋ = f(x,u) y = h(x,u) For a nonlinear model, we can use a DT approximation or use numerical integration to find x(kt).

4F3 Predictive Control - Discrete-time systems p. 13/30 Solution of Linear DT Systems Given: The DT linear system x(k + 1) = Ax(k) + Bu(k) An initial state x(k) at discrete time k An input sequence {u(k),...,u(k+n 1)} the solution of the DT system at time k + N is given by: x(k + N) = A N x(k) + N 1 i=0 A i Bu(k+N 1 i) Try to prove this to yourself we ll return to it in lecture 3.

4F3 Predictive Control - Discrete-time systems p. 14/30 Stability of Nonlinear DT Systems Consider a general nonlinear DT system with f : R n R n x(k + 1) = f(x(k)) Let x(k) denote the state of this system at time discrete time step k if the state at k = 0 is x(0). x(k) = f(f(...f(f(x(0)))...)) }{{} k times = f k (x(0)) Definition (DT Equilibrium Point) A state x is an equilibrium point of the DT system if x = f(x). Important: This is a different definition than in the CT case.

4F3 Predictive Control - Discrete-time systems p. 15/30 Stability of Nonlinear DT Systems Definition (Stability) An equilibrium point x is stable if for all ǫ > 0, there exists δ > 0 such that x(0) x δ x(k) x ǫ for all k 0 Definition (Asymptotic Stability) An equilibrium point x is locally asymptotically stable if it is stable and there exists an M > 0 such that x(0) x < M lim k x(k) = x The equilibrium point x is globally asymptotically stable if the above holds for all M > 0.

4F3 Predictive Control - Discrete-time systems p. 16/30 Stability of Linear DT Systems Consider a linear DT systems without an input: x(k + 1) = Ax(k) A state x is an equilibrium point if x = Ax: Any eigenvector with eigenvalue λ = 1 is an equilibrium point. The origin x = 0 is an equilibrium point. Some useful facts: The origin is globally asymptotically stable if and only if all of the eigenvalues of A are inside the unit disk (i.e. ρ(a) < 1). The matrix A is called stable if and only if ρ(a) < 1. For sampled data systems with ZOH, λ i (A) = e λ i(f)t CT system stable DT system stable.

4F3 Predictive Control - Discrete-time systems p. 17/30 Reachability Given the system x(k + 1) = Ax(k) + Bu(k) Definition (Reachability) The matrix pair (A, B) is reachable if it is possible to drive the above system to any state (from any other state) in finite time. Analogous to controllability of the CT system (F, G) Controllability/Reachability is not always preserved when the system is discretized, i.e. (F,G) controllable (A,B) reachable

4F3 Predictive Control - Discrete-time systems p. 18/30 Tests for Reachability Definition (Reachability Matrix) The reachability matrix of the pair (A,B) is defined as: ( ) C(A,B) := B AB... A n 1 B Proposition (Reachability Tests) The following are equivalent: a) The pair (A,B) is reachable. b) Rank of C(A,B) = n. c) The eigenvalues of (A + BK) can be freely assigned by suitable choice of K (requires complex eigenvalues to appear in conjugate pairs).

4F3 Predictive Control - Discrete-time systems p. 19/30 Observability Given the system x(k + 1) = Ax(k) + Bu(k) y(k) = Cx(k) + Du(k) Definition (Observability) The matrix pair (C, A) is observable if it is possible to determine the initial system state from a finite sequence of measurements. Analogous to observability of the CT system (C,F) Observability is not always preserved when the system is discretized, i.e. (C,F) observable (C,A) observable

4F3 Predictive Control - Discrete-time systems p. 20/30 Tests for Observability Definition (Observability Matrix) The observability matrix of the pair (C,A) is defined as: C CA O(C,A) :=. CA n 1 Proposition (Observability Tests) The following are equivalent: a) The pair (C,A) is observable. b) Rank of O(C,A) = n. c) The eigenvalues of (A + LC) can be freely assigned by suitable of choice of L (requires complex eigenvalues to appear in conjugate pairs). d) (A T,C T ) is reachable.

4F3 Predictive Control - Discrete-time systems p. 21/30 Stabilizability and Detectability Reachability and observability can be relaxed to deal with just the unstable part of the system: Definition (Stabilizability) The matrix pair (A, B) is stabilizable if there exists a matrix K such that (A + BK) is stable. Definition (Detectability) The matrix pair (C, A) is detectable if there exists a matrix L such that (A + LC) is stable. These are weaker definitions than those for reachability and observability. These definitions do not guarantee that the eigenvalues of (A + BK) or (A + LC) can be arbitrarily assigned.

4F3 Predictive Control - Discrete-time systems p. 22/30 Tests for Stabilizability and Detectability Let Λ be the set of eigenvalues on or outside the unit circle: Λ := {λ i (A) : λ i (A) 1} Proposition (Stabilizability) The pair (A, B) is stabilizable if and only if ( (A λi) B ) is full row rank for all λ Λ. Proposition (Detectability) The pair (C, A) is detectable if and only if ( ) A λi C is full column rank for all λ Λ.

4F3 Predictive Control - Discrete-time systems p. 23/30 State Feedback Control Design K u(k) DT System x(k) Given the DT system x(k + 1) = Ax(k) + Bu(k) want to design a state feedback control law u(k) = Kx(k) so that the origin of the closed loop system x(k + 1) = (A + BK)x(k) is globally asymptotically stable requires (A+BK) to be stable.

4F3 Predictive Control - Discrete-time systems p. 24/30 State Feedback and Pole Placement State feedback design procedure when (A, B) is reachable: 1) Specify desired eigenvalues {p 1,...,p n }, with each p i < 1 and complex values in conjugate pairs. 2) Compute coefficients of the polynomial p(λ) = (λ p 1 )(...)(λ p n ) 3) Compute characteristic polynomial det (λi (A + BK)) 4) Equate coefficients of the polynomials in (2) and (3). 5) Solve for the elements of the matrix K. Note that if (A,B) is only stabilizable, then the values {p 1,...,p N } can t be chosen arbitrarily.

4F3 Predictive Control - Discrete-time systems p. 25/30 Observer Design When all the states can not be measured (C I), then states can be estimated with an observer (or estimator). The DT system equations are: x(k + 1) = Ax(k) + Bu(k), y(k) = C(k)u(k) The equations for the observer are: ˆx(k k) = ˆx(k k 1) + L[ŷ(k k 1) y(k)] ˆx(k + 1 k) = Aˆx(k k) + Bu(k) ŷ(k k 1) = Cˆx(k k 1) Notation: ˆx(i j) denotes an estimate of x( ) at time i using all the measurements available through time j

4F3 Predictive Control - Discrete-time systems p. 26/30 Observer Design Define the state estimation error to be e(k) := x(k) ˆx(k k) Can eliminate variables in observer equations to get ˆx(k+1 k+1) = (A+ALC)ˆx(k k) + (B +LCB)u(k) Ly(k + 1) e(k + 1) = (A + LCA)e(k) When the matrix (A + LCA) is stable, then the observer is stable. the estimation error converges to zero.

4F3 Predictive Control - Discrete-time systems p. 27/30 Observer Design ˆx(k k) = ˆx(k k 1) + L[ŷ(k k 1) y(k)] ˆx(k + 1 k) = Aˆx(k k) + Bu(k) ŷ(k k 1) = Cˆx(k k 1)

4F3 Predictive Control - Discrete-time systems p. 28/30 Observer Design and Pole Placement We can place eigenvalues of (A + LCA) arbitrarily if (CA, A) is observable. If (C,A) is observable and λ i (A) 0 then (CA, A) observable. Observer design procedure when (CA, A) is observable: 1) Specify desired eigenvalues {p 1,...,p n }, with each p i < 1 and complex values in conjugate pairs. 2) Equate coefficients of polynomial p(λ) with those of det (λi (A + LCA)) 3) Solve for the elements of the matrix L. Note that if (CA,A) is only detectable, then the values {p 1,...,p N } can t be chosen arbitrarily.

4F3 Predictive Control - Discrete-time systems p. 29/30 Output Feedback Control K u(k) DT System y(k) ˆx(k k) Observer Controller The state feedback matrix K and observer L can be designed separately to form an output feedback control law.

4F3 Predictive Control - Discrete-time systems p. 30/30 The Separation Principle Define the state estimation error as before: e(k) := k(x) ˆx(k k) The closed loop system becomes: x(k + 1) = (A + BK)x(k) BKe(k) e(k + 1) = (A + LCA)e(k) The eigenvalues of the closed loop system are The eigenvalues of (A + BK) (from control design) The eigenvalues of (A + LCA) (from observer design) This is a special case of the separation principle.