Lecture 9 Nonlinear Control Design

Similar documents
Lecture 9 Nonlinear Control Design. Course Outline. Exact linearization: example [one-link robot] Exact Feedback Linearization

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

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

CDS 101/110a: Lecture 2.1 Dynamic Behavior

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

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

TTK4150 Nonlinear Control Systems Solution 6 Part 2

CDS 101/110a: Lecture 2.1 Dynamic Behavior

Stabilization and Passivity-Based Control

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

Introduction to Nonlinear Control Lecture # 4 Passivity

A Light Weight Rotary Double Pendulum: Maximizing the Domain of Attraction

Review: control, feedback, etc. Today s topic: state-space models of systems; linearization

Control of Robotic Manipulators

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

System Control Engineering

Linearization problem. The simplest example

Lecture 5 Input output stability

Nonlinear Control Lecture 4: Stability Analysis I

MCE693/793: Analysis and Control of Nonlinear Systems

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

Solution of Additional Exercises for Chapter 4

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

Lyapunov Stability Theory

Nonlinear System Analysis

Dynamical Systems & Lyapunov Stability

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

MEM04: Rotary Inverted Pendulum

Feedback Linearization

EML5311 Lyapunov Stability & Robust Control Design

Overview Lecture 1. Nonlinear Control and Servo systems Lecture 1. Course Material. Course Goal. Course Material, cont. Lectures and labs.

ECEN 420 LINEAR CONTROL SYSTEMS. Lecture 6 Mathematical Representation of Physical Systems II 1/67

Lecture 8. Chapter 5: Input-Output Stability Chapter 6: Passivity Chapter 14: Passivity-Based Control. Eugenio Schuster.

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

Control of industrial robots. Centralized control

A conjecture on sustained oscillations for a closed-loop heat equation

1 Lyapunov theory of stability

Nonlinear Control Systems

Stability in the sense of Lyapunov

Nonlinear Control Systems

Converse Lyapunov theorem and Input-to-State Stability

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

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

The Inverted Pendulum

Solution of Linear State-space Systems

Handout 2: Invariant Sets and Stability

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

In this section of notes, we look at the calculation of forces and torques for a manipulator in two settings:

Using Lyapunov Theory I

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

ROTATIONAL DOUBLE INVERTED PENDULUM

Automatic Control II Computer exercise 3. LQG Design

Robotics. Control Theory. Marc Toussaint U Stuttgart

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

Stability lectures. Stability of Linear Systems. Stability of Linear Systems. Stability of Continuous Systems. EECE 571M/491M, Spring 2008 Lecture 5

CONTROL OF THE NONHOLONOMIC INTEGRATOR

Exercises Automatic Control III 2015

Nonlinear Control. Nonlinear Control Lecture # 6 Passivity and Input-Output Stability

LMI Methods in Optimal and Robust Control

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

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)

High-Gain Observers in Nonlinear Feedback Control

Intro. Computer Control Systems: F8

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

Equilibrium points: continuous-time systems

Introduction to centralized control

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

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

THE REACTION WHEEL PENDULUM

High-Gain Observers in Nonlinear Feedback Control. Lecture # 2 Separation Principle

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

Lyapunov stability ORDINARY DIFFERENTIAL EQUATIONS

Georgia Institute of Technology Nonlinear Controls Theory Primer ME 6402

EE 16B Midterm 2, March 21, Name: SID #: Discussion Section and TA: Lab Section and TA: Name of left neighbor: Name of right neighbor:

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

2006 Fall. G(s) y = Cx + Du

Optimal Control. Lecture 20. Control Lyapunov Function, Optimal Estimation. John T. Wen. April 5. Ref: Papers by R. Freeman (on-line), B&H Ch.

Swinging-Up and Stabilization Control Based on Natural Frequency for Pendulum Systems

Introduction to centralized control

Modeling and Analysis of Dynamic Systems

LMI Methods in Optimal and Robust Control

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

El péndulo invertido: un banco de pruebas para el control no lineal. XXV Jornadas de Automática

Robust Control of Robot Manipulator by Model Based Disturbance Attenuation

Robot Manipulator Control. Hesheng Wang Dept. of Automation

Lecture 7: Anti-windup and friction compensation

Hybrid Control and Switched Systems. Lecture #7 Stability and convergence of ODEs

KINETIC ENERGY SHAPING IN THE INVERTED PENDULUM

Control of Electromechanical Systems

Stable Limit Cycle Generation for Underactuated Mechanical Systems, Application: Inertia Wheel Inverted Pendulum

LQ Control of a Two Wheeled Inverted Pendulum Process

ASTATISM IN NONLINEAR CONTROL SYSTEMS WITH APPLICATION TO ROBOTICS

Chapter 15 Periodic Motion

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

Adaptive Robust Tracking Control of Robot Manipulators in the Task-space under Uncertainties

Intro. Computer Control Systems: F9

A Normal Form for Energy Shaping: Application to the Furuta Pendulum

Chapter #4 EEE8086-EEE8115. Robust and Adaptive Control Systems

Adaptive fuzzy observer and robust controller for a 2-DOF robot arm Sangeetha Bindiganavile Nagesh

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

Transcription:

Lecture 9 Nonlinear Control Design Exact-linearization Lyapunov-based design Lab 2 Adaptive control Sliding modes control Literature: [Khalil, ch.s 13, 14.1,14.2] and [Glad-Ljung,ch.17]

Course Outline Lecture 1-3 Lecture 4-6 Lecture 7-8 Lecture 9-13 Lecture 14 Modelling and basic phenomena (linearization, phase plane, limit cycles) Analysis methods (Lyapunov, circle criterion, describing functions) Common nonlinearities (Saturation, friction, backlash, quantization) Design methods (Lyapunov methods, optimal control) Summary

Exact Feedback Linearization Idea: Find state feedback u = u(x, v) so that the nonlinear system turns into the linear system ẋ = f(x) + g(x)u ẋ = Ax + Bv and then apply linear control design method.

Exact linearization: example [one-link robot] m l t th ml 2 θ + d θ + mlg cos θ = u where d is the viscous damping. The control u = τ is the applied torque Design state feedback controller u = u(x) with x = (θ, θ) T

Introduce new control variable v and let u = ml 2 v + d θ + mlg cos θ Then θ = v Choose e.g. a PD-controller v = v(θ, θ) = k p (θ ref θ) k d θ This gives the closed-loop system: θ + k d θ + kp θ = k p θ ref Hence, u = ml 2 [k p (θ θ ref ) k d θ] + d θ + mlg cos θ

Multi-link robot (n-joints) z theta phi y x u General form M(θ) θ + C(θ, θ) θ + G(θ) = u, θ R n Called fully actuated if n indep. actuators, M n n inertia matrix, M = M T > 0 C θ n 1 vector of centrifugal and Coriolis forces G n 1 vector of gravitation terms

Computed torque The computed torque (also known as Exact linearization, dynamic inversion, etc. ) gives closed-loop system u = M(θ)v + C(θ, θ) θ + G(θ) v = K p (θ ref θ) K d θ, (1) θ + K d θ + Kp θ = K p θ Ref The matrices K d and K p can be chosen diagonal (no cross-terms) and then this decouples into n independent second-order equations.

Lyapunov-Based Control Design Methods ẋ = f(x, u) Select Lyapunov function V (x) for stability verification Find state feedback u = u(x) that makes V decreasing Method depends on structure of f Examples are energy shaping as in Lab 2 and, e.g., Back-stepping control design, which require certain f discussed later.

Lab 2 : Energy shaping for swing-up control [movie] Use Lyapunov-based design for swing-up control.

Lab 2 : Energy shaping for swing-up control Rough outline of method to get the pendulum to the upright position Find expression for total energy E of the pendulum (potential energy + kinetic energy) Let E n be energy in upright position. Look at deviation V = 1 2 (E E n) 2 0 Find swing strategy of control torque u such that V 0

Example of Lyapunov-based design Consider the nonlinear system ẋ 1 = 3x 1 + 2x 1 x 2 2 + u (2) ẋ 2 = x 3 2 x 2, Find a nonlinear feedback control law which makes the origin globally asymptotically stable. We try the standard Lyapunov function candidate V (x 1, x 2 ) = 1 2 ( x 2 1 + x 2 ) 2, which is radially unbounded, V (0, 0) = 0, and V (x 1, x 2 ) > 0 (x 1, x 2 ) (0, 0).

Example - cont d V = x 1 x 1 + x 2 x 2 = ( 3x 1 + 2x 1 x 2 2 + u)x 1 + ( x 3 2 x 2 )x 2 = 3x 2 1 x 2 2+ux 1 +2x 2 1x 2 2 x 4 2 We would like to have V < 0 (x 1, x 2 ) (0, 0) Inserting the control law, u = 2x 1 x 2 2, we get V = 3x 2 1 x 2 2 2x 2 1x 2 2 + 2x 2 1x 2 2 x 4 2 = 3x 2 }{{} 1 x 2 2 x 4 2 < 0, x 0 =0

Consider the system ẋ 1 = x 3 2 ẋ 2 = u (3) Find a globally asymptotically stabilizing control law u = u(x). Attempt 1: Try the standard Lyapunov function candidate V (x 1, x 2 ) = 1 2 ( x 2 1 + x 2 ) 2, which is radially unbounded, V (0, 0) = 0, and V (x 1, x 2 ) > 0 (x 1, x 2 ) (0, 0). V = x 1 x 1 + x 2 x 2 = x 3 2 x 1 + u x 2 = x 2 (x 2 2x 1 + u) = x 2 2 0 }{{} x 2 where we chose u = x 2 x 2 2x 1

However V = 0 as soon as x 2 = 0 (Note: x 1 could be anything). According to LaSalle s theorem the set E = {x V = 0} = {(x 1, 0)} x 1 What is the largest invariant subset M E? Plugging in the control law u = x 2 x 2 2 x 1, we get ẋ 1 = x 3 2 ẋ 2 = x 2 x 2 2x 1 (4) Observe that if we start anywhere on the line {(x 1, 0)} we will stay in the same point as both ẋ 1 = 0 and ẋ 2 = 0, thus M=E and we will not converge to the origin, but get stuck on the line x 2 = 0. Draw phase-plot with e.g., pplane and study the behaviour.

Attempt 2: ẋ 1 = x 3 2 ẋ 2 = u (5) Try the Lyapunov function candidate which satisfies V (0, 0) = 0 V (x 1, x 2 ) = 1 2 x2 1 + 1 4 x4 2, V (x 1, x 2 ) > 0, (x 1, x 2 ) (0, 0). radially unbounded, compute V = ẋ 1 x 1 + ẋ 2 x 3 2 = x 3 2(x 1 + u) = x 4 2 0 if we use u = x 1 x 2

With u = x 1 x 2 we get the dynamics ẋ 1 = x 3 2 ẋ 2 = x 1 x 2 (6) V = 0 if x 2 = 0, thus E = {x V = 0} = {(x 1, 0) x 1 } However, now the only possibility to stay on x 2 = 0 is if x 1 = 0, ( else ẋ 2 0 and we will leave the line x 2 = 0). Thus, the largest invariant set M = (0, 0) According to the Invariant Set Theorem (LaSalle) all solutions will end up in M and so the origin is GAS. Draw phase-plot with e.g., pplane and study the behaviour.

Adaptive Noise Cancellation Revisited u g1 x + xt - xh g2 ẋ + ax = bu x + â x = bu Introduce x = x x, ã = a â, b = b b. Want to design adaptation law so that x 0

Let us try the Lyapunov function V = 1 2 ( x2 + γ a ã 2 + γ b b2 ) V = x x + γ a ã ã + γ b b b = = x( a x ã x + bu) + γ a ã ã + γ b b b = a x 2 where the last equality follows if we choose ã = â = 1 γ a x x b = b = 1 γ b xu Invariant set: x = 0. This proves that x 0. (The parameters ã and b do not necessarily converge: u 0.)

A Control Design Idea, and a Problem Assume V (x) = x T P x, P > 0, represents the energy of ẋ = Ax + Bu, u [ 1, 1] Idea: Choose u such that V decays as fast as possible V = x T (A T P + AP )x + 2B T P x u u = sgn(b T P x) The following situation might then occur ( system is not Lipschitz ) f+ s f-

Sliding Modes ẋ = { f + (x), σ(x) > 0 f (x), σ(x) < 0 f+ f- s+ s- The switching set/ sliding set is where σ(x) = 0 and f + and f point towards σ(x) = 0. The switching set/ sliding set is given by x such that σ(x) = 0 σ x f + = ( σ)f + < 0 σ x f = ( σ)f > 0 Note: If f + and f point in the same direction on both sides of the set σ(x) = 0 then the solution curves will just pass through and this region will not belong to the sliding set.

Sliding Mode If f + and f both points towards σ(x) = 0, what will happen then? The sliding dynamics are ẋ = αf + + (1 α)f, where α is obtained from dσ dt = σ ẋ = 0 on {σ(x) = 0}. x f+ s+ s- f- More precisely, find α such that the components of f + and f perpendicular to the switching surface cancel: αf + + (1 α)f = 0 The resulting dynamics is then the sum of the corresponding components along the surface.

4 minute exercise ẋ = [ ] 0 1 x + 1 1 [ ] 1 u = Ax + Bu 1 u = sgnσ(x) = sgnx 2 = sgn(cx) which means that ẋ = { Ax B, x 2 > 0 Ax + B, x 2 < 0 Determine the switching set and the sliding dynamics.

4 minute exercise Solution ẋ 1 = x 2 + u = x 2 sgn(x 2 ) ẋ 2 = x 1 x 2 + u = x 1 x 2 sgn(x 2 ) f + = [ ] x2 1 x 1 x 2 1 f = [ ] x2 + 1 x 1 x 2 + 1 σ(x) = x 2 = 0 x 2 = 0 σ x f + = [ 0 1 ] f + = x 1 x 2 1 < 0 x 1 < 1 σ x f = [ 0 1 ] f = x 1 x 2 + 1 > 0 x 1 > 1 We will thus have a sliding set for { 1 < x 1 < 1, x 2 = 0}

The normal projections of (f +, f ) to σ(x) = x 2 = 0 are [ ] f + = 0 x 1 x 2 1 [ ] f = 0 x 1 x 2 + 1 Find α [0, 1] such that αf + + (1 α)f = 0 on {x 2 = 0} α(x 1 x 2 1) + (1 α)(x 1 x 2 + 1) = 0 α = x 1 + 1 2 Note: α [0, 1] x 1 [ 1, 1] as x 2 = 0

The sliding dynamics are the given by ẋ = αf + + (1 α)f ] [ ] [ ] [ẋ1 x2 1 x2 + 1 = α + (1 α) ẋ 2 x 1 x 2 1 x 1 x 2 + 1 [ ] 2α x2 1 = 0 [ ] x1 = 0 where we inserted x 2 = 0 and α = x 1+1 2 We see that on the sliding set { 1 < x < 1, x 2 = 0} we have ẋ 1 = x 1 ẋ 2 = 0 For any initial condition starting on the sliding set, there will be exponential convergence to x 1 = x 2 = 0.

For small x 2 we have ẋ 2 (t) x 1 1, ẋ 2 (t) x 1 + 1, dx 2 dx 1 = dx 2/dt dx 1 /dt 1 x 1 x 2 > 0 dx 2 = dx 2/dt dx 1 dx 1 /dt 1 + x 1 x 2 < 0 This implies the following behavior > 1 +1 = <

Sliding Mode Dynamics The dynamics along the sliding set in σ(x) = 0 can also be obtained by finding u = u eq [ 1, 1] such that σ(x) = 0. u eq is called the equivalent control.

Example (cont d) Finding u = u eq such that σ(x) = ẋ 2 = 0 gives 0 = ẋ 2 = x 1 x }{{} 2 +u eq = x 1 + u eq =0 Insert u eq = x 1 in the equation for ẋ 1 : ẋ 1 = x }{{} 2 +u eq = x 1 =0 gives the dynamics on the sliding set (where x 2 = 0) Remember: u eq [ 1, 1] so can only satisfy u eq = x 1 on the interval x 1 [ 1, 1]!

Equivalent Control Assume ẋ = f(x) + g(x)u u = sgnσ(x) has a sliding set on σ(x) = 0. Then, for x(t) staying on the sliding set we should have 0 = σ(x) = σ x dx dt = σ ( ) f(x) + g(x)u x The equivalent control is thus given by solving ( ) σ 1 u eq = x g(x) σ x f(x) for all those x such that σ(x) = 0 and σ x g(x) 0.

Equivalent Control for Linear System ẋ = Ax + Bu u = sgnσ(x) = sgn(cx) Assume CB invertible. The sliding set lies in σ(x) = Cx = 0. 0 = σ(x) = dσ ( ) f(x) + g(x)u = C ( ) Ax + Bu eq dx gives CBu eq = CAx. Example (cont d) For the previous system u eq = (CB) 1 CAx = (x 1 x 2 )/1 = x 1, because σ(x) = x 2 = 0. Same result as above.

More on the Sliding Dynamics If CB > 0 then the dynamics along a sliding set in Cx = 0 is ( ) ẋ = Ax + Bu eq = I (CB) 1 BC Ax, One can show that the eigenvalues of (I (CB) 1 BC)A equals the zeros of G(s) = C(sI A) 1 B. (exercise for PhD students)

Design of Sliding Mode Controller Idea: Design a control law that forces the state to σ(x) = 0. Choose σ(x) such that the sliding mode tends to the origin. Assume system has form f 1 (x) + g 1 (x)u d dt x 1 x 2. x n Choose control law = x 1. x n 1 = f(x) + g(x)u u = pt f(x) p T g(x) µ p T g(x) sgnσ(x), where µ > 0 is a design parameter, σ(x) = p T x, and p T = [ p 1... p n ] represents a stable polynomial.

Sliding Mode Control gives Closed-Loop Stability Consider V(x) = σ 2 (x)/2 with σ(x) = p T x. Then, V = σ(x) σ(x) = x T p ( p T f(x) + p T g(x)u ) With the chosen control law, we get V = µσ(x)sgnσ(x) 0 so σ(x) 0 as t +. In fact, one can prove that this occurs in finite time. 0 = σ(x) = p 1 x 1 + + p n 1 x n 1 + p n x n = p 1 x (n 1) n + + p n 1 x (1) n + p n x (0) n where x (k) denote time derivative. P stable gives that x(t) 0. Note: V by itself does not guarantee stability. It only guarantees convergence to the line {σ(x) = 0} = {p T x = 0}.

Time to Switch Consider an initial point x such that σ 0 = σ(x) > 0. Then so σ(x) σ(x) = µσ(x)sgnσ(x) σ(x) = µ Hence, the time to the first switch is Note that t s 0 as µ. t s = σ 0 µ <

Example Sliding Mode Controller Design state-feedback controller for [ ] 1 0 ẋ = x + 1 0 y = [ 0 1 ] x [ ] 1 u 0 Choose p 1 s + p 2 = s + 1 so that σ(x) = x 1 + x 2. The controller is given by u = pt Ax p T B µ p T B sgnσ(x) = 2x 1 µsgn(x 1 + x 2 )

Phase Portrait Simulation with µ = 0.5. Note the sliding set is in σ(x) = x 1 + x 2. x2 s 1 0 1 2 1 0 1 2 x1

Time Plots Initial condition x(0) = [ 1.5 0 ] T. Simulation agrees well with time to switch t s = σ 0 µ = 3 and sliding dynamics ẏ = y x1 u x2

The Sliding Mode Controller is Robust Assume that only a model ẋ = f(x) + ĝ(x)u of the true system ẋ = f(x) + g(x)u is known. Still, however, [ p V T (fĝ T = σ(x) fg T ] )p p T µ pt g ĝ p T ĝ sgnσ(x) < 0 if sgn(p T g) = sgn(p T ĝ) and µ > 0 is sufficiently large. Closed-loop system is quite robust against model errors! (High gain control with stable open loop zeros)

Implementation A relay with hysteresis or a smooth (e.g. linear) region is often used in practice. Choice of hysteresis or smoothing parameter can be critical for performance More complicated structures with several relays possible. Harder to design and analyze.

Next Lectures L10 L12: Optimal control methods L13: Other synthesis methods L14: Course summary

Next Lecture Optimal control Read chapter 18 in [Glad & Ljung] for preparation.