Lecture #3 What can go wrong? Trajectories of hybrid systems João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.

Slides:



Advertisements
Similar presentations
Bifurcations in piecewise-smooth systems Chris Budd.
Advertisements

1 Fault Diagnosis for Timed Automata Stavros Tripakis VERIMAG.
 (x) f(x,u) u x f(x,  (x) x. Example: Using feed-forward, what should be canceled?
CS 367: Model-Based Reasoning Lecture 2 (01/15/2002)
Lecture #4 Simulation of hybrid systems João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
INTRODUCTION to SWITCHED SYSTEMS ; STABILITY under ARBITRARY SWITCHING
Timed Automata.
Supervisory Control of Hybrid Systems Written by X. D. Koutsoukos et al. Presented by Wu, Jian 04/16/2002.
NONLINEAR OBSERVABILITY NOTIONS and STABILITY of SWITCHED SYSTEMS CDC ’02 João Hespanha Univ. of California at Santa Barbara Daniel Liberzon Univ. of Illinois.
1 Basic Differentiation Rules and Rates of Change Section 2.2.
CS433 Modeling and Simulation Lecture 06 – Part 03 Discrete Markov Chains Dr. Anis Koubâa 12 Apr 2009 Al-Imam Mohammad Ibn Saud University.
Properties of State Variables
Quantum One: Lecture 3. Implications of Schrödinger's Wave Mechanics for Conservative Systems.
5.3 Linear Independence.
Lecture 6 Hyperreal Numbers (Nonstandard Analysis)
EARS1160 – Numerical Methods notes by G. Houseman
1 Formal Models for Stability Analysis : Verifying Average Dwell Time * Sayan Mitra MIT,CSAIL Research Qualifying Exam 20 th December.
Lecture #13 Stability under slow switching & state-dependent switching João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched.
1 Stability of Hybrid Automata with Average Dwell Time: An Invariant Approach Daniel Liberzon Coordinated Science Laboratory University of Illinois at.
Lecture #1 Hybrid systems are everywhere: Examples João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Overview This project applies the tagged-signal model to explain the semantics of piecewise continuous signals. Then it illustrates an operational way.
EECE Hybrid and Embedded Systems: Computation T. John Koo, Ph.D. Institute for Software Integrated Systems Department of Electrical Engineering and.
Infinite Automata -automata is an automaton that accepts infinite strings A Buchi automaton is similar to a finite automaton: S is a finite set of states,
Spring semester 2006 ESE 601: Hybrid Systems Review material on continuous systems I.
6th Biennial Ptolemy Miniconference Berkeley, CA May 12, 2005 Operational Semantics of Hybrid Systems Haiyang Zheng and Edward A. Lee With contributions.
Chess Review May 11, 2005 Berkeley, CA Operational Semantics of Hybrid Systems Haiyang Zheng and Edward A. Lee With contributions from the Ptolemy group.
EECE Hybrid and Embedded Systems: Computation T. John Koo, Ph.D. Institute for Software Integrated Systems Department of Electrical Engineering and.
Motivations In a deterministic setting: Difficult to assess global properties (stability, reachability) Model glitches: Zenoness De-abstaction is the solution?
1 Collision Avoidance Systems: Computing Controllers which Prevent Collisions By Adam Cataldo Advisor: Edward Lee Committee: Shankar Sastry, Pravin Varaiya,
Optical Flow Estimation using Variational Techniques Darya Frolova.
1 Classification of Switching Signals 2 Operation on Switching Signals 3 Well-defined ness and Well-posed ness 4 Switching Sequences 5 Solution of.
Observability of Piecewise- Afiine Hybrid Systems Collins and Van Schuppen.
Leo Lam © Signals and Systems EE235. Leo Lam © Today’s menu Good weekend? System properties –Time Invariance –Linearity –Superposition!
3.4 Concavity and the Second Derivative Test. In the past, one of the important uses of derivatives was as an aid in curve sketching. We usually use a.
Autumn 2008 EEE8013 Revision lecture 1 Ordinary Differential Equations.
Nth-order Activity of Continuous Systems a,b,c Rodrigo Castro and c Ernesto Kofman a ETH Zürich, Switzerland b University of Buenos Aires & c CIFASIS-CONICET,
1  (x) f(x,u) u x f(x,  (x) x Example: Using feed-forward, what should be canceled?
Lecture #9 Analysis tools for hybrid systems: Impact maps João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Benjamin Gamble. What is Time?  Can mean many different things to a computer Dynamic Equation Variable System State 2.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
Today in Calculus Go over homework Derivatives by limit definition Power rule and constant rules for derivatives Homework.
Lecture #8 Stability and convergence of hybrid systems João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Lecture #5 Properties of hybrid systems João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Lecture #16 Nonlinear Supervisory Control João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Lecture #11 Stability of switched system: Arbitrary switching João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
Computer Animation Rick Parent Computer Animation Algorithms and Techniques Optimization & Constraints Add mention of global techiques Add mention of calculus.
Hybrid Modeling of TCP Congestion Control João P. Hespanha, Stephan Bohacek, Katia Obraczka, Junsoo Lee University of Southern California.
Lecture #14 Computational methods to construct multiple Lyapunov functions & Applications João P. Hespanha University of California at Santa Barbara Hybrid.
Lecture #2 How to describe a hybrid system? Formal models for hybrid system João P. Hespanha University of California at Santa Barbara Hybrid Control and.
Lecture #12 Controller realizations for stable switching João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems.
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Normal Equations The Orthogonality Principle Solution of the Normal Equations.
Lecture #7 Stability and convergence of ODEs João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems NO CLASSES.
Controller Synthesis For Timed Automata Authors : Eugene Asarin, Oded Maler, Amir Pnueli and Joseph Sifakis Yean-Ru Chen Embedded System Laboratory of.
ECE-7000: Nonlinear Dynamical Systems 3. Phase Space Methods 3.1 Determinism: Uniqueness in phase space We Assume that the system is linear stochastic.
CURVE SKETCHING The first application of derivatives we will study is using derivatives to determine the shape of the graph of a function. We will use.
Virtual Gravity Control for Swing-Up pendulum K.Furuta *, S.Suzuki ** and K.Azuma * * Department of Computers and Systems Engineering, TDU, Saitama Japan.
Math for CS Fourier Transforms
General Considerations
Time Stepping, Integration, and Events
3.3: Increasing/Decreasing Functions and the First Derivative Test
João P. Hespanha University of California at Santa Barbara
Autonomous Cyber-Physical Systems: Dynamical Systems
Modeling of Dc-dc Boost Converter in Discontinuous Conduction Mode
CSEP590 – Model Checking and Automated Verification
UNIT-I SIGNALS & SYSTEMS.
Lecture #6 Reachability
Lecture #10 Switched systems
Stability Analysis of Linear Systems
Signals and Systems Lecture 2
Presentation transcript:

Lecture #3 What can go wrong? Trajectories of hybrid systems João P. Hespanha University of California at Santa Barbara Hybrid Control and Switched Systems

Summary 1.Trajectories of hybrid systems: Solution to a hybrid system Execution of a hybrid system 2.Degeneracies Finite escape time Chattering Zeno trajectories Non-continuous dependency on initial conditions

Hybrid Automaton (deterministic) Q´ set of discrete states R n ´ continuous state-space f : Q £ R n ! R n ´ vector field  : Q £ R n ! Q´ discrete transition  : Q £ R n ! R n ´ reset map mode q 1 mode q 3  (q 1, x – ) = q 3 ? mode q 2  (q 1, x – ) = q 2 ? x›(q1,x–)x›(q1,x–) x›(q1,x–)x›(q1,x–)

Hybrid Automaton Q´ set of discrete states R n ´ continuous state-space f : Q £ R n ! R n ´ vector field  : Q £ R n ! Q £ R n ´ discrete transition (& reset map) mode q 1 mode q 3  1 (q 1, x – ) = q 3 ? mode q 2  1 (q 1, x – ) = q 2 ? x  ›  2 (q 1, x – ) Compact representation of a hybrid automaton

Definition: A solution to the hybrid automaton is a pair of right-continuous signals x : [0, 1 ) ! R n q : [0, 1 ) ! Q such that 1. x is piecewise differentiable & q is piecewise constant 2. on any interval (t 1,t 2 ) on which q is constant and x continuous 3. Solution to a hybrid automaton mode q 1 mode q 2  1 (q 1, x – ) = q 2 ? x  ›  2 (q 1, x – ) continuous evolution discrete transitions

Example #4: Inverted pendulum swing-up  u 2 [-1,1] Hybrid controller: 1 st pump/remove energy into/from the system by applying maximum force, until E ¼ 0 2 nd wait until pendulum is close to the upright position 3 th next to upright position use feedback linearization controller pump energy remove energy wait stabilize E 2 [– ,  ] ? E>  E < –   + |  | · 

Example #4: Inverted pendulum swing-up pump energy wait stabilize  + |  | ·  Q = { pump, wait, stab } R 2 = continuous state-space  ¸ – 

Example #4: Inverted pendulum swing-up pump energy wait stabilize  + |  | ·  Q = { pump, wait, stab } R 2 = continuous state-space  ¸ –  What if we already have  + |  | ·  when E reaches –   –   E  + |  | q = pump q = waitq = stab t

Example #4: Inverted pendulum swing-up pump energy wait stabilize  + |  | ·  Q = { pump, wait, stab } R 2 = continuous state-space  ¸ –  –   E  + |  | q = pump q = wait q = stab t t*t* q( t * ) = ? In general, we may need more than one value for the state at each instant of time

Hybrid signals Definition: A hybrid time trajectory is a (finite or infinite) sequence of closed intervals  = { [  i,  ' i ] :  i ·  ' i,  ' i =  i+1, i =1,2, … } (if  is finite the last interval may by open on the right) T ´ set of hybrid time trajectories Definition:For a given  = { [  i,  ' i ] :  i ·  ' i,  i+1 =  ' i, i =1,2, … } 2 T a hybrid signal defined on  with values on X is a sequence of functions x = { x i : [  i,  ' i ] !X i =1,2, … } x :  ! X ´ hybrid signal defined on  with values on X [,][,] [,][,] [,1)[,1) t E.g.,  › { [0,1], [1,1], [1,1], [1,+ 1 ) }, x › { t/2, 1/4, 3/4, 1/t } t/2 1/4 1/t 3/4 [,][,] A hybrid signal can take multiple values for the same time-instant

Execution of a hybrid automaton Definition: An execution of the hybrid automaton is a pair of hybrid signals x :  ! R n q :  ! Q  { [  i,  ' i ] : i =1,2, … } 2 T such that 1. on any [  i,  ' i ] 2  q i is constant and 2. mode q 1 mode q 2  1 (q 1, x – ) = q 2 ? x  ›  2 (q 1, x – ) continuous evolution discrete transitions

Example #4: Inverted pendulum swing-up pump energy wait stabilize  + |  | ·  Q = { pump, wait, stab } R 2 = continuous state-space  ¸ –  –   E  + |  | q = pump q = wait q = stab t*t* t  › { [0,t * ], [t *, t * ], [t *,+ 1 ) } q › { pump, wait, stab } x › { …, …, … } 1.There are other concepts of solution that also avoid this problem [Teel 2005] 2.Could one “fix” this hybrid system to still work with the usual notion of solution?

What can go wrong? 1.Problems in the continuous evolution : existence uniqueness finite escape 2.Problems in the hybrid execution: Chattering Zeno 3.Non-continuous dependency on initial conditions

Existence Theorem [Existence of solution] If f : R n ! R n is continuous, then 8 x 0 2 R n there exists at least one solution with x(0) = x 0, defined on some interval [0,  ) There is no solution to this differential equation that starts with x(0) = 0 x f(x)f(x) Why? one any interval [0,  ) x cannot:remain zero, become positive, or become negative. discontinuous (x = 0 would make some sense)

Uniqueness x f(x)f(x) There are multiple solutions that start at x(0) = 0, e.g., t x t Theorem [Uniqueness of solution] If f : R n ! R n is Lipschitz continuous, then 8 x 0 2 R n there a single solution with x(0) = x 0, defined on some interval [0,  ) 1 derivative at 0 Definitions: A function f : R n ! R n is Lipschitz continuous if in any bounded subset of S of R n there exists a constant c such that (f is differentiable almost everywhere and the derivative is bounded on any bounded set)

Finite escape time Any solution that does not start at x(0) = 0 is of the form T T -1 finite escape ´ solution x tends to 1 in finite time Definitions: A function f : R n ! R n is globally Lipschitz continuous if there exists a constant c such that f grows no faster than linearly Theorem [Uniqueness of solution] If f : R n ! R n is globally Lipschitz continuous, then 8 x 0 2 R n there a single solution with x(0) = x 0, defined on [0, 1 ) x t unbounded derivative

Degenerate executions due to problems in the continuous evolution q = 1 q = 2 x ¸ 1 ?  = { [0,1], [1,2] } q = {q 1 (t) = 1, q 2 (t) = 2 } x = {x 1 (t) = t, x 2 (t) = 2 – t } x t x1(t)x1(t) x2(t)x2(t) q = 1 q = 2 x ¸ 1 ? 1 2  = { [0,1], [1,2) } q = {q 1 (t) = 1, q 2 (t) = 2 } x = {x 1 (t) = t, x 2 (t) = 1/(2 – t) } x t x1(t)x1(t) x2(t)x2(t) 1 2

Chattering q = 2 x ¸ 0 ? x < 0 ? q = 1 There is no solution past x = 0 t x (t)x (t) 1 but there is an execution  = { [0,1], [1], [1], [1], … } q = {q 1 (t) = 2, q 2 (t) = 1, q 1 (t) = 2, …} x = {x 1 (t) = 1 – t, x 2 (t) = 0, x 2 (t) = 0, …} Chattering execution ´  is infinite but after some time, all intervals are singletons t x 1 (t) 1 x k (t) k ¸ 2 q 1 (t) q 2k+1 (t) k ¸ 1 q 2k (t) k ¸ 1

Example #3: Semi-automatic transmission g = 1 g = 2 g = 3 g = 4 v(t) 2 { up, down, keep } ´ drivers input (discrete) v = up or  ¸  2 ?v = up or  ¸  3 ?v = up or  ¸  4 ? v = down or  ·  1 ?v = down or  ·  2 ?v = down or  ·  3 ? 22 33 44 11 22 33 g = 1 g = 2 g = 3 g = 4 If the driver sets v(t) = up 8 t ¸ t * and  t   ·  1 one gets chattering. For ever?

Example #1: Bouncing ball (Zeno execution) t Free fall ´ Collision ´ g y g y c 2 [0,1) ´ energy absorbed at impact x 1 = 0 & x 2 <0 ? x 2 › – c x 2 –

Zeno solution t t1t1 t2t2 t3t3 x 1 = 0 & x 2 <0 ? x 2 › – c x 2 –

Zeno solution t x 1 = 0 & x 2 <0 ? x 2 › – c x 2 – t1t1 t2t2 t3t3 x 1 – = 0 & x 2 – = 0 ?

Zeno execution t t1t1 t2t2 t3t3 Zeno execution ´  is infinite but the execution does not extend to t = + 1 Zeno time ´  1 › sup s 2  s x 1 = 0 & x 2 <0 ? x 2 › – c x 2 –

Example #9: Water tank system (regularization) x2x2 goal ´ prevent both tanks from becoming emptying outflow ´   inflow ´ x1x1 outflow ´   h1h1 h2h2 q = 1 q = 2 x 2 · h 2 ? x 1 · h 1 ? x1x1 x2x2 q = 2 q = 1 h 1 = h 2

Temporal regularization Example #9: Water tank system x2x2 outflow ´   inflow ´ x1x1 outflow ´   h1h1 h2h2 q = 2 x 2 · h 2 ? x 1 · h 1 ? only jump after a minimum time has elapsed q = 2 x 2 · h 2,  >  ? x 1 · h 1,  >  ?  › 0 q = 1

Spatial regularization Example #9: Water tank system x2x2 outflow ´   inflow ´ x1x1 outflow ´   h1h1 h2h2 q = 2 x 2 · h 2 ? x 1 · h 1 ? q = 2 x 2 · h 2, |x 1 –x 3 |+|x 2 –x 4 |  >  ? x   › x 1, x   › x 2 q = 1 x   › x 1, x   › x 2 x 1 · h 1, |x 1 –x 3 |+|x 2 –x 4 |  >  ? only jump after a minimum change in the continuous state has occurred

Continuity with respect to initial conditions Theorem [Uniqueness & continuity of solution] If f : R n ! R n is Lipschitz continuous, then 8 x 0 2 R n there a single solution with x(0) = x 0, defined on some interval [0,  ) Moreover, given any T < 1, and two solutions x 1, x 2 that exist on [0,T]: 8  > 0 9  > 0 : ||x 1 (0) – x 2 (0)|| ·  ) ||x 1 (t) – x 2 (t)|| ·  8 t 2 [0,T] value of the solution on the interval [0,T] is continuous with respect to the initial conditions

Discontinuity with respect to initial conditions mode q 1 x 1 ¸ 0 & x 2 > 0 ? x 1 ¸ 0 & x 2 · 0 ? mode q 2 x2› 1x2› 1 x2› 2x2› 2 x1x1 x2x2  1 x1x1 x2x2 2 no matter how close to zero x 2 (0) =  > 0 is, x 2 (1) = 1 if x 2 (0) = 0 then x 2 (1) = 2 discontinuity of the reset map – 1

Discontinuity with respect to initial conditions x 1 ¸ 0 & x 2 > 0 ? mode q 1 x 1 ¸ 0 & x 2 · 0 ? x1x1 x2x2   – 1 x1x1 x2x2 1 no matter how close to zero x 2 (0) =  > 0 is, x 2 (2) =  – 1 if x 2 (0) = 0 then x 2 (2) = 1 mode q 2 mode q 3 problem arises from discontinuity of the transition function

Next class… 1.Numerical simulation of hybrid automata simulations of ODEs zero-crossing detection 2.Simulators Simulink Stateflow SHIFT Modelica Follow-up homework Find conditions for the existence of solution to a hybrid system