Modeling and Analysis of Hybrid Systems Introduction Prof. Dr. - - PowerPoint PPT Presentation

modeling and analysis of hybrid systems
SMART_READER_LITE
LIVE PREVIEW

Modeling and Analysis of Hybrid Systems Introduction Prof. Dr. - - PowerPoint PPT Presentation

Modeling and Analysis of Hybrid Systems Introduction Prof. Dr. Erika brahm Informatik 2 - Theory of Hybrid Systems RWTH Aachen University SS 2013 brahm - Hybrid Systems 1 / 28 Organizational Lecture: Tuesday 13:15-14:15 in 5056


slide-1
SLIDE 1

Modeling and Analysis of Hybrid Systems

Introduction

  • Prof. Dr. Erika Ábrahám

Informatik 2 - Theory of Hybrid Systems RWTH Aachen University

SS 2013

Ábrahám - Hybrid Systems 1 / 28

slide-2
SLIDE 2

Organizational

Lecture: Tuesday 13:15-14:15 in 5056 Friday 13:15-14:30 in 5056 Exercise: Tuesday 14:15-15:00 in 5056 Exam dates will be chosen by Doodle vote: 1st: 26.07.2013 09:45-12:15 01.08.2013 13:45-16:15 02.08.2013 09:45-12:15 2nd: 18.09.2013 15:45-18:15 19.09.2013 10:45-13:15

Ábrahám - Hybrid Systems 2 / 28

slide-3
SLIDE 3

Learning materials and contact persons

Learning materials available in L2P: Slides Lecture notes Video recordings Some research publications Exercise sheets, solutions Lecture: Erika Ábrahám room: 2U07 (Hauptbau, basement), phone: 0241/80-21242 email: abraham@informatik.rwth-aachen.de Exercise: Xin Chen room: 2U08 (Hauptbau, basement), phone: 0241/80-21243 email: xin.chen@informatik.rwth-aachen.de Further information (topic, evaluations etc.):http: //www-i2.informatik.rwth-aachen.de/i2/hybrid_lecture/

Ábrahám - Hybrid Systems 3 / 28

slide-4
SLIDE 4

Contents

1 Hybrid systems 2 Modeling 3 Specification 4 Analysis

Ábrahám - Hybrid Systems 4 / 28

slide-5
SLIDE 5

Contents

1 Hybrid systems 2 Modeling 3 Specification 4 Analysis

Ábrahám - Hybrid Systems 5 / 28

slide-6
SLIDE 6

“Hybrid”

Wikipedia: “A hybrid is the combination of two or more different things, aimed at achieving a particular objective or goal.”

Ábrahám - Hybrid Systems 6 / 28

slide-7
SLIDE 7

A hybrid rose

Ábrahám - Hybrid Systems 7 / 28

slide-8
SLIDE 8

A hybrid car

Ábrahám - Hybrid Systems 8 / 28

slide-9
SLIDE 9

Hybrid in computer science

discrete continuous

t f(t)

+

Ábrahám - Hybrid Systems 9 / 28

slide-10
SLIDE 10

The discrete part

Ábrahám - Hybrid Systems 10 / 28

slide-11
SLIDE 11

Combined with the continuous part

Ábrahám - Hybrid Systems 11 / 28

slide-12
SLIDE 12

Example: Thermostat

Ábrahám - Hybrid Systems 12 / 28

slide-13
SLIDE 13

Example: Thermostat

Temperature x is controlled by switching a heater on and off x is regulated by a thermostat:

17◦≤ x ≤ 18◦ “heater on” 22◦≤ x ≤ 23◦ “heater off”

Ábrahám - Hybrid Systems 12 / 28

slide-14
SLIDE 14

Example: Thermostat

Temperature x is controlled by switching a heater on and off x is regulated by a thermostat:

17◦≤ x ≤ 18◦ “heater on” 22◦≤ x ≤ 23◦ “heater off”

Continuous: temperature Discrete: switching

Ábrahám - Hybrid Systems 12 / 28

slide-15
SLIDE 15

Example: Thermostat

Temperature x is controlled by switching a heater on and off x is regulated by a thermostat:

17◦≤ x ≤ 18◦ “heater on” 22◦≤ x ≤ 23◦ “heater off”

Continuous: temperature Discrete: switching t x

20 18 17 22 23

t

  • n
  • ff

Ábrahám - Hybrid Systems 12 / 28

slide-16
SLIDE 16

Contents

1 Hybrid systems 2 Modeling 3 Specification 4 Analysis

Ábrahám - Hybrid Systems 13 / 28

slide-17
SLIDE 17

Modeling

Ábrahám - Hybrid Systems 14 / 28

slide-18
SLIDE 18

Modeling

To be able to apply formal (mathematical) methods to a real system, we need a formal model of it. A model never exactly corresponds to the modeled real system. Abstract away unnecessary details.

Ábrahám - Hybrid Systems 14 / 28

slide-19
SLIDE 19

Modeling

To be able to apply formal (mathematical) methods to a real system, we need a formal model of it. A model never exactly corresponds to the modeled real system. Abstract away unnecessary details. What you probably already know: Kripke structures (state transition systems)

Ábrahám - Hybrid Systems 14 / 28

slide-20
SLIDE 20

Modeling

To be able to apply formal (mathematical) methods to a real system, we need a formal model of it. A model never exactly corresponds to the modeled real system. Abstract away unnecessary details. What you probably already know: Kripke structures (state transition systems) What you probably also know: Transition systems

Ábrahám - Hybrid Systems 14 / 28

slide-21
SLIDE 21

Modeling

To be able to apply formal (mathematical) methods to a real system, we need a formal model of it. A model never exactly corresponds to the modeled real system. Abstract away unnecessary details. What you probably already know: Kripke structures (state transition systems) What you probably also know: Transition systems What you perhaps know: Timed automata

Ábrahám - Hybrid Systems 14 / 28

slide-22
SLIDE 22

Example: Timed automaton

q1 x = 0 x ≥ 2, reset(x)

Ábrahám - Hybrid Systems 15 / 28

slide-23
SLIDE 23

Example: Timed automaton

q1 x = 0 x ≥ 2, reset(x) t x 2 3

Ábrahám - Hybrid Systems 15 / 28

slide-24
SLIDE 24

Example: Timed automaton

q2 x ≤ 3 x = 0 x ≥ 2, reset(x)

Ábrahám - Hybrid Systems 16 / 28

slide-25
SLIDE 25

Example: Timed automaton

q2 x ≤ 3 x = 0 x ≥ 2, reset(x) t x 2 3

Ábrahám - Hybrid Systems 16 / 28

slide-26
SLIDE 26

Modeling general hybrid systems: Hybrid automata

Ábrahám - Hybrid Systems 17 / 28

slide-27
SLIDE 27

Modeling general hybrid systems: Hybrid automata

Let’s take again the thermostat as an example.

Ábrahám - Hybrid Systems 17 / 28

slide-28
SLIDE 28

Modeling general hybrid systems: Hybrid automata

Let’s take again the thermostat as an example.

  • n

˙ x = −x + 50 x ≤ 23

  • ff

˙ x = −x x ≥ 17 22 ≤ x ≤ 23 17 ≤ x ≤ 18 x := 20

t x

20 18 17 22 23

t

  • n
  • ff

Ábrahám - Hybrid Systems 17 / 28

slide-29
SLIDE 29

Contents

1 Hybrid systems 2 Modeling 3 Specification 4 Analysis

Ábrahám - Hybrid Systems 18 / 28

slide-30
SLIDE 30

Logic

Ábrahám - Hybrid Systems 19 / 28

slide-31
SLIDE 31

Logic

We want to specify how a hybrid system is expected to behave.

Ábrahám - Hybrid Systems 19 / 28

slide-32
SLIDE 32

Logic

We want to specify how a hybrid system is expected to behave. We are especially interested in safety and liveness.

Ábrahám - Hybrid Systems 19 / 28

slide-33
SLIDE 33

Logic

We want to specify how a hybrid system is expected to behave. We are especially interested in safety and liveness. E.g., we can use the logic TCTL for specification.

Ábrahám - Hybrid Systems 19 / 28

slide-34
SLIDE 34

Logic

We want to specify how a hybrid system is expected to behave. We are especially interested in safety and liveness. E.g., we can use the logic TCTL for specification. In TCTL we can express properties like: “The temperature is always below 20◦C.”

Ábrahám - Hybrid Systems 19 / 28

slide-35
SLIDE 35

Logic

We want to specify how a hybrid system is expected to behave. We are especially interested in safety and liveness. E.g., we can use the logic TCTL for specification. In TCTL we can express properties like: “The temperature is always below 20◦C.” Or “If the temperature is above 20◦C it will get below 20◦C within 5 seconds.”

Ábrahám - Hybrid Systems 19 / 28

slide-36
SLIDE 36

Logic

We want to specify how a hybrid system is expected to behave. We are especially interested in safety and liveness. E.g., we can use the logic TCTL for specification. In TCTL we can express properties like: “The temperature is always below 20◦C.” Or “If the temperature is above 20◦C it will get below 20◦C within 5 seconds.” Or “It is always the case that the temperature will somewhen in the future get above 20◦C.”

Ábrahám - Hybrid Systems 19 / 28

slide-37
SLIDE 37

Contents

1 Hybrid systems 2 Modeling 3 Specification 4 Analysis

Ábrahám - Hybrid Systems 20 / 28

slide-38
SLIDE 38

The analysis of hybrid systems

Ábrahám - Hybrid Systems 21 / 28

slide-39
SLIDE 39

The analysis of hybrid systems

Assume we modeled a hybrid system as a hybrid automaton. Assume we specified a property of the system. Can we prove that the system satisfies the property?

Ábrahám - Hybrid Systems 21 / 28

slide-40
SLIDE 40

The analysis of hybrid systems

Assume we modeled a hybrid system as a hybrid automaton. Assume we specified a property of the system. Can we prove that the system satisfies the property? Well, it depends...

Ábrahám - Hybrid Systems 21 / 28

slide-41
SLIDE 41

The analysis of hybrid systems

Assume we modeled a hybrid system as a hybrid automaton. Assume we specified a property of the system. Can we prove that the system satisfies the property? Well, it depends... ...on the fact if the logic is decidable for the underlying modeling language.

Ábrahám - Hybrid Systems 21 / 28

slide-42
SLIDE 42

The analysis of hybrid systems

Assume we modeled a hybrid system as a hybrid automaton. Assume we specified a property of the system. Can we prove that the system satisfies the property? Well, it depends... ...on the fact if the logic is decidable for the underlying modeling language. We will see for which classes of hybrid automata the reachability question is decidable.

Ábrahám - Hybrid Systems 21 / 28

slide-43
SLIDE 43

The analysis of hybrid systems

Assume we modeled a hybrid system as a hybrid automaton. Assume we specified a property of the system. Can we prove that the system satisfies the property? Well, it depends... ...on the fact if the logic is decidable for the underlying modeling language. We will see for which classes of hybrid automata the reachability question is decidable. We will deal with

(unbounded) reachability for timed automata. (unbounded) reachability for initialized rectangular automata. bounded reachability for linear hybrid automata. reachability approximation for general hybrid automata.

Ábrahám - Hybrid Systems 21 / 28

slide-44
SLIDE 44

Method for timed automata: Finite abstraction

Ábrahám - Hybrid Systems 22 / 28

slide-45
SLIDE 45

Method for timed automata: Finite abstraction

Constructive proof of decidability via finite abstraction:

Ábrahám - Hybrid Systems 22 / 28

slide-46
SLIDE 46

Method for timed automata: Finite abstraction

Constructive proof of decidability via finite abstraction: x y

Ábrahám - Hybrid Systems 22 / 28

slide-47
SLIDE 47

Method for timed automata: Finite abstraction

Constructive proof of decidability via finite abstraction: x y 0 0 1 2 1 2 3 4

Ábrahám - Hybrid Systems 22 / 28

slide-48
SLIDE 48

Method for initialized rectangular automata: Transformation

Ábrahám - Hybrid Systems 23 / 28

slide-49
SLIDE 49

Method for initialized rectangular automata: Transformation

Leading back the proof of decidability to a known problem:

Ábrahám - Hybrid Systems 23 / 28

slide-50
SLIDE 50

Method for initialized rectangular automata: Transformation

Leading back the proof of decidability to a known problem: Timed automaton ↑ Initialized stopwatch automaton ↑ Initialized singular automaton ↑ Initialized rectangular automaton

Ábrahám - Hybrid Systems 23 / 28

slide-51
SLIDE 51

Method for linear hybrid automata: Fixedpoint computation

Ábrahám - Hybrid Systems 24 / 28

slide-52
SLIDE 52

Method for linear hybrid automata: Fixedpoint computation

Forward reachability computation:

Ábrahám - Hybrid Systems 24 / 28

slide-53
SLIDE 53

Method for linear hybrid automata: Fixedpoint computation

Forward reachability computation: Bad states Initial states

Ábrahám - Hybrid Systems 24 / 28

slide-54
SLIDE 54

Method for linear hybrid automata: Fixedpoint computation

Forward reachability computation: Bad states Initial states

Ábrahám - Hybrid Systems 24 / 28

slide-55
SLIDE 55

Method for linear hybrid automata: Fixedpoint computation

Forward reachability computation: Bad states Initial states

Ábrahám - Hybrid Systems 24 / 28

slide-56
SLIDE 56

Method for linear hybrid automata: Fixedpoint computation

Forward reachability computation: Bad states Initial states

Ábrahám - Hybrid Systems 24 / 28

slide-57
SLIDE 57

Method for linear hybrid automata: Fixedpoint computation

Forward reachability computation: Bad states Initial states Note: the method is incomplete

Ábrahám - Hybrid Systems 24 / 28

slide-58
SLIDE 58

Method for linear hybrid automata: Fixedpoint computation

Ábrahám - Hybrid Systems 25 / 28

slide-59
SLIDE 59

Method for linear hybrid automata: Fixedpoint computation

Backward reachability computation:

Ábrahám - Hybrid Systems 25 / 28

slide-60
SLIDE 60

Method for linear hybrid automata: Fixedpoint computation

Backward reachability computation: Initial states Bad states

Ábrahám - Hybrid Systems 25 / 28

slide-61
SLIDE 61

Method for linear hybrid automata: Fixedpoint computation

Backward reachability computation: Initial states Bad states

Ábrahám - Hybrid Systems 25 / 28

slide-62
SLIDE 62

Method for linear hybrid automata: Fixedpoint computation

Backward reachability computation: Initial states Bad states

Ábrahám - Hybrid Systems 25 / 28

slide-63
SLIDE 63

Method for linear hybrid automata: Fixedpoint computation

Backward reachability computation: Initial states Bad states

Ábrahám - Hybrid Systems 25 / 28

slide-64
SLIDE 64

Method for linear hybrid automata: Fixedpoint computation

Backward reachability computation: Initial states Bad states Note: also the backward method is incomplete

Ábrahám - Hybrid Systems 25 / 28

slide-65
SLIDE 65

Method for hybrid automata: Approximation

Ábrahám - Hybrid Systems 26 / 28

slide-66
SLIDE 66

Method for hybrid automata: Approximation

P P

Ábrahám - Hybrid Systems 26 / 28

slide-67
SLIDE 67

Polyhedra (left) and oriented rectangular hulls (right) in reachability computation

Ábrahám - Hybrid Systems 27 / 28

slide-68
SLIDE 68

Zonotopes in reachability computation

Ábrahám - Hybrid Systems 28 / 28