Introduction to Hybrid Systems G ERARDO S CHNEIDER gerardo@irisa.fr - - PowerPoint PPT Presentation

introduction to hybrid systems
SMART_READER_LITE
LIVE PREVIEW

Introduction to Hybrid Systems G ERARDO S CHNEIDER gerardo@irisa.fr - - PowerPoint PPT Presentation

Introduction to Hybrid Systems G ERARDO S CHNEIDER gerardo@irisa.fr IRISA/INRIA E QUIPE L ANDE R ENNES - F RANCE Introduction to Hybrid Systems p.1/21 Motivation Computers are


slide-1
SLIDE 1

Introduction to Hybrid Systems

GERARDO SCHNEIDER

gerardo@irisa.fr

IRISA/INRIA ´ EQUIPE LANDE RENNES - FRANCE

Introduction to Hybrid Systems – p.1/21

slide-2
SLIDE 2

Motivation

  • Computers are everywhere
  • Electronic commerce
  • Education
  • Thermostat
  • Automated highway systems
  • Air traffic management systems
  • Automotive industry (robots)
  • Chemical plants
✁ ✁

Introduction to Hybrid Systems – p.2/21

slide-3
SLIDE 3

Motivation

  • Computers are everywhere
  • Many of these systems have a “hybrid” nature.

Systems exhibiting both:

  • Continuous evolutions
  • Discrete transitions

Introduction to Hybrid Systems – p.2/21

slide-4
SLIDE 4

Motivation

  • Computers are everywhere
  • Many of these systems have a “hybrid” nature.

Systems exhibiting both:

  • Continuous evolutions
  • Discrete transitions
  • Some examples:
  • Thermostat: Temperature + switch On/Off
  • Robotic systems: Distance, speed, etc +

switch direction

  • Chemical plants: Chemical reactions +

closing/opening valves

✁ ✁

Introduction to Hybrid Systems – p.2/21

slide-5
SLIDE 5

Hybrid Systems: Why a new theory?

  • Two main reasons: Academic and practical

Introduction to Hybrid Systems – p.3/21

slide-6
SLIDE 6

Hybrid Systems: Why a new theory?

  • Two main reasons: Academic and practical

Academic reason: People competent in specific domains of knowledge

  • Control theoreticians
  • Computer scientists
  • Mathematicians

Introduction to Hybrid Systems – p.3/21

slide-7
SLIDE 7

Hybrid Systems: Why a new theory?

  • Two main reasons: Academic and practical

Academic reason: People competent in specific domains of knowledge

  • Control theoreticians
  • Computer scientists
  • Mathematicians

Practical reason: Finding suitable abstract models and analysis techniques for natural phenomena

Introduction to Hybrid Systems – p.3/21

slide-8
SLIDE 8

Hybrid Systems: Why a new theory?

  • Two main reasons: Academic and practical

Academic reason: People competent in specific domains of knowledge

  • Control theoreticians
  • Computer scientists
  • Mathematicians

Practical reason: Finding suitable abstract models and analysis techniques for natural phenomena

  • Hybrid models offer clean modelling solutions for

phenomena for which classical models are inadequate

Introduction to Hybrid Systems – p.3/21

slide-9
SLIDE 9

Overview of the presentation

  • Continuous models
  • Discrete systems
  • Hybrid automata
  • Verification
  • Discussion

Introduction to Hybrid Systems – p.4/21

slide-10
SLIDE 10

Continuous Models

Traditional formalisms for describing system dynamics are based on continuous dynamical systems

Introduction to Hybrid Systems – p.5/21

slide-11
SLIDE 11

Continuous Models

Traditional formalisms for describing system dynamics are based on continuous dynamical systems

  • Initially: Conceived for predicting the behaviour of

uncontrolled systems (e.g. solar system)

Introduction to Hybrid Systems – p.5/21

slide-12
SLIDE 12

Continuous Models

Traditional formalisms for describing system dynamics are based on continuous dynamical systems

  • Initially: Conceived for predicting the behaviour of

uncontrolled systems (e.g. solar system)

  • Later: Adapted for systems with inputs - controlled

systems (e.g. robots)

  • In the presence of disturbance or control

signals: Need for input (or control) variables

Introduction to Hybrid Systems – p.5/21

slide-13
SLIDE 13

Continuous Models

Traditional formalisms for describing system dynamics are based on continuous dynamical systems

  • Initially: Conceived for predicting the behaviour of

uncontrolled systems (e.g. solar system)

  • Later: Adapted for systems with inputs - controlled

systems (e.g. robots)

  • In the presence of disturbance or control

signals: Need for input (or control) variables

  • Such systems are specified by differential or

difference equations, describing the evolution of the state-variable

Introduction to Hybrid Systems – p.5/21

slide-14
SLIDE 14

Continuous Models: Limitations

  • The dynamics of many physical components of

plants cannot be modelled using purely- continuous models

  • Behaviour of valves and switches are best

modelled as discrete systems

  • Continuous sensors and actuators are

saturated beyond certain values

Introduction to Hybrid Systems – p.6/21

slide-15
SLIDE 15

Continuous Models: Limitations

  • The dynamics of many physical components of

plants cannot be modelled using purely- continuous models

  • Some “intelligent” control might not be expressed

in terms of continuous trajectories

  • Movement in physical space may contain

“objects” and “places”: Inherently discrete involving phenomena like collision

Introduction to Hybrid Systems – p.6/21

slide-16
SLIDE 16

Continuous Models: Limitations

  • The dynamics of many physical components of

plants cannot be modelled using purely- continuous models

  • Some “intelligent” control might not be expressed

in terms of continuous trajectories

  • Even in the presence of continuous models, the

dynamics could be highly non-linear

  • Many models based on a linear approximation

are valid only in a certain region. When leaving such region a new linear model should be used

Introduction to Hybrid Systems – p.6/21

slide-17
SLIDE 17

Continuous Models: Limitations

  • The dynamics of many physical components of

plants cannot be modelled using purely- continuous models

  • Some “intelligent” control might not be expressed

in terms of continuous trajectories

  • Even in the presence of continuous models, the

dynamics could be highly non-linear

  • Many control systems need interaction with

entities other than continuous sensors: e.g. with computers or human operators

  • Such entities may activate or suspend the

controller execution or force it to switch to another mode of operation

Introduction to Hybrid Systems – p.6/21

slide-18
SLIDE 18

Continuous Models: Practical Solution

  • Control Engineers know how to solve many of the

above problems:

Introduction to Hybrid Systems – p.7/21

slide-19
SLIDE 19

Continuous Models: Practical Solution

  • Control Engineers know how to solve many of the

above problems:

  • A continuous model is given for each “mode”
  • f operation
  • Control laws are synthesised for each of these

modes and then “glue” together

Introduction to Hybrid Systems – p.7/21

slide-20
SLIDE 20

Continuous Models: Practical Solution

  • Control Engineers know how to solve many of the

above problems:

  • A continuous model is given for each “mode”
  • f operation
  • Control laws are synthesised for each of these

modes and then “glue” together

  • However, the transition between them is not a

part of the “official” dynamics of the system

Introduction to Hybrid Systems – p.7/21

slide-21
SLIDE 21

Continuous Models: Practical Solution

  • Control Engineers know how to solve many of the

above problems:

  • A continuous model is given for each “mode”
  • f operation
  • Control laws are synthesised for each of these

modes and then “glue” together

  • However, the transition between them is not a

part of the “official” dynamics of the system

  • The formal notion of dynamical system is

reserved only for the continuous modes; other phenomena are treated as “extra-modelic”

Introduction to Hybrid Systems – p.7/21

slide-22
SLIDE 22

Overview of the presentation

  • Continuous models
  • Discrete systems
  • Hybrid automata
  • Verification
  • Discussion

Introduction to Hybrid Systems – p.8/21

slide-23
SLIDE 23

Discrete Systems

  • The design of reactive systems in Computer

Science has similar goals to Control Theory

  • To design systems that interact with an

external environment

Introduction to Hybrid Systems – p.9/21

slide-24
SLIDE 24

Discrete Systems

  • The design of reactive systems in Computer

Science has similar goals to Control Theory

  • To design systems that interact with an

external environment

  • Example: A mechanism which controls the

access of clients to some shared resources

Introduction to Hybrid Systems – p.9/21

slide-25
SLIDE 25

Discrete Systems

  • Main difference between Control Theory and

Computer Science

  • Control Theory:
  • State variables are physical magnitudes

(e.g. temperature)

  • Interaction is done through measurements
  • f physical magnitudes
  • Computer Science:
  • State variables are non-numerical values

(e.g. “ready”, “waiting”)

  • Interaction via messages and events such as

“request” or “release”

Introduction to Hybrid Systems – p.9/21

slide-26
SLIDE 26

Discrete Systems: How to Model?

  • State-transition dynamics: For each state and

input event, it defines what is the next state

Introduction to Hybrid Systems – p.10/21

slide-27
SLIDE 27

Discrete Systems: How to Model?

  • State-transition dynamics: For each state and

input event, it defines what is the next state

  • Small state-space: It can be explicitly written in a

table

  • Larger systems are described using two methods:
  • Composition, where interacting sub-systems

are described separately

  • Implicit (symbolic) description (e.g. using

programming formalisms)

Introduction to Hybrid Systems – p.10/21

slide-28
SLIDE 28

Discrete vs. Continuous Systems

The state space of a discrete system is much smaller than that of a continuous one

Introduction to Hybrid Systems – p.11/21

slide-29
SLIDE 29

Discrete vs. Continuous Systems

The state space of a discrete system is much smaller than that of a continuous one

  • Are Discrete systems easier to analyse than

Continuous systems?

Introduction to Hybrid Systems – p.11/21

slide-30
SLIDE 30

Discrete vs. Continuous Systems

The state space of a discrete system is much smaller than that of a continuous one

  • Are Discrete systems easier to analyse than

Continuous systems? Not Always!

Introduction to Hybrid Systems – p.11/21

slide-31
SLIDE 31

Discrete vs. Continuous Systems

The state space of a discrete system is much smaller than that of a continuous one

  • D.S. are defined on impoverish mathematical

domains: Analysis and synthesis are more difficult

  • Examples:
  • ✂✁
✄ ☎

defined over the reals: Simple solution using division and subtraction

  • Finding whether there is a Boolean vector

satisfying a formula in propositional logic, is an NP-hard problem: We need to explore all possible vectors!

Introduction to Hybrid Systems – p.11/21

slide-32
SLIDE 32

Discrete vs. Continuous Systems

The state space of a discrete system is much smaller than that of a continuous one

  • D.S. are defined on impoverish mathematical

domains: Analysis and synthesis are more difficult

  • Examples:
  • In C.S.
✄ ✂✁

: Knowledge about the trajectories by inspecting

  • In D.S.: No “holistic” way to capture the global

behaviour of the systems. Sometimes, need to explore all the possible trajectories.

Introduction to Hybrid Systems – p.11/21

slide-33
SLIDE 33

Overview of the presentation

  • Continuous models
  • Discrete systems
  • Hybrid automata
  • Verification
  • Discussion

Introduction to Hybrid Systems – p.12/21

slide-34
SLIDE 34

Hybrid Automata

  • Hybrid automata are a good formalism for

modelling

  • The continuous “modes” of operation, and
  • The discrete switches between such modes
  • They are a generalisation of a well-established

formalism: Timed Automata

Introduction to Hybrid Systems – p.13/21

slide-35
SLIDE 35

Hybrid Automata: Examples

  • Frictionless movement of a particle in a bounded

interval

✂☎✄ ✂ ✆ ✝ ✞

subject to elastic collisions at the endpoints of the interval

✟ ✠ ✟ ✡ ☛ ☞ ✌ ☞

Introduction to Hybrid Systems – p.14/21

slide-36
SLIDE 36

Hybrid Automata: Examples

  • Frictionless movement of a particle in a bounded

interval

✂☎✄ ✂ ✆ ✝ ✞

subject to elastic collisions at the endpoints of the interval

✟ ✠ ✟ ✡ ☛ ☞ ✌ ☞ ✠ ☛ ✡
✟ ✡ ☛ ☛ ✁ ✡ ✌ ☛ ✟ ✡ ☞ ✂ ✟ ✡ ✌ ☞

Introduction to Hybrid Systems – p.14/21

slide-37
SLIDE 37

Hybrid Automata: Examples

  • A heating system with external On/Off commands
✠ ✟ ✡
✟ ✠ ✟ ✡ ✌ ✟ ✁✄✂ ✁☎

Introduction to Hybrid Systems – p.14/21

slide-38
SLIDE 38

Hybrid Automata: Examples

  • A heating system with a thermostat

guard reset invariant dynamics label

✂ ☎
✆✞✝
  • ✟✡✠
☎ ✁✄✂
✠ ☛✌☞ ✍✏✎ ✍✏✑ ✍✏✒ ✓ ✔✖✕ ✔✖✕ ✔✗ ✔✗ ✍ ✘ ✙ ✚✜✛ ✢

Introduction to Hybrid Systems – p.14/21

slide-39
SLIDE 39

Hybrid Automata: Examples

  • A heating system with a thermostat

label invariant dynamics guard reset

✂ ☎
✆✞✝
  • ✟✡✠
☎ ✁ ✂
✠ ☛✌☞

Introduction to Hybrid Systems – p.14/21

slide-40
SLIDE 40

Overview of the presentation

  • Continuous models
  • Discrete systems
  • Hybrid automata
  • Verification
  • Discussion

Introduction to Hybrid Systems – p.15/21

slide-41
SLIDE 41

Verification: Motivation

  • How to build correct complex systems?

Introduction to Hybrid Systems – p.16/21

slide-42
SLIDE 42

Verification: Motivation

  • How to build correct complex systems?
  • Synthesis (from the specification)

Introduction to Hybrid Systems – p.16/21

slide-43
SLIDE 43

Verification: Motivation

  • How to build correct complex systems?
  • Synthesis (from the specification)
  • Build them and then
  • Test
  • Simulate

Introduction to Hybrid Systems – p.16/21

slide-44
SLIDE 44

Verification: Motivation

  • How to build correct complex systems?
  • Synthesis (from the specification)
  • Build them and then
  • Test
  • Simulate
  • Alternative: Formal verification

Introduction to Hybrid Systems – p.16/21

slide-45
SLIDE 45

What is Verification?

  • Instance:
  • : Program (e.g. Hw circuit, communication

protocol, distributed system, C program, Real-time system, hybrid automata)

: Specification

  • Question:
  • Does
  • satisfies

?

Introduction to Hybrid Systems – p.17/21

slide-46
SLIDE 46

What is Verification?

  • Instance:
  • : Program (e.g. Hw circuit, communication

protocol, distributed system, C program, Real-time system, hybrid automata)

: Specification

  • Question:
  • Does
  • satisfies

?

  • Example:
  • : Thermostat

: The temperature remains always between

  • and

Introduction to Hybrid Systems – p.17/21

slide-47
SLIDE 47

Verification of Discrete Systems: Methodology

  • Modelling formalisms: Based on interacting

automata and other variants of transition systems

Introduction to Hybrid Systems – p.18/21

slide-48
SLIDE 48

Verification of Discrete Systems: Methodology

  • Modelling formalisms: Based on interacting

automata and other variants of transition systems

  • Formalisms for specifying systems requirements:

Automata, regular expressions or formulae in temporal logic

Introduction to Hybrid Systems – p.18/21

slide-49
SLIDE 49

Verification of Discrete Systems: Methodology

  • Modelling formalisms: Based on interacting

automata and other variants of transition systems

  • Formalisms for specifying systems requirements:

Automata, regular expressions or formulae in temporal logic

  • Methods to verify that a controller, composed with

its environment, generates only acceptable behaviours

  • Algorithmic: Explore the paths in the transition

graph

  • Deductive: Try to prove some claims about all

system behaviours

Introduction to Hybrid Systems – p.18/21

slide-50
SLIDE 50

Overview of the presentation

  • Continuous models
  • Discrete systems
  • Hybrid automata
  • Verification
  • Discussion

Introduction to Hybrid Systems – p.19/21

slide-51
SLIDE 51

Discussion

  • Many natural phenomena and industrial

applications are hybrid by nature (continuous + discrete behaviours)

  • Hybrid systems are studied by mathematicians,

computer scientists and control theoreticians

  • Hybrid automata are a good formalism for

modelling hybrid systems

  • A lot of work is still to be done for verifying and

synthesising hybrid systems!

Introduction to Hybrid Systems – p.20/21

slide-52
SLIDE 52

MUITO OBRIGADO!

Introduction to Hybrid Systems – p.21/21