Linear Quadratic Regulator (LQR) Design I

Similar documents
Linear Quadratic Regulator (LQR) I

Linear Quadratic Regulator (LQR) II

Linear Quadratic Regulator (LQR) Design II

Using Lyapunov Theory I

Constrained Optimal Control I

Suppose that we have a specific single stage dynamic system governed by the following equation:

Course Outline. Higher Order Poles: Example. Higher Order Poles. Amme 3500 : System Dynamics & Control. State Space Design. 1 G(s) = s(s + 2)(s +10)

OPTIMAL CONTROL. Sadegh Bolouki. Lecture slides for ECE 515. University of Illinois, Urbana-Champaign. Fall S. Bolouki (UIUC) 1 / 28

Feedback Optimal Control for Inverted Pendulum Problem by Using the Generating Function Technique

Robust Control 5 Nominal Controller Design Continued

Homework Solution # 3

Constrained Optimal Control. Constrained Optimal Control II

Gain Scheduling and Dynamic Inversion

Lecture 4 Continuous time linear quadratic regulator

Quadratic Stability of Dynamical Systems. Raktim Bhattacharya Aerospace Engineering, Texas A&M University

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

6 OUTPUT FEEDBACK DESIGN

Control Systems. Design of State Feedback Control.

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

5. Observer-based Controller Design

Robotics. Control Theory. Marc Toussaint U Stuttgart

4F3 - Predictive Control

LQR, Kalman Filter, and LQG. Postgraduate Course, M.Sc. Electrical Engineering Department College of Engineering University of Salahaddin

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

EE363 homework 2 solutions

4F3 - Predictive Control

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

Linear State Feedback Controller Design

Feedback Linearization

ECE7850 Lecture 7. Discrete Time Optimal Control and Dynamic Programming

Extensions and applications of LQ

Topic # Feedback Control Systems

Linear-Quadratic Optimal Control: Full-State Feedback

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

Time-Invariant Linear Quadratic Regulators!

6. Linear Quadratic Regulator Control

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

1 Relative degree and local normal forms

Optimal Control. Quadratic Functions. Single variable quadratic function: Multi-variable quadratic function:

Optimal Control of Nonlinear Systems using RBF Neural Network and Adaptive Extended Kalman Filter

Lecture 9: Discrete-Time Linear Quadratic Regulator Finite-Horizon Case

Dynamic Inversion Design II

The Inverted Pendulum

Classical Numerical Methods to Solve Optimal Control Problems

Australian Journal of Basic and Applied Sciences, 3(4): , 2009 ISSN Modern Control Design of Power System

6.241 Dynamic Systems and Control

Lecture 10 Linear Quadratic Stochastic Control with Partial State Observation

Linearization problem. The simplest example

SWEEP METHOD IN ANALYSIS OPTIMAL CONTROL FOR RENDEZ-VOUS PROBLEMS

EE C128 / ME C134 Final Exam Fall 2014

Lyapunov Stability Analysis: Open Loop

Optimal control of nonlinear systems with input constraints using linear time varying approximations

Lecture 15 Review of Matrix Theory III. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

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

MODERN CONTROL DESIGN

MCE/EEC 647/747: Robot Dynamics and Control. Lecture 8: Basic Lyapunov Stability Theory

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

Lecture 2: Discrete-time Linear Quadratic Optimal Control

Linear control of inverted pendulum

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

Topic # Feedback Control

Lecture 6. Foundations of LMIs in System and Control Theory

ACM/CMS 107 Linear Analysis & Applications Fall 2016 Assignment 4: Linear ODEs and Control Theory Due: 5th December 2016

Exam. 135 minutes, 15 minutes reading time

Reverse Order Swing-up Control of Serial Double Inverted Pendulums

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

Numerics and Control of PDEs Lecture 1. IFCAM IISc Bangalore

Lecture 5 Linear Quadratic Stochastic Control

Optimization Tutorial 1. Basic Gradient Descent

Linear-Quadratic-Gaussian (LQG) Controllers and Kalman Filters

Lecture : Feedback Linearization

Chapter 8 Stabilization: State Feedback 8. Introduction: Stabilization One reason feedback control systems are designed is to stabilize systems that m

EE C128 / ME C134 Feedback Control Systems

Solutions for Homework #8. Landing gear

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

Semidefinite Programming Duality and Linear Time-invariant Systems

y,z the subscript y, z indicating that the variables y and z are kept constant. The second partial differential with respect to x is written x 2 y,z

Figure 3.1 Effect on frequency spectrum of increasing period T 0. Consider the amplitude spectrum of a periodic waveform as shown in Figure 3.2.

2 The Linear Quadratic Regulator (LQR)

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

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

Automatic Control II Computer exercise 3. LQG Design

Design and Comparison of Different Controllers to Stabilize a Rotary Inverted Pendulum

EECS C128/ ME C134 Final Wed. Dec. 15, am. Closed book. Two pages of formula sheets. No calculators.

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

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

Comparison of LQR and PD controller for stabilizing Double Inverted Pendulum System

Dissipativity. Outline. Motivation. Dissipative Systems. M. Sami Fadali EBME Dept., UNR

EL2520 Control Theory and Practice

Products and Convolutions of Gaussian Probability Density Functions

Denis ARZELIER arzelier

EE363 Review Session 1: LQR, Controllability and Observability

Stability of Parameter Adaptation Algorithms. Big picture

Robust feedback linearization

Semidefinite Programming Basics and Applications

Module 02 CPS Background: Linear Systems Preliminaries

9 Controller Discretization

18-660: Numerical Methods for Engineering Design and Optimization

Hamilton-Jacobi-Bellman Equation Feb 25, 2008

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

Transcription:

Lecture 7 Linear Quadratic Regulator LQR) Design I Dr. Radhakant Padhi Asst. Proessor Dept. o Aerospace Engineering Indian Institute o Science - Bangalore

LQR Design: Problem Objective o drive the state X o a linear rather linearized) system X = AX + BU to the origin by minimizing the ollowing quadratic perormance index cost unction) ) J = X ) S X + X QX + U RU dt where S, Q 0 psd), R> 0 pd) t t 0

LQR Design: Guideline or Selection o Weighting Matrices S 0 psd), Q 0 psd), R> 0 pd) hese are usually chosen as diagonal matrices, with s q i i = = maximum expected/acceptable value o / maximum expected/acceptable value o / x ) i x ) i r i = maximum expected/a cceptable value o / u ) i 3

LQR Design: Some Facts to Remember { } he pair A, B needs to be controllable and the pair A, Q needs to be detectable { } S 0 psd), Q 0 psd), R > 0 pd) these are usually chosen as diagonal matrices) By deault, it is assumed that t Constrained problems state and control inequality constraints) are not considered here. hose will be considered later. 4

LQR Design: Problem Statement Perormance Index to minimize): X ) Path Constraint: t ) J = X S X + ) X QX + U RU dt t 0 ϕ, ) L X U X = AX + BU Boundary Conditions: X t 0 = X :Speciied ) :Fixed, 0 X t ) :Free 5

LQR Design: Necessary Conditions o Optimality erminal penalty: Hamiltonian: State Equation: ) ϕ X ) = X S X H = X QX + U RU + AX + BU X = AX + BU ) λ ) Costate Equation: ) H / X QX A λ ) λ = = + Optimal Control Eq.: Boundary Condition: / ) = 0 = H U U R B λ ϕ/ X ) λ = = S X 6

LQR Design: Derivation o Riccati Equation Guess: Justiication: λ t = P t X t ) ) ) From unctional analysis theory o normed linear space, lies in the "dual space" o ) X t ) o all continuous linear unctionals o X t. λ t), which is the space consisting Reerence: Optimization by Vector Space Methods D. G. Luenberger, John Wiley & Sons, 969. 7

LQR Design: Derivation o Riccati Equation Guess λ t) = P t) X t) λ = PX + PX = PX + P AX + BU ) = PX + P AX BR B λ ) = PX + P AX BR B PX ) QX + A PX = P + PA PBR B P X ) ) P + PA+ A P PBR B P+ Q X = ) 0 8

LQR Design: Derivation o Riccati Equation Riccati equation P PA A P PBR B P Q + + + = 0 Boundary condition ) = is ree) P t X S X X P t ) = S 9

LQR Design: Solution Procedure Use the boundary condition P t ) = S and integrate the Riccati Equation backwards rom t to t 0 Store the solution history or the Riccati matrix Compute the optimal control online ) U = R B P X = K X 0

LQR Design: Ininite ime Regulator Problem heorem By Kalman) As t, or constant Q and R matrices, P 0 t Algebraic Riccati Equation ARE) Note: PA A P PBR B P Q + + = ARE is still a nonlinear equation or the Riccati matrix. It is not straightorward to solve. However, eicient numerical methods are now available. A positive deinite solution or the Riccati matrix is needed to obtain a stabilizing controller. 0

Example : Stabilization o Inverted Pendulum Dr. Radhakant Padhi Asst. Proessor Dept. o Aerospace Engineering Indian Institute o Science - Bangalore

A Motivating Example: Stabilization o Inverted Pendulum System dynamics: θ = ω θ u, ω = g/ L n n Linearized about vertical equilibrium point) u θ L mg System dynamics state space orm): Deine: x = θ, x = θ x 0 x 0 u x = ωn 0 + x X A X B Perormance Index to minimize): J = θ u dt + c 0 0 Q=, R= 0 0 c 3

A Motivating Example: Stabilization o Inverted Pendulum ARE: PA A P PBR B P Q + + = 0 p p P = p p 3 Let a symmetric matrix) pω 0 0 0 n p pωn p3ω n c p c pp 3 + + p 0 0 = 0 0 3ωn p p p c pp3 c p3 Equations: pωn c p + = 0 p = ω n ± ωn c p + pω c p p = 0 repeated) 3 n 3 p c p = 0 p =± p c 3 3 + c 4 u θ L mg 4

A Motivating Example: Stabilization o Inverted Pendulum However, p is a diagonal term, which needs to be real and positive. 3 Hence, p needs to be positive. hereore p = ω + ω + c, p = p c c Moreover, 4 n n 3 p + pω c p p = 0 3 n 3 p = c p p pω 3 3 n not needed in this problem) u θ L mg Gain Matrix: K = R B P= c p c p 3 Control: θ 3θ) u K X c p p = = + 5

A Motivating Example: Stabilization o Inverted Pendulum Analysis Open-Loop System: λ λi A = = λ ωn = 0 ω λ λ =± ω n n right hal pole: unstable system) u θ L mg Closed-Loop System: Deine: 0 ACL = A BK = ωn c p c p 3 Closed-Loop Poles: λi A = 0 CL ω = ω + c p p 4 n = + c ωn ω ) = p = + c c 3 ωn ω ) / 6

A Motivating Example: Stabilization o Inverted Pendulum Analysis Closed-Loop Poles: n ) / λ + ω + ω λ+ ω = 0 λ, = ω + ω ± ω ω ) 4 Note: ω = ωn + c > ωn n ) j n) / / u θ L mg Both o the closed-loop poles are strictly in the let-hal plane. Hence, the closed-loop is guaranteed to be asymptotically stable. 7

Example : Finite-time emperature Control Dr. Radhakant Padhi Asst. Proessor Dept. o Aerospace Engineering Indian Institute o Science - Bangalore

Example: Finite ime emperature Control Problem System dynamics : θ = a θ θ + bu ) where ab, : Constants θ : emperature θ u n n 0 : Ambient temperature Constant = 0 C) : Heat input 9

Problem ormulations Case : Case : Cost Function: J = t u dt 0 Cost Function: ) J = s θ 30 + u dt 0 s > 0 : Weightage t θ t ) = θ = 30 Hard constraint) 0 C t ) i.e. θ 30 Sot Constraint) 0 C 0

Solution: Solution: x θ θa), θ 0) = θa ) θ θ ) x = ax+ bu, x 0 = = 0 Η= + + Η λ = = aλ x Η = 0 u = λb u ) u λ ax bu a a Necessary conditions x = ax+ bu λ = aλ u = bλ

Solution: Case Hard constraint) u at t ) at t) = e = e λ λ λ = be at t) at x = ax b λ e λ t) aking laplace transorm: sx s) x 0) ) at ax s b λ e = s a 0

Solution: Case Hard constraint) ) at X s = b λ e a s a s+ a = a at = b λ e Hence ) at ) at at xt b λ e e e Unknown θ θ ) However, xt ) = = 0 s a a 0 C 3

Solution: Case Hard constraint) at e ) at e ) ) at at at xt ) = 0= bλ e e e b λ 0 = a 0a λ = b a xt ) = b at 0 a 0 e e at ) at at e e e = b e ) a e e at ) ) at at at 4

Solution: Case Hard constraint) Note : xt ) = 0 at at e e ) at at e e ) = 0 i.e. he boundary condition is "exactly met".) Controller : ut ) = be at at t) 0a 0ae = at at at ) ) b e b e e 5

Solution: Case Sot constraint) θ 0 0 30 C x 0 C. Hence the cost unction is t ) J = s x 0 + u dt 0 λ 0) λ = s x x = + 0 s However, we have b xt e e e a at ) ) at at λ = 6

Solution: Case Sot constraint) b ) at λ At, ) t = t x t = λ e = + 0 a s b at.. ) ie λ + e = 0 s a ie.. λ Hence 0sa = at ) a+ s b e ) ) λ = e λ = e 0sa at t at t at ) a+ s b e 7

Solution: Case Sot constraint) ut ) = bλ = be = be ) 0sa at t at ) a+ s b e 0sabe at at t) at sb at at ae + e e ) 8

Correlation between hard and sot constraint results As s, at 0abe = b ae + e e s at 0ae = = ut ) at at HC.. be lim u) t lim SC s s.. at at at e ) ) ie.. he "sot constraint" problem behaves like the "hard constraint" problem when s. 9

30