25.07.2014 Views

pdf download - Software and Computer Technology - TU Delft

pdf download - Software and Computer Technology - TU Delft

pdf download - Software and Computer Technology - TU Delft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Model-Based Fault Diagnosis<br />

4.1 Fundamentals<br />

h B ⇒ (y ⇔ ¬x)<br />

h C ⇒ (z ⇔ ¬w) (4.1)<br />

This formalization from the concept of 3 inverters to these behavioral rules should be done by humans,<br />

<strong>and</strong> is called the modeling activity. This activity, that could most conveniently be performed<br />

by developers of a system, is believed to be the most difficult part of MBD.<br />

Diagnostic Engine<br />

The second artifact of MBD is a diagnostic engine. This diagnostic engine implements an inference<br />

mechanism that is able to produce diagnoses based on any formally described model, <strong>and</strong> observations<br />

made during runtime operation. This can be done by solving the system of equations, as the<br />

model provides, by using rules from propositional logic. Figure 4.1 shows the variables that can be<br />

observed; w, y <strong>and</strong> z. Substituting these observables in the system of equations gives:<br />

h A ⇒ ¬x<br />

h B ⇒ x<br />

Then, applying the rule (p ⇒ q) ⇔ (¬p ∨ q) yields:<br />

This can be rewritten to DNF-form:<br />

h C ⇒ ¬x (4.2)<br />

(¬h A ∨ ¬x) ∧ (¬h B ∨ x) ∧ (¬h C ∨ ¬x) (4.3)<br />

¬h A ¬h B ¬h C ∨ ¬h A ¬h B ¬x ∨ ¬h A ¬h C x ∨ ¬h B ¬h C ¬x ∨ ¬h B ¬x = 1 (4.4)<br />

Finally, reducing it to the following prime implicants yields:<br />

¬h A ¬h C x ∨ ¬h B ¬x = 1 (4.5)<br />

This result is the minimal fault set; either component A <strong>and</strong> C are broken (if x = 1) or component B<br />

is broken (if x = 0).<br />

Another way for computing diagnoses is to use conflicts in order to produce the diagnosis. A<br />

conflict is a set of components that cannot be healthy all together. For example, given the symptom<br />

”y=0 while y=1 is predicted”, the set {A, B, C} is a conflict. In other words, the assumption that<br />

component A, B <strong>and</strong> C are all healthy should be removed. Section 3.5 used this view on solving<br />

the diagnosis problem, for giving the reader a first idea on MBD. A minimal conflict is a set of<br />

components that is no longer a conflict if you remove one of its members. These are the interesting<br />

sets, because they correspond to diagnoses with high probability. Applying the resolution rule<br />

(p ∨ q) ∧ (r ∨ ¬q) ⇒ (p ∨ r) to Equation 4.3 yields:<br />

Then, using De Morgan’s Laws:<br />

(¬h A ∨ ¬h B ) ∧ (¬h B ∨ ¬h C ) = 1 (4.6)<br />

¬( (¬h A ∨ ¬h B ) ∧ (¬h B ∨ ¬h C ) ) = 0<br />

¬(¬h A ∨ ¬h B ) ∨ ¬(¬h B ∨ ¬h C ) = 0<br />

¬h A ¬h B ∨ ¬h B ¬h C = 0 (4.7)<br />

35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!