• No results found

Diagnosis of Large Software Systems Based on Colored Petri Nets

N/A
N/A
Protected

Academic year: 2021

Share "Diagnosis of Large Software Systems Based on Colored Petri Nets"

Copied!
101
0
0

Loading.... (view fulltext now)

Full text

(1)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis of Large Software Systems

Based on Colored Petri Nets

Supervised by Tarek Melliti2and Philippe Dague1

Yingmin Li1

1 LRI IASI, Univ. Paris-Sud, CNRS/INRIA Saclay, France 2 IBISC, Univ. d’Evry Val d’Essonne, CNRS, France

December 9, 2010

(2)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Context: basic Web services

Web service:

Technology allowing applications to dialogue remotely via Internet independently of the platforms and the languages they rest on. Cheaper and simpler for connection and integration.

(3)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Context: composite Web services

A travel agency example

An orchestrated Web service consists of a travel agency, an airline search engine, and a bank billing system

On 09/07/2010, a client, reserved a round trip Paris-Rome, 07/11/2010-07/12/2010

0 9 / 0 7 / 2 0 1 0 - 0 7 / 1 2 / 2 0 1 0 P a r i s - R o m e T h e c h e a p e s t f l i g h t s h o u l d b e a r o u n d 2 0 0 e u r o s . I h a v e 5 0 0 e u r o s i n m y a c c o u n t 3 / 101

(4)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Context: diagnosis problems of Web services

A travel agency example

Reservation failed because of no enough credit?

Client was confused and asked why the tickets were so expensive

0 9 / 0 7 / 2 0 1 0 - 0 7 / 1 2 / 2 0 1 0 P a r i s - R o m e N o e n o u g h c r e d i t T h e c h e a p e s t f l i g h t s h o u l d b e a r o u n d 2 0 0 e u r o s . I h a v e 5 0 0 e u r o s i n m y a c c o u n t A l a r m F a u l t 4 / 101

(5)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

An abstract view

Large software systems

Consist of several components located on different sites

Dysfunctions are generated and transformed among the components through data (signals, interface data, etc)

A communicating components system

O b s e r v a t i o n C o m p l e t e l y o r d e r e d : O 1 , O 2 , . . . , O n N o n - o r d e r e d : { O 1 , O 2 , . . . , O n } P a r t i a l l y o r d e r e d : O 1 , O 3 O 2 , O 4 O n C o m p o n e n t 2 D i a g n o s i s T o d e t e c t a n d e x p l a i n t h e p o s s i b l e f a u l t ( s ) C o m p o n e n t 1 C o m p o n e n t 3 F a u l t A l a r m 5 / 101

(6)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

A possible solution: model based diagnosis

A communicating components system diagnosis

P a r t i a l l y o r d e r e d o b s C o m p o n e n t 1 C o m p o n e n t 2 C o m p o n e n t 3 O 1 , O 3 P a r t i a l l y o r d e r e d o b s O 2 , O 4 P a r t i a l l y o r d e r e d o b s O 5 , O 6 D i a g n o s e r A b s t r a c t s y s t e m m o d e l D i a g n o s i s T o d e t e c t a n d e x p l a i n t h e p o s s i b l e d a t a , c o n t r o l o r e v e n t f a u l t ( s ) m i g h t c o m e f r o m o t h e r c o m p o n e n t s F a u l t A l a r m 6 / 101

(7)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

A possible solution: model based diagnosis

To model the faulty events asunobservableevents

P a r t i a l l y o r d e r e d o b s C o m p o n e n t 1 C o m p o n e n t 2 C o m p o n e n t 3 O 1 , O 3 P a r t i a l l y o r d e r e d o b s O 2 , O 4 P a r t i a l l y o r d e r e d o b s O 5 , O 6 D i a g n o s e r A b s t r a c t s y s t e m m o d e l D i a g n o s i s T o d e t e c t a n d e x p l a i n t h e p o s s i b l e d a t a , c o n t r o l o r e v e n t f a u l t ( s ) m i g h t c o m e f r o m o t h e r c o m p o n e n t s F a u l t A l a r m 7 / 101

(8)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Existing works

DES models

Discrete event system (DES) models: Petri net (Petri [1973]), automata (Arto and N. [1969]), process algebra (van Glabbeek [1987]), etc.

Most of them focus on the state evolution driven by the discrete events Faults are modeled as unobservable events (Sampath et al. [1995]) while faulty data is usually not modeled

(9)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Existing works: diagnoser (Sampath et al. [1995, 1996])

Transform the discrete event model of the system to be diagnosed into a finite state automaton which has only observable events; the historical faulty events are recorded in states. Example f 1 t 1 t 2 f 2 t 3 f 1 N f 2 t 1 t 2 t 3 N observations: t2t3 Diagnosis={f2} system diagnoser 9 / 101

(10)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Existing works: PN unfolding (Benveniste et al. [2003])

Fully describes the concurrent behaviors in a single branching structure, represents all the possible computation steps and their mutual dependencies, as well as all reachable states.

Example

system observations unfolding diagnoser

(11)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Existing works: PN backward reasoning (Anglano and Portinale [1994];

Cardoso et al. [1995]; Jiroveanu [2006]; Srinivasan and Jafari [1994])

Starts from the final states which represents a symptom and calculates backwardly according to the backward searching rules to detect all the traces that cover it.

Example

t1

system observation diagnosis

(12)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Assumptions

Targets

Locallycorrect and tested software system with interacting components in a stable network environment, butfaulty activities,faulty data and controls(from user, database, interface, etc) that transmitted between the components

Symptoms

Exception(s) thrown on one or more components during the execution

Method: model based diagnosis

P a r t i a l l y o r d e r e d o b s F a u l t O 1 , O 3 P a r t i a l l y o r d e r e d o b s O 2 , O 4 P a r t i a l l y o r d e r e d o b s O 5 , O 6 A b s t r a c t s y s t e m m o d e l C o m p o n e n t 2 C o m p o n e n t 1 C o m p o n e n t 3

?

?

?

?

F a u l t A l a r m 12 / 101
(13)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Challenges

Existing works

focus onstateevolution

diagnose by trajectories reconstruction

We need an abstract model

to represent the correct and fault of

data

and

controls

in a unique

way

to represent the correct and fault

behaviors

of the activities

to represent the

concurrency

and

partially ordered observations

allows to handle the

loops

in an elegant way to avoid unfolding

the trajectories

to diagnose the

orchestrated

software systems

Our choice

Colored Petri net

(14)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Outline

1 Introduction

Context: Web service diagnosis problem Model-based diagnosis for Web services Assumptions

2 Abstract model: CPN

CPN definition

Partially ordered observation

3 Diagnosis

CPN as a fault model Diagnosis algorithm

4 Application

Architecture of BPEL Monitoring and Diagnosis Decentralized diagnosis architecture

Example: travel agency diagnosis problem

5 Conclusions & perspectives

Contributions Perspectives

(15)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN has same structure as PN

Example · · · p1 t · p2 2 3

Definition (Petri net)

N=hP, T , Pre, Posti

P: a set of labeled places T : a set of labeled transitions

Pre:P×T →N, a backward matrix of consumed

token number

Post:P×T → N, a forward matrix of produced

token number

Example (Incidence matrix C=Post-Pre)

C t p1 -2 p2 3 = Post t p1 p2 3 - Pre t p1 2 p2

Example (State equation)

M′ = M

0 + C × T

p1 1 3 -2

p2 4 1 3 1

(16)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN has same structure as PN

Example · p1 t · p2 2 3

Definition (Petri net)

N=hP, T , Pre, Posti

P: a set of labeled places T : a set of labeled transitions

Pre:P×T →N, a backward matrix of consumed

token number

Post:P×T → N, a forward matrix of produced

token number

Example (Incidence matrix C=Post-Pre)

C t p1 -2 p2 3 = Post t p1 p2 3 - Pre t p1 2 p2

Example (State equation)

M′ = M

0 + C × T

p1 1 3 -2

p2 4 1 3 1

(17)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN has same structure as PN

Example · p1 t · ··· p2 2 3

Definition (Petri net)

N=hP, T , Pre, Posti

P: a set of labeled places T : a set of labeled transitions

Pre:P×T →N, a backward matrix of consumed

token number

Post:P×T → N, a forward matrix of produced

token number

Example (Incidence matrix C=Post-Pre)

C t p1 -2 p2 3 = Post t p1 p2 3 - Pre t p1 2 p2

Example (State equation)

M′ = M

0 + C × T

p1 1 3 -2

p2 4 1 3 1

(18)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: Structure & dynamic (Li et al. [2009a])

Example p1: Π1 t: Γ1 p2: Π2 F: Γ1→Ψ(Π1) F′: Γ1→Ψ(Π2) PN to CPN

Placesare typed (p1: Π1) Transitionare typed (t: Γ1) Markingsare multi-sets of place types

(m(p1) =

X

i∈|Π1|

n8iei,ni>0,ei∈Π1)

Weightsof an edges are multi-set

expressions (Pre(p1,t) : Γ1→Ψ(Π1))

(19)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: Structure & dynamic (Li et al. [2009a])

Example p1: Π1 t: Γ1 p2: Π2 F: Γ1→Ψ(Π1) F′: Γ1→Ψ(Π2) PN to CPN

Placesare typed (p1: Π1) Transitionare typed (t: Γ1) Markingsare multi-sets of place types

(m(p1) =

X

i∈|Π1|

n8iei,ni>0,ei∈Π1)

Weightsof an edges are multi-set

expressions (Pre(p1,t) : Γ1→Ψ(Π1)) Example (Bindingβ) 1‘a+ 2‘b p1: Π1={a,b} t: Γ1={m1,m2} 1‘c p2: Π2={a,b,c} Pre(t,p1) ={(m1:1‘b+1‘x) ,(m2:1‘a)} β 1m1:{x=a} or β 2m1:{x=b} Post(t,p2) ={(m1:2‘x), (m2:2‘c)}

Mode firing rule: M[tmM

M′=M+C(.,t)(m1)βwithβ:x=a

Marking: M′isreachablefrom M underβand m

can be extended to sequence firing

(20)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: Structure & dynamic (Li et al. [2009a])

Example p1: Π1 t: Γ1 p2: Π2 F: Γ1→Ψ(Π1) F′: Γ1→Ψ(Π2) PN to CPN

Placesare typed (p1: Π1) Transitionare typed (t: Γ1) Markingsare multi-sets of place types

(m(p1) =

X

i∈|Π1|

n8iei,ni>0,ei∈Π1)

Weightsof an edges are multi-set

expressions (Pre(p1,t) : Γ1→Ψ(Π1)) Example (Bindingβ) 1‘b p1: Π1={a,b} t: Γ1={m1,m2} 1‘c p2: Π2={a,b,c} Pre(t,p1) ={(m1:1‘b+1‘x) ,(m2:1‘a)} β 1m1:{x=a} or β 2m1:{x=b} Post(t,p2) ={(m1:2‘x), (m2:2‘c)}

Mode firing rule: M[tmM

M′=M+C(.,t)(m1)βwithβ:x=a

Marking: M′isreachablefrom M underβand m

can be extended to sequence firing

(21)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: Structure & dynamic (Li et al. [2009a])

Example p1: Π1 t: Γ1 p2: Π2 F: Γ1→Ψ(Π1) F′: Γ1→Ψ(Π2) PN to CPN

Placesare typed (p1: Π1) Transitionare typed (t: Γ1) Markingsare multi-sets of place types

(m(p1) =

X

i∈|Π1|

n8iei,ni>0,ei∈Π1)

Weightsof an edges are multi-set

expressions (Pre(p1,t) : Γ1→Ψ(Π1)) Example (Bindingβ) 1‘b p1: Π1={a,b} t: Γ1={m1,m2} 1‘c+2‘a p2: Π2={a,b,c} Pre(t,p1) ={(m1:1‘b+1‘x) ,(m2:1‘a)} β 1m1:{x=a} or β 2m1:{x=b} Post(t,p2) ={(m1:2‘x), (m2:2‘c)}

Mode firing rule: M[tmM

M′=M+C(.,t)(m1)βwithβ:x=a

Marking: M′isreachablefrom M underβand m

can be extended to sequence firing

(22)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: Dynamic

Definition (Characteristic Vector)

Sequence of modes:δ∈Mod

Characteristic vector ofδ:

δ :Mod→N

Transition characteristic vector

− ⇀ δT :T →N Example δ=t1.m1t2.m3t1.m2t1.m1t1.m2 − ⇀ δ(m1) =2 − ⇀ δT(t1) =4 State equation

Given S=hN,Mia CPN-S andmodessequence,δ∈Modwith M[δithen the reached marking M′after the firing ofδis :

M

=

M

+

C

×

δ

(23)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (1/2)

Dining philosophers (of size four) No blocking version (taking both forks concurrently)

Forks are identified by the serial number 1-4

One of them (num 4) is

well-organized:

• to take the forks, and before eat,

he/she checks the id of the forks

Three of them (num 1, 2 and 3) are

Unorganized:

• don’t verify the forks’id and might

exchange forks in hands before restore them.

(24)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i 1 p1 p2 2 3 p3 4 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 24 / 101

(25)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 25 / 101

(26)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 p11 p21 2 p22 3 p32 p33 p43 4 p44 1 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 26 / 101

(27)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 27 / 101

(28)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i 1 p1 p2 3 2 p3 4 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 28 / 101

(29)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 29 / 101

(30)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 1 p11 3 p21 p22 p32 2 p33 4 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 30 / 101

(31)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 31 / 101

(32)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i 3 p1 p2 1 4 p3 2 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 32 / 101

(33)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 33 / 101

(34)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 3 p11 1 p21 p22 p32 4 p33 2 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 34 / 101

(35)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 35 / 101

(36)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i 3 p1 p2 1 2 p3 4 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 36 / 101

(37)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 p11 p21 p22 p32 p33 p43 p44 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 37 / 101

(38)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 p11 p21 1 p22 2 p32 p33 p43 4 p44 3 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 38 / 101

(39)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 p3 p4 p11 p21 1 p22 2 p32 p33 p43 4 p44 3 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 39 / 101

(40)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i p1 p2 2 1 p3 p4 p11 p21 p22 p32 p33 p43 4 p44 3 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 40 / 101

(41)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN definition: example (2/2)

Notations

pi: the forks on the table

tiand ri:

philosopher i takes and released the fork

pii: the fork in the

right hand of philosopher i

pji: the fork in the

left hand of philosopher i

Observations each philosopher ate twice except philosopher 4 tiis fired before ri some activities were partially ordered p1 p2 2 1 p3 p4 p11 p21 p22 p32 p33 p43 4 p44 3 p14 t1 r1 t2 r2 t3 r3 t4 r4 χp1 χp2 χp1 χp2 χp11 χp21 N ormal:χp11 Exchange:χp21 N ormal:χp21 Exchange:χp11 χp2 χp3 χp2 χp3 χp22 χp32 N ormal:χp22 Exchange:χp32 N ormal:χp32 Exchange:χp22 χp3 χp4 χp3 χp4 χp33 χp43 N ormal:χp33 Exchange:χp43 N ormal:χp43 Exchange:χp33 χp4 χp1 χp4 χp1 χp44 χp14 N ormal:χp44 N ormal:χp14 41 / 101

(42)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Partially ordered observation

Definition (Partially ordered observation(T,))

T ={tik|16k6|T(ti)|}: repeated occurred transitions

⊆(S(T)×S(T)): partially ordered relation

(43)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Partially ordered observation

Definition (Partially ordered observation(T,))

T ={tik|16k6|T(ti)|}: repeated occurred transitions

⊆(S(T)×S(T)): partially ordered relation

Example (less specific) i={(ti(k),r (k) i ),(r (k) i ,t (k+1) i )}

1isless specificthan1∪2

(44)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Partially ordered observation

Definition (Partially ordered observation(T,))

T ={tik|16k6|T(ti)|}: repeated occurred transitions

⊆(S(T)×S(T)): partially ordered relation

Example (less specific) i={(ti(k),r (k) i ),(r (k) i ,t (k+1) i )}

1isless specificthan1∪2

Definition (Minimal partially ordered relationM

T →Mmin ) T=                      t1: 2 r1: 2 t2: 2 r2: 2 t3: 2 r3: 2 t4: 2 r4: 1

S(T) = {t1(1),t1(2),r1(1),r1(2) . . . ,t4(1),r4(1)} i= {(ti(k),ri(k)), (ri(k),ti(k+1))} M M ’ (ti,tj)M T →Mmin , iff∀δ, M[δ >M−⇀ δT=T ⇒δtitj 44 / 101
(45)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Adapt the CPN as a fault model

An abstract fault model

Define data correctness status

{

b

,

r

,

∗}

Map all the transition modes into diagnostic transition modes

{

OK

,

KO

}

Abstract transition functionalities as data dependency functions

{

FW

,

SRC

,

EL

}

(46)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Data dependencies in transition modes

p1: Π1 p1: ΨD=status={b,r,∗} F: Γ1→Ψ(Π1) χp:status t: Γ1 Fault: Γ1→ {OK,KO} F′: Γ1→Ψ(Π2)⇒ ∀χp∈Π1∩Π2, χ′p∈Π2,Π′ 1⊆Π1 ∀c,c′ ∈status,∀C ⊆status, p2: Π2 p2:status 46 / 101

(47)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Data dependencies in transition modes

p1: Π1 p1: ΨD=status={b,r,∗} F: Γ1→Ψ(Π1) χp:status t: Γ1 Fault: Γ1→ {OK,KO} F′: Γ1→Ψ(Π2)⇒ ∀χp∈Π1∩Π2, χ′p∈Π2,Π′ 1⊆Π1 ∀c,c′ ∈status,∀C ⊆status, D=      FW:Π1∩Π2→Ψ(Π2), FWp) =χp SRC:∅ →Ψ(Π2), SRCp EL:(Π1∩Π2)n→Ψ(Π2), EL(Π′1) =χ′pDc=                    FW:status→status,FW c(c) =c SRC:∅ →status,SRCc=∗

EL :statusnstatus,ELc(C) =c, with c′=    b, iff∀c∈ C,c=b r, iff∃c∈ C,c=r ∗,iffc∈ C,c=∗ ∧∄c′′ ∈ C,c′′=r p2: Π2 p2:status 47 / 101

(48)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Data dependencies in transition modes

p1: Π1 p1: ΨD=status={b,r,∗} F: Γ1→Ψ(Π1) χp:status t: Γ1 Fault: Γ1→ {OK,KO} F′: Γ1→Ψ(Π2)⇒ ∀χp∈Π1∩Π2, χ′p∈Π2,Π′ 1⊆Π1 ∀c,c′ ∈status,∀C ⊆status, D=      FW:Π1∩Π2→Ψ(Π2), FWp) =χp SRC:∅ →Ψ(Π2), SRCp EL:(Π1∩Π2)n→Ψ(Π2), EL(Π′1) =χ′pDc=                    FW:status→status,FW c(c) =c SRC:∅ →status,SRCc=∗

EL :statusnstatus,ELc(C) =c, with c′=    b, iff∀c∈ C,c=b r, iff∃c∈ C,c=r ∗,iffc∈ C,c=∗ ∧∄c′′ ∈ C,c′′=r p2: Π2 p2:status

Diagnosis properties of data dependency (Ardissono et al. [2005]) EL mt ci tcj tctmt ci tcj tctOK b b b KO b b r OK r b r KO r bOKbKObOK ∗ ∗ ∗KO ∗ ∗ ∗ OKr r KOr ∗ FW mt ct ctOK/KO b b OK/KO r r OK/KO∗ ∗ SRC mt ctOK b KO r 48 / 101

(49)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN for diagnosis: fault model

Fault model: F: [ γ∈Γ γ→ {OK,KO} F(Normal) =OK , F(Exchange) =KO Example (philosopher 1) 1 p1 4 p2 p11 p21 t1 r1 χp1 χp2 χp1 χp2 χp11 χp21 normal:χp11 exchange:χp21 normal:χp21 exchange:χp11 =⇒ • p1 p2• p11 p21 t1 r1 χp1 χp2 F W(χp1) F W(χp2) χp11 χp21 OK:F W(χp11) KO:r OK:F W(χp21) KO:r 49 / 101

(50)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN for diagnosis: fault model

Fault model: F: [ γ∈Γ γ→ {OK,KO} F(Normal) =OK , F(Exchange) =KO Example (philosopher 1) p1 p2 p11 p21 t1 r1 χp1 χp2 χp1 χp2 χp11 χp21 normal:χp11 exchange:r normal:χp21 exchange:r =⇒ p1 p2 p11 p21 t1 r1 χp1 χp2 F W(χp1) F W(χp2) χp11 χp21 OK:F W(χp11) KO:r OK:F W(χp21) KO:r 50 / 101

(51)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN for diagnosis: fault model

Fault model: F: [ γ∈Γ γ→ {OK,KO} F(Normal) =OK , F(Exchange) =KO Example (philosopher 1) p1 p2 1 p11 4p21 t1 r1 χp1 χp2 χp1 χp2 χp11 χp21 normal:χp11 exchange:χp21 normal:χp21 exchange:χp11 =⇒ p1 p2 • p11 •p21 t1 r1 χp1 χp2 F W(χp1) F W(χp2) χp11 χp21 OK:F W(χp11) KO:r OK:F W(χp21) KO:r 51 / 101

(52)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN for diagnosis: fault model

Fault model: F: [ γ∈Γ γ→ {OK,KO} F(Normal) =OK , F(Exchange) =KO Example (philosopher 1) p1 p2 p11 p21 t1 r1 χp1 χp2 χp1 χp2 χp11 χp21 normal:χp11 exchange:χp21 normal:χp21 exchange:χp11 =⇒ p1 p2 p11 p21 t1 r1 χp1 χp2 F W(χp1) F W(χp2) χp11 χp21 OK:F W(χp11) KO:r OK:F W(χp21) KO:r 52 / 101

(53)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

CPN for diagnosis: fault model

Fault model: F: [ γ∈Γ γ→ {OK,KO} F(Normal) =OK , F(Exchange) =KO Example (philosopher 1) 4 p1 1p2 p11 p21 t1 r1 χp1 χp2 χp1 χp2 χp11 χp21 normal:χp11 exchange:χp21 normal:χp21 exchange:χp11 =⇒ • p1 •p2 p11 p21 t1 r1 χp1 χp2 F W(χp1) F W(χp2) χp11 χp21 OK:F W(χp11) KO:r OK:F W(χp21) KO:r 53 / 101

(54)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis problem:

D

=

h

M

0

,

(

S

(

T

)

,

)

,

M

ˆ

i

(Li et al. [2009a])

Initial marking M0 p1p2p3p4p11p21p22p32p33p43p44p14 h ∗,∗,∗,∗, 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0i SymptomMˆ p1p2p3p4p11p21p22p32p33p43p44p14 h0 ,∗,∗, 0 , 0 , 0 , 0 , 0 , 0 , 0 , b , r i (S(T),) t1(1)r1(1)t1(2)r1(2), t2(1)r2(1)t2(2)r2(2), t3(1)r (1) 3 t (2) 3 r (2) 3 , t4(1)r (1) 4 t (2) 4 54 / 101

(55)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis problem:

D

=

h

M

0

,

(

S

(

T

)

,

)

,

M

ˆ

i

(Li et al. [2009a])

Initial marking M0 p1p2p3p4p11p21p22p32p33p43p44p14 h ∗,∗,∗,∗, 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0i SymptomMˆ p1p2p3p4p11p21p22p32p33p43p44p14 h0 ,∗,∗, 0 , 0 , 0 , 0 , 0 , 0 , 0 , b , r i (S(T),) t1(1)r1(1)t1(2)r1(2), t2(1)r2(1)t2(2)r2(2), t3(1)r (1) 3 t (2) 3 r (2) 3 , t4(1)r (1) 4 t (2) 4

A solution for a CPN diagnosis problem

− ⇀ δT t1:2 r1:2 t2:2 r2:2 t3:2 r3:2 t4:2 r4:1 − ⇀ δ t1: 2 r1.OK:n1 r1.KO:n2 t2: 2 r2.OK:n3 r2.KO:n4 t3: 2 r3.OK:n5 r3.KO:n6 t4: 2 r4: 1 55 / 101

(56)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis problem:

D

=

h

M

0

,

(

S

(

T

)

,

)

,

M

ˆ

i

(Li et al. [2009a])

Initial marking M0 p1p2p3p4p11p21p22p32p33p43p44p14 h ∗,∗,∗,∗, 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0i SymptomMˆ p1p2p3p4p11p21p22p32p33p43p44p14 h0 ,∗,∗, 0 , 0 , 0 , 0 , 0 , 0 , 0 , b , r i (S(T),) t1(1)r1(1)t1(2)r1(2), t2(1)r2(1)t2(2)r2(2), t3(1)r (1) 3 t (2) 3 r (2) 3 , t4(1)r (1) 4 t (2) 4

A solution for a CPN diagnosis problem

− ⇀ δT t1:2 r1:2 t2:2 r2:2 t3:2 r3:2 t4:2 r4:1 − ⇀ δ t1: 2 r1.OK:n1 r1.KO:n2 t2: 2 r2.OK:n3 r2.KO:n4 t3: 2 r3.OK:n5 r3.KO:n6 t4: 2 r4: 1 Covering relation:∗<b,∗<r ˆ M=M0+C× − ⇀ δ =⇒Mˆ<XM0+C×X−⇀ δ 56 / 101

(57)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Inequations system

ˆ M 0 ∗ ∗ 0 0 0 0 0 0 0 b r < M0 ∗ ∗ ∗ ∗ 0 0 0 0 0 0 0 0 + C t1 t2 t3 t4 r1 r2 r3 r4 OK KO OK KO OK KO p1 −χp1 −χp1 FWp11) r FWp13) p2 −χp2 −χp2 FWp21) r FWp22) r FWp33) p3 −χp3 −χp3 FWp32) r FWp33) r p4 −χp4 −χp4 FWp43) r FWp44) p11 FWp1) −χp11 −χp11 p21 FWp2) −χp21 −χp21 p22 FWp2) −χp22 −χp22 p32 FWp3) −χp32 −χp32 p33 FWp3) −χp33 −χp33 p43 FWp4) −χp43 −χp43 p44 FWp4) −χp44 p14 FWp1) −χp14 × t1:2 r1.OK:n1 r1.KO:n2 t2:2 r2.OK:n3 r2.KO:n4 t3:2 r3.OK:n5 r3.KO:n6 t4:2 r4:1 n1+n2 =2 n3+n4 =2 n5+n6 =2

Example (Inequations system)

                                 n1+n2=2 n3+n4=2 n5+n6=1 p1:0<∗ −28χp1−28χp1+n8 1FWp11) +n 8 2r+1 8FW(χ p14) p2:∗<∗ −28χp2−28χp2+n8 1FWp21) +n 8 2r+n 8 3FWp22) +n 8 4r p3:∗<∗ −28χp3−28χp3+n38FWp32) +n84r+n58FWp33) +n86r p4:0<∗ −28χp4−28χp4+n58FWp43) +n68r+18FWp44) p11:0<0+28FWp1)−n81χp11n82χp11 p21:0<0+28FWp2)−n81χp21n82χp21 p22:0<0+28FWp2)−n83χp22n84χp22 p32:0<0+28FWp3)−n83χp32n84χp32 p33:0<0+28FWp3)−n8 5χp33n86χp33 p43:0<0+28FWp4)−n85χp43n8 6χp43 p44:b<0+28FWp4)−18χp44 p14:r<0+28FWp1)−18χp14 57 / 101

(58)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Inequations system

(59)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis algorithm: single fault

Sketch 1 to propagate with b tokens 2 to propagate with r tokens 3 to integrate results

Example (Inequations system)

                                         n1+n2=2 n3+n4=2 n5+n6=1 p1: 0<∗ −28χp1−28χp1+n81FWp11) +n28r+18FWp14) p2:∗<∗ −28χp2−28χp2+n18FWp21) +n82r+n38FWp22) +n84r p3:∗<∗ −28χp3−28χp3+n38FWp32) +n84r+n58FWp33) +n86r p4: 0<∗ −28χp4−28χp4+n85FWp43) +n68r+18FWp44) p11: 0<0+28FWp1)−n81χp11n2p11 p21:0<0+28FWp2)−n81χp21n2p21 p22:0<0+28FWp2)−n83χp22n4p22 p32:0<0+28FWp3)−n83χp32n4p32 p33:0<0+28FWp3)−n85χp33n6p33 p43: 0<0+28FWp4)−n85χp43n6p43 p44: b<0+28FWp4)−18χp44 p14:r<0+28FWp1)−18χp14 59 / 101

(60)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis algorithm: single fault

Sketch 1 to propagate with b tokens 2 to propagate with r tokens 3 to integrate results

Example (Inequations system)

                                         n1+n2=2 n3+n4=2 n5+n6=1 p1: 0<∗ −28χp1−28χp1+n8 1FWp11) +n 8 2r+1 8FW(χ p14) p2:∗<∗ −28χp2−28χp2+n18FWp21) +n82r+n38FWp22) +n84r p3:∗<∗ −28χp3−28χp3+n38FWp32) +n84r+n58FWp33) +n86r p4: 0<∗ −28χp4−28χp4+n85FWp43) +n68r+18FWp44) p11: 0<0+28FWp1)−n8 1χp11n 8 2χp11 p21:0<0+28FWp2)−n8 1χp21n 8 2χp21 p22:0<0+28FWp2)−n8 3χp22n 8 4χp22 p32:0<0+28FWp3)−n8 3χp32n 8 4χp32 p33:0<0+28FWp3)−n85χp33n8 6χp33 p43: 0<0+28FWp4)−n85χp43n8 6χp43 p44: b<0+28FWp4)−18χp44 p14:r<0+28FWp1)−18χp14 Example (χp44=b as a constraint) p44=b 60 / 101

(61)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis algorithm: single fault

Sketch 1 to propagate with b tokens 2 to propagate with r tokens 3 to integrate results

Example (Inequations system)

                                         n1+n2=2 n3+n4=2 n5+n6=1 p1: 0<∗ −28χp1−28χp1+n81FWp11) +n28r+18FWp14) p2:∗<∗ −28χp2−28χp2+n18FWp21) +n82r+n38FWp22) +n84r p3:∗<∗ −28χp3−28χp3+n38FWp32) +n84r+n58FWp33) +n86r p4: 0<∗ −28χp4−28χp4+n85FWp43) +n68r+18FWp44) p11: 0<0+28FWp1)−n81χp11n2p11 p21:0<0+28FWp2)−n81χp21n2p21 p22:0<0+28FWp2)−n83χp22n4p22 p32:0<0+28FWp3)−n83χp32n4p32 p33:0<0+28FWp3)−n85χp33n6p33 p43: 0<0+28FWp4)−n85χp43n6p43 p44: b<0+28FWp4)−18χp44 p14:r<0+28FWp1)−18χp14 Example (χp44=b as a constraint) p44=b p4=b 61 / 101

(62)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis algorithm: single fault

Sketch 1 to propagate with b tokens 2 to propagate with r tokens 3 to integrate results

Example (Inequations system)

                                         n1+n2=2 n3+n4=2 n5+n6=1 p1: 0<∗ −28χp1−28χp1+n81FWp11) +n28r+18FWp14) p2:∗<∗ −28χp2−28χp2+n18FWp21) +n82r+n38FWp22) +n84r p3:∗<∗ −28χp3−28χp3+n38FWp32) +n84r+n58FWp33) +n86r p4: 0<∗ −28χp4−28χp4+n85FWp43) +n68r+18FWp44) p11: 0<0+28FWp1)−n81χp11n2p11 p21:0<0+28FWp2)−n81χp21n2p21 p22:0<0+28FWp2)−n83χp22n4p22 p32:0<0+28FWp3)−n83χp32n4p32 p33:0<0+28FWp3)−n85χp33n6p33 p43: 0<0+28FWp4)−n85χp43n6p43 p44: b<0+28FWp4)−18χp44 p14:r<0+28FWp1)−18χp14 Example (χp44=b as a constraint) p44=b p4=b p43=bn6=0 62 / 101

(63)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis algorithm: single fault

Sketch 1 to propagate with b tokens 2 to propagate with r tokens 3 to integrate results

Example (Inequations system)

                                         n1+n2=2 n3+n4=2 n5+n6=1 p1: 0<∗ −28χp1−28χp1+n81FWp11) +n28r+18FWp14) p2:∗<∗ −28χp2−28χp2+n18FWp21) +n82r+n38FWp22) +n84r p3:∗<∗ −28χp3−28χp3+n38FWp32) +n84r+n58FWp33) +n86r p4: 0<∗ −28χp4−28χp4+n85FWp43) +n68r+18FWp44) p11: 0<0+28FWp1)−n81χp11n2p11 p21:0<0+28FWp2)−n81χp21n2p21 p22:0<0+28FWp2)−n83χp22n4p22 p32:0<0+28FWp3)−n83χp32n4p32 p33:0<0+28FWp3)−n85χp33n6p33 p43: 0<0+28FWp4)−n85χp43n6p43 p44: b<0+28FWp4)−18χp44 p14:r<0+28FWp1)−18χp14 Example (χp44=b as a constraint) p44=b p4=b p43=bn6=0 63 / 101

(64)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis algorithm: single fault

Sketch 1 to propagate with b tokens 2 to propagate with r tokens 3 to integrate results

Example (Inequations system)

                                         n1+n2=2 n3+n4=2 n5+n6=1 p1: 0<∗ −28χp1−28χp1+n81FWp11) +n28r+18FWp14) p2:∗<∗ −28χp2−28χp2+n18FWp21) +n82r+n38FWp22) +n84r p3:∗<∗ −28χp3−28χp3+n38FWp32) +n84r+n58FWp33) +n86r p4: 0<∗ −28χp4−28χp4+n85FWp43) +n68r+18FWp44) p11: 0<0+28FWp1)−n81χp11n2p11 p21:0<0+28FWp2)−n81χp21n2p21 p22:0<0+28FWp2)−n83χp22n4p22 p32:0<0+28FWp3)−n83χp32n4p32 p33:0<0+28FWp3)−n85χp33n6p33 p43: 0<0+28FWp4)−n85χp43n6p43 p44: b<0+28FWp4)−18χp44 p14:r<0+28FWp1)−18χp14 Example (χp44=b as a constraint) p44=b p4=b p43=bn6=0 Example (χp14=r) p14=r 64 / 101

(65)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis algorithm: single fault

Sketch 1 to propagate with b tokens 2 to propagate with r tokens 3 to integrate results

Example (Inequations system)

                                         n1+n2=2 n3+n4=2 n5+n6=1 p1: 0<∗ −28χp1−28χp1+n81FWp11) +n28r+18FWp14) p2:∗<∗ −28χp2−28χp2+n18FWp21) +n82r+n38FWp22) +n84r p3:∗<∗ −28χp3−28χp3+n38FWp32) +n84r+n58FWp33) +n86r p4: 0<∗ −28χp4−28χp4+n85FWp43) +n68r+18FWp44) p11: 0<0+28FWp1)−n81χp11n2p11 p21:0<0+28FWp2)−n81χp21n2p21 p22:0<0+28FWp2)−n83χp22n4p22 p32:0<0+28FWp3)−n83χp32n4p32 p33:0<0+28FWp3)−n85χp33n6p33 p43: 0<0+28FWp4)−n85χp43n6p43 p44: b<0+28FWp4)−18χp44 p14:r<0+28FWp1)−18χp14 Example (χp44=b as a constraint) p44=b p4=b p43=bn6=0 Example (χp14=r) p14=r p1=r 65 / 101

(66)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis algorithm: single fault

Sketch 1 to propagate with b tokens 2 to propagate with r tokens 3 to integrate results

Example (Inequations system)

                                         n1+n2=2 n3+n4=2 n5+n6=1 p1: 0<∗ −28χp1−28χp1+n81FWp11) +n28r+18FWp14) p2:∗<∗ −28χp2−28χp2+n18FWp21) +n82r+n38FWp22) +n84r p3:∗<∗ −28χp3−28χp3+n38FWp32) +n84r+n58FWp33) +n86r p4: 0<∗ −28χp4−28χp4+n85FWp43) +n68r+18FWp44) p11: 0<0+28FWp1)−n81χp11n2p11 p21:0<0+28FWp2)−n81χp21n2p21 p22:0<0+28FWp2)−n83χp22n4p22 p32:0<0+28FWp3)−n83χp32n4p32 p33:0<0+28FWp3)−n85χp33n6p33 p43: 0<0+28FWp4)−n85χp43n6p43 p44: b<0+28FWp4)−18χp44 p14:r<0+28FWp1)−18χp14 Example (χp44=b as a constraint) p44=b p4=b p43=bn6=0 Example (χp14=r) p14=r p1=r p11=r n2>0 66 / 101

(67)

Introduction Abstract model: CPN Diagnosis Application Conclusions & perspectives

Diagnosis algorithm: single fault

Sketch 1 to propagate with b tokens 2 to propagate with r tokens 3 to integrate results

Example (Inequations system)

                                         n1+n2=2 n3+n4=2 n5+n6=1 p1: 0<∗ −28χp1−28χp1+n81FWp11) +n28r+18FWp14) p2:∗<∗ −28χp2−28χp2+n18FWp21) +n82r+n38FWp22) +n84r p3:∗<∗ −28χp3−28χp3+n38FWp32) +n84r+n58FWp33) +n86r p4: 0<∗ −28χp4−28χp4+n85FWp43) +n68r+18FWp44) p11: 0<0+28FWp1)−n81χp11n2p11 p21:0<0+28FWp2)−n81χp21n2p21 p22:0<0+28FWp2)−n83χp22n4p22 p32:0<0+28FWp3)−n83χp32n4p32 p33:0<0+28FWp3)−n85χp33n6p33 p43: 0<0+28FWp4)−n85χp43n6p43 p44: b<0+28FWp4)−18χp44 p14:r<0+28FWp1)−18χp14 Example (χp44=b as a

References

Related documents

The study evaluated effects of varying dietary protein levels on growth, protein utilization, survival and yield of the African catfish, Clarias gariepinus using floating

In the two-step treatment of Series 2 with higher microalgae concentration, the ethanol concen- tration remained at 51 – 60 mg carbon per liter in the first step until granular

20 
 •

A  business   ecosystem  is a   dynamic structure of interconnected organizations that depend on each other 

The Guarantee herein contained shall remain in full force and effect during the period that would be taken for performance of the aforesaid terms of the said contract and it

APACHE = Acute Physiology and Chronic Health Evaluation; CI = confidence interval; DNR = ‘do not resuscitate’; GCS = Glasgow Coma Score; ICU = intensive care unit; LOS = length of

Chlordiazepoxide, used for short term anxiety used to treat alcohol withdrawal symptoms and also as anti- convulsant has positive effects on postural atonia and

Initial Assessment or Investigation — the stage of the CPS case process where the CPS caseworker determines the validity of the child maltreatment report, assesses the risk