diagnosis 02
play

Diagnosis (02) Theory of Reiter Alban Grastien - PowerPoint PPT Presentation

Diagnosis (02) Theory of Reiter Alban Grastien alban.grastien@rsise.anu.edu.au Definition of Reiter Diagnosis 1 Naive algorithm 2 Second algorithm: diagnose 3 Definition of Reiter Diagnosis 1 Naive algorithm 2 Second algorithm:


  1. Diagnosis (02) Theory of Reiter Alban Grastien alban.grastien@rsise.anu.edu.au

  2. Definition of Reiter Diagnosis 1 Naive algorithm 2 Second algorithm: diagnose 3

  3. Definition of Reiter Diagnosis 1 Naive algorithm 2 Second algorithm: diagnose 3

  4. Reiter Diagnosis A Reiter Diagnosis of an observed system ( SD , COMP , OBS ) is a minimal set ∆ such that Φ(∆) is a diagnosis

  5. Reiter Diagnosis A Reiter Diagnosis of an observed system ( SD , COMP , OBS ) is a minimal set ∆ such that Φ(∆) is a diagnosis Remark : a Reiter Diagnosis is a set of components and not a logical sentence but the representation are equivalent

  6. Consequences of the definition First consequence ∅ is the only Reiter diagnosis of ( SD , COMP , OBS ) iff SD ∪ OBS ∪ {¬ Ab ( c ) | c ∈ COMP } is consistant Second consequence ∆ ⊆ COMP is a Reiter diagnosis iff it is a minimal set such that SD ∪ OBS ∪ {¬ Ab ( c ) | c ∈ COMP \ ∆ } is consistant Problem: How to compute the Reiter diagnoses?

  7. Example What are the Reiter Diagnoses in this example? A mult-1 X add-1 F B C mult-2 Y D add-2 G Z mult-3 E Observations In 1 ( m 1 , 3 ) , In 2 ( m 1 , 2 ) , In 1 ( m 2 , 2 ) , In 2 ( m 2 , 3 ) In 1 ( m 3 , 2 ) , In 2 ( m 3 , 3 ) , Out ( a 1 , 10 ) , Out ( a 2 , 12 )

  8. Definition of Reiter Diagnosis 1 Naive algorithm 2 Second algorithm: diagnose 3

  9. Lattice of the states ∅ a 1 a 2 m 1 m 2 m 3 a 1 , a 2 a 1 , m 1 a 1 , m 2 a 1 , m 3 a 2 , m 1 a 2 , m 2 a 2 , m 3 m 1 , m 2 m 1 , m 3 m 2 , m 3 a 1 , a 2 a 1 , a 2 a 1 , a 2 a 1 , m 1 a 1 , m 1 a 1 , m 2 a 2 , m 1 a 2 , m 1 a 2 , m 2 m 1 , m 2 m 1 m 2 m 3 m 2 m 3 m 3 m 2 m 3 m 3 m 3 a 1 , a 2 , a 1 , a 2 , a 1 , a 2 , a 1 , m 1 , a 2 , m 1 , m 1 , m 2 m 1 , m 3 m 2 , m 3 m 2 , m 3 m 2 , m 3 a 1 , a 2 , m 1 m 2 , m 3

  10. Lattice of the states ∅ a 1 a 2 m 1 m 2 m 3 a 1 , a 2 a 1 , m 1 a 1 , m 2 a 1 , m 3 a 2 , m 1 a 2 , m 2 a 2 , m 3 m 1 , m 2 m 1 , m 3 m 2 , m 3 a 1 , a 2 a 1 , a 2 a 1 , a 2 a 1 , m 1 a 1 , m 1 a 1 , m 2 a 2 , m 1 a 2 , m 1 a 2 , m 2 m 1 , m 2 m 1 m 2 m 3 m 2 m 3 m 3 m 2 m 3 m 3 m 3 a 1 , a 2 , a 1 , a 2 , a 1 , a 2 , a 1 , m 1 , a 2 , m 1 , m 1 , m 2 m 1 , m 3 m 2 , m 3 m 2 , m 3 m 2 , m 3 a 1 , a 2 , m 1 m 2 , m 3

  11. Naive algorithm Test and generate Explore the lattice from the root Do not develop a node ∆ of the lattice such that there exists ∆ ′ ⊂ ∆ that is a Reiter diagnosis Test if SD ∪ OBS ∪ {¬ Ab ( c ) | c ∈ COMP \ ∆ } is consistant If it is consistant, we have found a diagnosis Otherwise, we have to develop this state Problem Very inefficient

  12. Definition of Reiter Diagnosis 1 Naive algorithm 2 Second algorithm: diagnose 3

  13. Algorithm 2: Diagnose Rely on the notions of Conflict Hitting Set

  14. Reiter conflict A Reiter conflict is a set of components C ⊆ COMP that cannot all have a normal behavior Formally: a set C is a Reiter conflict if SD ∪ OBS ∪ {¬ Ab ( c ) | c ∈ C } is inconsistant

  15. Reiter conflict A Reiter conflict is a set of components C ⊆ COMP that cannot all have a normal behavior Formally: a set C is a Reiter conflict if SD ∪ OBS ∪ {¬ Ab ( c ) | c ∈ C } is inconsistant A Reiter conflict C is minimal iff no subset of C is a Reiter conflict

  16. Example What Reiter Conflicts can you find in this example? A mult-1 X add-1 F B C mult-2 Y D add-2 G Z mult-3 E Observations In 1 ( m 1 , 3 ) , In 2 ( m 1 , 2 ) , In 1 ( m 2 , 2 ) , In 2 ( m 2 , 3 ) In 1 ( m 3 , 2 ) , In 2 ( m 3 , 3 ) , Out ( a 1 , 10 ) , Out ( a 2 , 12 )

  17. From Reiter Conflicts to Reiter Diagnoses Theorem ∆ ⊆ COMP is a Reiter diagnosis for ( SD , COMP , OBS ) iff COMP \ ∆ is not a Reiter conflict

  18. Hitting Set Definition: Let C = ( S 1 , . . . , S n ) be a collection of sets H is a Hitting Set of C iff: H ⊆ S i ∈{ 1 ,..., n } S i ∀ i ∈ { 1 , . . . , n } , H ∩ S i � = ∅

  19. Example C = {{ 2 , 4 , 5 } , { 1 , 2 , 3 } , { 1 , 3 , 5 } , { 2 , 4 , 6 } , { 2 , 4 }}

  20. Example C = {{ 2 , 4 , 5 } , { 1 , 2 , 3 } , { 1 , 3 , 5 } , { 2 , 4 , 6 } , { 2 , 4 }} Hitting sets: H 1 = { 2 , 1 } H 2 = { 2 , 1 , 6 } H 3 = { 4 , 3 , 2 } H 4 = { 2 , 5 }

  21. Theorem ∆ ⊆ COMP is a Reiter diagnosis for ( SD , COMP , OBS ) iff ∆ is a minimal Hitting Set for the set of the Reiter conflicts

  22. Theorem ∆ ⊆ COMP is a Reiter diagnosis for ( SD , COMP , OBS ) iff ∆ is a minimal Hitting Set for the set of the Reiter conflicts It is possible to consider the minimal Reiter conflicts

  23. Naive algorithm using conflicts and hitting sets Compute the set F of all the minimal conflicts Compute the hitting set of F Problem: how to compute all the minimal conflicts?

  24. Second solution Given a set ∆ ⊆ COMP , it is possible and easy to find one conflict C ⊆ COMP \ ∆ using: a demonstrator the formula SD ∪ OBS ∪ { Ab ( c ) | c ∈ ∆ } Algorithm: Starting from ∆ = ∅ 1 if ∆ is a Reiter Diagnosis (i.e. if the demonstrator did not 2 find any conflict C ), then stop otherwise, ∀ c ∈ C , restart from 2 using ∆ ∪ { c } 3

  25. Example ∅ [ a 1 , m 1 , m 2 ] a 1 m 1 m 2 [ a 1 , a 2 , m 1 , m 3 ] [] [] a 2 , m 2 m 2 , m 3 a 1 , m 2 m 1 , m 2 [] []

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend