synchronous product generation for controller...

25
TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER OPTIMIZATION Vince Molnár, András Vörös Budapest University Of Technology And Economics Fault Tolerant Systems Research Group

Upload: others

Post on 08-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

SYNCHRONOUS PRODUCT

GENERATION FOR

CONTROLLER OPTIMIZATION

Vince Molnár, András VörösBudapest University Of Technology And Economics

Fault Tolerant Systems Research Group

Page 2: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

SCOPE

• Authors come from model checking

– Qualitative verification of large models

– Special techniques to handle complex systems

• Similar problems in controller optimization

– Similarities between controlled systems and LTL model checking

– Quantitative aspects appear

Can our techniques be used here?

2

Page 3: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

• Motivation

• Symbolic techniques– Decision diagrams

– Saturation

• Synchronous product generation– Symbolic encoding

– Using saturation

• Possible applications– Reachability

– Cheapest path

• Other useful model checking techniques– Temporal logics

– Cheapest (counter)example

3

OUTLINE

Page 4: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

• Motivation

• Symbolic techniques– Decision diagrams

– Saturation

• Synchronous product generation– Symbolic encoding

– Using saturation

• Possible applications– Reachability

– Cheapest path

• Other useful model checking techniques– Temporal logics

– Cheapest (counter)example

4

OUTLINE

Page 5: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

5

MOTIVATION

Controller specification

Process

ControllerController synthesis

Product generation

Synchronous product

OptimizationOften gets very

complicated

Page 6: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

6

MOTIVATION

Controller specification

Process

ControllerController synthesis

Product generation

Synchronous product

Optimization

Save space by on-the-fly generation

Page 7: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

• Motivation

• Symbolic techniques– Decision diagrams

– Saturation

• Synchronous product generation– Symbolic encoding

– Using saturation

• Possible applications– Reachability

– Cheapest path

• Other useful model checking techniques– Temporal logics

– Cheapest (counter)example

7

OUTLINE

Page 8: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

8

MULTI-VALUED DECISION

DIAGRAM

• Derived from decision trees– variables are ordered into levels

0 0 1 0 1 0 1 1

1st variable

2nd variable

3rd variable

terminal constants

Decision tree

1

0 1

01 0

1

0 1 0 1 0 1 0

(0,1,1)→1

Page 9: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

9

MULTI-VALUED DECISION

DIAGRAM

• Derived from decision trees– variables are ordered into levels

• Special reduction rules– in a bottom-up fashion, applying reduction from level-to-levels

• Compact representation of multi valued functions

0 0 1 0 1 0 1 1

Decision tree

1

0 1

01 0

1

0 1 0 1 0 1 0

0 1

0 1

011

1

0

0

MDD

Page 10: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

10

SYMBOLIC ALGORITHM

• Symbolic encoding instead of explicit state representation– Decomposition is needed

• Saturation uses componentwise encoding

map

pin

g

System Model

Component 2

Component 1

Component 3

Page 11: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

SPECIAL ITERATION

• Uses the primarily defined order of the decision diagram variable encoding

• Local exploration in a greedy manner– Efficiently exploits locality of systems

• Exploring global synchronization events if needed

11

System Model

Component 2

Component 1

Component 3 Iteratio

n o

rde

rSaturation explores and generates the state spacerepresentation by a node-to-node transitive closure

algorithm

Page 12: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

• Motivation

• Symbolic techniques– Decision diagrams

– Saturation

• Synchronous product generation– Symbolic encoding

– Using saturation

• Possible applications– Reachability

– Cheapest path

• Other useful model checking techniques– Temporal logics

– Cheapest (counter)example

12

OUTLINE

Page 13: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

COMPOSITE BEHAVIOUR

13

• Controlled system is given as high-level model– Components, events

– Labeled states

• Controller can be specified as:– Temporal logic formula

– Büchi automaton

• Reading labels of states

Composite behaviour

Controller ProcessControl

Response

Page 14: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

COMPOSITE BEHAVIOUR

14

• Controlled system is given as high-level model– Components, events

– Labeled states

• Controller can be specified as:– Temporal logic formula

– Büchi automaton

• Reading labels of states

0

0

1

1Accepted language:

Any word withinfinitely many 0’s

Page 15: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

SYMBOLIC ENCODING

15

How to map components to decision diagram variables?

How to encode transitions?

How to do these efficiently?

Page 16: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

How to map components to decision diagram variables?

• Each component gets its own variable

• The controller automaton gets

an additional one

• Variable ordering?– Controller goes to the bottom level

– Locality can be preserved

SYMBOLIC ENCODING

16

Controlledsystem

Controller

Page 17: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

SYMBOLIC ENCODING

17

How to encode transitions?

• Synchronization is required:– Controller must act based on step of controlled system

– Locality cannot be preserved

• Labels of every local state necessary

• Local transitions does not know unaffected states

• Local global

• Saturation is degraded

• Solution using constrained saturation– Omit synchronization by system state

• Transitions can be freely combined

– Constrain target states

• To legal states

Page 18: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

SYMBOLIC ENCODING

18

How to do these efficiently?

• Constraint for target states– Prevent transitions that lead to illegal states

• Legal states?

Tableau automaton

0

0

1

1

Page 19: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

USING SATURATION

19

How to do these efficiently?

• Constraint for target states– Prevent transitions that lead to illegal states

• Legal states:– Input condition of automaton state is satisfied by system state

– Can be precomputed based on the automaton

– Does not affect locality

• Constrained saturation:– Explores the state space of the product directly

– Constrains explored states to legal states

– Legal states can be characterized without enumerating them

• By evaluating them on the fly

Page 20: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

• Motivation

• Symbolic techniques– Decision diagrams

– Saturation

• Synchronous product generation– Symbolic encoding

– Using saturation

• Possible applications– Reachability

– Cheapest path

• Other useful model checking techniques– Temporal logics

– Cheapest (counter)example

20

OUTLINE

Page 21: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

POSSIBLE APPLICATIONS

21

• Reachability

– Does the controller allow the system to reach a desired state?

– Does it force the system to avoid bad states?

• Shortest path

– What is the cheapest way to reach a state?

– What is the cheapest way to fire an event in the high-level model?

– Cheap in terms of:

• Number of used transitions

• Controller states passed

• Controller transitions

• Feasability of controller sequences

– Can the controller perform a sequence of actions in the system?

– What is the cheapest way to do this?

Page 22: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

• Motivation

• Symbolic techniques– Decision diagrams

– Saturation

• Synchronous product generation– Symbolic encoding

– Using saturation

• Possible applications– Reachability

– Cheapest path

• Other useful model checking techniques– Temporal logics

– Cheapest (counter)example

22

OUTLINE

Page 23: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

MODEL CHECKING TECHNIQUES

23

• Temporal properties

– Describe temporal behavior with logic

– E.g.: Signal alarm whenever a fault is detected

• Model checking

– Exhaustive analysis of possible behaviors regarding the temporal property

– Counterexample if property does not hold, or example where property holds

• Shortest

• Cheapest

• Possible applications:

– Does the controller let the system perform a desired behavior?

– Does the controller force the system to avoid a bad behavior?

– What is the cheapest way to perform a certain behavior?

Page 24: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

SUMMARY

24

• Complex systems can have very large state spaces

– Symbolic techniques can efficiently handle this

• On-the-fly generation of synchronous product

– Controller and controlled system together

• Efficient algorithm using saturation

– Constrained saturation allows legal states only

• Possible applications in optimization

– Qualitative and quantitative analysis

Page 25: SYNCHRONOUS PRODUCT GENERATION FOR CONTROLLER …petridotnet.inf.mit.bme.hu/publications/ASCONIKK2014_MolnarVoros... · TÁMOP-4.2.2.C-11/1/KONV-2012-0004 National Research Center

TÁMOP-4.2.2.C-11/1/KONV-2012-0004

National Research Center for Development and Market Introduction of Advanced Information and Communication Technologies

THANK YOU FOR

YOUR ATTENTION!