Behavior Composition in the Presence of Failure

Similar documents
Behavior Composition in the Presence of Failure

Automatic Synthesis of New Behaviors from a Library of Available Behaviors

System Validation (IN4387) November 2, 2012, 14:00-17:00

Abstraction of Nondeterministic Automata Rong Su

Project 6: Minigoals Towards Simplifying and Rewriting Expressions

Chapter 4 State-Space Planning

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

CS 573 Automata Theory and Formal Languages

Bisimulation, Games & Hennessy Milner logic

University of Sioux Falls. MAT204/205 Calculus I/II

where the box contains a finite number of gates from the given collection. Examples of gates that are commonly used are the following: a b

Petri Nets. Rebecca Albrecht. Seminar: Automata Theory Chair of Software Engeneering

Transition systems (motivation)

Generalization of 2-Corner Frequency Source Models Used in SMSIM

Alpha Algorithm: Limitations

On Determinism in Modal Transition Systems

Arrow s Impossibility Theorem

NON-DETERMINISTIC FSA

Symmetrical Components 1

Pre-Lie algebras, rooted trees and related algebraic structures

Nondeterministic Automata vs Deterministic Automata

Electromagnetism Notes, NYU Spring 2018

Activities. 4.1 Pythagoras' Theorem 4.2 Spirals 4.3 Clinometers 4.4 Radar 4.5 Posting Parcels 4.6 Interlocking Pipes 4.7 Sine Rule Notes and Solutions

Engr354: Digital Logic Circuits

Math 32B Discussion Session Week 8 Notes February 28 and March 2, f(b) f(a) = f (t)dt (1)

Arrow s Impossibility Theorem

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

Unfoldings of Networks of Timed Automata

Linear Algebra Introduction

Hybrid Systems Modeling, Analysis and Control

Chapter 2 Finite Automata

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

Functions. mjarrar Watch this lecture and download the slides

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P.

Exercise 3 Logic Control

Unit 4. Combinational Circuits

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

6.5 Improper integrals

Alpha Algorithm: A Process Discovery Algorithm

1 Nondeterministic Finite Automata

Logic Synthesis and Verification

Foundation of Diagnosis and Predictability in Probabilistic Systems

Lecture Notes No. 10

PYTHAGORAS THEOREM WHAT S IN CHAPTER 1? IN THIS CHAPTER YOU WILL:

On the Maximally-Permissive Range Control Problem in Partially-Observed Discrete Event Systems

Introduction to Olympiad Inequalities

BİL 354 Veritabanı Sistemleri. Relational Algebra (İlişkisel Cebir)

Algorithm Design and Analysis

Algorithm Design and Analysis

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

Probability. b a b. a b 32.

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation

Section 1.3 Triangles

Exercises with (Some) Solutions

More on automata. Michael George. March 24 April 7, 2014

A Study on the Properties of Rational Triangles

TIME AND STATE IN DISTRIBUTED SYSTEMS

Active Diagnosis. Serge Haddad. Vecos 16. October the 6th 2016

CHENG Chun Chor Litwin The Hong Kong Institute of Education

Section 4.4. Green s Theorem

Nondeterministic Finite Automata

Part 4. Integration (with Proofs)

For a, b, c, d positive if a b and. ac bd. Reciprocal relations for a and b positive. If a > b then a ab > b. then

Agent Composition Synthesis based on ATL

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

, g. Exercise 1. Generator polynomials of a convolutional code, given in binary form, are g. Solution 1.

CS 347 Parallel and Distributed Data Processing

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

Coalgebra, Lecture 15: Equations for Deterministic Automata

= state, a = reading and q j

Solutions to Assignment 1

arxiv: v1 [math.ca] 21 Aug 2018

MA10207B: ANALYSIS SECOND SEMESTER OUTLINE NOTES

Prefix-Free Regular-Expression Matching

Algorithms & Data Structures Homework 8 HS 18 Exercise Class (Room & TA): Submitted by: Peer Feedback by: Points:

Learning Partially Observable Markov Models from First Passage Times

Chapter Gauss Quadrature Rule of Integration

CSC2542 State-Space Planning

Gauss Quadrature Rule of Integration

Logic Synthesis and Verification

Discrete Structures Lecture 11

Test Generation from Timed Input Output Automata

Designing finite automata II

Supervisory Control under Partial Observation

Gauss Quadrature Rule of Integration

1.3 SCALARS AND VECTORS

LESSON 11: TRIANGLE FORMULAE

03. Early Greeks & Aristotle

Solutions to Problem Set #1

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of:

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O

12.4 Similarity in Right Triangles

Chapter 5 Plan-Space Planning

Lecture 1 - Introduction and Basic Facts about PDEs

y1 y2 DEMUX a b x1 x2 x3 x4 NETWORK s1 s2 z1 z2

Lecture 08: Feb. 08, 2019

In right-angled triangles the square on the side subtending the right angle is equal to the squares on the sides containing the right angle.

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

Computing data with spreadsheets. Enter the following into the corresponding cells: A1: n B1: triangle C1: sqrt

The Riemann-Stieltjes Integral

Transcription:

Behvior Composition in the Presene of Filure Sestin Srdin RMIT University, Melourne, Austrli Fio Ptrizi & Giuseppe De Giomo Spienz Univ. Rom, Itly KR 08, Sept. 2008, Sydney Austrli Introdution There re t lest two kinds of gmes. One ould e lled finite, the other infinite. A finite gme is plyed for the purpose of winning...... n infinite gme for the purpose of ontinuing the ply. Finite nd Infinite Gmes J. P. Crse

Behvior omposition vs Plnning Plnning Opertors: tomi Gol: desired stte of ffir Finite gme: ompose opertor sequentilly so s to reh the gol Plying strtegy: pln Behvior omposition Opertors : ville trnsition systems Gol : trget trnsition system Infinite gme: ompose ville trnsition systems onurrently so s to ply the trget trnsition systems Plying strtegy: omposition ontroller Behvior omposition Given: - set of ville ehviors B 1,,B n - trget ehvior T we wnt to relize T y delegting tions to B 1,,B n i.e.: ontrol the onurrent exeution of B 1,,B n so s to mimi T over time Behvior omposition: synthesis of the ontroller 4

v q1 q2 s1 s2 5 B1: B2: B3: Exmple s1q1 s2q2 s1q2 s2q1,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 T: C : v q1 q2 s1 s2 6 B1: B2: B3: Exmple s1q1 s2q2 s1q2 s2q1,2,3,2,1,1,2,1,1,2,2,3,2,3,3,2,2 T: C :

Exmple B1: B2: B3: s1 q1 v s2 q2 C :,2,3 s1q1,2 s1q2,3,2,2,1,1,1,1,2,3 s2q1 s2q2,3,2,2,2 T: 7 Synthesizing omposition Tehniques for omputing ompositions: Redution to PDL SAT [IJCAI07, AAAI07, VLDB05, ICSOC03] Simultion-sed LTL synthesis s model heking of gme struture [ICAPS08] All tehniques re for finite stte ehviors 8

Diretly sed on Simultion-sed tehnique... ontrol the onurrent exeution of B 1,,B n so s to mimi T Note this is possile...... if the onurrent exeution of B 1,,B n n mimi T Thm: this is possile iff... the synhronous (Crtesin) produt C of B 1,,B n n (ND-)simulte T 9 Simultion reltion Given two trnsition systems T = < A,ST, t 0,!T> nd C = < A, SC, sc 0,! C > (ND-)simultion is reltion R etween the sttes t! T n (s1,..,sn) of C suh tht: (t, s1,..,sn)! R implies tht # si " s i in Bi for ll t " t exists Bi! C s.t. $ si " s i in Bi % (t, s1,..,s i,..,sn)! R If exists simultion reltion R suh tht (t0, s C 0 )! R, then we sy tht T is simulted y C. Simulted-y is (i) simultion; (ii) the lrgest simultion. Simulted-y is oindutive definition

Exmple B1: s1 s2 C : s1q1,3,2,1,1 s2q1,3,2 B2: B3: q1 v q2,2,3,2 s1q2,2,1,1,2,3 s2q2,2,2 T: 11 Simultion reltion (ont.) Algorithm Compute (ND-)simultion Input: trget ehvior T = <A, ST, t 0,!T, FT> nd (Crt. prod. of) ville ehviors C= <A, S C, s C 0,! C, F C > Output: the simulted-y reltion (the lrgest simultion) Body R = & R = ST ' S C while (R " R ) { R := R R := R - {(t, s1,..,sn) # t " t in T ( $ Bi. # s " s in Bi ) # si " s i in Bi ( (t, s1,..s i,..sn) *! R } } return R End

Using simultion for omposition Given the lrgest simultion R of T y C, we n uild every omposition through the ontroller genertor (CG). CG = < A, [1,,n], Sr, sr 0,!, #> with A : the tions shred y the ehviors [1,,n]: the identifiers of the ville ehviors Sr = ST' S1 '...' Sn : the sttes of the ontroller genertor sr 0 = (t 0, s 0 1,..., s 0 n) : the initil stte of the ontroller genertor #: Sr ' A " 2 [1,,n] : the output funtion, defined s follows:!(t, s1,..,sn, ) = { i Bi n do nd remin in R}! + Sr ' A ' [1,,n] " Sr : the stte trnsition funtion, defined s follows (t, s1,..,si,..,sn)",i (t, s1,..,s i,..,sn) iff i! #(t, s1,..,si,..,sn, ) 13 Exmple B1: B2: B3: T: s1 q1 v s2 q2 W(,s1q1,) = {1,2} W(,s2q1,) = {2} W(,s1q1,) = {2} W(,s2q1,) = {2} W(,s1q1,) = {3} W(,s1q2,) = {2} W(,s2q1,) = {1,3} W(,s2q2,) = {2} W(,s1q1,) = {2} W(,s2q1,) = {2} W(,s1q1,) = {3} W(,s1q2,) = {2} W(,s2q1,) = {1,3} W(,s2q2,) = {2} 14 C :,2,3 s1q1,2 s1q2,3,2,2,1,1,1,1,2,3 s2q1 s2q2,3,2,2,2

Results for simultion Thm: Choosing t eh point ny vlue in! gives us orret ontroller for the omposition. Thm: Every ontroller tht is omposition n e otined y hoosing, t eh point, suitle vlue in!. Thm: Computing the ontroller genertor is EXPTIME (omposition is EXPTIME-omplete [IJCAI07]) where the exponentil depends only on the numer (not the size) of the ville ehviors. 15 Behvior filures Components my eome unexpetedly unville for vrious resons. We onsider four kinds of ehvior filures: A ehvior temporrily freezes; it will eventully resume in the sme stte it ws in; A ehvior (or the environment) unexpetedly nd ritrrily (i.e., without respeting its trnsition reltion) hnges its urrent stte; A ehvior dies - it eomes permnently unville. A ded ehvior unexpetedly omes live gin (this is n opportunity more thn filure).

Just-in-time omposition One we hve the ontroller genertor...... we n void hoosing ny prtiulr omposition priori...... nd use diretly! to hoose the ville ehvior to whih delegte the next tion. We n e lzy nd mke suh hoie just-in-time, possily dpting retively to runtime feedk. 17 Retive filure reovery with CG CG lredy solves: Temporry freezing of n ville ehvior B i - In priniple: wit for Bi - But with CG: stop seleting Bi until it omes k! - - - Unexpeted ehvior (environment) stte hnge In priniple: reompute CG / simulted-y from new initil stte...... ut CG / simulted-y independent from initil stte! Hene: simply use old CG / simulted-y from the new stte!! 18

Prsimonious filure reovery Algorithm Computing (ND-)simultion - prmetrized version Input: trnsition system T = <A, T, t 0,!T, FT> nd trnsition system C= <A, S, s C 0,! C, F C > reltion Rrw inluding the simulted-y reltion reltion Rsure inluded the simulted-y reltion Output: the simulted-y reltion (the lrgest simultion) Body Q = & Q = Rrw - Rsure //Note R = (Q! Rsure) while (Q " Q ) { Q := Q Q := Q - {(t, s1,..,sn) # t " t in T ( $ Bi. # s " s in Bi ) # si " s i in Bi ( (t, s1,..s i,..sn) *! Q! Rsure } } return Q! Rsure 19 End Prsimonious filure reovery (ont.) Let [1,.., n] = W! F e the ville ehviors. Let R = RW!F e the simulted-y reltion of trget y ehviors W! F. Then the following hold: RW "!W(RW!F) -!W(RW!F) is not simultion in generl - Behviors F die: ompute RW with Rrw =!W(RW!F)! RW " F " RW!F - RW " F is simultion of trget y ehviors W! F - Ded ehviors F ome k: ompute RW!F with Rsure = RW " F! 20

Tools for omputing omposition sed on simultion Computing simultion is well-studied prolem (relted to isimultion, key notion in proess lger). Tools, like the Edinurgh Conurreny Workenh nd its lones, n e dpted to ompute omposition vi simultion. Also LTL-sed syntesis tools, like TLV, n e used for (indiretly) omputing omposition vi simultion [Ptrizi PhD08] We re urrently foussing on the seond pproh. 21 Conlusion Behvior omposition: n infinite gme. Simultion sed omposition tehniques llow for filure tolerne! It relies on ontroller genertor: kind of stteful universl pln genertor for omposition. Full oservility of ville ehvior sttes is ruil for CG to work properly. But... Prtil oservility ddressle y mnipulting knowledge sttes! [work in progress] All tehniques re for finite sttes. Wht out deling with infinite sttes? Very diffiult, ut lso ruil when mixing proesses nd dt! 22