Modelling and analyzing resources in timed systems Patricia - - PowerPoint PPT Presentation

modelling and analyzing resources in timed systems
SMART_READER_LITE
LIVE PREVIEW

Modelling and analyzing resources in timed systems Patricia - - PowerPoint PPT Presentation

Modelling and analyzing resources in timed systems Patricia Bouyer-Decitre LSV, CNRS & ENS Cachan, France 1/45 Introduction Outline 1. Introduction 2. Modelling and optimizing resources in timed systems 3. Managing resources 4.


slide-1
SLIDE 1

Modelling and analyzing resources in timed systems

Patricia Bouyer-Decitre

LSV, CNRS & ENS Cachan, France

1/45

slide-2
SLIDE 2

Introduction

Outline

  • 1. Introduction
  • 2. Modelling and optimizing resources in timed systems
  • 3. Managing resources
  • 4. Conclusion

2/45

slide-3
SLIDE 3

Introduction

A starting example

3/45

slide-4
SLIDE 4

Introduction

Natural questions

Can I reach Pontivy from Oxford? What is the minimal time to reach Pontivy from Oxford? What is the minimal fuel consumption to reach Pontivy from Oxford? What if there is an unexpected event? Can I use my computer all the way?

4/45

slide-5
SLIDE 5

Introduction

A first model of the system

Oxford Pontivy Dover Calais Paris London Stansted Nantes Poole St Malo

5/45

slide-6
SLIDE 6

Introduction

Can I reach Pontivy from Oxford?

Oxford Pontivy Dover Calais Paris London Stansted Nantes Poole St Malo

This is a reachability question in a finite graph: Yes, I can!

5/45

slide-7
SLIDE 7

Introduction

A second model of the system

Oxford Pontivy Dover Calais Paris London Stansted Nantes Poole St Malo

x:=0 10≤x≤12 14≤x≤15 x:=0 27≤x≤30 x:=0 9 ≤ x ≤ 1 2 x : = 21≤x≤24 x=27 x:=0 x=3 x:=0 1 7 ≤ x ≤ 2 1 x : = 3 ≤ x ≤ 6 x : = 2 7 ≤ x ≤ 3 2 3 ≤ x ≤ 6 x : = x = 2 4 x:=0 9≤x≤15 x:=0 x=13 x:=0 12≤x≤15 x=17 x:=0 x=6 x:=0 1 2 ≤ x ≤ 1 4 6/45

slide-8
SLIDE 8

Introduction

How long will that take?

Oxford Pontivy Dover Calais Paris London Stansted Nantes Poole St Malo

x:=0 10≤x≤12 14≤x≤15 x:=0 27≤x≤30 x:=0 9 ≤ x ≤ 1 2 x : = 21≤x≤24 x=27 x:=0 x=3 x:=0 1 7 ≤ x ≤ 2 1 x : = 3 ≤ x ≤ 6 x : = 2 7 ≤ x ≤ 3 2 3 ≤ x ≤ 6 x : = x = 2 4 x:=0 9≤x≤15 x:=0 x=13 x:=0 12≤x≤15 x=17 x:=0 x=6 x:=0 1 2 ≤ x ≤ 1 4

It is a reachability (and optimization) question in a timed automaton: at least 350mn = 5h50mn!

6/45

slide-9
SLIDE 9

Introduction

An example of a timed automaton

safe alarm repairing failsafe problem, x:=0 repair, x≤15

y : =

delayed, y:=0

15≤x≤16

repair

2≤y∧x≤56 y:=0

done, 22≤y≤25

7/45

slide-10
SLIDE 10

Introduction

An example of a timed automaton

safe alarm repairing failsafe problem, x:=0 repair, x≤15

y : =

delayed, y:=0

15≤x≤16

repair

2≤y∧x≤56 y:=0

done, 22≤y≤25

safe

x y

7/45

slide-11
SLIDE 11

Introduction

An example of a timed automaton

safe alarm repairing failsafe problem, x:=0 repair, x≤15

y : =

delayed, y:=0

15≤x≤16

repair

2≤y∧x≤56 y:=0

done, 22≤y≤25

safe

23

− →

safe

x

23

y

23

7/45

slide-12
SLIDE 12

Introduction

An example of a timed automaton

safe alarm repairing failsafe problem, x:=0 repair, x≤15

y : =

delayed, y:=0

15≤x≤16

repair

2≤y∧x≤56 y:=0

done, 22≤y≤25

safe

23

− →

safe

problem

− − − − − →

alarm

x

23

y

23 23

7/45

slide-13
SLIDE 13

Introduction

An example of a timed automaton

safe alarm repairing failsafe problem, x:=0 repair, x≤15

y : =

delayed, y:=0

15≤x≤16

repair

2≤y∧x≤56 y:=0

done, 22≤y≤25

safe

23

− →

safe

problem

− − − − − →

alarm

15.6

− − →

alarm

x

23 15.6

y

23 23 38.6

7/45

slide-14
SLIDE 14

Introduction

An example of a timed automaton

safe alarm repairing failsafe problem, x:=0 repair, x≤15

y : =

delayed, y:=0

15≤x≤16

repair

2≤y∧x≤56 y:=0

done, 22≤y≤25

safe

23

− →

safe

problem

− − − − − →

alarm

15.6

− − →

alarm

delayed

− − − − − →

failsafe

x

23 15.6 15.6 ⋅⋅⋅

y

23 23 38.6 failsafe ⋅⋅⋅ 15.6

7/45

slide-15
SLIDE 15

Introduction

An example of a timed automaton

safe alarm repairing failsafe problem, x:=0 repair, x≤15

y : =

delayed, y:=0

15≤x≤16

repair

2≤y∧x≤56 y:=0

done, 22≤y≤25

safe

23

− →

safe

problem

− − − − − →

alarm

15.6

− − →

alarm

delayed

− − − − − →

failsafe

x

23 15.6 15.6 ⋅⋅⋅

y

23 23 38.6 failsafe

2.3

− − →

failsafe ⋅⋅⋅ 15.6 17.9 2.3

7/45

slide-16
SLIDE 16

Introduction

An example of a timed automaton

safe alarm repairing failsafe problem, x:=0 repair, x≤15

y : =

delayed, y:=0

15≤x≤16

repair

2≤y∧x≤56 y:=0

done, 22≤y≤25

safe

23

− →

safe

problem

− − − − − →

alarm

15.6

− − →

alarm

delayed

− − − − − →

failsafe

x

23 15.6 15.6 ⋅⋅⋅

y

23 23 38.6 failsafe

2.3

− − →

failsafe

repair

− − − − →

repairing ⋅⋅⋅ 15.6 17.9 17.9 2.3

7/45

slide-17
SLIDE 17

Introduction

An example of a timed automaton

safe alarm repairing failsafe problem, x:=0 repair, x≤15

y : =

delayed, y:=0

15≤x≤16

repair

2≤y∧x≤56 y:=0

done, 22≤y≤25

safe

23

− →

safe

problem

− − − − − →

alarm

15.6

− − →

alarm

delayed

− − − − − →

failsafe

x

23 15.6 15.6 ⋅⋅⋅

y

23 23 38.6 failsafe

2.3

− − →

failsafe

repair

− − − − →

repairing

22.1

− − →

repairing ⋅⋅⋅ 15.6 17.9 17.9 40 2.3 22.1

7/45

slide-18
SLIDE 18

Introduction

An example of a timed automaton

safe alarm repairing failsafe problem, x:=0 repair, x≤15

y : =

delayed, y:=0

15≤x≤16

repair

2≤y∧x≤56 y:=0

done, 22≤y≤25

safe

23

− →

safe

problem

− − − − − →

alarm

15.6

− − →

alarm

delayed

− − − − − →

failsafe

x

23 15.6 15.6 ⋅⋅⋅

y

23 23 38.6 failsafe

2.3

− − →

failsafe

repair

− − − − →

repairing

22.1

− − →

repairing

done

− − − →

safe ⋅⋅⋅ 15.6 17.9 17.9 40 40 2.3 22.1 22.1

7/45

slide-19
SLIDE 19

Introduction

Timed automata

[AD90] Alur, Dill. Automata for modeling real-time systems (ICALP’90). [CY92] Courcoubetis, Yannakakis. Minimum and maximum delay problems in real-time systems (Formal Methods in System Design).

Theorem [AD90,CY92]

The (time-optimal) reachability problem is decidable (and PSPACE-complete) for timed automata.

8/45

slide-20
SLIDE 20

Introduction

Timed automata

[AD90] Alur, Dill. Automata for modeling real-time systems (ICALP’90). [CY92] Courcoubetis, Yannakakis. Minimum and maximum delay problems in real-time systems (Formal Methods in System Design).

Theorem [AD90,CY92]

The (time-optimal) reachability problem is decidable (and PSPACE-complete) for timed automata.

timed automaton

finite bisimulation

large (but finite) automaton (region automaton)

8/45

slide-21
SLIDE 21

Introduction

The region abstraction

y x 1 2 3 1 2 3

9/45

slide-22
SLIDE 22

Introduction

The region abstraction

y x 1 2 3 1 2 3

“compatibility” between regions and constraints

9/45

slide-23
SLIDE 23

Introduction

The region abstraction

y x 1 2 3 1 2 3 ∙ ∙

“compatibility” between regions and constraints “compatibility” between regions and time elapsing

9/45

slide-24
SLIDE 24

Introduction

The region abstraction

y x 1 2 3 1 2 3 ∙ ∙

“compatibility” between regions and constraints “compatibility” between regions and time elapsing

9/45

slide-25
SLIDE 25

Introduction

The region abstraction

y x 1 2 3 1 2 3

“compatibility” between regions and constraints “compatibility” between regions and time elapsing an equivalence of finite index a time-abstract bisimulation

9/45

slide-26
SLIDE 26

Introduction

The region abstraction

time elapsing reset to 0

10/45

slide-27
SLIDE 27

Modelling and optimizing resources in timed systems

Outline

  • 1. Introduction
  • 2. Modelling and optimizing resources in timed systems
  • 3. Managing resources
  • 4. Conclusion

11/45

slide-28
SLIDE 28

Modelling and optimizing resources in timed systems

Modelling resources in timed systems

System resources might be relevant and even crucial information

12/45

slide-29
SLIDE 29

Modelling and optimizing resources in timed systems

Modelling resources in timed systems

System resources might be relevant and even crucial information

energy consumption, memory usage, price to pay, bandwidth, ...

12/45

slide-30
SLIDE 30

Modelling and optimizing resources in timed systems

Modelling resources in timed systems

System resources might be relevant and even crucial information

energy consumption, memory usage, price to pay, bandwidth, ...

timed automata are not powerful enough!

12/45

slide-31
SLIDE 31

Modelling and optimizing resources in timed systems

Modelling resources in timed systems

System resources might be relevant and even crucial information

energy consumption, memory usage, price to pay, bandwidth, ...

timed automata are not powerful enough! A possible solution: use hybrid automata

12/45

slide-32
SLIDE 32

Modelling and optimizing resources in timed systems

Modelling resources in timed systems

System resources might be relevant and even crucial information

energy consumption, memory usage, price to pay, bandwidth, ...

timed automata are not powerful enough! A possible solution: use hybrid automata

The thermostat example

Off ˙ T=−0.5T (T≥18) On ˙ T=2.25−0.5T (T≤22) T≤19 T≥21

12/45

slide-33
SLIDE 33

Modelling and optimizing resources in timed systems

Modelling resources in timed systems

System resources might be relevant and even crucial information

energy consumption, memory usage, price to pay, bandwidth, ...

timed automata are not powerful enough! A possible solution: use hybrid automata

The thermostat example

Off ˙ T=−0.5T (T≥18) On ˙ T=2.25−0.5T (T≤22) T≤19 T≥21 22 18 21 19 2 4 6 8 10 time

12/45

slide-34
SLIDE 34

Modelling and optimizing resources in timed systems

Modelling resources in timed systems

[HKPV95] Henzinger, Kopke, Puri, Varaiya. What’s decidable wbout hybrid automata? (SToC’95).

System resources might be relevant and even crucial information

energy consumption, memory usage, price to pay, bandwidth, ...

timed automata are not powerful enough! A possible solution: use hybrid automata

Theorem [HKPV95]

The reachability problem is undecidable in hybrid automata.

12/45

slide-35
SLIDE 35

Modelling and optimizing resources in timed systems

Modelling resources in timed systems

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

System resources might be relevant and even crucial information

energy consumption, memory usage, price to pay, bandwidth, ...

timed automata are not powerful enough! A possible solution: use hybrid automata

Theorem [HKPV95]

The reachability problem is undecidable in hybrid automata. An alternative: weighted/priced timed automata [ALP01,BFH+01] hybrid variables do not constrain the system hybrid variables are observer variables

12/45

slide-36
SLIDE 36

Modelling and optimizing resources in timed systems

A third model of the system

Oxford Pontivy Dover Calais Paris

+2

London

+2

Stansted Nantes Poole St Malo

+3 +3 +3 +3 +3 +3 +3 +3 +2 +2 +7 +1 +2 x:=0 10≤x≤12 14≤x≤15 x:=0 27≤x≤30 x:=0 9 ≤ x ≤ 1 2 x : = 21≤x≤24 x=27 x:=0 x=3 x:=0 1 7 ≤ x ≤ 2 1 x : = 3 ≤ x ≤ 6 x : = 2 7 ≤ x ≤ 3 2 3 ≤ x ≤ 6 x : = x = 2 4 x:=0 9≤x≤15 x:=0 x=13 x:=0 12≤x≤15 x=17 x:=0 x=6 x:=0 1 2 ≤ x ≤ 1 4 13/45

slide-37
SLIDE 37

Modelling and optimizing resources in timed systems

How much fuel will I use?

Oxford Pontivy Dover Calais Paris

+2

London

+2

Stansted Nantes Poole St Malo

+3 +3 +3 +3 +3 +3 +3 +3 +2 +2 +7 +1 +2 x:=0 10≤x≤12 14≤x≤15 x:=0 27≤x≤30 x:=0 9 ≤ x ≤ 1 2 x : = 21≤x≤24 x=27 x:=0 x=3 x:=0 1 7 ≤ x ≤ 2 1 x : = 3 ≤ x ≤ 6 x : = 2 7 ≤ x ≤ 3 2 3 ≤ x ≤ 6 x : = x = 2 4 x:=0 9≤x≤15 x:=0 x=13 x:=0 12≤x≤15 x=17 x:=0 x=6 x:=0 1 2 ≤ x ≤ 1 4

It is a quantitative (optimization) problem in a priced timed automaton: at least 68 anti-planet units!

13/45

slide-38
SLIDE 38

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

14/45

slide-39
SLIDE 39

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

ℓ0

1.3

− − → ℓ0

c

− − → ℓ1

u

− − → ℓ3

0.7

− − − → ℓ3

c

− − → x 1.3 1.3 1.3 2 y 1.3 0.7

14/45

slide-40
SLIDE 40

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

ℓ0

1.3

− − → ℓ0

c

− − → ℓ1

u

− − → ℓ3

0.7

− − − → ℓ3

c

− − → x 1.3 1.3 1.3 2 y 1.3 0.7 cost :

14/45

slide-41
SLIDE 41

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

ℓ0

1.3

− − → ℓ0

c

− − → ℓ1

u

− − → ℓ3

0.7

− − − → ℓ3

c

− − → x 1.3 1.3 1.3 2 y 1.3 0.7 cost : 6.5

14/45

slide-42
SLIDE 42

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

ℓ0

1.3

− − → ℓ0

c

− − → ℓ1

u

− − → ℓ3

0.7

− − − → ℓ3

c

− − → x 1.3 1.3 1.3 2 y 1.3 0.7 cost : 6.5 +

14/45

slide-43
SLIDE 43

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

ℓ0

1.3

− − → ℓ0

c

− − → ℓ1

u

− − → ℓ3

0.7

− − − → ℓ3

c

− − → x 1.3 1.3 1.3 2 y 1.3 0.7 cost : 6.5 + +

14/45

slide-44
SLIDE 44

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

ℓ0

1.3

− − → ℓ0

c

− − → ℓ1

u

− − → ℓ3

0.7

− − − → ℓ3

c

− − → x 1.3 1.3 1.3 2 y 1.3 0.7 cost : 6.5 + + + 0.7

14/45

slide-45
SLIDE 45

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

ℓ0

1.3

− − → ℓ0

c

− − → ℓ1

u

− − → ℓ3

0.7

− − − → ℓ3

c

− − → x 1.3 1.3 1.3 2 y 1.3 0.7 cost : 6.5 + + + 0.7 + 7

14/45

slide-46
SLIDE 46

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

ℓ0

1.3

− − → ℓ0

c

− − → ℓ1

u

− − → ℓ3

0.7

− − − → ℓ3

c

− − → x 1.3 1.3 1.3 2 y 1.3 0.7 cost : 6.5 + + + 0.7 + 7 = 14.2

14/45

slide-47
SLIDE 47

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost for reaching?

14/45

slide-48
SLIDE 48

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost for reaching? 5t + 10(2 − t) + 1

14/45

slide-49
SLIDE 49

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost for reaching? 5t + 10(2 − t) + 1 , 5t + (2 − t) + 7

14/45

slide-50
SLIDE 50

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost for reaching? min ( 5t + 10(2 − t) + 1 , 5t + (2 − t) + 7 )

14/45

slide-51
SLIDE 51

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost for reaching? inf

0≤t≤2 min ( 5t + 10(2 − t) + 1 , 5t + (2 − t) + 7 ) = 9

14/45

slide-52
SLIDE 52

Modelling and optimizing resources in timed systems

Weighted/priced timed automata [ALP01,BFH+01]

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01).

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost for reaching? inf

0≤t≤2 min ( 5t + 10(2 − t) + 1 , 5t + (2 − t) + 7 ) = 9

strategy: leave immediately ℓ0, go to ℓ3, and wait there 2 t.u.

14/45

slide-53
SLIDE 53

Modelling and optimizing resources in timed systems

The region abstraction is not fine enough

time elapsing reset to 0

15/45

slide-54
SLIDE 54

Modelling and optimizing resources in timed systems

The corner-point abstraction

3 3 7 7

16/45

slide-55
SLIDE 55

Modelling and optimizing resources in timed systems

The corner-point abstraction

3 3 7 7 We can somehow discretize the behaviours...

16/45

slide-56
SLIDE 56

Modelling and optimizing resources in timed systems

From timed to discrete behaviours

Optimal reachability as a linear programming problem

17/45

slide-57
SLIDE 57

Modelling and optimizing resources in timed systems

From timed to discrete behaviours

Optimal reachability as a linear programming problem

t1 t2 t3 t4 t5 ⋅⋅⋅

17/45

slide-58
SLIDE 58

Modelling and optimizing resources in timed systems

From timed to discrete behaviours

Optimal reachability as a linear programming problem

t1 t2 t3 t4 t5 ⋅⋅⋅ 8 < : t1+t2≤2 x≤2

17/45

slide-59
SLIDE 59

Modelling and optimizing resources in timed systems

From timed to discrete behaviours

Optimal reachability as a linear programming problem

t1 t2 t3 t4 t5 ⋅⋅⋅ 8 < : t1+t2≤2 t2+t3+t4≥5 x≤2 y:=0 y≥5

17/45

slide-60
SLIDE 60

Modelling and optimizing resources in timed systems

From timed to discrete behaviours

Optimal reachability as a linear programming problem

t1 t2 t3 t4 t5 ⋅⋅⋅ 8 < : t1+t2≤2 t2+t3+t4≥5 x≤2 y:=0 y≥5

Lemma

Let Z be a bounded zone and f be a function f : (t1, ..., tn) →

n

X

i=1

citi + c well-defined on Z. Then infZ f is obtained on the border of Z with integer coordinates.

17/45

slide-61
SLIDE 61

Modelling and optimizing resources in timed systems

From timed to discrete behaviours

Optimal reachability as a linear programming problem

t1 t2 t3 t4 t5 ⋅⋅⋅ 8 < : t1+t2≤2 t2+t3+t4≥5 x≤2 y:=0 y≥5

Lemma

Let Z be a bounded zone and f be a function f : (t1, ..., tn) →

n

X

i=1

citi + c well-defined on Z. Then infZ f is obtained on the border of Z with integer coordinates.

for every finite path 휋 in 풜, there exists a path Π in 풜cp such that cost(Π) ≤ cost(휋)

[Π is a “corner-point projection” of 휋]

17/45

slide-62
SLIDE 62

Modelling and optimizing resources in timed systems

From discrete to timed behaviours

Approximation of abstract paths: For any path Π of 풜cp ,

18/45

slide-63
SLIDE 63

Modelling and optimizing resources in timed systems

From discrete to timed behaviours

Approximation of abstract paths: For any path Π of 풜cp , for any 휀 > 0,

18/45

slide-64
SLIDE 64

Modelling and optimizing resources in timed systems

From discrete to timed behaviours

Approximation of abstract paths: For any path Π of 풜cp , for any 휀 > 0, there exists a path 휋휀 of 풜 s.t. ∥Π − 휋휀∥∞ < 휀

18/45

slide-65
SLIDE 65

Modelling and optimizing resources in timed systems

From discrete to timed behaviours

Approximation of abstract paths: For any path Π of 풜cp , for any 휀 > 0, there exists a path 휋휀 of 풜 s.t. ∥Π − 휋휀∥∞ < 휀 For every 휂 > 0, there exists 휀 > 0 s.t. ∥Π − 휋휀∥∞ < 휀 ⇒ ∣cost(Π) − cost(휋휀)∣ < 휂

18/45

slide-66
SLIDE 66

Modelling and optimizing resources in timed systems

Optimal-cost reachability

[ALP01] Alur, La Torre, Pappas. Optimal paths in weighted timed automata (HSCC’01). [BFH+01] Behrmann, Fehnker, Hune, Larsen, Pettersson, Romijn, Vaandrager. Minimum-cost reachability in priced timed automata (HSCC’01). [BBBR07] Bouyer, Brihaye, Bruy` ere, Raskin. On the optimal reachability problem (Formal Methods in System Design).

Theorem [ALP01,BFH+01,BBBR07]

The optimal-cost reachability problem is decidable (and PSPACE-complete) in (priced) timed automata.

19/45

slide-67
SLIDE 67

Modelling and optimizing resources in timed systems

Going further 1: mean-cost optimization

[BBL08] Bouyer, Brinksma, Larsen. Optimal infinite scheduling for multi-priced timed automata (Formal Methods in System Designs).

Low

˙ C=p ˙ R=g

High

(x≤D) ˙ C=P ˙ R=G

att?

x:=0 x = D

att?,x:=0

Op

att!

z:=0 z≥S

20/45

slide-68
SLIDE 68

Modelling and optimizing resources in timed systems

Going further 1: mean-cost optimization

[BBL08] Bouyer, Brinksma, Larsen. Optimal infinite scheduling for multi-priced timed automata (Formal Methods in System Designs).

Low

˙ C=p ˙ R=g

High

(x≤D) ˙ C=P ˙ R=G

att?

x:=0 x = D

att?,x:=0

Op

att!

z:=0 z≥S

compute optimal infinite schedules that minimize mean-cost(휋) = lim sup

n→+∞

cost(휋n) reward(휋n)

20/45

slide-69
SLIDE 69

Modelling and optimizing resources in timed systems

Going further 1: mean-cost optimization

[BBL08] Bouyer, Brinksma, Larsen. Optimal infinite scheduling for multi-priced timed automata (Formal Methods in System Designs).

Low

˙ C=p ˙ R=g

High

(x≤D) ˙ C=P ˙ R=G

att?

x:=0 x = D

att?,x:=0

Op

att!

z:=0 z≥S

compute optimal infinite schedules that minimize mean-cost(휋) = lim sup

n→+∞

cost(휋n) reward(휋n)

Time

1 1 2 1 H L M2 H L M1 4 8 12 16 O

Schedule with ratio ≈1.455 Time

1 1 1 1 H L M2 H L M1 4 8 12 16 O

Schedule with ratio ≈1.478

20/45

slide-70
SLIDE 70

Modelling and optimizing resources in timed systems

Going further 1: mean-cost optimization

[BBL08] Bouyer, Brinksma, Larsen. Optimal infinite scheduling for multi-priced timed automata (Formal Methods in System Designs).

Low

˙ C=p ˙ R=g

High

(x≤D) ˙ C=P ˙ R=G

att?

x:=0 x = D

att?,x:=0

Op

att!

z:=0 z≥S

compute optimal infinite schedules that minimize mean-cost(휋) = lim sup

n→+∞

cost(휋n) reward(휋n)

Theorem [BBL08]

The mean-cost optimization problem is decidable (and PSPACE-complete) for priced timed automata. the corner-point abstraction can be used

20/45

slide-71
SLIDE 71

Modelling and optimizing resources in timed systems

From timed to discrete behaviours

Finite behaviours: based on the following property

Lemma

Let Z be a bounded zone and f be a function f : (t1, ..., tn) → Pn

i=1 citi + c

Pn

i=1 riti + r

well-defined on Z. Then infZ f is obtained on the border of Z with integer coordinates.

21/45

slide-72
SLIDE 72

Modelling and optimizing resources in timed systems

From timed to discrete behaviours

Finite behaviours: based on the following property

Lemma

Let Z be a bounded zone and f be a function f : (t1, ..., tn) → Pn

i=1 citi + c

Pn

i=1 riti + r

well-defined on Z. Then infZ f is obtained on the border of Z with integer coordinates.

for every finite path 휋 in 풜, there exists a path Π in 풜cp s.t. mean-cost(Π) ≤ mean-cost(휋)

21/45

slide-73
SLIDE 73

Modelling and optimizing resources in timed systems

From timed to discrete behaviours

Finite behaviours: based on the following property

Lemma

Let Z be a bounded zone and f be a function f : (t1, ..., tn) → Pn

i=1 citi + c

Pn

i=1 riti + r

well-defined on Z. Then infZ f is obtained on the border of Z with integer coordinates.

for every finite path 휋 in 풜, there exists a path Π in 풜cp s.t. mean-cost(Π) ≤ mean-cost(휋) Infinite behaviours: decompose each sufficiently long projection into cycles: The (acyclic) linear part will be negligible!

21/45

slide-74
SLIDE 74

Modelling and optimizing resources in timed systems

From timed to discrete behaviours

Finite behaviours: based on the following property

Lemma

Let Z be a bounded zone and f be a function f : (t1, ..., tn) → Pn

i=1 citi + c

Pn

i=1 riti + r

well-defined on Z. Then infZ f is obtained on the border of Z with integer coordinates.

for every finite path 휋 in 풜, there exists a path Π in 풜cp s.t. mean-cost(Π) ≤ mean-cost(휋) Infinite behaviours: decompose each sufficiently long projection into cycles: The (acyclic) linear part will be negligible! the optimal cycle of 풜cp is better than any infinite path of 풜!

21/45

slide-75
SLIDE 75

Modelling and optimizing resources in timed systems

From discrete to timed behaviours

Approximation of abstract paths: For any path Π of 풜cp ,

22/45

slide-76
SLIDE 76

Modelling and optimizing resources in timed systems

From discrete to timed behaviours

Approximation of abstract paths: For any path Π of 풜cp , for any 휀 > 0,

22/45

slide-77
SLIDE 77

Modelling and optimizing resources in timed systems

From discrete to timed behaviours

Approximation of abstract paths: For any path Π of 풜cp , for any 휀 > 0, there exists a path 휋휀 of 풜 s.t. ∥Π − 휋휀∥∞ < 휀

22/45

slide-78
SLIDE 78

Modelling and optimizing resources in timed systems

From discrete to timed behaviours

Approximation of abstract paths: For any path Π of 풜cp , for any 휀 > 0, there exists a path 휋휀 of 풜 s.t. ∥Π − 휋휀∥∞ < 휀 For every 휂 > 0, there exists 휀 > 0 s.t. ∥Π − 휋휀∥∞ < 휀 ⇒ ∣mean-cost(Π) − mean-cost(휋휀)∣ < 휂

22/45

slide-79
SLIDE 79

Modelling and optimizing resources in timed systems

Going further 2: concavely-priced cost functions

[JT08] Judzi´ nski, Trivedi. Concavely-priced timed automata (FORMATS’08).

A general abstract framework for quantitative timed systems

Theorem [JT08]

Optimal cost in concavely-priced timed automata is computable, if we restrict to quasi-concave price functions. For the following cost functions, the (decision) problem is even PSPACE-complete:

  • ptimal-time and optimal-cost reachability;
  • ptimal discrete discounted cost;
  • ptimal average-time and average-cost;
  • ptimal mean-cost.

a slight extension of corner-point abstraction can be used

23/45

slide-80
SLIDE 80

Modelling and optimizing resources in timed systems

Going further 3: discounted-time cost optimization

[FL08] Fahrenberg, Larsen. Discount-optimal infinite runs in priced timed automata (INFINITY’08).

Low +9 Med

(x≤3) +5

High

(x≤3) +2 x=3,x:=0

deg

x=3

deg

z≥2,z:=0

att

+1 z≥2,x,z:=0

att

+2

Globally, (z≤8)

24/45

slide-81
SLIDE 81

Modelling and optimizing resources in timed systems

Going further 3: discounted-time cost optimization

[FL08] Fahrenberg, Larsen. Discount-optimal infinite runs in priced timed automata (INFINITY’08).

Low +9 Med

(x≤3) +5

High

(x≤3) +2 x=3,x:=0

deg

x=3

deg

z≥2,z:=0

att

+1 z≥2,x,z:=0

att

+2

Globally, (z≤8)

compute optimal infinite schedules that minimize discounted cost over time

24/45

slide-82
SLIDE 82

Modelling and optimizing resources in timed systems

Going further 3: discounted-time cost optimization

[FL08] Fahrenberg, Larsen. Discount-optimal infinite runs in priced timed automata (INFINITY’08).

Low +9 Med

(x≤3) +5

High

(x≤3) +2 x=3,x:=0

deg

x=3

deg

z≥2,z:=0

att

+1 z≥2,x,z:=0

att

+2

Globally, (z≤8)

compute optimal infinite schedules that minimize discounted-cost휆(휋) = ∑

n≥0

휆Tn ∫ 휏n+1

t=0

휆tcost(ℓn) dt+휆Tn+1cost(ℓn

an+1

− − → ℓn+1) if 휋 = (ℓ0, v0)

휏1,a1

− − − → (ℓ1, v1)

휏2,a2

− − − → ⋅ ⋅ ⋅ and Tn = ∑

i≤n 휏i

24/45

slide-83
SLIDE 83

Modelling and optimizing resources in timed systems

Going further 3: discounted-time cost optimization

[FL08] Fahrenberg, Larsen. Discount-optimal infinite runs in priced timed automata (INFINITY’08).

Low +9 Med

(x≤3) +5

High

(x≤3) +2 x=3,x:=0

deg

x=3

deg

z≥2,z:=0

att

+1 z≥2,x,z:=0

att

+2

Globally, (z≤8)

compute optimal infinite schedules that minimize discounted cost over time

24/45

slide-84
SLIDE 84

Modelling and optimizing resources in timed systems

Going further 3: discounted-time cost optimization

[FL08] Fahrenberg, Larsen. Discount-optimal infinite runs in priced timed automata (INFINITY’08).

Low +9 Med

(x≤3) +5

High

(x≤3) +2 x=3,x:=0

deg

x=3

deg

z≥2,z:=0

att

+1 z≥2,x,z:=0

att

+2

Globally, (z≤8)

compute optimal infinite schedules that minimize discounted cost over time

3 6 7 9

if 휆 = e−1, the discounted cost of that infinite schedule is ≈ 2.16

24/45

slide-85
SLIDE 85

Modelling and optimizing resources in timed systems

Going further 3: discounted-time cost optimization

[FL08] Fahrenberg, Larsen. Discount-optimal infinite runs in priced timed automata (INFINITY’08).

Low +9 Med

(x≤3) +5

High

(x≤3) +2 x=3,x:=0

deg

x=3

deg

z≥2,z:=0

att

+1 z≥2,x,z:=0

att

+2

Globally, (z≤8)

compute optimal infinite schedules that minimize discounted cost over time

Theorem [FL08]

The optimal discounted cost is computable in EXPTIME in priced timed automata. the corner-point abstraction can be used

24/45

slide-86
SLIDE 86

Modelling and optimizing resources in timed systems

A fourth model of the system What if there is an unexpected event?

Oxford Pontivy Dover Calais Paris

+2

London

+2

Stansted Nantes Poole St Malo

+3 +3 +3 +3 +3 +3 +3 +3 +2 +2 +7 +1 +2 x:=0 10≤x≤12 14≤x≤15 x:=0 27≤x≤30 x:=0 9 ≤ x ≤ 1 2 x : = 21≤x≤24 x=27 x:=0 x=3 x:=0 1 7 ≤ x ≤ 2 1 x : = 3 ≤ x ≤ 6 x : = 2 7 ≤ x ≤ 3 2 3 ≤ x ≤ 6 x : = x = 2 4 x:=0 9≤x≤15 x:=0 x=13 x:=0 12≤x≤15 x=17 x:=0 x=6 x:=0 1 2 ≤ x ≤ 1 4 25/45

slide-87
SLIDE 87

Modelling and optimizing resources in timed systems

A fourth model of the system What if there is an unexpected event?

Oxford Pontivy Dover Calais Paris

+2

London

+2

Stansted Nantes Poole St Malo

+3 +3 +3 +3 +3 +3 +3 +3 +2 +2 +7 +1 +2 x:=0 10≤x≤12 14≤x≤15 x:=0 27≤x≤30 x:=0 9 ≤ x ≤ 1 2 x : = 21≤x≤24 x=27 x:=0 x=3 x:=0 1 7 ≤ x ≤ 2 1 x : = 3 ≤ x ≤ 6 x : = 2 7 ≤ x ≤ 3 2 3 ≤ x ≤ 6 x : = x = 2 4 x:=0 9≤x≤15 x:=0 x=13 x:=0 12≤x≤15 x=17 x:=0 x=6 x:=0 1 2 ≤ x ≤ 1 4

Flight cancelled! On strike!!!

25/45

slide-88
SLIDE 88

Modelling and optimizing resources in timed systems

A fourth model of the system What if there is an unexpected event?

Oxford Pontivy Dover Calais Paris

+2

London

+2

Stansted Nantes Poole St Malo

+3 +3 +3 +3 +3 +3 +3 +3 +2 +2 +7 +1 +2 x:=0 10≤x≤12 14≤x≤15 x:=0 27≤x≤30 x:=0 9 ≤ x ≤ 1 2 x : = 21≤x≤24 x=27 x:=0 x=3 x:=0 1 7 ≤ x ≤ 2 1 x : = 3 ≤ x ≤ 6 x : = 2 7 ≤ x ≤ 3 2 3 ≤ x ≤ 6 x : = x = 2 4 x:=0 9≤x≤15 x:=0 x=13 x:=0 12≤x≤15 x=17 x:=0 x=6 x:=0 1 2 ≤ x ≤ 1 4

Flight cancelled! On strike!!!

modelled as timed games

25/45

slide-89
SLIDE 89

Modelling and optimizing resources in timed systems

A simple example of timed game

ℓ0 ℓ1 (y=0) ℓ2 ℓ3

  • x≤2,c,y:=0

u u x=2,c x=2,c

26/45

slide-90
SLIDE 90

Modelling and optimizing resources in timed systems

A simple example of timed game

ℓ0 ℓ1 (y=0) ℓ2 ℓ3

  • x≤2,c,y:=0

u u x=2,c x=2,c

26/45

slide-91
SLIDE 91

Modelling and optimizing resources in timed systems

Another example

ℓ0 (x≤2) ℓ1 ℓ2 ℓ3

  • x≤1

x<1 x<1,x:=0 x≤1 x≥2 x≥1

27/45

slide-92
SLIDE 92

Modelling and optimizing resources in timed systems

Decidability of timed games

[AMPS98] Asarin, Maler, Pnueli, Sifakis. Controller synthesis for timed automata (SSC’98). [HK99] Henzinger, Kopke. Discrete-time control for rectangular hybrid automata (Theoretical Computer Science).

Theorem [AMPS98,HK99]

Safety and reachability control in timed automata are decidable and EXPTIME-complete.

28/45

slide-93
SLIDE 93

Modelling and optimizing resources in timed systems

Decidability of timed games

[AMPS98] Asarin, Maler, Pnueli, Sifakis. Controller synthesis for timed automata (SSC’98). [HK99] Henzinger, Kopke. Discrete-time control for rectangular hybrid automata (Theoretical Computer Science).

Theorem [AMPS98,HK99]

Safety and reachability control in timed automata are decidable and EXPTIME-complete.

(the attractor is computable...)

28/45

slide-94
SLIDE 94

Modelling and optimizing resources in timed systems

Decidability of timed games

[AMPS98] Asarin, Maler, Pnueli, Sifakis. Controller synthesis for timed automata (SSC’98). [HK99] Henzinger, Kopke. Discrete-time control for rectangular hybrid automata (Theoretical Computer Science).

Theorem [AMPS98,HK99]

Safety and reachability control in timed automata are decidable and EXPTIME-complete.

(the attractor is computable...)

classical regions are sufficient for solving such problems

28/45

slide-95
SLIDE 95

Modelling and optimizing resources in timed systems

Decidability of timed games

[AM99] Asarin, Maler. As soon as possible: time optimal control for timed automata (HSCC’99). [BHPR07] Brihaye, Henzinger, Prabhu, Raskin. Minimum-time reachability in timed games (ICALP’07). [JT07] Jurdzin´ nski, Trivedi. Reachability-time games on timed automata (ICALP’07).

Theorem [AMPS98,HK99]

Safety and reachability control in timed automata are decidable and EXPTIME-complete.

(the attractor is computable...)

classical regions are sufficient for solving such problems

Theorem [AM99,BHPR07,JT07]

Optimal-time reachability timed games are decidable and EXPTIME-complete.

28/45

slide-96
SLIDE 96

Modelling and optimizing resources in timed systems

Decidability of timed games

[BCD+07] Behrmann, Cougnard, David, Fleury, Larsen, Lime. Uppaal-Tiga: Time for playing games! (CAV’07).

Theorem [AMPS98,HK99]

Safety and reachability control in timed automata are decidable and EXPTIME-complete.

(the attractor is computable...)

classical regions are sufficient for solving such problems

Theorem [AM99,BHPR07,JT07]

Optimal-time reachability timed games are decidable and EXPTIME-complete. let’s play with Uppaal Tiga! [BCD+07]

28/45

slide-97
SLIDE 97

Modelling and optimizing resources in timed systems

Back to the simple example

ℓ0 ℓ1 (y=0) ℓ2 ℓ3

  • x≤2,c,y:=0

u u x=2,c x=2,c

29/45

slide-98
SLIDE 98

Modelling and optimizing resources in timed systems

Back to the simple example

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

29/45

slide-99
SLIDE 99

Modelling and optimizing resources in timed systems

Back to the simple example

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost we can ensure while reaching?

29/45

slide-100
SLIDE 100

Modelling and optimizing resources in timed systems

Back to the simple example

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost we can ensure while reaching? 5t + 10(2 − t) + 1

29/45

slide-101
SLIDE 101

Modelling and optimizing resources in timed systems

Back to the simple example

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost we can ensure while reaching? 5t + 10(2 − t) + 1 , 5t + (2 − t) + 7

29/45

slide-102
SLIDE 102

Modelling and optimizing resources in timed systems

Back to the simple example

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost we can ensure while reaching? max ( 5t + 10(2 − t) + 1 , 5t + (2 − t) + 7 )

29/45

slide-103
SLIDE 103

Modelling and optimizing resources in timed systems

Back to the simple example

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost we can ensure while reaching? inf

0≤t≤2 max ( 5t + 10(2 − t) + 1 , 5t + (2 − t) + 7 ) = 14 + 1

3

29/45

slide-104
SLIDE 104

Modelling and optimizing resources in timed systems

Back to the simple example

ℓ0 +5 ℓ1 (y=0) ℓ2 +10 ℓ3 +1

  • x≤2,c,y:=0

u u x=2,c +1 x=2,c +7

Question: what is the optimal cost we can ensure while reaching? inf

0≤t≤2 max ( 5t + 10(2 − t) + 1 , 5t + (2 − t) + 7 ) = 14 + 1

3 strategy: wait in ℓ0, and when t = 4

3, go to ℓ1

29/45

slide-105
SLIDE 105

Modelling and optimizing resources in timed systems

Optimal reachability in priced timed games

[LMM02] La Torre, Mukhopadhyay, Murano. Optimal-reachability and control for acyclic weighted timed automata (TCS@02). [ABM04] Alur, Bernardsky, Madhusudan. Optimal reachability in weighted timed games (ICALP’04). [BCFL04] Bouyer, Cassez, Fleury, Larsen. Optimal strategies in priced timed game automata (FSTTCS’04).

This topic has been fairly hot these last couple of years... e.g. [LMM02,ABM04,BCFL04]

30/45

slide-106
SLIDE 106

Modelling and optimizing resources in timed systems

Optimal reachability in priced timed games

[BBR05] Brihaye, Bruy` ere, Raskin. On optimal timed strategies (FORMATS’05). [BBM06] Bouyer, Brihaye, Markey. Improved undecidability results on weighted timed automata (Information Processing Letters).

This topic has been fairly hot these last couple of years... e.g. [LMM02,ABM04,BCFL04]

Theorem [BBR05,BBM06]

Optimal timed games are undecidable, as soon as automata have three clocks or more.

30/45

slide-107
SLIDE 107

Modelling and optimizing resources in timed systems

Optimal reachability in priced timed games

[BBR05] Brihaye, Bruy` ere, Raskin. On optimal timed strategies (FORMATS’05). [BBM06] Bouyer, Brihaye, Markey. Improved undecidability results on weighted timed automata (Information Processing Letters). [BLMR06] Bouyer, Larsen, Markey, Rasmussen. Almost-optimal strategies in one-clock priced timed automata (FSTTCS’06).

This topic has been fairly hot these last couple of years... e.g. [LMM02,ABM04,BCFL04]

Theorem [BBR05,BBM06]

Optimal timed games are undecidable, as soon as automata have three clocks or more.

Theorem [BLMR06]

Turn-based optimal timed games are decidable in 3EXPTIME when automata have a single clock. They are PTIME-hard.

30/45

slide-108
SLIDE 108

Modelling and optimizing resources in timed systems

The positive side

[BLMR06] Bouyer, Larsen, Markey, Rasmussen. Almost-optimal strategies in one-clock priced timed automata (FSTTCS’06).

Theorem [BLMR06]

Turn-based optimal timed games are decidable in 3EXPTIME when automata have a single clock. They are PTIME-hard. Key: resetting the clock somehow resets the history...

31/45

slide-109
SLIDE 109

Modelling and optimizing resources in timed systems

The positive side

[BLMR06] Bouyer, Larsen, Markey, Rasmussen. Almost-optimal strategies in one-clock priced timed automata (FSTTCS’06).

Theorem [BLMR06]

Turn-based optimal timed games are decidable in 3EXPTIME when automata have a single clock. They are PTIME-hard. Key: resetting the clock somehow resets the history... Memoryless strategies can be non-optimal...

ℓ0 +2 (x≤1) ℓ1 +1

  • x=1

x<1 x:=0 x>0

31/45

slide-110
SLIDE 110

Modelling and optimizing resources in timed systems

The positive side

[BLMR06] Bouyer, Larsen, Markey, Rasmussen. Almost-optimal strategies in one-clock priced timed automata (FSTTCS’06).

Theorem [BLMR06]

Turn-based optimal timed games are decidable in 3EXPTIME when automata have a single clock. They are PTIME-hard. Key: resetting the clock somehow resets the history... Memoryless strategies can be non-optimal...

ℓ0 +2 (x≤1) ℓ1 +1

  • x=1

x<1 x:=0 x>0

However, by unfolding and removing one by one the locations,we can synthesize memoryless almost-optimal winning strategies.

31/45

slide-111
SLIDE 111

Modelling and optimizing resources in timed systems

The positive side

[BLMR06] Bouyer, Larsen, Markey, Rasmussen. Almost-optimal strategies in one-clock priced timed automata (FSTTCS’06).

Theorem [BLMR06]

Turn-based optimal timed games are decidable in 3EXPTIME when automata have a single clock. They are PTIME-hard. Key: resetting the clock somehow resets the history... Memoryless strategies can be non-optimal...

ℓ0 +2 (x≤1) ℓ1 +1

  • x=1

x<1 x:=0 x>0

However, by unfolding and removing one by one the locations,we can synthesize memoryless almost-optimal winning strategies. Rather involved proof of correctness for a simple algorithm.

31/45

slide-112
SLIDE 112

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Given two clocks x and y, we can check whether y = 2x.

32/45

slide-113
SLIDE 113

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Given two clocks x and y, we can check whether y = 2x.

1 x=1,x:=0 y=1,y:=0 y=1,y:=0 z=1,z:=0 z:=0

The cost is increased by x0

Add+(x) 1 x=1,x:=0 y=1,y:=0 y=1,y:=0 z=1,z:=0 z:=0

The cost is increased by 1−x0

Add−(x)

32/45

slide-114
SLIDE 114

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Given two clocks x and y, we can check whether y = 2x.

Add−(x) Add−(x) Add+(y)

  • z=0

+1 Add+(x) Add+(x) Add−(y)

  • z=0

+2 z:=0 z:=0

32/45

slide-115
SLIDE 115

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Given two clocks x and y, we can check whether y = 2x.

Add−(x) Add−(x) Add+(y)

  • z=0

+1 Add+(x) Add+(x) Add−(y)

  • z=0

+2 z:=0 z:=0

In , cost = 2x0 + (1 − y0) + 2

32/45

slide-116
SLIDE 116

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Given two clocks x and y, we can check whether y = 2x.

Add−(x) Add−(x) Add+(y)

  • z=0

+1 Add+(x) Add+(x) Add−(y)

  • z=0

+2 z:=0 z:=0

In , cost = 2x0 + (1 − y0) + 2 In , cost = 2(1 − x0) + y0 + 1

32/45

slide-117
SLIDE 117

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Given two clocks x and y, we can check whether y = 2x.

Add−(x) Add−(x) Add+(y)

  • z=0

+1 Add+(x) Add+(x) Add−(y)

  • z=0

+2 z:=0 z:=0

In , cost = 2x0 + (1 − y0) + 2 In , cost = 2(1 − x0) + y0 + 1 if y0 < 2x0, player 2 chooses the first branch: cost > 3

32/45

slide-118
SLIDE 118

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Given two clocks x and y, we can check whether y = 2x.

Add−(x) Add−(x) Add+(y)

  • z=0

+1 Add+(x) Add+(x) Add−(y)

  • z=0

+2 z:=0 z:=0

In , cost = 2x0 + (1 − y0) + 2 In , cost = 2(1 − x0) + y0 + 1 if y0 < 2x0, player 2 chooses the first branch: cost > 3 if y0 > 2x0, player 2 chooses the second branch: cost > 3

32/45

slide-119
SLIDE 119

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Given two clocks x and y, we can check whether y = 2x.

Add−(x) Add−(x) Add+(y)

  • z=0

+1 Add+(x) Add+(x) Add−(y)

  • z=0

+2 z:=0 z:=0

In , cost = 2x0 + (1 − y0) + 2 In , cost = 2(1 − x0) + y0 + 1 if y0 < 2x0, player 2 chooses the first branch: cost > 3 if y0 > 2x0, player 2 chooses the second branch: cost > 3 if y0 = 2x0, in both branches, cost = 3

32/45

slide-120
SLIDE 120

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Given two clocks x and y, we can check whether y = 2x.

Add−(x) Add−(x) Add+(y)

  • z=0

+1 Add+(x) Add+(x) Add−(y)

  • z=0

+2 z:=0 z:=0

In , cost = 2x0 + (1 − y0) + 2 In , cost = 2(1 − x0) + y0 + 1 if y0 < 2x0, player 2 chooses the first branch: cost > 3 if y0 > 2x0, player 2 chooses the second branch: cost > 3 if y0 = 2x0, in both branches, cost = 3 Player 1 has a winning strategy with cost ≤ 3 iff y0 = 2x0

32/45

slide-121
SLIDE 121

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Player 1 will simulate a two-counter machine: each instruction is encoded as a module; the values c1 and c2 of the counters are encoded by the values of two clocks: x = 1 2c1 and y = 1 3c2 when entering the corresponding module.

33/45

slide-122
SLIDE 122

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Player 1 will simulate a two-counter machine: each instruction is encoded as a module; the values c1 and c2 of the counters are encoded by the values of two clocks: x = 1 2c1 and y = 1 3c2 when entering the corresponding module. The two-counter machine has an halting computation iff player 1 has a winning strategy to ensure a cost no more than 3.

33/45

slide-123
SLIDE 123

Modelling and optimizing resources in timed systems

The negative side: why is that hard?

Player 1 will simulate a two-counter machine: each instruction is encoded as a module; the values c1 and c2 of the counters are encoded by the values of two clocks: x = 1 2c1 and y = 1 3c2 when entering the corresponding module. The two-counter machine has an halting computation iff player 1 has a winning strategy to ensure a cost no more than 3.

Globally, (x≤1,y≤1,u≤1)

B B @ x= 1

2c

y= 1

2d

z=★ 1 C C A u:=0 z:=0 x=1,x:=0 ∨ y=1,y:=0 x=1,x:=0 ∨ y=1,y:=0 (u=0) B B @ x= 1

2c

y= 1

2d

z=훼 1 C C A u=1,u:=0 Testy(x=2z)

33/45

slide-124
SLIDE 124

Managing resources

Outline

  • 1. Introduction
  • 2. Modelling and optimizing resources in timed systems
  • 3. Managing resources
  • 4. Conclusion

34/45

slide-125
SLIDE 125

Managing resources

A fifth model of the system

Oxford

+5

Pontivy

+5

Dover

−2

Calais

−2

Paris London

+5

Stansted

+5

Nantes

+5

Poole

−2

St Malo

−2 −2 −2 −2 −2 −2 −2 −2 −2 +5 +5 −2 −2 −2 x:=0 10≤x≤12 14≤x≤15 x:=0 27≤x≤30 x:=0 9 ≤ x ≤ 1 2 x : = 21≤x≤24 x=27 x:=0 x=3 x:=0 1 7 ≤ x ≤ 2 1 x : = 3 ≤ x ≤ 6 x : = 2 7 ≤ x ≤ 3 2 3 ≤ x ≤ 6 x : = x = 2 4 x:=0 9≤x≤15 x:=0 x=13 x:=0 12≤x≤15 x=17 x:=0 x=6 x:=0 1 2 ≤ x ≤ 1 4 35/45

slide-126
SLIDE 126

Managing resources

Can I work with my computer all the way?

Oxford +5 Pontivy +5 Dover −2 Calais −2 Paris London +5 Stansted +5 Nantes +5 Poole −2 St Malo −2 −2 −2 −2 −2 −2 −2 −2 −2 +5 +5 −2 −2 −2 x:=0 10≤x≤12 14≤x≤15 x:=0 27≤x≤30 x:=0 9≤x≤12 x:=0 21≤x≤24 x=27 x:=0 x=3 x:=0 17≤x≤21 x:=0 3≤x≤6 x:=0 27≤x≤32 3≤x≤6 x:=0 x=24 x:=0 9≤x≤15 x:=0 x=13 x:=0 12≤x≤15 x=17 x:=0 x=6 x:=0 12≤x≤14

35/45

slide-127
SLIDE 127

Managing resources

Can I work with my computer all the way?

Oxford +5 Pontivy +5 Dover −2 Calais −2 Paris London +5 Stansted +5 Nantes +5 Poole −2 St Malo −2 −2 −2 −2 −2 −2 −2 −2 −2 +5 +5 −2 −2 −2 x:=0 10≤x≤12 14≤x≤15 x:=0 27≤x≤30 x:=0 9≤x≤12 x:=0 21≤x≤24 x=27 x:=0 x=3 x:=0 17≤x≤21 x:=0 3≤x≤6 x:=0 27≤x≤32 3≤x≤6 x:=0 x=24 x:=0 9≤x≤15 x:=0 x=13 x:=0 12≤x≤15 x=17 x:=0 x=6 x:=0 12≤x≤14

battery charge 40 20 2 13 16.5 22.3 45 56 60.4 35/45

slide-128
SLIDE 128

Managing resources

Can I work with my computer all the way?

battery charge 40 20 2 13 16.5 22.3 45 56 60.4

Energy is not only consumed, but can be regained. the aim is to continuously satisfy some energy constraints.

35/45

slide-129
SLIDE 129

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

36/45

slide-130
SLIDE 130

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem: can we stay above 0?

36/45

slide-131
SLIDE 131

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem: can we stay above 0?

36/45

slide-132
SLIDE 132

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem: can we stay above 0?

36/45

slide-133
SLIDE 133

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem: can we stay above 0?

36/45

slide-134
SLIDE 134

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem: can we stay above 0?

36/45

slide-135
SLIDE 135

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem: can we stay above 0?

36/45

slide-136
SLIDE 136

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-137
SLIDE 137

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-138
SLIDE 138

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-139
SLIDE 139

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-140
SLIDE 140

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-141
SLIDE 141

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-142
SLIDE 142

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-143
SLIDE 143

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

lost! Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-144
SLIDE 144

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-145
SLIDE 145

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-146
SLIDE 146

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

lost! Lower-bound problem Lower-upper-bound problem: can we stay within bounds?

36/45

slide-147
SLIDE 147

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower-bound problem Lower-upper-bound problem Lower-weak-upper-bound problem: can we “weakly” stay within bounds?

36/45

slide-148
SLIDE 148

Managing resources

An example of resource management

ℓ0 −3 ℓ1 +6 ℓ2 −6 x=1 x:=0

Globally (x≤1)

1 2 3 4 1

Lower–bound problem

  • L

Lower-upper-bound problem

  • L+U

Lower-weak-upper-bound problem

  • L+W

36/45

slide-149
SLIDE 149

Managing resources

Only partial results so far [BFLMS08]

[BFLMS08] Bouyer, Fahrenberg, Larsen, Markey, Srba. Infinite runs in weighted timed automata with energy constraints (FORMATS’08).

0 clock!

L L+W L+U

  • exist. problem
  • univ. problem

games ∈ PTIME ∈ PTIME ∈ UP ∩ co-UP PTIME-hard ∈ PTIME ∈ PTIME ∈ NP ∩ co-NP PTIME-hard ∈ PSPACE NP-hard ∈ PTIME EXPTIME-c.

37/45

slide-150
SLIDE 150

Managing resources

Only partial results so far [BFLMS08]

[BFLMS08] Bouyer, Fahrenberg, Larsen, Markey, Srba. Infinite runs in weighted timed automata with energy constraints (FORMATS’08).

1 clock

L L+W L+U

  • exist. problem
  • univ. problem

games ∈ PTIME ∈ PTIME ? ∈ PTIME ∈ PTIME ? ? ? undecidable

37/45

slide-151
SLIDE 151

Managing resources

Only partial results so far [BFLMS08]

[BFLMS08] Bouyer, Fahrenberg, Larsen, Markey, Srba. Infinite runs in weighted timed automata with energy constraints (FORMATS’08).

n clocks

L L+W L+U

  • exist. problem
  • univ. problem

games ? ? ? ? ? ? ? ? undecidable

37/45

slide-152
SLIDE 152

Managing resources

Relation with mean-payoff games

Definition

Mean-payoff games: in a weighted game graph, does there exists a strategy s.t. the mean-cost of any play is nonnegative?

38/45

slide-153
SLIDE 153

Managing resources

Relation with mean-payoff games

Definition

Mean-payoff games: in a weighted game graph, does there exists a strategy s.t. the mean-cost of any play is nonnegative? Lemma L-games and L+W-games are determined, and memoryless strategies are sufficient to win.

38/45

slide-154
SLIDE 154

Managing resources

Relation with mean-payoff games

Definition

Mean-payoff games: in a weighted game graph, does there exists a strategy s.t. the mean-cost of any play is nonnegative? Lemma L-games and L+W-games are determined, and memoryless strategies are sufficient to win. from mean-payoff games to L-games or L+W-games: play in the same game graph G with initial credit −M ≥ 0 (where M is the sum

  • f negative costs in G).

38/45

slide-155
SLIDE 155

Managing resources

Relation with mean-payoff games

Definition

Mean-payoff games: in a weighted game graph, does there exists a strategy s.t. the mean-cost of any play is nonnegative? Lemma L-games and L+W-games are determined, and memoryless strategies are sufficient to win. from mean-payoff games to L-games or L+W-games: play in the same game graph G with initial credit −M ≥ 0 (where M is the sum

  • f negative costs in G).

from L-games to mean-payoff games: transform the game as follows:

p p

to initial state

  • 38/45
slide-156
SLIDE 156

Managing resources

Single-clock L+U-games

Theorem

The single-clock L+U-games are undecidable.

39/45

slide-157
SLIDE 157

Managing resources

Single-clock L+U-games

Theorem

The single-clock L+U-games are undecidable. We encode the behaviour of a two-counter machine: each instruction is encoded as a module; the values c1 and c2 of the counters are encoded by the energy level e = 5 − 1 2c1 ⋅ 3c2 when entering the corresponding module.

39/45

slide-158
SLIDE 158

Managing resources

Single-clock L+U-games

Theorem

The single-clock L+U-games are undecidable. We encode the behaviour of a two-counter machine: each instruction is encoded as a module; the values c1 and c2 of the counters are encoded by the energy level e = 5 − 1 2c1 ⋅ 3c2 when entering the corresponding module. There is an infinite execution in the two-counter machine iff there is a strategy in the single-clock timed game under which the energy level remains between 0 and 5.

39/45

slide-159
SLIDE 159

Managing resources

Single-clock L+U-games

Theorem

The single-clock L+U-games are undecidable. We encode the behaviour of a two-counter machine: each instruction is encoded as a module; the values c1 and c2 of the counters are encoded by the energy level e = 5 − 1 2c1 ⋅ 3c2 when entering the corresponding module. There is an infinite execution in the two-counter machine iff there is a strategy in the single-clock timed game under which the energy level remains between 0 and 5.

  • We present a generic construction

for incrementing/decrementing the counters.

39/45

slide-160
SLIDE 160

Managing resources

Generic module for incrementing/decrementing

m −6 m1 −6 +5

module ok

m2 +30 m3 +30 −5

module ok

n −훼 x:=0 x:=0 x=1 x=1 x:=0 x=1

40/45

slide-161
SLIDE 161

Managing resources

Generic module for incrementing/decrementing

m −6 m1 −6 +5

module ok

m2 +30 m3 +30 −5

module ok

n −훼 x:=0 x:=0 x=1 x=1 x:=0 x=1

energy

x 1 5−e

40/45

slide-162
SLIDE 162

Managing resources

Generic module for incrementing/decrementing

m −6 m1 −6 +5

module ok

m2 +30 m3 +30 −5

module ok

n −훼 x:=0 x:=0 x=1 x=1 x:=0 x=1

energy

x 1 5−e

40/45

slide-163
SLIDE 163

Managing resources

Generic module for incrementing/decrementing

m −6 m1 −6 +5

module ok

m2 +30 m3 +30 −5

module ok

n −훼 x:=0 x:=0 x=1 x=1 x:=0 x=1

energy

x 1 5−e

5−e 6 40/45

slide-164
SLIDE 164

Managing resources

Generic module for incrementing/decrementing

m −6 m1 −6 +5

module ok

m2 +30 m3 +30 −5

module ok

n −훼 x:=0 x:=0 x=1 x=1 x:=0 x=1

energy

x 1 5−e

5−e 6 40/45

slide-165
SLIDE 165

Managing resources

Generic module for incrementing/decrementing

m −6 m1 −6 +5

module ok

m2 +30 m3 +30 −5

module ok

n −훼 x:=0 x:=0 x=1 x=1 x:=0 x=1

energy

x 1 5−e

5−e 6 40/45

slide-166
SLIDE 166

Managing resources

Generic module for incrementing/decrementing

m −6 m1 −6 +5

module ok

m2 +30 m3 +30 −5

module ok

n −훼 x:=0 x:=0 x=1 x=1 x:=0 x=1

energy

x 1 5−e

5−e 6

5− 훼e

6 40/45

slide-167
SLIDE 167

Managing resources

Generic module for incrementing/decrementing

m −6 m1 −6 +5

module ok

m2 +30 m3 +30 −5

module ok

n −훼 x:=0 x:=0 x=1 x=1 x:=0 x=1

energy

x 1 5−e

5−e 6

5− 훼e

6

훼=3: increment c1 훼=2: increment c2 훼=12: decrement c1 훼=18: decrement c2

40/45

slide-168
SLIDE 168

Conclusion

Outline

  • 1. Introduction
  • 2. Modelling and optimizing resources in timed systems
  • 3. Managing resources
  • 4. Conclusion

41/45

slide-169
SLIDE 169

Conclusion

Some applications

[BBHM05] Behrmann, Brinksma, Hendriks, Mader. Scheduling lacquer production by reachability analysis - A case study (IFAC’05). [AKM03] Abdedda¨ ım, Kerbaa, Maler. Task graph scheduling using timed automata (IPDPS’03). [CJL+09] Cassez, Jessen, Larsen, Raskin, Reynier. Automatic synthesis of robust and optimal controllers - An industrial case study (HSCC’09).

Tools Uppaal (timed automata) Uppaal Cora (priced timed automata) Uppaal Tiga (timed games) Case studies A lacquer production scheduling problem [BBHM05] Task graph scheduling problems [AKM03]

An oil pump control problem [CJL+09]

42/45

slide-170
SLIDE 170

Conclusion

Task graph scheduling problems

Compute D×(C×(A+B))+(A+B)+(C×D) using two processors:

P1 (fast):

time + 2 picoseconds × 3 picoseconds energy idle 10 Watt in use 90 Watts

P2 (slow):

time + 5 picoseconds × 7 picoseconds energy idle 20 Watts in use 30 Watts + T1 × T2 × T3 + T4 × T5 + T6 B A D C C D 43/45

slide-171
SLIDE 171

Conclusion

Task graph scheduling problems

Compute D×(C×(A+B))+(A+B)+(C×D) using two processors:

P1 (fast):

time + 2 picoseconds × 3 picoseconds energy idle 10 Watt in use 90 Watts

P2 (slow):

time + 5 picoseconds × 7 picoseconds energy idle 20 Watts in use 30 Watts + T1 × T2 × T3 + T4 × T5 + T6 B A D C C D 5 10 15 20 25 P2 P1 Sch1 T2 T3 T5 T6 T1 T4 13 picoseconds 1.37 nanojoules

slide-172
SLIDE 172

Conclusion

Task graph scheduling problems

Compute D×(C×(A+B))+(A+B)+(C×D) using two processors:

P1 (fast):

time + 2 picoseconds × 3 picoseconds energy idle 10 Watt in use 90 Watts

P2 (slow):

time + 5 picoseconds × 7 picoseconds energy idle 20 Watts in use 30 Watts + T1 × T2 × T3 + T4 × T5 + T6 B A D C C D 5 10 15 20 25 P2 P1 Sch1 T2 T3 T5 T6 T1 T4 13 picoseconds 1.37 nanojoules P2 P1 Sch2 T1 T2 T3 T4 T5 T6 12 picoseconds 1.39 nanojoules

slide-173
SLIDE 173

Conclusion

Task graph scheduling problems

Compute D×(C×(A+B))+(A+B)+(C×D) using two processors:

P1 (fast):

time + 2 picoseconds × 3 picoseconds energy idle 10 Watt in use 90 Watts

P2 (slow):

time + 5 picoseconds × 7 picoseconds energy idle 20 Watts in use 30 Watts + T1 × T2 × T3 + T4 × T5 + T6 B A D C C D 5 10 15 20 25 P2 P1 Sch1 T2 T3 T5 T6 T1 T4 13 picoseconds 1.37 nanojoules P2 P1 Sch2 T1 T2 T3 T4 T5 T6 12 picoseconds 1.39 nanojoules P2 P1 Sch3 T1 T2 T3 T4 T5 T6 19 picoseconds 1.32 nanojoules 43/45

slide-174
SLIDE 174

Conclusion

Modelling the task graph scheduling problem

44/45

slide-175
SLIDE 175

Conclusion

Modelling the task graph scheduling problem

Processors

P1:

idle

+

(x≤2)

×

(x≤3) x:=0

add1

x:=0

mult1

x=2

done1

x=3

done1

P2:

idle

+

(y≤5)

×

(y≤7) x:=0

add2

x:=0

mult2

y=5

done2

y=7

done2

44/45

slide-176
SLIDE 176

Conclusion

Modelling the task graph scheduling problem

Processors

P1:

idle

+

(x≤2)

×

(x≤3) x:=0

add1

x:=0

mult1

x=2

done1

x=3

done1

P2:

idle

+

(y≤5)

×

(y≤7) x:=0

add2

x:=0

mult2

y=5

done2

y=7

done2

Tasks

T4: t1∧t2

addi

t4:=1

donei

T5: t3

addi

t5:=1

donei

44/45

slide-177
SLIDE 177

Conclusion

Modelling the task graph scheduling problem

Processors

P1:

idle

+

(x≤2)

×

(x≤3) x:=0

add1

x:=0

mult1

x=2

done1

x=3

done1

P2:

idle

+

(y≤5)

×

(y≤7) x:=0

add2

x:=0

mult2

y=5

done2

y=7

done2

Tasks

T4: t1∧t2

addi

t4:=1

donei

T5: t3

addi

t5:=1

donei

Modelling energy

P1: +10 +90 (x≤2) +90 (x≤3) x:=0

add1

x:=0

mult1

x=2

done1

x=3

done1

P2: +20 +30 (y≤5) +30 (y≤7) x:=0

add2

x:=0

mult2

y=5

done2

y=7

done2

44/45

slide-178
SLIDE 178

Conclusion

Modelling the task graph scheduling problem

Processors

P1:

idle

+

(x≤2)

×

(x≤3) x:=0

add1

x:=0

mult1

x=2

done1

x=3

done1

P2:

idle

+

(y≤5)

×

(y≤7) x:=0

add2

x:=0

mult2

y=5

done2

y=7

done2

Tasks

T4: t1∧t2

addi

t4:=1

donei

T5: t3

addi

t5:=1

donei

Modelling energy

P1: +10 +90 (x≤2) +90 (x≤3) x:=0

add1

x:=0

mult1

x=2

done1

x=3

done1

P2: +20 +30 (y≤5) +30 (y≤7) x:=0

add2

x:=0

mult2

y=5

done2

y=7

done2

Modelling uncertainty

P1:

idle

+

(x≤2)

×

(x≤3) x:=0

add1

x:=0

mult1

x≥1

done1

x≥1

done1

P2:

idle

+

(x≤2)

×

(x≤3) x:=0

add2

x:=0

mult2

y≥3

done2

y≥2

done2

44/45

slide-179
SLIDE 179

Conclusion

Conclusion

Priced/weighted timed automata, a model for representing quantitative constraints on timed systems:

useful for modelling resources in timed systems natural (optimization/management) questions have been posed... ... and not all of them have been answered!

45/45

slide-180
SLIDE 180

Conclusion

Conclusion

Priced/weighted timed automata, a model for representing quantitative constraints on timed systems:

useful for modelling resources in timed systems natural (optimization/management) questions have been posed... ... and not all of them have been answered!

Not mentioned here:

all works on model-checking issues (extensions of CTL, LTL) models based on hybrid automata

weighted o-minimal hybrid games [BBC07] weighted strong reset hybrid games [BBJLR07]

various tools have been developed: Uppaal, Uppaal Cora, Uppaal Tiga

45/45

slide-181
SLIDE 181

Conclusion

Conclusion

Priced/weighted timed automata, a model for representing quantitative constraints on timed systems:

useful for modelling resources in timed systems natural (optimization/management) questions have been posed... ... and not all of them have been answered!

Not mentioned here:

all works on model-checking issues (extensions of CTL, LTL) models based on hybrid automata

weighted o-minimal hybrid games [BBC07] weighted strong reset hybrid games [BBJLR07]

various tools have been developed: Uppaal, Uppaal Cora, Uppaal Tiga

Current and further work:

further cost functions (e.g. exponential) computation of approximate optimal values further investigation of safe games + several cost variables? discounted-time optimal games link between discounted-time games and mean-cost games? computation of equilibria ...

45/45