• Nie Znaleziono Wyników

ALGEBRAIC APPROACH FOR MODEL DECOMPOSITION: APPLICATION TO FAULT DETECTION AND ISOLATION IN DISCRETE–EVENT SYSTEMS

N/A
N/A
Protected

Academic year: 2021

Share "ALGEBRAIC APPROACH FOR MODEL DECOMPOSITION: APPLICATION TO FAULT DETECTION AND ISOLATION IN DISCRETE–EVENT SYSTEMS"

Copied!
17
0
0

Pełen tekst

(1)

DOI: 10.2478/v10006-011-0008-z

ALGEBRAIC APPROACH FOR MODEL DECOMPOSITION: APPLICATION TO FAULT DETECTION AND ISOLATION IN DISCRETE–EVENT SYSTEMS

DENISBERDJAG, VINCENTCOCQUEMPOT∗∗, CYRILLECHRISTOPHE∗∗,

ALEXEYSHUMSKY∗∗∗, ALEXEYZHIRABOK∗∗∗

Automatic Control Laboratory, LAMIH

University of Valenciennes (UVHC), Bât. Malvache, Le Mont Houy, 59313 Valenciennes cedex 9, France e-mail:denis.berdjag@univ-valenciennes.fr

∗∗Automatic Control Laboratory, LAGIS

Polytech’Lille, Lille 1 University, 59655 Villeneuve d’Ascq, France

e-mail:{vincent.cocquempot,cyrille.christophe}@univ-lille1.fr

∗∗∗Institute for Marine Technology Problems

Far Eastern Branch of the Russian Academy of Sciences, 5a Sukhanova St, Vladivostok, 690600, Russia e-mail:shumsky@mail.primorye.ru,zhirabok@mail.ru

This paper presents a constrained decomposition methodology with output injection to obtain decoupled partial models.

Measured process outputs and decoupled partial model outputs are used to generate structured residuals for Fault Detection and Isolation (FDI). An algebraic framework is chosen to describe the decomposition method. The constraints of the decomposition ensure that the resulting partial model is decoupled from a given subset of inputs. Set theoretical notions are used to describe the decomposition methodology in the general case. The methodology is then detailed for discrete-event model decomposition using pair algebra concepts, and an extension of the output injection technique is used to relax the conservatism of the decomposition.

Keywords: algebraic approaches, decomposition methods, decoupling, discrete-event systems.

1. Introduction

The increasing demand for secure and reliable systems boosts up the research on accurate methods for Fault De- tection and Isolation (FDI). The FDI problem has been studied extensively, using two major approaches: model- based and model-free. In this paper we are concerned with model-based approaches, which are classified in two ma- jor groups with respect to the type of model used: the con- tinuous/discrete time-driven model or the discrete-event model.

Time-driven model-based FDI is achieved by analysing fault indicators or residuals, which are signals obtained by comparing measured outputs of the moni- tored process with the corresponding simulated outputs.

Three major techniques are used for residual generation (Patton, 1994; Isermann, 2005): the parameter estima- tion approach (Isermann, 1984; Isermann and Freyermuth, 1991) or, more recently (Fliess and Join, 2003; Fliess

et al., 2004), the parity space approach (Gertler, 1991;

Staroswiecki and Comtet-Varga, 2001) based on elim- ination (Diop, 1991; Cox et al., 1991; Maquin et al., 1997; Staroswiecki and Comtet-Varga, 2001) or on pro- jection (Chow and Willsky, 1984; Isidori, 1995; Leuschen et al., 2005), and the observer-based approach (Patton, 1994; Hammouri et al., 2001; Jiang et al., 2004; 2006;

Lootsma, 2001).

When the process to be monitored is subject to multi- ple failures, in order to isolate each failure, multiple resid- uals are required, leading to the synthesis of a residual generator bank. When an isolable fault occurs, the resid- uals react in a specific pattern, called the fault signature, characterized by robustness/sensitivity properties of each signal. When every residual is sensitive (or robust) to only one unique fault and robust (or sensitive) to all the remain- ing failures, then the residuals are said to be structured.

Many FDI techniques are described in the litera-

(2)

ture for timed/untimed discrete-event model of central- ized or distributed systems. We will focus on untimed (Sampath et al., 1995;1996; Zad et al., 2003) centralized systems (Lafortune et al., 2001; Lin, 1994; Bavishi and Chong, 1994). The monitored system is abstracted using a Discrete-Event System (DES) model, characterized by a discrete state space and event-based dynamics. DES mod- els are used because of the simplicity of the associated al- gorithms to test diagnosability (Sampath et al., 1995). In the last few years a number of DES modeling frameworks have been developed for diagnosability analysis. One fre- quently used model is the Finite State Machine (FSM) (Sampath et al., 1995; Zad et al., 2003; Lin, 1994; Lafor- tune et al., 2001; Bavishi and Chong, 1994). It is based on the assumption that the system consists of several dis- tinct physical components, modelled as FSMs, which may share certain events.

The states of the FSM correspond to the internal states of a component and the transitions refer to its events. The events are considered to be observable or un- observable, the latter being further classified into internal and failure events. Transitions and states following fail- ure events model the behaviour of the system after a fail- ure. Using standard synchronous composition operations, the individual components are composed to form a global model that describes the behaviour of the complete sys- tem. FDI is achieved by using the complete system model to synthesize another FSM called the diagnoser, which is basically a state estimator that determines the condition (normal or failure) of the system. Another possible ap- proach is to produce diagnosers corresponding to each in- dividual component. Others approaches to DES diagnos- ability are process algebra-based approaches (Hamscher et al., 1992; Hillston, 1996) and Petri net models (Boel and Jiroveanu, 2004; Benveniste et al., 2003; Boubour et al., 1997; Hadjicostis and Verghese, 1999; Giua, 1997).

Time-driven and event-based FDI approaches share a lot of common points, but mostly use different mathemat- ical techniques. The multiplication of these mathematical tools limits the application of such approaches to partic- ular domains and imposes, for each approach, a specific model of the monitored process. For instance, observer- based geometric methods require linear or nonlinear time- driven modelling of the process. A useful advancement would be to develop mathematical FDI tools that could be applied in a similar way to monitor systems described by time-driven or event-based models.

An in-depth study of the existing FDI approaches shows that similar decomposition-based methods were de- veloped for the two types of models: a bank of residual generators based on linear or nonlinear observers, parity space approaches, individual component-based FSMs.

In this paper, we present a decomposition method- ology for deterministic behavioural models. The decom- position method is said to be model-type-free because it

does not depend in its principle on the model type (time- based or discrete-event-based). The objective is to ob- tain a partial model which is decoupled from a given sub- set of inputs (that may be failures) while remaining cou- pled with respect to another subset of selected inputs (that may also be failures). These partial models may be used for FDI as, e.g., in the works of Patton (1994), Gertler (1998), Blanke et al. (2003), Kinnaert (1999) or Maquin et al. (1997) for continuous-time systems and by Sampath et al. (1996), Zad (1999) or Lefebvre (1999) for discrete- event methods. FDI is achieved by measuring the consis- tency between measured outputs of the monitored process and the corresponding simulated outputs of each partial model. The coupling and decoupling properties of each partial model allow detecting the occurrence of selected faults while ignoring the rest of them. Using several par- tial models with different coupling/decoupling properties leads to structured residual vectors achieving the isolation of all faults considered.

The methodology is described using a particular al- gebraic formulation, which allows considering the decom- position of continuous-time models and discrete-event models using the same algorithm. Of course, even if the general methodology is the same, some computations at given steps of the algorithm are specific to the do- mains considered. In this paper we use a particular al- gebraic formalism, inspired by the algebra of functions (Shumsky, 1991; Zhirabok and Shumsky, 1993; Shumsky and Zhirabok, 2006). Decomposition based on the alge- bra of functions was the topic of our previous publica- tions (Berdjag et al., 2006a; 2006c), where an iterative decomposition algorithm using output injection was pre- sented for nonlinear continuous-time models. This paper emphasizes the extension of the decomposition algorithm to major types of deterministic behavioural models, using set-theory notions (Vereshchagin and Shen, 2002). The main algorithm is then used to propose a constrained de- composition of FSMs using pair algebra (Hartmanis and Stearns, 1966). There is a straightforward relation be- tween set-theoretical and pair algebra formalisms, and we extensively use this relationship to propose an adapted for- mulation of the decomposition constraints for both cases.

In particular, output injection is used to loosen decompo- sition constraints in the discrete-event case. The output in- jection technique is a well-known method of continuous- time model decoupling, and to the best of our knowledge it has not been yet employed for DES model decoupling.

The paper is organized as follows. In Section 2, a constrained decomposition problem is formulated using the set-theoretical framework. In Section 3, the decom- position constraints and conditions are detailed and or- ganized to build a general decomposition algorithm with output injection. Section 4 provides basic reminders about partitions and pair algebra operators. In Section 5, con- strained decomposition of discrete-event models with out-

(3)

put injection is presented. An example is given in Sec- tion 6 to illustrate the decomposition and the benefits of output injection. Afterwards, conclusions and perspec- tives on future work are presented, and finally an appendix with illustrative examples on partition operations closes the paper.

2. Problem formulation

2.1. Preliminaries. As a general principle, it is possi- ble to represent deterministic behavioural models, denoted byΣ, using the following quintuple:

(X , U, Y, F, H), (1)

whereX is the state set, U is the input set and Y is the output set.F and H are functions defined by

F : X × U −→ X and H : X × U −→ Y. (2) The function F is the state function and the func- tion H is the output function. It is well known that the state functionF is invariant (involutive) by definition, i.e., F(X , U) ⊆ X (see Isidori, 1995) for the definition of in- variance. We make the choice of omitting the initial state X0specification for the sake of simplicity, since it has no influence on the decomposition process.

The representation (1) allows describing continuous- time and discrete-event deterministic models using the same formalism. Indeed, ifΣ is a continuous-time model, then the sets X , U, Y are infinite sets of dimensions n, l, m, respectively, i.e., X ⊆ Rn,U ⊆ Rl, Y ⊆ Rm. The state and output functions are defined by

F : Rn× Rl−→ Rn and H : Rn× Rl−→ Rm. (3) If the model Σ is a discrete-event model, then the sets X , U, Y are finite sets of respective cardinalities n, l, m:

X = {x1, . . . , xn}, U = {u1, . . . , ul}, Y = {y1, . . . , ym}.

We assume that the modelΣ contains multiple dy- namics. Every single dynamic is affected by a particular subset of inputs or input events and ignores the rest of the inputs. These dynamics can be represented by partial models. A partial modelΣis a model which replicates the behaviour of a part of the “complete” modelΣ. The modelsΣ and Σ are said to be equivariant, i.e., for the same sequence of inputs (or input events), the states and outputs ofΣandΣ are bisimilar. Two states (or outputs) are considered bisimilar if the states (outputs) remain con- sistent as long as the two models are excited by the same input sequence with consistent initial states.

Definition 1. (Bisimilarity) ConsiderX and X two sets of equal cardinalities. Let→ and → be two relations de- fined on X2 andX2, respectively. We say that the ele- ments ofX and X are bisimilar if and only if there is a mapping θ: X → Xsuch that

∀x ∈ X , ∃θ : (x → ˜x) ⇔ (θ(x) → θ(˜x)).

LetΨXUandΨYbe the power-sets ofX , U and Y, respectively, i.e., ΨX = 2XU = 2UandΨY = 2Y. Consider another modelΣdefined by

(X, U, Y, F, H), (4) whereX,UandYare subsets ofΨXUandΨY, and FandHare restrictions ofF, H on ΨX× ΨU → ΨX

andΨX× ΨU → ΨY, respectively.

Definition 2. (Partial model) We say that the model Σ(X, U, Y, F, H) constitutes a partial model of Σ(X , U, Y, F, H) if and only if the functions F and H are restrictions of F, H on ΨX × ΨU → ΨX and ΨX × ΨU → ΨY, and the setsX,UandY are given by

X −→ XΘX , U −→ UΘU , Y−→ YΘY , (5) whereΘXUandΘYare functions onΨXUandΨY

ensuring that the outputs ofΣ and Σare bisimilar for the same sequence of inputs u∈ U and Θ(u)U(u) ∈ U.

The homomorphism is a well-suited mathematical concept to express the link between the model of the sys- tem and its partial models. The homomorphism is a struc- ture preserving map from an algebraic construct to another algebraic construct.

Definition 3. (Homomorphism) Consider a set X and a functionF : X → X . The function Θ : X → X is a homomorphism if the following relation holds:

∀x ∈ X : Θ(F(x)) = F(Θ(x)).

This notion was extended separately to event-driven and time-driven dynamical systems in the literature, (Hartmanis and Stearns, 1966). We propose here a defi- nition suited for the problem considered.

Definition 4. (Model homomorphism) The triple (ΘX, ΘU, ΘY) is a structure preserving map of the model Σ(X , U, Y, F, H) into Σ(X, U, Y, F, H) if the fol- lowing relation holds:

∀x ∈ X ,u ∈ U, y ∈ Y :

ΘX(F(x, u)) = FX(x), ΘU(u)), ΘY(H(x, u)) = HX(x), ΘU(u)), whereΘX : X → XU : U → UandΘY : Y → Y. The triple(ΘX, ΘU, ΘY) is said to be a model homomor- phism.

(4)

Proposition 1. Let Σ and Σ be two models withΣ obtained fromΣ. Σis a partial model ofΣ if and only if the tripleX, ΘU, ΘY) is a model homomorphism.

Proof. Necessity and sufficiency are obvious: if (ΘX, ΘU, ΘY) is a homomorphism, the following rela- tions hold:

∀x ∈ X , ∀u ∈ U :

ΘX(F(x, u)) = FX(x), ΘU(u)), ΘY(H(x, u)) = HX(x), ΘU(u)). (6) IfΣ replicates partiallyΣ, then states and outputs are bisimilar, i.e.,

∀x ∈ X , ∀u ∈ U :

ΘX(F(x, u)) = FX(x), ΘU(u)), ΘY(H(x, u)) = HX(x), ΘU(u)). (7) Obviously, (6) is identical to (7). 

Remark 1.

• Proposition 1 is an extension of the automata ho- momorphism (Hartmanis and Stearns, 1966) to the general case.

• If only state bisimilarity is required, then onlyX, ΘU) needs to be homomorphic.

• The dynamics of the partial model Σare defined by (ΘX, ΘU) only.

2.2. Practical application. The modelΣ is supposed to represent the real behaviour of a physical system. This means that the input set U represents the occurrence of real events. The objective behind decomposition is to ob- tain a decoupled partial modelΣ which allows detect- ing selected faults and ignoring others. We assume that the faults are unknown (unobservable) inputs or events (Patton, 1994; Sampath et al., 1995). We also assume that perturbations and noise are unknown inputs. As a result, the input set is divided in three disjoint subsets:

U = Uc∪ Uρ∪ Uγ, (8) whereUρcontains inputs (subset of faults) to be detected, Uγ contains inputs to be ignored (perturbations or sup- plementary subset of faults) andUc regroups the known control inputs. UρandUγ form unknown (unobservable) input sets.

Consider the functionΘUdefined onΨUsuch that Uγ ⊆ ker(ΘU), Uc∪ Uρ ker(ΘU), (9) whereker(ΘU) denotes the kernel of the function ΘU.

A partial modelΣis obtained using the homomor- phism(ΘX, ΘU, ΘY) with ΘUfrom (9).Σwill replicate

the behaviour ofΣ, but it will totally ignore the inputs fromUγ. However, ifΣ andΣ are excited by different inputs fromUc∪ Uρ, state and output discrepancies will appear.

Therefore, discrepancies can be used to detect un- expected events (represented by inputs fromUc ∪ Uρ) in the input sequence. Moreover, if an occurring unexpected event belongs toUγ, no output discrepancy is observed, sinceΣis decoupled fromUγ.

Application of these concepts to fault detection and isolation is straightforward: the effects of process failures may be modelled as unknown inputs (see Patton, 1994).

Fault detection and isolation is performed by comparing real process outputs with simulated outputs of the partial modelΣ. This comparison allows computing residuals and the analysis of these residuals will grant us infor- mation about failure occurrences in the real process. In order to produce a structured residual that allows detect- ing a subset of failures and ignoring the other subset, the unknown inputs representing the failures to detecting are grouped inUρ.

The following section details the method for ob- taining Σ, i.e., determining X, Y, F and H for a givenU.

3. Decomposition of generic behavioural models

3.1. Decomposition procedure. The decomposition method proposed in this section is presented as an itera- tive procedure, withΣ(X , Uc∪ Uρ∪ Uγ, Y, F, H) as the input andΣ(X, U, Y, F, H) as the result. In order to ensure thatΣis decoupled fromUγ and coupled with respect toUρ, the decomposition procedure is constrained to coupling with respect toUρ and decoupling fromUγ

properties of the state setX.

However, the success of the constrained decomposi- tion procedure is essentially based on the fulfilment of the existence condition given in Proposition 1. This somewhat complex condition is simplified in the following. More- over, in order to improve the procedure, an extension is proposed based on a technique called output injection.

In the following, both constraints, coupling toUρand decoupling fromUγ, are detailed. Necessary conditions to obtain a partial modelΣand to guarantee bisimilar states and outputs are also given. An extension of the decom- position procedure using output injection is proposed. Fi- nally, an iterative decomposition algorithm is synthesized.

3.2. Decomposition constraints.

3.2.1. Decoupling constraint. Consider some partial modelΣsuch thatΣ and Σ are equivariant. Σis de- coupled fromUγ ifΘU(Uγ) ∩ U = ∅. This means that

(5)

Xdoes not intersect the state set coupled with respect to the subsetUγ, i.e.

Θ−1X (X) ∩ Xγ = ∅, (10) whereΘ−1X denotes the inverse ofΘX. The setXγis given by

Xγ= F(X , Uγ). (11)

3.2.2. Coupling constraint. In the same way, the cou- pling condition is expressed: Σ is coupled with respect toUρifΘU(Uρ) ∩ U = ∅. This means that the state sub- set coupled with respect to the subsetUρis not included in the kernel ofΘX, i.e.,

Xρ ker(ΘX). (12)

By analogy with (11), the setXρis given by

Xρ= F(X , Uρ). (13)

3.3. Decomposition conditions. Two conditions are required: the invariance condition is needed to show that Σis a partial model ofΣ and can be used to mirror a par- tial evolution ofΣ, while the output condition is necessary to ensure bisimilar outputs ofΣandΣ.

3.3.1. Invariance condition. The existence condition given in Proposition 1 is developed.

Lemma 1. LetΣ and Σbe two models withΣobtained fromΣ. The restriction (cf. Vereshchagin and Shen, 2002) of the functionFonΘX(X ) is invariant if and only if Σ

is a partial model ofΣ .

Proof. (Necessity) If the restriction ofF onΘX(X ) is not invariant, then

FX(X ), ΘU(U))  ΘX(X ), which means that

∃x ∈ X ∃u ∈ U : FX(x), ΘU(u)) = ΘX(F(x, u)) and implies thatΣ is not a partial model ofΣ, since it does not replicateΣ for all x and u.

(Sufficiency) IfΣis a partial model ofΣ, then

∀x ∈ X ∀u ∈ U : FX(x), ΘU(u)) = ΘX(F(x, u)) and

FX(X ), ΘU(U)) ⊆ ΘX(F(X , U)). (14) We know thatF is invariant by definition, so the rela- tionΘX(F(X , U)) = ΘX(X ) is true. Thus (14) becomes

FX(X ), ΘU(U)) ⊆ ΘX(X ),

which means that the restriction ofF onΘX(X ) is in-

variant. 

Finally, the new existence condition is

FX(X ), ΘU(U)) ⊆ ΘX(X ). (15)

3.3.2. Output condition. If outputs ofΣ andΣ are bisimilar, then it is possible to check the discrepancy be- tween the evolutions ofΣandΣ and the output condition is fulfilled. This condition makes sense only if the invari- ance condition is satisfied.

Output bisimilarity is ensured if Proposition 1 is ful- filled,

∀x ∈ X , ∀u ∈ U :

HX(x), ΘU(u)) = ΘY(H(x, u)). (16) However, this is the perfect case. Practically, only some bisimilar outputs are required to check the consis- tency ofΣ and Σ. Let us replaceY with a subset ˜Y ⊆ Y.

The relation (16) becomes

∀u ∈ U, ∀x ∈ X , ∃ ˜Y ⊆ Y :

∀y ∈ ˜Y ⇒ HX(x), ΘU(u)) = ΘY(H(x, u)) (17) or

∃ ˜Y ⊆ Y : Y∩ ΘY( ˜Y) = ∅. (18) The relation (18) is the final form of the output con- dition.

3.4. Output injection. In some cases, the constraints of the decomposition are too strong, resulting in an im- possible decomposition, i.e., there is no restriction ofF on a givenX = ΘX(X ) satisfying (15):

F(X, U)  X. (19) A special technique called output injection may be then used in order to relax the invariance condition. Out- put injection is a well-known technique for continuous- time model decoupling. The main idea is to replace the information loss due to the truncated state setXby ex- tending the input set ofΣwith selected outputs ofΣ.

Consider a set ˜X ⊆ X such that X⊆ ˜X and F( ˜X , U) ⊆ ˜X . (20) The relation (20) is always fulfilled, since we can take ˜X = X .

Let ξ be a function on Y → X such as ˜X = ΘX(X ) ∪ ξ(Y) and ξ(Y) = Xinj. The relation (20) is rewritten using ξ,

FX(X ) ∪ ξ(Y), U) ⊆ ΘX(X ) ∪ ξ(Y). (21) The relation (21) ensures the existence of a state function forΣdenoted by ˜F : ΨX × Y × ΨU → X, based on the functionsFand ξ forΣsuch that

F˜X(X ), Y, ΘU(U)) ⊆ ΘX(X ) ∪ Xinj. (22) Therefore, the appropriate use of the output injection ξ(Y) ensures the fulfilment of the invariance condition.

(6)

The relation (22) is referred to as the extended invariance condition. Notice that we use a different notation for the state function to emphasize that ˜F is not a proper re- striction of the functionF, mathematically speaking, but rather a modification based on the restrictionF.

For the sake of simplicity, in the following, we will refer to the state function of Σ as F with or without output injection.

Remark 2. In order to satisfy the decoupling condition (11) and to keepΣdecoupled,Xinj must be independent fromUγ, i.e.,

Θ−1X (Xinj) ∩ Xγ= ∅, (23) whereXγ is the same as in (11). This means that an ap- propriate selection of outputs to be injected must be per- formed. In the following, the injected output is denoted byYinj.

3.5. Decomposition algorithm. The decomposition procedure is formed as solving a constrained optimiza- tion problem. An iterative pseudo-algorithm is designed (Algorithm 1) to represent the three steps needed to ob- tain the decomposition function: The first step consists in the determination of the largest decoupled state setX0 using relation (10), and to do so, we also need to deter- mineXγusing the relation (11). Some other key elements are determined: the set Xρ using (13) to check the cou- pling constraint, the functionsF andH since they are necessary to describe the partial model, and finally, the output injection Yinj. This is achieved picking the ob- servable part of the setX0, i.e.,H(X0, U − Uγ) = Yinj

andXinj = Θ0X(H−1(Yinj)). The second step is an iter- ative procedure in order to determine the largest invariant subset with respect to F in X0 along with the mapΘX. The principle is to determine an initial set of decomposi- tion candidates satisfying the decoupling constraint repre- sented by the functionΘ0X, and to determineX andΘX using an iterative loop, based on a scheme proposed by Shumsky (1991). When the extended invariance condi- tion is fulfilled, the loop ends and the result is saved for the next step.

The final step consists in checking the coupling con- straint and the output condition using (17) and (18), and if the two conditions are satisfied, in building the quintuple describing the partial modelΣusing the decomposition functionΘX.

Algorithm 1 shows the steps required to determine the decoupling functionΘX, if a decomposition is possi- ble. However, this set-theoretical formalism is difficult to implement directly. Special mathematical techniques are proposed to simplify the implementation.

A possible approach is to define mathematical delim- iters used to regroup all set elements into one mathemat- ical entity. It is then possible to manipulate the delim-

Algorithm 1 Decoupling algorithm Require: Σ(X , U, Y, F, H),Uρ,Uγ;

DetermineX0andΘ0X such that X0= X − XγandΘ0X(X ) = X0 withXγ= F(X , Uγ) ;

DetermineXρ= F(X , Uρ);

Select an appropriateΘUsuch thatUγ⊆ ker(ΘU);

DetermineYinj⊆ H(X0, U − Uγ) and Xinj; DetermineF, Hrestrictions ofF, H;

{Initialization}: Set i=1;

ChooseX1andΘ1Xsuch that X1⊆ X0andΘ1X(X ) = X1;

{ For the first loop any singletonX1can be taken.}

while FiX(X ), ΘU(U))  ΘiX(X ) do Determine the subsetXi+1⊆ X0such that

FiX(X ), ΘU(U)) ⊆ Xinj∪ X1∪ . . . ∪ Xi+1; Determine the functionΘi+1X such that

Θi+1X (X ) = Xinj∪ X1∪ . . . ∪ Xi+1; Increment i;

end while ΘX = ΘiX; ifΘX= ∅ then

return Decoupling impossible;

else

DetermineΘYand ˜Y ⊆ Y such that HX(X ), ΘU(U)) ∩ ΘY( ˜Y) = ∅;

if∃ΘY, ˜Y then

Output condition satisfied byΘX; else

Output condition not satisfied byΘX; TakeX1 F(ΘX(X ), U);

if Impossible then Go to END else

Go to {Initialization}

end if end if

ifXρ ker(ΘX) then

Coupling constraint not satisfied byΘX; TakeX1⊆ F(ΘX(X ), U);

if Impossible then Go to END else

Go to {Initialization}

end if else

Coupling constraint satisfied byΘX; end if

U= U ∪ Yinj, X= ΘX(X ),

Y= HX(X ), ΘU(U)) end if

return Σ(X, U, Y, F, H)

iters rather than deal with the corresponding elements in- dividually. In the case of infinite sets, set delimiters are defined using functions (Shumsky, 1991). In the case of finite sets, set delimiters are defined using partitions of el-

(7)

ements (Hartmanis and Stearns, 1966).

The set of all delimiters with the corresponding mathematical relations forms an algebraic structure. If the definition sets of a model are finite, pair algebra is involved. Pair algebra was introduced by Hartmanis and Stearns (1966) to manipulate partitions of finite elements.

An extension to infinite sets of elements was proposed by Shumsky (1991) as well as Zhirabok and Shumsky (1993), using functions to define partitions of the differ- ent sets. The algebraic structure used is known under the name of the algebra of functions. Recently, the algebra of functions was used in several topics of model-based mon- itoring for deterministic systems (Berdjag, 2006b; 2006c), uncertain systems (Shumsky, 2007) and canonical decom- position (Zhirabok, 2006). An analysis of the algebra of functions was presented by Zhirabok and Shumsky (1993) and Berdjag et al. (2006b).

An implementation of Algorithm 1 is proposed in Section 5 using pair algebra, for the finite-state set case.

The following section will recall and introduce the notions that will be manipulated for such implementation.

4. Partitions and pair algebra

Reminders on partitions and partition operations are pro- vided in this section, along with definitions of pair algebra operators. Examples provided for each case are regrouped in Appendix.

4.1. Mathematical background.

4.1.1. Partition. Consider some finite set S. A parti- tion π on S is a collection of disjoint subsets of S whose set union is S. These subsets are called blocks and de- noted by Bαπ, where α is an element of S, which literally means “the partition block containing the element α”. For example, if a block is composed of two elements{α, β}, then it can be referred to using the notation Bαor Bβ,

π = {Bα} such that

 Bα∩ Bβ= ∅ for α = β, {Bα} = S.

(24) Consider a block B from π, and two elements s and t from S. If s and t are contained in the same block B of π, then we have s ≡ t(π).

Remark 3. If a confusion between blocks of two dif- ferent partitions appears in the following, for example, π1 and π2, then the following notation is used for the blocks:

Bαπ1and Bαπ2

4.1.2. Operations on partitions. Let S be a set and π1 and π2two partitions on S. s and t are two elements from S. The operations “·” and “+” along with the relations

“≤” and “=” are defined:

• π1· π2is the partition on S such that

s ≡ t(π1· π2) iff s ≡ t(π1) and s ≡ t(π2).

• π1+ π2is the partition on S such that

s ≡ t(π1+ π2) iff there is a sequence in S s = s0, s1, . . . , sn= t,

for which either

si≡ si+11) or si≡ si+12) , 0 ≤ i ≤ n − 1.

• π1≤ π2if and only if π1·π2= π1and π12= π2. Partition π2is said larger than or equal to π1.

• π1 = π2if and only if π1≤ π2and π2 ≤ π1. Parti- tions π1and π2are equal.

It can be shown that the relation ≤ is a partial or- der on the set of all the possible partitions on S, denoted by ΠS (see Hartmanis and Stearns, 1966). The setΠS

is said to be ordered by the partial order relation≤ with the smallest partition denoted byO and the largest parti- tion denoted byI. For example, let S = {1, 2, 3}. The smallest partition is given by O = {{1}, {2}, {3}} and the largest byI = {{1, 2, 3}}

For a more detailed overview on partition operations with examples, check the Appendix.

4.2. Substitution property. Let S and I be two sets and δ a function defined by

δ : S × I −→ S.

Let π be a partition on S. The partition π is said to have the substitution property with respect to the function δ if and only if

s ≡ t(π) ⇒ δ(s, i) ≡ δ(t, i)(π) ∀i ∈ I. (25) If π = {Bα}, for all α ∈ S, has the substitution property, then consider a function δπ : π × I −→ π such that

δπ(Bα, i) = Bδ(α)|∀i ∈ I, ∀α ∈ Bα: δ(α, i) ⊆ Bδ(α). The function δπ is the image of δ by π and results from a restriction of δ on π. Notice that we consider here the partition π as a set of block elements Bα.

The partition pair is an extension of the substitution property to two partitions. A partition pair (π, π) is an ordered pair of partitions on S such that

s ≡ t(π) ⇒ δ(s, i) ≡ δ(t, i)(π) ∀i ∈ I. (26) The set of all partition pairs is not anti-symmetric.

Also, if π has the substitution property, then π satisfies the relation (26), and(π, π) is a partition pair.

(8)

4.3. Pair algebra. Consider some set of partitions L ordered by the ordering relation≤, and a function δ. The subset Δδ ⊆ L × L of all the partitions pairs with re- spect to δ, along with the partition operations “·” and “+”, forms an algebra called pair algebra. If the pair1, π2) is a partition pair, then we have1, π2) ∈ Δδ.

Now, let μ and π be partitions on I and S, respec- tively,

(μ, π) ∈ Δδiff i≡ j(μ) ⇒ δ(s, i) ≡ δ(s, j)(π) ∀s ∈ S, (27) with i, j ∈ I.

In the partition pair framework, for a given partition π the minimal operator m and the maximal operator M define respectively the smallest partition and the largest partition pairing with π.

Definition 5. Let μ be a partition on I. Then mδ(μ) is the minimal partition that forms a partition pair with μ, i.e., (μ, mδ(μ)) ∈ Δδ, and if(μ, π) ∈ Δδ, then mδ(μ) ≤ π.

The result mδ(μ) is also given by the following relation:

mδ(μ) =

i|(μ, πi) is a partition pair}. (28) Definition 6. Let π be a partition on S. Mδ(π) is the maximal partition that forms a partition pair with π, i.e., (Mδ(π), μ) ∈ Δδ, and if(μ, π) ∈ Δδ, then μ≤ Mδ(π).

The result Mδ(π) is also given by the following relation:

Mδ(π) =

i|(μi, π) is a partition pair}. (29)

5. Decomposition of finite state machines

The decomposition of discrete-event models in order to determine reduced equivalent models is a popular topic.

However, model decomposition with a decoupling con- straint is not common for this type of model. In this sec- tion, a constrained decomposition methodology based on Algorithm 1 is proposed for FSMs, which are a common type of deterministic discrete-event models. FSMs are de- noted by (S, I, O, δ, λ) for distinction from the general case. S,I,O are respectively the state set, the input set and the output set of the model. Furthermore, δ is the state function and λ is the output function.

The decomposition problem is formulated as fol- lows: Consider an FSM Σ(S, I, O, δ, λ) with I = Ic Iγ ∪ Iρ. A partial FSM Σdecoupled from Iγ and cou- pled with respect to Iρis investigated. The machineΣis defined by the quintuple(S, I, O, δ, λ) with

• S= π, where π is a partition of S;

• O= πO, where πOis a partition of O;

• Iis the input set;

• δ: π × I→ π, where δis a restriction of δ;

• λ: π × I→ πO, where λis a restriction of λ.

5.1. Decomposition constraints. In order to express coupling and decoupling constraints using partitions, a neutral element i0is added to I,

∀s ∈ S : δ(s, i0) = s. (30) Hence, Σ is decoupled from the element i0 by defini- tion. If a block of a partition of I contains i0, then all the elements of this block are also decoupled fromΣ. Let Iγ = {a1, a2, . . .} and Iρ = {b1, b2, . . .}.

5.1.1. Decoupling constraint. Let us recall that in or- der for an FSM to be decoupled from a particular input a ∈ I, the kernel of state function δ must include this in- put, i.e., a∈ ker(δ). To obtain an FSM decoupled from a, the partition π of the state set S must be determined such that

a ∈ ker(δπ), (31)

with δpi being a restriction of δ on π × I.

Consider the following partition:

πγ = {{i0, a1, a2, . . .}, {i1}, . . . , {il}, {b1}, {b2}, . . .}, (32) where ij, with j = 1, . . . , l, are elements of Ic. The par- tition πγ is composed by a block regrouping all the el- ements of Iγ with the neutral element i0, and singleton blocks formed from the elements of Ic ∪ Iρ. Using the operator mδ and πγ, the state set partition π0that is de- coupled from Iγ is determined,

π0= mδγ). (33) To find a relationship between the partitions π0 and π, consider a state s1such that δ(s1, a) = s2 = s1, a Iγ. By the definition of the partition π0, s1 ≡ s20).

It is shown by analogy that si+1 ≡ si(π), where si+1 = δ(si, a) and i = 1, 2, . . . , k − 1, which means that for all inputs a∈ Iγ the FSM state s remains in the same block of π0. In other terms, we have δ(Bπ0, a) ⊆ Bπ0for some block Bπ0 from π0 or Iγ ∈ ker(δπ0), where δπ0 is the restriction of δ on π0× I.

By analogy, to ignore the input a, the following rela- tionship for each block Bπfrom π must hold:

δ(Bπ, a) ⊆ Bπ. (34) Since the operator mδ gives the smallest partition (33), each block Bπ0 from π0is included into the appro- priate block Bπfrom π, i.e., Bπ0 ⊆ Bπ. Therefore

π0≤ π. (35)

It can be shown by analogy that if π0≤ π, then each input a∈ Iγis ignored by the partial FSM obtained using the partition π.

(9)

5.1.2. Coupling constraint. By analogy, an FSM is a coupled to the particular input b∈ I if the kernel of state function δ does not include this input, i.e., b /∈ ker(δ). To obtain an FSM coupled to a, the partition π of the state set S must be determined such that

b /∈ ker(δπ), (36) with δpi being a restriction of δ on π × I.

Consider the partition πρthat decouples Iρ, πρ = {{i0, b1, b2, . . .}, {i1}, . . . , {il}, {a1}, {a2}, . . .},

(37) and the corresponding state set partition,

¯π0= mδρ). (38) We have previously seen that, if the machineΣis decou- pled from Iγ, then its state set is a partition of π0. Accord- ingly, ifΣis coupled to Iρ, then

¯π0 π. (39)

5.2. Decomposition conditions.

5.2.1. Invariance condition. Consider the FSMΣ and a partition π which has the substitution property with re- spect to δ. This means that if π has the substitution prop- erty, i.e.,(π, π) ∈ Δδ, then the discrete-event model de- scribed by (π, I, πO, δ, λ) is a partial model of Σ and the restriction of δ on π× I exists (see Definition 2).

From Definitions 5 and 6, if(π, π) ∈ Δδ, then the following relations are satisfied:

π ≤ Mδ(π) and π ≥ mδ(π). (40) For the FSM case, the relation π ≤ Mδ(π) implies π ≥ mδ(π) and vice versa. Thus, only one relation of (40) is required to test the invariance condition.

5.2.2. Output condition. Consider a partition π of the state set S. On the analogy of the invariance condition, if π has the substitution property, then there is a restriction of λ on π× = I → πO. Here πOis determined as πO = mλ(π). Let πλ = Mλ(O) be a partition induced by the output function λ and the output set O on the state set.

Each block of πλis associated with a single element of O, sinceO is a partition of singleton blocks. If π ≥ πλ is satisfied and(π, π) is a partition pair, then all the outputs ofΣ and the outputs of the partial model determined by π are bisimilar. This is obviously is the best case, but this condition is conservative.

Fortunately, to fulfil the output condition, it is suffi- cient to have one single bisimilar output which is notI.

This means that partitions π and πλ must share at least one block and πλ+ π = I. The output condition is given by

π + Mλ(O) = I. (41)

5.3. Output injection for discrete-event models. If there are no partitions π satisfying the invariance condi- tion, i.e.,(π, π) /∈ Δδ, then the loss in state information induced by the decomposition constraints is too signifi- cant. However, it is possible to compensate the informa- tion loss using the information provided by outputs. The information added is represented by a state set partition πysuch that

(π · πy, π) ∈ Δδ. (42) The relation (42) is satisfied if the following state- ments are true:

Mδ(π) ≥ (π · πy) and π ≥ mδ(π · πy). (43) The injection mechanism is now explained. A par- tition πinj of the output set O is determined. Here πinj

represents the injected outputs. Each block of πinj is re- lated via the function λ to a block of the state set partition πy, and this relation is given by πy = Mλinj). Since π0≤ π, the best possible output injection πinjwill satisfy the relation

π0· Mλinj) = O. (44) In this case, the output injection πinj completely compensates the loss in state information induced by the partitioning π0, since the blocks ofO are singletons and correspond on a one-on-one basis to elements of S. If a partition πinj exists such that the relation (44) is satisfied, then we can use the partition π0as the decomposition par- tition since

∀π : M(O) ≤ π ∧ π ≥ m(O)

is always satisfied by the definition of the operators m and M (see Hartmanis and Stearns, 1966).

However, if this is not possible, all πinjsatisfying the relation (45) are candidates to satisfy (43),

π0· Mλinj) = π0. (45) If multiple partitions πinj are acceptable, the largest partition will guarantee the simpler partial FSMΣ and the smallest partition πinj minimizes the information loss in the decomposition.

Finally, if the appropriate output injection is deter- mined and the relations (43) are satisfied, then the decom- position partition π determines a partial FSM with an ex- tended input set,

Σ(π, I× πinj, πO, δ, λ), from some partition πOand function λ.

5.4. Decomposition algorithm. Similarly to Algo- rithm 1, Algorithm 2 consists of three steps: The first step consists in the determination of the different elements

(10)

Algorithm 2 Decomposition algorithm for discrete-event models

Require: Σ(S, I, O, δ, λ) {Complete system}

Require: πγ, πλ{ Decomposition constraints}

π0= mδγ) { Decoupled state set partition }

¯π0= mδρ) { Coupled state set partition } πλ= Mλ(O) { State set partition induced by O } {Injected outputs }

πy= Mλinj)

Determine πinjsuch that π0· πy= O;

{Initialization of the iterative loop}

ξ0= π0, ξ1= mδ0· πy) + ξ0, i= 1;

while ξi = ξi−1 do ξi+1 = mδi· πy) + ξi; Increment i;

end while π = ξi if π= I then

return Invariance condition not satisfied by π else

if π+ πλ= I then

Output condition not satisfied by π else

Output condition satisfied by π end if

if π≥ ¯π0then

Coupling constraint not satisfied by π else

Coupling constraint satisfied by π end if

S= π;

I= (Ic∪ Iρ× πinj);

O= πO= mλ(π);

Determine δrestriction of δ on π× I→ π Determine λrestriction of λ on π× I→ πO

{Decoupled partial FSM}

return Σ(S, I, O, δ, λ) end if

needed in the calculus, i.e., the decoupled state set parti- tion π0for the initialisation of the iterative loop, the cou- pled state set partition πλto check the coupling constraint and the state set partition induced by the output set πλ

to check the output condition. Also, the partition πinj is computed to obtain the outputs to be injected. The sec- ond step of the algorithm is the iterative loop to obtain the invariant decoupled partition π, which is the basis of the partial model to be obtained. The loop is initialized in its first step by taking ξ0= π0and is based on the two main conditions for the partition π: π0≤ π and mδ(π·πy) ≤ π.

Finally, the resulting partition π is checked for the coupling constraint and the output condition, and if both conditions are satisfied, the decoupled partial FSM is built.

Fig. 1. FSMΣ.

Remark 4. If π0· πy = O, then the iterative loop in Al- gorithm 2 is skipped and π= π0. This is possible because mδ(π · πy) = mδ(O) = O and π0+ O = π0.

6. Illustration

Consider the FSM Σ, assumed to represent some real- world process and described by Fig. 1 and Table 1.

Table 1. Transition table of the modelΣ.

a b f g o

1 2 4 5 1 O

2 2 4 2 2 O

3 3 5 3 3 Q

4 3 4 4 3 Q

5 3 1 5 5 N

Σ is a five-state model, with two known inputs, two unknown inputs f and g and three outputs {O, Q, N}.

The initial state is1. Here g represents the fault to be de- tected and f the event to be ignored. Therefore,Σ is going to be decomposed in order to obtain the partial model de- coupled from Iγ = {f} and coupled to Iρ= {g}.

The first step requires computation of the decoupling partition π0. The input set partition decoupled from Iγis given by

πγ = {{i0, f}, {a}, {b}, {g}}.

The corresponding state set partition is given by π0= mδγ) = {{1, 5}, {2}, {3}, {4}}.

The smallest partition π which fulfills the invariance con-

Cytaty

Powiązane dokumenty

The variable reconstruc- tion approach assumes that each set of variables, e.g., one, two, or n variables is unknown and suggests to reconstruct these variables using the PCA model

It has been recently proposed by Rodríguez Alfaro (2014) and is inspired by the well-known solution to the fault detection and isolation problem, i.e., it follows a classical way

A variable structure adaptive observer approach for actuator fault detection and diagnosis in uncertain nonlinear systems, American Con- trol Conference, Chicago, IL, USA, Vol..

A view of the inversion-based input reconstruction with special emphasis on the aspects of fault detection and isolation by using invariant subspaces and the results of

Following the given ideas in LQ control performance (Krokavec, 2002), a fault detection scheme based on LQ control properties for a full state measurable case and an infinite

Thus, under Assumption 7, at the time instant when a switching from the mode i to l is detected, if u ¯ik i ¯ can always be confined inside the FI input set Uf by the

Actually the idea of decomposing a system for simplifying the controller synthesis is not new at all in the literature, and it has been applied for ex- ample for circulant systems

We show how, by using coding and partitioning, it is possible to achieve reli- able data storage even when the platform itself is unreliable.. We define a criterion for a feasible