6th Biennial Ptolemy Miniconference Berkeley, CA May 12, 2005 Operational Semantics of Hybrid Systems Haiyang Zheng and Edward A. Lee With contributions.

Slides:



Advertisements
Similar presentations
3.5 Continuity & End Behavior
Advertisements

STATEMATE A Working Environment for the Development of Complex Reactive Systems.
Timed Automata.
Supervisory Control of Hybrid Systems Written by X. D. Koutsoukos et al. Presented by Wu, Jian 04/16/2002.
Model Checker In-The-Loop Flavio Lerda, Edmund M. Clarke Computer Science Department Jim Kapinski, Bruce H. Krogh Electrical & Computer Engineering MURI.
Models for Control and Verification Ian Mitchell Department of Computer Science The University of British Columbia research supported by National Science.
Combining Symbolic Simulation and Interval Arithmetic for the Verification of AMS Designs Mohamed Zaki, Ghiath Al Sammane, Sofiene Tahar, Guy Bois FMCAD'07.
Sequences A sequence is a function that computes an ordered list. For example, the average person in the United States uses 100 gallons of water each day.
A Brief Introduction. Acknowledgements  The material in this tutorial is based in part on: Concurrency: State Models & Java Programming, by Jeff Magee.
The Operational Semantics of Hybrid Systems Edward A. Lee Professor, Chair of EE, and Associate Chair of EECS, UC Berkeley With contributions from: Adam.
Overview This project applies the tagged-signal model to explain the semantics of piecewise continuous signals. Then it illustrates an operational way.
DATAFLOW PROCESS NETWORKS Edward A. Lee Thomas M. Parks.
Discrete Event Models: Getting the Semantics Right Edward A. Lee Robert S. Pepper Distinguished Professor Chair of EECS UC Berkeley With thanks to Xioajun.
EECE Hybrid and Embedded Systems: Computation T. John Koo, Ph.D. Institute for Software Integrated Systems Department of Electrical Engineering and.
Software Testing and Quality Assurance
PTIDES: Programming Temporally Integrated Distributed Embedded Systems Yang Zhao, EECS, UC Berkeley Edward A. Lee, EECS, UC Berkeley Jie Liu, Microsoft.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Causality Interfaces for Actor Networks Ye Zhou and Edward A. Lee University of California,
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Leveraging Synchronous Language Principles for Hybrid System Models Haiyang Zheng and.
6th Biennial Ptolemy Miniconference Berkeley, CA May 12, 2005 Some Developments in the Tagged Signal Model Xiaojun Liu With J. Adam Cataldo, Edward A.
February 11, 2010 Center for Hybrid and Embedded Software Systems Ptolemy II - Heterogeneous Concurrent Modeling and Design.
Using Interfaces to Analyze Compositionality Haiyang Zheng and Rachel Zhou EE290N Class Project Presentation Dec. 10, 2004.
Chess Review November 21, 2005 Berkeley, CA Edited and presented by Hybrid Geometric Mechanics: Reduction and Going Beyond Zeno Aaron D. Ames UC Berkeley.
Chess Review November 21, 2005 Berkeley, CA Edited and presented by Advanced Tool Architectures Edward A. Lee UC Berkeley.
Chess Review May 11, 2005 Berkeley, CA Operational Semantics of Hybrid Systems Haiyang Zheng and Edward A. Lee With contributions from the Ptolemy group.
Hybrid System Modeling: Operational Semantics Issues Edward A. Lee Professor UC Berkeley Center for Hybrid and embedded software systems OMG Technical.
EECE Hybrid and Embedded Systems: Computation T. John Koo, Ph.D. Institute for Software Integrated Systems Department of Electrical Engineering and.
Mixing Models of Computation Jie Liu Palo Alto Research Center (PARC) 3333 Coyote Hill Rd., Palo Alto, CA joint work with Prof. Edward.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 Correctness in Causal Systems Eleftherios Matsikoudis UC Berkeley.
Design of Fault Tolerant Data Flow in Ptolemy II Mark McKelvin EE290 N, Fall 2004 Final Project.
Discrete Event Models: Getting the Semantics Right Edward A. Lee Robert S. Pepper Distinguished Professor Chair of EECS UC Berkeley With special thanks.
Chess Review November 21, 2005 Berkeley, CA Edited and presented by Causality Interfaces and Compositional Causality Analysis Rachel Zhou UC Berkeley.
A Denotational Semantics For Dataflow with Firing Edward A. Lee Jike Chong Wei Zheng Paper Discussion for.
SEC PI Meeting Annapolis, May 8-9, 2001 Component-Based Design of Embedded Control Systems Edward A. Lee & Jie Liu UC Berkeley with thanks to the entire.
Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu.
MoBIES Working group meeting, September 2001, Dearborn Ptolemy II The automotive challenge problems version 4.1 Johan Eker Edward Lee with thanks.
7th Biennial Ptolemy Miniconference Berkeley, CA February 13, 2007 PTIDES: A Programming Model for Time- Synchronized Distributed Real-time Systems Yang.
1 Classification of Switching Signals 2 Operation on Switching Signals 3 Well-defined ness and Well-posed ness 4 Switching Sequences 5 Solution of.
Tool Integration of Ptolemy II EE290N Class Project Haiyang Zheng May
MOBIES Project Progress Report Engine Throttle Controller Design Using Multiple Models of Computation Edward Lee Haiyang Zheng with thanks to Ptolemy Group.
Models of Computation as Program Transformations Chris Chang
Department of Electrical Engineering and Computer Sciences University of California at Berkeley The Ptolemy II Framework for Visual Languages Xiaojun Liu.
Operational Semantics of Hybrid Systems Edward A. Lee and Haiyang Zheng With contributions from: Adam Cataldo, Jie Liu, Xiaojun Liu, Eleftherios Matsikoudis.
Differential Equations
1 Performance Evaluation of Computer Networks: Part II Objectives r Simulation Modeling r Classification of Simulation Modeling r Discrete-Event Simulation.
MA Dynamical Systems MODELING CHANGE. Introduction to Dynamical Systems.
MA Dynamical Systems MODELING CHANGE. Modeling Change: Dynamical Systems A dynamical system is a changing system. Definition Dynamic: marked by.
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
Relations And Functions. A relation from non empty set A to a non empty set B is a subset of cartesian product of A x B. This is a relation The domain.
Hybrid Systems Concurrent Models of Computation EEN 417 Fall 2013.
CIS 540 Principles of Embedded Computation Spring Instructor: Rajeev Alur
MA Dynamical Systems MODELING CHANGE. Modeling Change: Dynamical Systems ‘Powerful paradigm’ future value = present value + change equivalently:
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.
MA354 Dynamical Systems T H 2:30 pm– 3:45 pm Dr. Audi Byrne.
Control Synthesis and Reconfiguration for Hybrid Systems October 2001 Sherif Abdelwahed ISIS Vanderbilt University.
I ndustrial Cy ber- Ph ysical Systems October 16, 2015 CyPhySim CyPhySim is an open-source simulator for cyber-physical systems. The.
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.
Introduction to materials physics #2 Week 2: Electric and magnetic interaction and electromagnetic wave 1.
TH EDITION LIAL HORNSBY SCHNEIDER COLLEGE ALGEBRA.
Use or disclosure of the information contained herein is subject to specific written CIRA approval 1 PURSUIT – EVASION GAMES GAME THEORY AND ANALYSIS OF.
Dynamic structure modelling for Causal Block Diagrams
Lattice Boltzmann Modeling
Autonomous Cyber-Physical Systems: Dynamical Systems
Concurrent Models of Computation for Embedded Software
Abstract Interpretation
Event-Based Architecture Definition Language
Embedded Systems: A Focus on Time
Compositional Refinement for Hierarchical Hybrid Systems
Concurrent Models of Computation
LECTURE 02: BASIC PROPERTIES OF SIGNALS
Presentation transcript:

6th Biennial Ptolemy Miniconference Berkeley, CA May 12, 2005 Operational Semantics of Hybrid Systems Haiyang Zheng and Edward A. Lee With contributions from the Ptolemy group

Zheng, Berkeley 2 The Objective Hybrid systems can be treated as executable programs written in a domain-specific programming language. We need an operational semantics to execute these programs to generate behaviors of hybrid systems.

Zheng, Berkeley 3 A Hysteresis Example as a Hybrid System Borrowed and modified from: The magnetization of a ferromagnet depends on not only the current magnetic field strength but also the history magnetic flux density. The magnetization process can be abstracted as a instantaneous change if the duration is neglectable.

Zheng, Berkeley 4 Hybrid Systems as Executable Programs Model behaviors can be described by signals. Actors define the computations on signals. An operational semantics defines the rules for passing signals between actors and evaluating signals. Magnetization of a Ferromagnet Applied Magnetic Field This model is constructed with HyVisual, which is based on Ptolemy II.

Zheng, Berkeley 5 Signals in the Hysteresis Model continuous signal (applied magnetic field) discrete-event signal (mode changes) piecewise continuous signal (magnetic flux density) Discontinuities are caused by discrete events. At discontinuities, signals have multiple values, which are in a particular order.

Zheng, Berkeley 6 Signals Must Have Multiple Values at the Time of a Discontinuity Discontinuities need to be semantically distinguishable from rapid continuous changes.

Zheng, Berkeley 7 Define a continuously evolving signal as the function: Where T is a connected subset of reals (time line) and N is the set of non-negative integers (indexes). The domain is also called “super dense time” by Oded Maler, Zohar Manna, and Amir Pnueli in “From timed to hybrid systems”, At each time t  T, the signal x has a sequence of values. Where the signal is continuous, all the values are the same. Where is discontinuous, it has multiple values. Definition: Continuously Evolving Signal

Zheng, Berkeley 8 Zeno Signals Chattering Zeno signal There exists a time t  T, where the signal x has an infinite sequence of different values. Genuinely Zeno signal There exists a time t  T, where the signal x has an infinite number of discontinuities before t. Zeno signals cause problems in simulation. The simulation time cannot progress over t before the infinite number of different values of a chatting Zeno signal at t are resolved. The simulation time cannot even reach t before the values at the infinite number of times where discontinuities happen are resolved.

Zheng, Berkeley 9 A signal has no chattering Zeno condition if there is an integer m >= 0 such that A non-chattering signal has a corresponding final value signal, where A non-chattering signal has a corresponding initial value signal, where Initial and Final Value Signals

Zheng, Berkeley 10 For a signal x, define D  T as the set that contains all time points where discontinuities of x happen. A piecewise continuous signal is a non-chattering signal where: the initial value signal x i is continuous on the left, the final value signal x f is continuous on the right, and the signal x has only one value at all t  T \ D. A continuous signal is a piecewise continuous signal where D is an empty set. A discrete-event signal is a continuously evolving signal that does not have a value almost everywhere except at the time points included in D. Revisiting Signals in Hybrid Systems

Zheng, Berkeley 11 Discrete Trace Define a discrete trace of a signal x as a set: { x(t, n) | t  D ’, and n  N } where and D is the set of time points where x has discontinuities and t 0 is the starting time when the signal x is defined. Discrete traces capture all the details of signals, hence the behavior of hybrid systems. The ideal solver semantics in “On the causality of mixed-signal and hybrid models” by Jie Liu and Edward A. Lee, HSCC 2003

Zheng, Berkeley 12 Operational Semantics An execution of a hybrid system is the process of constructing discrete traces for all signals.

Zheng, Berkeley 13 Constructing Discrete Traces A discrete trace of a signal x is constructed by a sequence of unit executions. A unit execution is defined on a time interval for each neighboring Each unit execution consists of two phases of executions in the following order: Discrete phase of execution: Construct the discrete trace of signal x at t 1 Continuous phase of execution: Find the initial value of signal x at t 2

Zheng, Berkeley 14 Discrete Phase of Execution Given, perform till the final value of x,, is reached. The subset of the discrete trace of signal x at t 1 { x(t 1, n) | t 1  D ’, and n  N } is completely resolved.

Zheng, Berkeley 15 Continuous Phase of Execution Given and the ordinary differential equations governing the dynamics of signal x satisfying a global Lipschitz condition during the time interval ( t 1, t 2 ), there exists a unique solution for x and it can be approximated by ODE solvers. The value of signal x at any t  T can be computed, where t 1 < t < t 2. The discrete trace loses nothing by not representing values within the interval.

Zheng, Berkeley 16 Importance of Discrete Phase Of Execution Having multiple events at the same time is a useful abstraction for modeling software, hardware, and physical phenomena. With the discrete phase of execution This operational semantics handles these simultaneous events by giving them a well defined order. This operational semantics completely captures the model’s behavior at discontinuities.

Zheng, Berkeley 17 Newton’s Cradle: Dynamics Three second order ODE’s are used to model the dynamics of three pendulums. 123

Zheng, Berkeley 18 Newton’s Cradle: Mode Control 123

Zheng, Berkeley 19 Velocities and Positions of Balls 1 2 X-axis is time and Y-axis is displacement. X-axis is time and Y-axis is velocity. 123

Zheng, Berkeley 20 Summary Signals in hybrid systems are studied and defined with the “super dense time” as domain. An operational semantics to construct discrete traces of signals in hybrid system is given. For more details, check “Operational Semantics of Hybrid Systems” by Edward A. Lee and Haiyang Zheng, HSCC This operational semantics is implemented in HyVisual 5.0 and Ptolemy II 5.0, which can be downloaded from