Lecture 1. Introduction. The importance, ubiquity, and complexity of embedded systems are growing

Similar documents
Hybrid Control and Switched Systems. Lecture #1 Hybrid systems are everywhere: Examples

SWINGING UP A PENDULUM BY ENERGY CONTROL

Figure 1: Startup screen for Interactive Physics Getting Started The ærst simulation will be very simple. With the mouse, select the circle picture on

EE291E Lecture Notes 3 Autonomous Hybrid Automata

Hybrid Systems Course Lyapunov stability

A New Invariance Property of Lyapunov Characteristic Directions S. Bharadwaj and K.D. Mease Mechanical and Aerospace Engineering University of Califor

Zeno Behavior in Electromechanical Hybrid Systems: From Theory to Experimental Validation

Actuator saturation has a signiæcant eæect on the overall stability of aircraft. The recent YF-22 crash èapril 1992è has been blamed on a pilot-induce

Controlling the Inverted Pendulum

Stabilization of a 3D Rigid Pendulum

Discontinuous Systems

A Hybrid Systems Approach to Trajectory Tracking Control for Juggling Systems

Embedded Systems 5. Synchronous Composition. Lee/Seshia Section 6.2

x = B sin ( t ) HARMONIC MOTIONS SINE WAVES AND SIMPLE HARMONIC MOTION Here s a nice simple fraction: y = sin (x) Differentiate = cos (x)

HYBRID AND SWITCHED SYSTEMS ECE229 WINTER 2004

The Multi-Agent Rendezvous Problem - The Asynchronous Case

Laboratory Instruction-Record Pages

MAS212 Assignment #2: The damped driven pendulum

University of California. Berkeley, CA fzhangjun johans lygeros Abstract

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

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

If we remove the cyclotomic factors of fèxè, must the resulting polynomial be 1 or irreducible? This is in fact not the case. A simple example is give

Limit Cycles in High-Resolution Quantized Feedback Systems

Angular Momentum Based Controller for Balancing an Inverted Double Pendulum

Stabilizing the dual inverted pendulum

Research Article Energy Reduction with Anticontrol of Chaos for Nonholonomic Mobile Robot System

W 1 æw 2 G + 0 e? u K y Figure 5.1: Control of uncertain system. For MIMO systems, the normbounded uncertainty description is generalized by assuming

Chaotic motion. Phys 750 Lecture 9

1 Introduction. 2 Process description

SWING UP A DOUBLE PENDULUM BY SIMPLE FEEDBACK CONTROL

Multiple-Choice Questions

control theory, it allows the resolution of imprecise or uncertain informations Casciati and Faravelli,1995. Moreover fuzzy control can handle the hys

Lecture 10. Example: Friction and Motion

Theoretical physics. Deterministic chaos in classical physics. Martin Scholtz

BUDKER INSTITUTE OF NUCLEAR PHYSICS. B.V. Chirikov and V.V. Vecheslavov MULTIPLE SEPARATRIX CROSSING: CHAOS STRUCTURE. Budker INP NOVOSIBIRSK

HOMEWORK ANSWERS. Lesson 4.1: Simple Harmonic Motion

PHYSICS. Chapter 15 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT Pearson Education, Inc.

Embedded Systems 2. REVIEW: Actor models. A system is a function that accepts an input signal and yields an output signal.

EE C128 / ME C134 Feedback Control Systems

Nonsmooth systems: synchronization, sliding and other open problems

The phenomenon: complex motion, unusual geometry

Hybrid Systems - Lecture n. 3 Lyapunov stability

Formal Development of a Feedback Control System with Fault. Department of Automatic Control, Abstract

Physics 207 Lecture 10. Lecture 10. Employ Newton s Laws in 2D problems with circular motion

AP Physics C Summer Assignment Kinematics

Automata-theoretic analysis of hybrid systems

Zeno Behavior in Electromechanical Hybrid Systems: From Theory to Experimental Validation

Key Performance Task

TAM 212 Worksheet 6: Car Backflip. Solutions

FUZZY LOGIC CONTROL Vs. CONVENTIONAL PID CONTROL OF AN INVERTED PENDULUM ROBOT

+ - cos ( ω t) V I R 1. V Cos( ω t + φ)

St. Joseph s Anglo-Chinese School

Chaotic motion. Phys 420/580 Lecture 10

Is there Life after Zeno?

Project 3: Pendulum. Physics 2300 Spring 2018 Lab partner

We provide two sections from the book (in preparation) Intelligent and Autonomous Road Vehicles, by Ozguner, Acarman and Redmill.

THE system is controlled by various approaches using the

CHAPTER 2UNIFORMLY ACCELERATED MOTION

Where we ve been, where we are, and where we are going next.

Unit 1 Test Review Physics Basics, Movement, and Vectors Chapters 2-3

Student Exploration: Energy of a Pendulum

The Application of The Steepest Gradient Descent for Control Design of Dubins Car for Tracking a Desired Path

B) v `2. C) `2v. D) 2v. E) 4v. A) 2p 25. B) p C) 2p. D) 4p. E) 4p 2 25

problem of detection naturally arises in technical diagnostics, where one is interested in detecting cracks, corrosion, or any other defect in a sampl

Chapter 14 Oscillations

FRICTION AND FRICTION COMPENSATION IN THE FURUTA PENDULUM

LQG/LTR CONTROLLER DESIGN FOR ROTARY INVERTED PENDULUM QUANSER REAL-TIME EXPERIMENT

POE FINAL SEMESTER 2

HADDONFIELD PUBLIC SCHOOLS Curriculum Map for AP Physics, Mechanics C

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

586 D.E. Norton A dynamical system consists of three ingredients: a setting in which the dynamical behavior takes place, such as the real line, a toru

MEAM 510 Fall 2012 Bruce D. Kothmann

Physics 110 Homework Solutions Week #5

Physics for Scientists and Engineers 4th Edition, 2017

Real-Time Implementation of a LQR-Based Controller for the Stabilization of a Double Inverted Pendulum

Oscillatory Motion. Simple pendulum: linear Hooke s Law restoring force for small angular deviations. small angle approximation. Oscillatory solution

The net force on a moving object is suddenly reduced to zero. As a consequence, the object

LAB 10 - HARMONIC MOTION AND THE PENDULUM

MODELLING AND SIMULATION OF AN INVERTED PENDULUM SYSTEM: COMPARISON BETWEEN EXPERIMENT AND CAD PHYSICAL MODEL

Embedded Control: Applications and Theory

Oscillatory Motion. Simple pendulum: linear Hooke s Law restoring force for small angular deviations. Oscillatory solution

Lecture 1: A Preliminary to Nonlinear Dynamics and Chaos

Multi-Modal Control of Systems with Constraints

Reglerteknik, TNG028. Lecture 1. Anna Lombardi

Name St. Mary's HS AP Physics Circular Motion HW

Continuity of Bçezier patches. Jana Pçlnikovça, Jaroslav Plaçcek, Juraj ç Sofranko. Faculty of Mathematics and Physics. Comenius University

R TH + V TH. Vport. + Rport V TH

A RECEDING HORIZON CONTROL FOR LIFTING PING-PONG BALL. Sumiko Majima and Keii Chou

Wç;Ze èdiæerential or totalè cross sections can be written schematically as ç = è1 + A 0 P èç un + çèp + A 0 èç pol, where P is the electron's polariz

EE Homework 3 Due Date: 03 / 30 / Spring 2015

Total 0/15. 0/1 points POE MC.17. [ ]

TOPIC E: OSCILLATIONS EXAMPLES SPRING Q1. Find general solutions for the following differential equations:

CS 294-2, Visual Grouping and Recognition èprof. Jitendra Malikè Sept. 8, 1999

MEAM 510 Fall 2011 Bruce D. Kothmann

Juggling On A Bouncing Ball Apparatus Via Hybrid Control

Classical Dual-Inverted-Pendulum Control

Delay Coordinate Embedding

EE 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Fall 2016

Encoder Decoder Design for Event-Triggered Feedback Control over Bandlimited Channels

A unified Lyapunov function for finite time stabilization of continuous and discontinuous variable structure systems with resets

Transcription:

Lecture 1 Introduction Karl Henrik Johansson The importance, ubiquity, and complexity of embedded systems are growing tremendously thanks to the revolution in digital technology. This has created a need for design techniques that can guarantee safety and performance speciæcations. Hybrid system theory addresses this problem by providing a mathematical framework for analyzing systems with interacting discrete and continuous dynamics. A hybrid system captures the coupling between the digital computations and the analog physical environment inherent in many of today's real-time systems. The theory of hybrid systems has a large number of applications in areas such as real-time software, embedded systems, robotics, mechatronics, aeronautics, and process control. As an introduction, we present a number of examples from these areas. Hybrid systems are modeled as hybrid automata, which may be represented as a directed graph with continuous dynamics in each node. The continuous æow evolve according to the diæerential equation speciæed in the current node of the graph. When certain conditions are fulælled, a discrete transition may take place from one node to another if the nodes are connected by an edge. The continuous æow is then forced to satisfy the diæerential equation in the new node. Depending on the number of discrete states ènodesè and the diæerential equation in each state, the hybrid automaton may show a more or less complex behavior. The ultimate cases are on one side a hybrid automaton with only one discrete state and no edges and on the other side a hybrid automaton with trivial continuous dynamics è _x = 0è in each discrete state. The ærst case corresponds to a continuous-time dynamical system and the second to a purely discrete system. The rest of this introduction is devoted to a few examples of hybrid systems. Examples Example 1: Bouncing Ball A simple non-trivial hybrid automaton is the model of a bouncing ball shown to the left in Figure 1. The vertical position of the ball is denoted x 1 and the velocity x 2. The acceleration of gravity is denoted g and c 2 ë0; 1ë is a coeæcient of restitution. To the right in the ægure, the evolution of the continuous state of the system èx 1 ;x 2 è is shown. As long as the ball is above the ground èx 1 é 0è, the continuous state æow according to the diæerential equation speciæed in the single discrete state of the hybrid automaton. When the transition condition is fulælled,

10 x 1 =0^x 2ç0 x 2:=,cx 2 8 6 4 2 0 x 1 _x 1 = x 2 _x 2 =,g x 1 ç 0 2 4 6 8 x 2 10 0 1 2 3 4 5 Time Fig. 1. A hybrid automaton modeling a bouncing ball and an example of an execution. ç1 a discrete jump takes place. This corresponds to that the ball bounces. The speed of the ball is reset at each discrete jump èx 2 :=,cx 2 è. The reset models the physics of the bouncing ball as if the ball loses a proportional amount ofits energy at each bounce. As is indicated by the simulation in Figure 1, this model leads to that the ball bounces inænitely many times in a ænite time interval. Example 2: Thermostat Consider the control problem of heating a room. Assume that a thermostat is used as a controller, but that we do not have an exact model of how the thermostat functions. It is only known that the thermostat turns on the radiator when the temperature is between 68 and 70 and it turns the radiator oæ when the temperature is between 80 and 82. This heating system can be modeled as the hybrid automaton in Figure 2, where x denotes the temperature. This hybrid x ç 70 _x =,x xé68 _x =,x + 100 xé82 x ç 80 Fig. 2. Hybrid automaton modeling a thermostat and the heating of a room. automaton is non-deterministic in the sense that for a given initial condition it accepts a whole family of diæerent executions èsolutionsè. Example 3: Automatic Gear Box Control Figure 3 shows a model of car with a gear box having four gears. The lateral 2

v=2 v=3 v=4 _x 1 = x 2 _x 2 = æ 1èx 2èu v =1 _x 1=x 2 _x 2=æ 2èx 2èu v=2 _x 1=x 2 _x 2=æ 3èx 2èu v=3 _x 1=x 2 _x 2=æ 4èx 2èu v=4 v=1 v=2 v=3 Fig. 3. A hybrid automaton modeling a car with four gears. position is denoted x 1 and the velocity x 2. The model has two control signals: the gear v 2f1;:::;4g and the throttle u 2 ë,1; 1ë. The functions æ v, shown in Figure 4, represent the eæciency of the corresponding gear. Several interesting 1 0.9 æ 1 æ 2 æ 3 æ4 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 2 4 6 8 10 12 14 16 18 20 Fig. 4. The function æ vèx 2è represents the eæciency of gear v 2f1;:::;4g. control problems may be posed for this car model, including the following: What is the optimal control strategy to drive from x 1 = a to x 2 = b in minimum time? The problem is non-trivial if the reasonable assumption is included that each gear shift takes a certain amount of time. The solution, which will be discussed in another lecture, can also be modeled as a hybrid automaton. Example 4: Swing-Up of an Inverted Pendulum A pendulum on a cart is illustrated in Figure 5. It is possible to use a hybrid control strategy to swing-up the pendulum from a downward to an upright position and stabilize it. One strategy based on energy control is shown in Figure 6. Here fèxè =èx 2 ;gsin x 1, u cos x 1 è T and zèxè =këx 2 2 =2+gècos x 1,1èë sgnèx 2 sin x 1 è, where x 1 is the angle between the vertical and the pendulum, x 2 is the angular velocity, the control u is the acceleration of the pivot, g is the acceleration of 3

x 1 u Fig. 5. Pendulum on a cart. gravity, and ké0 is a design parameter. The maximum acceleration is given by u max = maxjuj = rg, where ré0 is a constant depending on the driving motor. The hybrid automaton consists of three discrete states: maximum acceleration to the left èu =,u max è, maximum acceleration to the right èu=u max è, and feedback stabilization. The ærst two swing-up the pendulum and the latter stabilize it around the upright position. Due to that the acceleration of the pivot is max left u =,u max _x = fèx; uè zèxè é,u max zèxè éu max zèxè é,u max max right u = u max _x = fèx; uè zèxè éu max jzèxèj éu max zèxè éu max zèxè é,u max stabilize u = zèxè _x = fèx; uè jzèxèj éu max jzèxèj éu max Fig. 6. Hybrid control strategy to swing up and stabilize an inverted pendulum on a cart. limited to u max, more than one swing may be needed to swing-up the pendulum. Figure 7 shows an example where u max = rg =0:25g, which leads to a swing-up with æve swings. 4

Fig. 7. Swing-up of an inverted pendulum on a cart. The angle x 1 is shown in the upper plot and the control signal u in the lower. The middle plot shows the energy of the pendulum; the hybrid control strategy is designed such that it drives the energy to zero. Example 5: Computer-Controlled System Most control systems today involve a computer. The block diagram in Figure 8 illustrates the standard set-up for a computer-controlled physical plant. If we assume the computer ètogether with the AèD and DèA convertersè can be modeled as a ænite state machine and the plant as a continuous dynamical system, then it is obvious that the closed-loop system is naturally represented by a hybrid automaton. Plant DèA AèD Computer Fig. 8. Computer-controlled system. 5

Example 6: Supervisory Controller Figure 9 shows a block diagram for a supervisory controller. A decision maker chooses between m controllers, by for instance using some sort of adaptive updating mechanism. The controllers and the plant are continuous dynamical systems, so the switched control system can be represented by a hybrid automaton with m discrete states. Fig. 9. In a switched controller the current control law is determined by a decision maker, which may take into account the current state of the process as well as other variables. Example 7: Rocking Block Figure 10 shows a block rocking due to seismic movements. The angular displace- Fig. 10. Rocking block. 6

ment is denoted æx 1 è= æx in the ægureè, where tan æ = B=H. Here x 1 é 0 corresponds to rotation about the point 0 and x 1 é 0 to rotation about 0 0. The angular velocity is denoted x 2. Assuming that the seismic movement is sinusoidal, the block is slender èæ ç 1è, and that at impact the energy loss is represented by a coeæcient of restitution c 2 ë0; 1ë èx 2 := cx 2 è, then the hybrid automaton in Figure 11 models the rocking block. Here æé0 depends on the x 1 é 0 x 2 := cx 2 _x 1 = x 2 _x 2 = x 1 +1,æcos!t x 1 é 0 _x 1 = x 2 _x 2 = x 1, 1, æ cos!t x 1 é 0 x 1 é 0 x 2 := cx 2 Fig. 11. Hybrid automaton modeling rocking block. forcing amplitude and! is its non-dimensional frequency. The ærst return map of the attractor is shown in Figure 12. Here T k = èt k,t k,1 è2ç=! is the ènormalizedè time between the k,1th and the kth impact. The coeæcients are chosen as æ =0:001, c =0:5, æ =4:6, and! =2:7. Fig. 12. First return map of the attractor, where æt k =èt k,tk,1è2ç=! is the time between the k, 1th and the kth impact divided by the period of the drive. 7

The rocking block system illustrates that low order hybrid systems may show complex behaviors. Example 8: DCèDC Converter Another hybrid system that show interesting dynamical behavior is the DCèDC buck converter, whose circuit diagram is shown in Figure 13. The constant input voltage is E and the output voltage v. The ramp generator gives a saw tooth signal v r. It is easy to specify a hybrid automaton that models the DCèDC buck Fig. 13. Circuit diagram for a DCèDC buck converter and the corresponding hybrid automaton. converter. It has two discrete states with linear continuous dynamics in each state. The left plot in Figure 14 shows a bifurcation diagram for when the input voltage E is varied and the output voltage v is measured at the beginning of each ramp cycle. The right plot shows the attractor for E = 35 in the víi plane, where again v and i are measured at the beginning of each ramp cycle. Although the continuous dynamics is linear and only of second order, the hybrid system seems to show chaotic behavior. Example 9: Hybrid Control of Helicopter Many complex control tasks can be divided into discrete and continuous actions. One such problem is a helicopter search and rescue mission, which is illustrated in Figure 15. The overall solution is described by the discrete states of the hybrid automaton. In each discrete state, however, a quite involved continuous control problem is solved, for example, stabilizing the helicopter in the hovering mode during search. 8

Fig. 14. Example of a bifurcation diagram of the output voltage by considering the stroboscopic map is shown to the left. To the right, a seemingly chaotic attractor is shown. START TAKE-OFF Z > Z_CRUISE DETECT IDLE SEARCH INVESTIGATE FINISH LANDING COMPLETE SEARCH COMPLETE INVESTIGATE Fig. 15. Search and rescue mission for a helicopter modeled as a hybrid automaton. Example 10: Optimal Path Tracking Consider the unicycle sketched in Figure 16 and described by the equations _x = v cos ç _y = v sin ç _ç =!; where èx; yè deænes the position of the vehicle and ç its heading. The velocity vé0 is assumed to be constant. The angular velocity! is the control signal. The problem to track a straight line from an arbitrary initial position in minimum time can be solved using Pontryagin's Maximum Principle. Figure 17 shows the solution presented as a hybrid automaton. The optimal solution consists of only three diæerent actions turn left, turn right, and go straight. This means that the optimal path is surprisingly simple and consists of only circle segments and straight lines. The conditions for the discrete transitions in the hybrid automaton can be given explicitly, but are a bit too complicated to be presented here. 9

ç èx; yè Fig. 16. Unicycle driving on minimum time to a wall. turn left! =! max turn right! =,! max go straight! =0 Fig. 17. Hybrid automaton modeling optimal path tracking for unicycle. Background Bouncing balls and similar mechanical systems are classical in the æeld of impact mechanics. In the context of hybrid automata, the bouncing ball example discussed here is for example studied in ë5ë. The automatic gear box example is adopted from ë3ë, where the time optimal control problem is solved using linear programming. The swing-up strategy for the inverted pendulum is presented in ë1ë. It is based on controlling the energy of the pendulum. Supervisory control is for instance discussed in ë7ë. Rocking block dynamics is analyzed in ë4ë. It is mentioned that before the development of seismographs, peak accelerations in earthquakes were measured in Japan by observations of tombstone collapse. The unpredictable behavior illustrated in Figure 12 suggests that this method is not necessarily reliable. The DCèDC buck converter example is taken from ë2ë. Hybrid control of helicopters is discussed in ë6ë. The optimal route tracking problem is solved in ë8ë, where it is also pointed out that the solution can be modeled as a hybrid automaton. 10

References 1. K. J. çastríom and K. Furuta. Swinging up a pendulum by energy control. Automatica, 1999. 2. M. di Bernardo, F. Garofalo, L. Glielmo, and F. Vasca. Switchings, bifurcations, and chaos in DCèDC converters. IEEE Transactions on Circuits and Systems I: Fundamental Theory and Applications, 45è2è:133í141, 1998. 3. S. Hedlund and A. Rantzer. Optimal control of hybrid systems. In Proceedings of IEEE Conference of Decision and Control, December 1999. 4. S. J. Hogan. On the dynamics of rigid-block motion under harmonic forcing. Proc. R. Soc. Lond. A, 425:441í476, 1989. 5. K. H. Johansson, M. Egerstedt, J. Lygeros, and S. Sastry. On the regularization of Zeno hybrid automata. System & Control Letters, 38:141í150, 1999. 6. T. J. Koo, F. Hoæmann, B. Sinopoli, and S. Sastry. Hybrid control of an autonomous helicopter. In Proceedings of IFAC Workshop on Motion Control, Grenoble, France, 1998. 7. A. S. Morse. Supervisory control of families of linear set-point controllers, part i: Exact matching. IEEE Transactions on Automatic Control, 41:1413í1431, 1996. 8. P. Souçeres, A Balluchi, and A Bicchi. Optimal feedback conrol for route tracking with a bounded-curvature vehicle. Manuscript, 1999. 11