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

Similar documents
Integral action in state feedback control

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

Discrete-time linear systems

EML5311 Lyapunov Stability & Robust Control Design

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

2 Lyapunov Stability. x(0) x 0 < δ x(t) x 0 < ɛ

Lyapunov Stability Theory

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

DO NOT DO HOMEWORK UNTIL IT IS ASSIGNED. THE ASSIGNMENTS MAY CHANGE UNTIL ANNOUNCED.

Nonlinear Control. Nonlinear Control Lecture # 3 Stability of Equilibrium Points

Video 8.1 Vijay Kumar. Property of University of Pennsylvania, Vijay Kumar

Optimal control and estimation

Lyapunov Stability Analysis: Open Loop

Problem 1 Cost of an Infinite Horizon LQR

Nonlinear Control Lecture 9: Feedback Linearization

EN Nonlinear Control and Planning in Robotics Lecture 3: Stability February 4, 2015

Nonlinear Systems and Control Lecture # 12 Converse Lyapunov Functions & Time Varying Systems. p. 1/1

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

Using Lyapunov Theory I

Chapter III. Stability of Linear Systems

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

Nonlinear Control. Nonlinear Control Lecture # 25 State Feedback Stabilization

Stability of Nonlinear Systems An Introduction

Georgia Institute of Technology Nonlinear Controls Theory Primer ME 6402

Introduction to Nonlinear Control Lecture # 3 Time-Varying and Perturbed Systems

EG4321/EG7040. Nonlinear Control. Dr. Matt Turner

ECE7850 Lecture 7. Discrete Time Optimal Control and Dynamic Programming

DO NOT DO HOMEWORK UNTIL IT IS ASSIGNED. THE ASSIGNMENTS MAY CHANGE UNTIL ANNOUNCED.

EE C128 / ME C134 Feedback Control Systems

Nonlinear System Analysis

Nonlinear Control. Nonlinear Control Lecture # 8 Time Varying and Perturbed Systems

EE363 homework 7 solutions

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

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

1 The Observability Canonical Form

Lecture 9 Nonlinear Control Design

Dynamical Systems & Lyapunov Stability

Module 07 Controllability and Controller Design of Dynamical LTI Systems

Modeling and Analysis of Dynamic Systems

EECS C128/ ME C134 Final Wed. Dec. 14, am. Closed book. One page, 2 sides of formula sheets. No calculators.

Nonlinear Control Lecture 4: Stability Analysis I

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

ASTATISM IN NONLINEAR CONTROL SYSTEMS WITH APPLICATION TO ROBOTICS

Robotics. Control Theory. Marc Toussaint U Stuttgart

Control of Mobile Robots

MCE693/793: Analysis and Control of Nonlinear Systems

The Acrobot and Cart-Pole

System Control Engineering

Hybrid Systems - Lecture n. 3 Lyapunov stability

Solution of Additional Exercises for Chapter 4

4F3 - Predictive Control

1. Consider the 1-DOF system described by the equation of motion, 4ẍ+20ẋ+25x = f.

There is a more global concept that is related to this circle of ideas that we discuss somewhat informally. Namely, a region R R n with a (smooth)

Chap. 3. Controlled Systems, Controllability

Trajectory-tracking control of a planar 3-RRR parallel manipulator

CDS Solutions to Final Exam

Nonlinear Control. Nonlinear Control Lecture # 8 Time Varying and Perturbed Systems

CDS 101/110a: Lecture 2.1 Dynamic Behavior

Robotics. Dynamics. Marc Toussaint U Stuttgart

Stability in the sense of Lyapunov

CDS Solutions to the Midterm Exam

Robotics, Geometry and Control - A Preview

CDS 101/110a: Lecture 2.1 Dynamic Behavior

Output Feedback and State Feedback. EL2620 Nonlinear Control. Nonlinear Observers. Nonlinear Controllers. ẋ = f(x,u), y = h(x)

Hybrid Systems Course Lyapunov stability

Homework Solution # 3

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

Multibody simulation

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

MEM04: Rotary Inverted Pendulum

Converse Lyapunov theorem and Input-to-State Stability

Input to state Stability

ESC794: Special Topics: Model Predictive Control

Exponential Controller for Robot Manipulators

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

EE C128 / ME C134 Final Exam Fall 2014

Lyapunov stability ORDINARY DIFFERENTIAL EQUATIONS

Nonlinear Control Lecture 5: Stability Analysis II

Lecture 4 Continuous time linear quadratic regulator

Stability of Parameter Adaptation Algorithms. Big picture

Dynamics. Basilio Bona. Semester 1, DAUIN Politecnico di Torino. B. Bona (DAUIN) Dynamics Semester 1, / 18

5. Observer-based Controller Design

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

MCE/EEC 647/747: Robot Dynamics and Control. Lecture 12: Multivariable Control of Robotic Manipulators Part II

Solution of Linear State-space Systems

Time-Invariant Linear Quadratic Regulators!

Realization theory for systems biology

STABILITY ANALYSIS OF DYNAMIC SYSTEMS

EN Nonlinear Control and Planning in Robotics Lecture 2: System Models January 28, 2015

3 rd Tutorial on EG4321/EG7040 Nonlinear Control

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

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

Input-to-state stability and interconnected Systems

Introduction to Nonlinear Control Lecture # 4 Passivity

Control of Robotic Manipulators with Input/Output Delays

( ) and then eliminate t to get y(x) or x(y). Not that the

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

Modeling & Control of Hybrid Systems Chapter 4 Stability

Problem Description The problem we consider is stabilization of a single-input multiple-state system with simultaneous magnitude and rate saturations,

Infinite-dimensional nonlinear predictive controller design for open-channel hydraulic systems

Transcription:

Automatic Control 2 Nonlinear systems Prof. Alberto Bemporad University of Trento Academic year 2010-2011 Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 1 / 18

Stability analysis Nonlinear dynamical systems u(t)!"!#$!%&'()*!&+$,&#(-'",%.. ẋ = f(x, u) x(t) controller Most existing processes in practical applications are described by nonlinear dynamics ẋ = f(x, u) Often the dynamics of the system can be linearized around an operating point and a linear controller designed for the linearized process Question #1: will the closed-loop system composed by the nonlinear process + linear controller be asymptotically stable? (nonlinear stability analysis) Question #2: can we design a stabilizing nonlinear controller based on the nonlinear open-loop process? (nonlinear control design) This lecture is based on the book Applied Nonlinear Control by J.J.E. Slotine and W. Li, 1991 Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 2 / 18

Stability analysis Positive definite functions Key idea: if the energy of a system dissipates over time, the system asymptotically reaches a minimum-energy configuration Assumptions: consider the autonomous nonlinear system ẋ = f(x), with f( ) differentiable, and let x = 0 be an equilibrium (f(0) = 0) Some definitions of positive definiteness of a function V : n V is called locally positive definite if V(0) = 0 and there exists a ball B ε = x : x 2 ε around the origin such that V(x) > 0 x B ε \ 0 V is called globally positive definite if B ε = n (i.e. ε ) V is called negative definite if V is positive definite V is called positive semi-definite if V(x) 0 x B ε, x 0 V is called positive semi-negative if V is positive semi-definite Example: let x = [x 1 x 2 ], V : 2 V(x) = x 2 + 1 x2 is globally positive definite 2 V(x) = x 2 + 1 x2 2 x3 is locally positive definite 1 V(x) = x 4 + 1 sin2 (x 2 ) is locally positive definite and globally positive semi-definite Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 3 / 18

Stability analysis Lyapunov s direct method Theorem Given the nonlinear system ẋ = f(x), f(0) = 0, let V : n be positive definite in a ball B ε around the origin, ε > 0, V C 1 (). If the function V(x) = V(x) ẋ = V(x) f(x) is negative definite on B ε, then the origin is an asymptotically stable equilibrium point with domain of attraction B ε (lim t + x(t) = 0 for all x(0) B ε ). If V(x) is only negative semi-definite on B ε, then the the origin is a stable equilibrium point. Such a function V : n is called a Lyapunov function for the system ẋ = f(x) Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 4 / 18

Stability analysis Example of Lyapunov s direct method Consider the following autonomous dynamical system ẋ 1 = x 1 (x 2 1 + x2 2 2) 4x 1x 2 2 ẋ 2 = 4x 2 1 x 2 + x 2 (x 2 1 + x2 2 2) as f 1 (0, 0) = f 2 (0, 0) = 0, x = 0 is an equilibrium consider then the candidate Lyapunov function V(x 1, x 2 ) = x 2 1 + x2 2 which is globally positive definite. Its time derivative V is V(x 1, x 2 ) = 2(x 2 1 + x2 2 )(x2 1 + x2 2 2) It is easy to check that V(x 1, x 2 ) is negative definite if x 2 2 = x2 1 + x2 2 < 2. Then for any B ε with 0 < ε < 2 the hypotheses of Lyapunov s theorem are satisfied, and we can conclude that x = 0 is an asymptotically stable equilibrium Any B ε with 0 < ε < 2 is a domain of attraction Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 5 / 18

Stability analysis Example of Lyapunov s direct method (cont d) Cf. Lyapunov s indirect method: the linearization around x = 0 is f(0, 0) = x 3x 2 1 3x2 2 2 6x 1x 2 10x 1 x 2 5x 2 1 + 3x2 2 2 which is an asymptotically stable matrix x=0 = 2 0 0 2 Lyapunov s indirect method tells us that the origin is locally asymptotically stable Lyapunov s direct method also tells us that B ε is a domain of attraction for all 0 < ε < 2 Consider this other example: ẋ = x 3. The origin as an equilibrium. But = 3 0 2 = 0, so Lyapunov indirect method is useless. f(0,0) x Lyapunov s direct method with V = x 2 provides V = 2x 4, and therefore we can conclude that x = 0 is (globally) asymptotically stable Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 6 / 18

Stability analysis Case of continuous-time linear systems Let s apply Lyapunov s direct method to linear autonomous systems ẋ = Ax Let V(x) = x Px, with P = P 0 (P=positive definite and symmetric matrix) The derivative V(x) = ẋ Px + x Pẋ = x (A P + PA)x V(x) is negative definite if and only if for some Q 0 (for example, Q = I) A P + PA = Q Given a matrix Q 0, the matrix equation A P + PA = Q is called Lyapunov equation Theorem: The autonomous linear system ẋ = Ax is asymptotically stable Q 0 the Lyapunov equation A P + PA = Q has one and only one solution P 0 MATLAB»P=lyap(A,Q) Note the transposition of matrix A! Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 7 / 18

Stability analysis Case of discrete-time linear systems Lyapunov s direct method also applies to discrete-time nonlinear systems 1 x(k + 1) = f(x(k)), considering positive definite functions V(x) and the differences along the system trajectories instead of the derivative V(x) V(x(k)) = V(x(k + 1)) V(x(k)) Set again V(x) = x Px, with P 0, and impose V is negative definite V(x) = (Ax) P(Ax) x Px = x (A PA P)x = x Qx V(x) is negative definite if and only if for some Q 0 A PA P = Q MATLAB»P=dlyap(A,Q) The matrix equation A PA P = Q is called discrete-time Lyapunov equation 1 J.P. LaSalle, Stability Theory for Difference Equations, in Studies in Ordinary Differential Equations, MAA studies in Mathematics, Jack Hale Ed., vol. 14, pp.1 31, 1997 Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 8 / 18

Nonlinear control design In nonlinear control design a (usually nonlinear) feedback control law is designed based on the nonlinear dynamics ẋ = f(x, u) Most nonlinear control design techniques are based on simultaneously constructing a feedback control law u(x) and a Lyapunov function V for ẋ = f(x, u(x)) A simple nonlinear technique is feedback linearization, that is to algebraically transform the dynamics of the nonlinear system into a linear one and then apply linear control techniques to stabilize the transformed system Example: ẋ 1 = a 11 x 1 + a 12 x 2 ẋ 1 = a 11 x 1 + a 12 x 2 ẋ 2 = f 2 (x 1, x 2 ) + g 2 (x 1, x 2 )u }{{} v ẋ 2 = v v = Kx (stabilizing gain) u = Kx f 2(x 1, x 2 ) g 2 (x 1, x 2 ) Very successful in several control applications (robotics, aeronautics,...) Note the difference between feedback linearization and conventional linearization ẋ = f (x x x 0) + f (u u u 0) we ve seen earlier! Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 9 / 18

Example of feedback linearization h(t) h a ij q a A i QQ(t) ij Consider the problem of regulating the fluid level h in a tank to a fixed set-point h d The process is described by the nonlinear dynamics Aḣ(t) = a 2gh(t) + u(t) We don t want to linearize around h = h d and use linear control techniques, that would only ensure local stability (cf. Lyapunov linearization method) Define instead Sunday, May 16, 2010 u(t) = a 2gh(t) + Av(t) where v(t) is a new equivalent input to be defined next by a control law Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 10 / 18

Example of feedback linearization (cont d) The resulting dynamics becomes ḣ(t) = v(t) Choose v(t) = αe(t), with α > 0 and e(t) = h(t) h d. The resulting closed-loop error dynamics becomes ė(t) = αe(t) which is asymptotically stable (h(t) tends asymptotically to h d ) The resulting nonlinear control law applied to the tank system is u(t) = Can we generalize this idea? a 2gh(t) }{{} nonlinearity cancellation Aα( h(t) h }{{} d ) linear error feedback Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 11 / 18

Consider for simplicity single-input nonlinear systems, u Let the dynamical system be in nonlinear canonical controllability form ẋ 1 (t) = x 2 (t) ẋ 2 (t) = x 3 (t). ẋ n (t) = f n (x(t)) + g n (x(t))u(t) and assume g n (x) 0, x n Define u(t) = 1 g n (x(t)) v(t) fn (x(t)) to get the equivalent linear system ẋ 1 (t) = x 2 (t) ẋ 2 (t) = x 3 (t). ẋ n (t) = v(t) Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 12 / 18

(cont d) The resulting equivalent linear system ẋ = Ax + Bv is the cascade of n integrators 0 1 0 0 0 0 1 0 0 0 A =... 0 0 0 0, B = 0 0 0 0 0 1 1 0 0 0 0 and is completely reachable To steer the state x asymptotically to the origin, we design a control law v = Kx (by pole-placement, LQR, etc.) v(t) u(t) x(t) u(x, v) ẋ = f(x, u) K pole-placement loop linearization loop Note that the nonlinear model must be rather accurate for feedback linearization to work Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 13 / 18

Example 6.2: of a two-link ro for robotic manipulation Figure 6.2 provides the physical model of a two-link ro for providing input torque, an encoder for measurin measuring joint velocity. The objective of the control d q2 follow desired position histories q^(t) and q^t), w system of the robot. Such tracking control problems ar along a specified path, e.g., to draw circles. Consider a two-link robot Each joint equipped with a motor providing input torque τ i, an encoder measuring the joint position q i, and a tachometer measuring the joint velocity q i, i = 1, 2 Objective of control design: make q 1 (t) and q 2 (t) follow desired position histories q d1 (t) and q d2 (t) q d1 (t) and q d2 (t) are specified by the motion planning system of the robot F Using the well-known Lagrangian equations in clas the dynamic equations of the robot is 1 _J_ ~hq2 -hq x-hq 2 "21 "22 52 hqx Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 14 / 18 L

for robotic manipulation Use Lagrangean equations to determine the dynamic equations of the robot H11 H 12 q1 h q2 h q + 1 h q 2 q1 + H 21 H 22 q 2 h q 1 0 q 2 g1 g 2 = τ1 τ 2 where H 11 = m 1 l 2 c 1 + I 1 + m 2 l 2 1 + l2 c 2 + 2l 1 l c2 cos q 2 + I 2 H 22 = m 2 l 2 c 2 + I 2 H 12 = H 21 = m 2 l 1 l c2 cos q 2 + m 2 l 2 c 2 + I 2 h = m 2 l 1 l c2 sin q 2 g 1 = m 1 l c1 g cos q 1 + m 2 g l c2 cos(q 1 + q 2 ) + l 1 cos q 1 g 2 = m 2 l c2 g cos(q 1 + q 2 ) Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 15 / 18

for robotic manipulation The system dynamics can be compactly written as H(q) q + C(q, q) q + g(q) = τ Multiply both sides by H 1 (q) and obtain the second-order differential equation q = H 1 (q)c(q, q) q H 1 (q)g(q) + τ Define the control input τ to feedback-linearize the robot dynamics τ1 τ 2 H11 H = 12 v1 h q2 h q + 1 h q 2 q1 + H 21 H 22 v 2 h q 1 0 q 2 g1 g 2 where v = q d 2λė λ 2 e, λ > 0 v = [v 1 v 2 ] is the equivalent input, and e = q q d being the tracking error on positions Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 16 / 18

for robotic manipulation The resulting error dynamics is ë + 2λė + λ 2 e = 0, λ > 0 leading to the asymptotic convergence of the tracking error e(t) = q(t) q d (t) and its derivative ė(t) = q(t) q(t) to zero MATLAB e(t) 1 + λt t e(0) = e λt» syms lam t ė(t) λ 2 t 1 λt ė(0)» A=[0 1;-lam^2-2*lam];» factor(expm(a*t)) In robotics, feedback linearization is also known as computed torque, and can be applied to robots with an arbitrary number of joints Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 17 / 18

English-Italian Vocabulary nonlinear system Lyapunov function feedback linearization sistema non lineare funzione di Lyapunov feedback linearization Translation is obvious otherwise. Prof. Alberto Bemporad (University of Trento) Automatic Control 2 Academic year 2010-2011 18 / 18