Active modes and switching instants identification for linear switched systems based on Discrete Particle Swarm Optimization

Active modes and switching instants identification for linear switched systems based on Discrete Particle Swarm Optimization

Applied Soft Computing 14 (2014) 482–488 Contents lists available at ScienceDirect Applied Soft Computing journal homepage: www.elsevier.com/locate/...

723KB Sizes 0 Downloads 25 Views

Applied Soft Computing 14 (2014) 482–488

Contents lists available at ScienceDirect

Applied Soft Computing journal homepage: www.elsevier.com/locate/asoc

Active modes and switching instants identification for linear switched systems based on Discrete Particle Swarm Optimization Sahbi Boubaker a,b,∗ , Mohamed Djemai c , Noureddine Manamanni d , Faouzi M’Sahli e a

Community College, University of Hail, Saudi Arabia Unité de Recherche Etudes des Systèmes Industriels et d’Energies Renouvelables, Ecole Nationale d’Ingenieurs de Monastir, Tunisia Université de Valenciennes et du Hainaut-Cambrésis (UVHC), LAMIH UMR CNRS 8530, Campus du Mont Houy, F-59313 VALENCIENNES CEDEX 9, France d Université de Reims Champagne Ardenne (URCA), France e Ecole Nationale d’Ingénieurs de Monastir, Université de Monastir, Tunisia b c

a r t i c l e

i n f o

Article history: Received 29 April 2012 Received in revised form 30 January 2013 Accepted 18 September 2013 Available online 12 October 2013 Keywords: Switched linear systems (SLS) Identification Discrete Particle Swarm Optimization (DPSO) Modal sequence SARX Buck–boost converter

a b s t r a c t In this paper, a methodology for identifying switching sequences and switching instants of switched linear systems (SLS) is derived. The identification problem of a SLS is a challenging and non-trivial problem. In fact, it involves interaction between binary, discrete and real-valued variables. A SLS switches many times over a finite time horizon and thus estimating the sequence of activated modes and the switches locations is a crucial problem for both control and Fault Detection and Isolation (FDI). The proposed methodology is based on the Discrete Particle Swarm Optimization (DPSO) technique. The identification problem is formulated as an optimization problem involving noisy data (system inputs and outputs). Both a set of binary variables corresponding to each sub-model before and after each switch, and the corresponding switching instants are iteratively adjusted by the DPSO algorithm. Thus, the DPSO algorithm has to classify which sub-system has generated which data. The efficiency of the proposed approach is illustrated through a numerical example and a physical one. The numerical example is a Switched Auto-Regressive eXogenous (SARX) system and the physical one is a buck–boost DC/DC converter. © 2013 Elsevier B.V. All rights reserved.

1. Introduction Many applications in the real world processes are based on mathematical models, in particular for sake of control and diagnosis. Thus, an accurate estimation of such models and their parameters is highly required. In practice, many encountered systems exhibit switching between several operating modes. The switching mechanism can be either natural (switching systems) or imposed by an external authority (switched systems) [1]. Conventionally, Hybrid Dynamical Systems (HDS) identification deals with the development of a useful mathematical description by appropriately treating input–output data. The main challenge with this framework is that the measured available data are only presented as a mixture of observations generated by different submodels and usually corrupted by noise signals. Hence, one needs to assign each data to its generating mode, to detect when (or where) a commutation from one sub-system to another occurs and finally to estimate the parameters of all the sub-models describing the whole HDS [2].

∗ Corresponding author. Tel.: +966 552781848. E-mail address: [email protected] (S. Boubaker). 1568-4946/$ – see front matter © 2013 Elsevier B.V. All rights reserved. http://dx.doi.org/10.1016/j.asoc.2013.09.009

In this paper, we consider the problem of identifying the sequence of active sub-systems and their corresponding switching instants for the class of linear switched systems modelled in the state space formalism or as Switched Auto-Regressive eXogenous (SARX) models. The identification of HDS has been tackled using many traditional approaches which can be classified into two major families. The first one is based on algebraic tools [3] or on recursive algorithms [4,5]. These methods alternate in general between data assignment and parameters estimation. The second family presents the problem as an optimization one [6,7]. Continuous optimization framework in [7] is inspired by traditional estimation methods and supposed to avoid the use of discrete optimization generally known to suffer from combinatorial explosion. In [6] sparse optimization technique uses some relaxation strategies to convert the NP-Hard problem to a convexe one. Unfortunately, all these techniques have their limitations. Indeed, the algebraic procedures fail to find exact parameters specially in presence of noise [8]. Moreover, they are prone to be trapped in local minima because of their sensitivity to initialization. From an optimization point of view, the identification of HDS involves solving the combinatorial optimization problem which is known to be time consuming and thus used for small data sets.

S. Boubaker et al. / Applied Soft Computing 14 (2014) 482–488

Being presented with such difficulties when tackled using classical techniques, the identification of HDS can be better achieved by robust methods of optimization. Since 1995, the general method of optimization based on particle swarms has been successfully used for engineering problems and in particular for dynamical systems identification [9–13,18]. As examples, we can cite the work in [9] about the identification of van der Pol–Duffing oscillators. In [10], on-line identification of permanent magnet synchronous motor was implemented and in [11], where the estimation of bilinear systems parameters based on a specific version of adaptive PSO is detailed. Morover, the work presented in [12] and relating directly to fault and mode switching identification based on PSO has implemented some sets of Global Analytical Redundancy Relations (GARRs) for fault diagnosis. The main shortage of this approach, in our opinion, is that PSO is not the adequate tool to solve such relations. Also, in our previous work [13], we have successfully applied the PSO to the identification of the switching instants and parameters of autonomous switched linear systems. The contribution of this paper consists on the development and the implementation of an identification method for the class of linear switched systems based on DPSO. The data issued from the whole system is presented as a mixture resulting from the activation of the local sub-systems. We need in fact to assign each group of data to its corresponding sub-system and to estimate eventual switching time locations over the observation window. The strategy adopted in this paper consists on associating a set of binary variables to each possible generator sub-system and a set of discrete variables to the switching instants. These variables are iteratively adjusted using a version of continuous PSO equipped with a powerfull confinement mechanism. The objective is then to minimize the sum of least-squared errors between the noisy output of the real HDS and its model. Thus, both data clustering and parameters estimation are performed simultaneously without any need for strong mathematical assumptions or regularities. The main condition to be ensured is that the error function is computable and its expression contains all the parameters to be identified. The paper is organized as follows: Section 2 presents the class of HDS to be identified both in state space formalism and in SARX form and then the identification problem is formulated. In Section 3, the proposed approach for active modes and switching instants identification is described. Section 4 discusses the results of two illustrative examples. 2. Problem formulation Let us consider a switched linear system (see Fig. 1), supposed to describe a switched real process and defined by: Sub-system q : y(t) =

n 

q

ah y(t − h) +

h=1

q ∈ {1, . . ., M}

m 

q

(1)

 = {tc1 , . . ., tcS }

Without loss of generality, let us explain the switching mechanism. Consider the SLS of Fig. 1 under the switching sequence 3 → 1 →4 → 1 →2 → 3 and define a set of discrete samples {0, . . ., N}. Assume that 5 mode changes occur respectively at the switching instants tc1 , tc2 , tc3 , tc4 and tc5 . The active sub-systems and the corresponding time intervals are defined in Table 1. The identification problem studied in this paper is defined as follows: t=N

Given the excitation input signal {u(t)}t=0 and (N + 1) observations of the SLS t=N measured output {ym (t)}t=0 defined in (1) under a switching sequence as in (2), we are interested here in estimating the sequence of active sub-systems

 Q = { q0 , . . ., qS } and the set of their corresponding switching instants  = {tc1 , . . .,tcS }.

Note here that the same problem can be described in the statespace formalism. Hence, the switched sub-systems are defined as: ˙ = Aq x(t) + Bq u(t) x(t) y(t) = Cq x(t) + Dq u(t) + e(t)

(3)

Aq , Bq , Cq and Dq are matrices with appropriate dimensions and q is the discrete index as defined in (1). We consider that at each time one and only one sub-system is active. In other terms, at each sample the output y(t) is generated by only one sub-system. To deal with the identification problem, let us first transform it into an optimization one. This consists on minimizing the LeastSquared Error function defined in (4). t=N 

(ym (t) − y(t))2

(4)

t=0

l=1

where y(t) is the output of the model, u(t) is the input and q is a discrete variable indicating the qth sub-model of the SLS. n and q q m are respectively the orders of the system. ah and bl are the regressor coefficients assumed to be constant. M is the number of sub-systems. e(t) is an additive noise term. Without loss of generality, we consider that all the sub-systems have the same orders. The system switches S times over a finite set of samples, t ∈ {0, . . ., N}. Let us define a sequence of active sub-systems Q and a set of switching instants  Q = {q0 , . . ., qS },

Fig. 1. Switched linear system (SLS) model with M = 4.

LSE =

bl u(t − l) + e(t),

483

(2)

such that each sub-system qj ∈ {1, . . ., M} , j ∈ {0, . . ., S} is active during the interval of discrete instants {tcj + 1, . . ., tc(j+1) } , tc(S+1) = N.

As depicted in Fig. 2, the excitation signal u(t) is applied to both the real switched process and its model. The outputs are compared and the error signal is then introduced to the DPSO-based identifier in order to estimate the model parameters that cluster exactly the data and estimates both the active modes and the switching instants. For this optimization problem, the decision variables should be defined as follows: (a) For each interval of time {tcj + 1, . . ., tc(j+1) }, a set of binary variables ˛jq ∈ {0, 1} , j ∈ {0, . . ., S} , q ∈ {1, . . ., M} is defined. These variables characterize the state of each one of the sub-systems such that ˛jq = 1 if the mode q is active and ˛jq = 0 if not. Since one has assumed that one and only one sub-system is active

484

S. Boubaker et al. / Applied Soft Computing 14 (2014) 482–488

Table 1 A switching mechanism of the SLS of Fig. 1. Active sub-system Time interval

3 {t0 , . . ., tc1 }

1 {tc1 + 1, . . ., tc2 }

4 {tc2 + 1, . . ., tc3 }

1 {tc3 + 1, . . ., tc4 }

2 {tc4 + 1, . . ., tc5 }

3 {tc5 + 1, . . ., tc6 = N}

as follows:



(i)

(i)

(i)

(i)

(i)

(i)

 (i) = ˛01 , . . ., ˛0M , tc1 , . . ., tcS , ˛S1 , . . ., ˛SM

T ,

i ∈ {1, . . ., p} (7)

where p is the swarm size (number of particles). At each iteration k, each particle in the swarm updates its position according to the following set of equations: (i) (i) (i) (i) (i) v(i) = wk · vk + C1 · r1 · (pk − k ) + C2 · r2 · (gk − k ) k+1 (i)

(i)

(i)

k+1 = round(k + vk+1 ) wk = wmax −

w

− wmin kmax

max

(8) (9)

 k

(10)

(i)

k is a candidate solution encoded as the position of the ith parti-

Fig. 2. DPSO-based SLS identification structure.

(i)

during each interval, these variables must verify the following constraint: q=M 

cle at iteration k and vk is its velocity. C1 and C2 are the cognitive and the social acceleration constants. They are set to 2 respectively. r1 and r2 are random numbers with values in the range (i) [0, 1]. pk is the best position reached by the ith particle in the (i)

˛jq = 1

(5)

q=1

These binary coefficients constitute the first family of decision variables. Their number depends on the number of sub-systems and the number of switches. In fact for M subsystems and S switches, the number of binary variables is equal to M(S + 1). (b) The switching instants constitute the second family of decision variables. For the SARX form, they are discrete variables and for the state-space form, they are continuous variables. In both cases they have to verify the following constraint: t0 = 0 < tc1 < . . . < tcS < tc(S+1) = N

(6)

The physical meaning of this constraint is that when a subsystem is activated it remains active during a certain minimum time known as the dwell time. An infinite number of switches in a finite amount of time is thus avoided. 3. SLS identification: a DPSO approach PSO is a population-based optimization method. Because of its simplicity and computational efficiency it has been used in many fields and in particular for the identification of dynamical systems’ parameters. In PSO, numerous individual agents called “particles” are moved across the search-space looking for better solutions. During the move, each particle takes benefit from its best discoveries in the past and the best discoveries of the entire population called “swarm”. A vector of candidate solutions, called “position”, is associated to each particle and a “velocity” operator is adjusted in order to approach the global best solution. For detailed presentation of the PSO algorithm, its variants, its convergence analysis and parameters tuning, you can see the specialized references [14–17] and the references cited therein. In our case, we need only to ensure the connection between the “SLS identification world” and the “PSO world” by defining the position of a particle. The decision variables which are the parameters to be identified are coded as the position vector of the ith particle

past, known as the “personal best”. gk is the best position between neighbours of each particle, known as the “global best”. kmax is a maximum number of iterations. wk is the inertia weight making balance between exploration and exploitation during the identification process. wmax = 0.9, wmin = 0.4. The round function introduced in Eq. (9) indicates that the realvalued numbers are rounded off to the nearest integer numbers [17]. This is due to the fact that binary and integer solutions are needed for the identification problem studied in this paper. The computational process of the proposed DPSO-based algorithm for switched linear system identification can be described in the following steps. • Step 1: Extract the (N + 1) observations {ym (t)}t=N t=0 of the SLS and define all the parameter settings of the DPSO algorithm to be used. • Step 2: Set the iteration index to k = 0 and initialize randomly the particles by positions (7) and velocities (8). The binary variables are initialized as random numbers in {0, 1} while respecting, for each interval of time, the constraint (5). The switching instants are initialized as integer numbers in the interval {0, . . ., N} while respecting the constraint (6). Evaluate the estimation error function (4) for each particle and set the value of the current switched system parameters to its personal best position. • Step 3: Determine the global best as the position of the particle having the minimum error function among the swarm. • Step 4: Increment the iteration index. For each particle, update the vector of parameters according to Eqs. (8–10). • Step 5: Round-off all the obtained parameters to the nearest integer number such that the constraints (5) and (6) are satisfied. • Step 6: Each particle quality is evaluated according to its updated position and thus the estimation error function (4) is computed. • Step 7: If one particle improves its error function, its personal best position is set to its current position. • Step 8: If the stopping criterion is reached then, print the obtained result as the estimates of the identification parameters; otherwise repeat Steps 3–8. The main operation to be performed in a PSO algorithm is the fitness function computation. According to Steps 2 and 6, the particle quality is evaluated from its Least-Squared Error (LSE) function

S. Boubaker et al. / Applied Soft Computing 14 (2014) 482–488

Fitness function computation for the ith particle LSE(i) (0) = (ym (0) − y(0))2 ; initial value for the fitness function for j = 0 to S ; time interval indexes tcj ; the jth interval limits for t = tc(j-1) + 1 to n 

˛jq q=1

q

ah y(t − h) +

h=1

m 

0

0

10

20

30

40

50 samples (b)

60

70

80

90

100

0

10

20

30

40

50 samples

60

70

80

90

100

q

bl u(t − l) + e(t)

l=1

; The sub-system which generates the output y(t) is the one active in the jth interval. Its corresponding index ˛jq = 1. ; all the other sub-systems are inactive. LSE(i) (t) = LSE(i) (t − 1) + (ym (t) − y(t))2 End End LSE(i) = LSE(i) (N)

In general, the move equations in the PSO approach provide realcontinuous values. As the variables to be identified for the studied switched systems are binary (˛jq ) or discrete-integer (tcj ), we have resort to the “round” function (Eq. (9)) to generate the adequate values. In fact, the real value is gradually truncated to its nearest integer [20]. Let us consider the dth component in the position vector, (i) (i) (k + vk+1 ) , corresponding to the confined binary variable ˛jq . The d confinement procedure operates as follows: (i) (i) (i) (i) • If (k + vk+1 ) ∈ [−0.5, 0.5[ ⇒ round((k + vk+1 ) ) = 0 ⇒ d d ˛jq = 0 • If ( (i) + v(i) ) < 0.5 ⇒ ˛jq = 0 k

1

-1

measured output ym(t)

y(t) =

q=M 

(a) 2

input u(t)

which is here the objective function to be minimized. Given the ith particle position  (i) (as defined in Eq. (7)), the continuous SLS input u(t) and its measured output ym (t), t ∈ {0, . . ., N}, the following procedure is used to compute the ith particle fitness function.

485

20 10 0 -10 -20

Fig. 3. Input (a) and measured output (b) extracted from the SARX to be identified.

chosen such that the Signal to Noise Ratio (SNR) is equal to 10 dB with respect to the output signal. Note that the switches herein introduced are only for simulation purpose. They are also used to be compared with the estimated results. Using the experimental data (Fig. 2), we want to estimate which of the three sub-systems have been activated ( q0 ,  q1 ,  q2 ) and when the two switches occur ( tc1 ,  tc2 ). For such purpose, we start by encoding the parameters to be estimated as a position of each particle in the DPSO paradigm:

k+1 d

• If ( (i) + v(i) ) ∈ [0.5, 1.5[ ⇒ round(( (i) + v(i) ) ) = 1 ⇒ ˛jq = k k+1 d k k+1 d 1 (i) (i) • If ( + v ) > 1.5 ⇒ ˛jq = 1 k k+1 d

In addition to the above cited confinement procedure, the constraint (5) must be ensured; i.e. during each interval of time {tc(j−1) + 1, . . ., tcj }, one and only one sub-system is active (its corresponding activation index ˛jq = 1 and all the other indexes are equal to 0). 4. Illustrative examples The performance of the proposed approach is illustrated through the following examples. 4.1. SISO SARX Consider a SISO (Single-Input Single-Output) SARX composed of three sub-systems having the following structures: • Sub-system 1: y(t) = −0.5961y(t − 1) − 0.5476y(t − 2) + 0.6u(t − 1) + e(t) • Sub-system 2: y(t) = −0.9y(t − 1) − 0.6175y(t − 2) + 1.2u(t − 1) + e(t) • Sub-system 3: y(t) = −0.5106y(t − 1) − 0.81y(t − 2) + 3.5u(t − 1) + e(t) To generate the identification data, the excitation input (Fig. 2(a)) is chosen to be a 100 sized pseudo-random binary sequence (PRBS). We introduce also the following switches: from sub-system 2 to subsystem 1 at the instant 32 and from subsystem 1 to sub-system 3 at 75. The output signal is corrupted by an additive Gaussian white noise. The magnitude of the noise is

(i)

(i)

(i)

(i)

(i)

(i)

(i)

(i)

(i)

(i)

(i) T

 i = (˛01 , ˛02 , ˛03 , tc1 , ˛11 , ˛12 , ˛13 , tc2 , ˛21 , ˛22 , ˛23 )

Since the proposed DPSO approach is stochastic and the SLS measurements are corrupted by noise, we have carried out 300 independent experiments in the same conditions (number of particles, SLS input and measured output, . . .). All the computations are performed in Matlab environment. The swarm size is 20 and the stopping criterion is a maximum number of iterations, kmax = 100. To deal with statistical measures of the carried out experiments, the obtained results are recorded. We use 4 statistical parameters namely, mean (average), standard deviation (st.dev.), median and mode [19] for the two switching instants and for the global best fitness function. The statistical results are summarized in Table 2. We adopt the mode values as the identified parameters of the studied SARX. In fact, the mode value of each parameter corresponds to the most frequent result among those of the 300 carried out experiments. Moreover, the mean values for the switching instants are almost equal to the theoretical values used for simulation data generation. It is also obvious that the standard deviations are very small which proves that the results distributions are near the mean values and that they are more or less similar [19]. Details about a run that provides results corresponding to the mode adopted values are given below. In order to alleviate these details, a swarm of 5 particles (among the 20 particles considered) is used (Fig. 3). (a) Initialization: the 5 particles, named P1, P2, P3, P4 and P5 are initialized as indicated in Table 3. It is obvious that each three binary variables have their sum equal to 1. For example, particle P3 position indicates that in the first interval of time, sub-system 1 is active. The first switch occurs at 24. The second activated sub-system is sub-system 2. The second switch occurs at the sample number 63 to the first sub-system. The last

486

S. Boubaker et al. / Applied Soft Computing 14 (2014) 482–488

Table 2 Statistical measures of 300 runs (case of a SARX with noisy output). Parameter



˛01

˛02

˛03



tc1 [ ˛11

˛12

˛13 ]

[ ˛21 LSE

˛22

˛23 ]

tc2

Meaning

Mean

st. dev.

Median

Mode

Activation indexes for the sub-systems during the interval {0, . . ., tc1 }

*****

****

****

[0 1 0]

First switch occurrence time Activation indexes for the sub-systems during the interval {tc1 + 1, . . ., tc2 }

33 *****

1.08 ****

32 ****

33 [1 0 0]

Second switch occurrence time Activation indexes for the sub-systems during the interval {tc2 + 1, . . ., N} Global best fitness function value

77 ***** 205.70

2.35 **** 5.23

76 **** ***

77 [0 0 1] ***

Table 3 Initialization process of a swarm with 5 particles.

P1 P2 P3 P4 P5

˛01

˛02

˛03

tc1

˛11

˛12

˛13

tc2

˛21

˛22

˛23

LSE

0 0 1 1 1

0 0 0 0 0

1 1 0 0 0

45 45 24 23 21

0 0 0 1 1

0 1 1 0 0

1 0 0 0 0

69 45 63 44 55

0 0 1 1 0

1 0 0 0 1

0 1 0 0 0

1162.20 972.42 564.22 526.63 495.74

(a)

325

100 80 320

40 20 0

0

10

20

30

40

50 60 iterations (b)

70

80

90

100

100

estimation error function

t1

60

315

310

80 t2

305 60 40 300 20

0

10

20

30

40

50 60 iterations

70

80

90

0

10

20

30

40

100

50 60 itearations

70

80

90

100

Fig. 5. Convergence performance of the DPSO-based identification algorithm. Fig. 4. Convergence analysis of tc1 and tc2 .

column includes the value of the error function of each particle. P5 is the best particle among the swarm. (b) Confinement: During the identification process, the move equations of the particles may generate real numbers for binary and discrete variables to be identified. In such case, one has to round-off these variables to the nearest integer numbers in order to satisfy the nature of the identified variables and to satisfy the constraints (5) and (6). (c) Convergence illustration: To demonstrate the convergence characteristics of the proposed approach, one chooses to follow one of the particles of the swarm (P4 for example). It is shown from Fig. 4 that the parameters tc1 and tc2 converge to constant values (respectively 33 and 77) within 60 iterations. Any other particle of the swarm behaves globally like P4. In Fig. 5, we illustrate the convergence characteristics of the whole swarm. It is clearly observed that the value of the identification error function of the best particle converges to a constant value at the end of the identification process. The fact that this value is different from zero is due to the presence of the noise term in the extracted output. At the end of the identification process, the obtained solution is represented in Table 4. It can be observed that among the three first binary variables, the second one is equal to 1 which means that during the first interval of

time {0, 1, . . ., 33} the sub-system 2 is active. During {34, . . ., 77}, sub-system 1 has been identified to be active. Finally, during the interval of time {78, . . ., 100}, the sub-system 3 is active. Moreover, it is clear that the estimated two switching instants are respectively 33 and 77. The obtained results are almost the same as those used in simulation data generation (see Fig. 2). 4.2. Buck–boost DC/DC converter Let us consider the buck–boost DC/DC converter shown in Fig. 6 [3]. The switching component (T) is subject to two discrete states (Open and Closed). Thus, the converter presents a switched behaviour characterized by the two following sub-systems:





−1 • Sub-system 1: x˙ = RC 0 ⎛ −1 • Sub-system 2: x˙ = ⎝ RC 1 L

0 0 −1 C



0 1 L

x+

⎞ ⎠x +

u

 

0

0 0

u

Table 4 The optimal identified parameters. 0

1

0

33

1

0

0

77

0

0

1

S. Boubaker et al. / Applied Soft Computing 14 (2014) 482–488

487

35 30 25 20

x2 15 10

Fig. 6. Buck–boost converter (L = 100 ␮H, C = 220 ␮F, R = 20 ˝).

x1 5

T

T

where x = [ V i ] = [ x1 x2 ] is the continuous state vector and y = x2 is the common output. For the computation requirement the two sub-systems are sampled at a sampling period Ts = 1 ␮s. The first order discrete-time model for the studied switched DC/DC converter is then given by: A1 =

(i)

(i)

(i)

(i)

(i)

(i)

(i)

 (i) = [˛01 , ˛02 , tc1 , ˛11 , ˛12 , tc1 , ˛21 , ˛22 , tc3 , ˛31 , ˛32 , (i)

(i)

(i)

tc4 , ˛41 , ˛42 ] The following constraints have to be verified: • ˛(i) + ˛(i) = 1, j1 j2

(i)

20

40

60

80

100

120

140

160

180

200

220

240

260

280

300

(i)

j = 0 : 4, ˛J1 ∈ {0, 1}, ˛J2 ∈ {0, 1}.

• t (i) < t (i) < t (i) < t (i) c1 c2 c3 c4 For this example, 300 runs are carried out using the DPSO of Section 3. The results are then recorded and their statistical measures are summarized in Table 5. Furthermore, Table 5 provides the worst and the best estimation error functions. From this table, it can be observed that the sequence of active modes and their corresponding switching instants are accurately estimated. In 98% of runs (among 300 experiments carried out), the numerical values of the switching instants are provided with little standard deviations. The obtained results confirm the effectiveness of the proposed DPSO on data clustering. In fact, the data generated by different sub-systems are correctly assigned to their corresponding modes. Table 5 Runs results for the buck–boost converter identification. Parameter

Mean

st.de

Median

Worst

Best

tc1 tc2 tc3 tc4 LSE

79 149 220 278 ****

4.08 1.17 0.08 0.29 ****

80 150 220 278 ****

78 145 215 275 1.1467e+005

80 150 220 280 0

Moreover, our approach is demonstrated to perform better than the approach in [3]. In fact, the used DPSO allows the estimation of the active modes in addition to the switching instants whereas, the algebraic approach proposed in [3] estimates only the switching instants. The best solution is chosen to simulate the studied SLS behaviour. The continuous states (the current and the voltage across the capacitor) evolutions are shown in Fig. 7. Both the experimental active modes and the identified ones are depicted in Fig. 8. 4.3. Discussions From the obtained results, the following discussions can be highlighted. The difficulty of assigning data to each corresponding sub-system is efficiently overcome. The algorithm has been run 300 times for each example and success ratio was of 98%. Moreover, the initialization difficulty encountered by classical methods is also overcome by the random setting of the particles at the beginning of the algorithm. Thus, the search space is globally discovered. The version of DPSO used in this work has been demonstrated to handle both binary and discrete variables. In general, optimization problems involving such variables are known to be highly combinatorial (a) 3

mode q

(i)

0

A2 =

T

(i)

-15

Fig. 7. Estimated continuous state variables.

To generate simulation data, the system is excited by a constant

(i)

-10

time (us)

input signal U = 24 V starting at x(0) = [ 0 0 ] and sub-system 1 as initial active mode. To fulfil the same conditions as in [3], the output is assumed to be noise-free. Four switches are also introduced respectively at 80 ␮s, 150 ␮s, 220 ␮s and 280 ␮s. N = 300 data are then collected to perform the identification process. The parameters to be identified are coded as the position of swarm particles according to the following equation: (i)

-5

2

1

0

0

20

40

60

80

100

120

140

160

180

200

220

240

260

280

300

180

200

220

240

260

280

300

(b) 3

mode q

• Sub-system 1:  x(t + 1) = A1 x(t) + B1 u(t),  0 −Ts +1 0 , B1 = Ts RC 0 1 L • Sub-system x(t + 1) = A2 x(t) + B2 u(t), ⎛ ⎞ 2:   −Ts −Ts +1 C ⎠ , B2 = 0 ⎝ RC Ts 0 1 L

0

2

1

0

0

20

40

60

80

100

120

140

160

time (us) Fig. 8. Experimental (a) and estimated (b) active modes.

488

S. Boubaker et al. / Applied Soft Computing 14 (2014) 482–488

and therefore time consuming. Through the implemented examples, we have observed that PSO is insensitive to additive noise in the extracted data. As it is a stochastic search method, PSO suffers from the difficulty of obtaining theoretical convergence proof. The solutions provided by this approach are in general near-optimal. Moreover, to use PSO for online identification of SLS, a detailed study of the objective function to be minimized and the number of particles in the swarm is highly required. In fact, the more the error function is complicated the more the PSO takes time to evaluate it. In some cases, where the continuous dynamics of the SLS are relatively slow, the PSO provides good results even when it is used for online identification. 5. Conclusion The present paper discusses the identification of both modal sequence and switching instants of switched linear systems based on Discrete Particle Swarm Optimization algorithm. By exploiting the capacity of the PSO to operate in complex search spaces, we have first formulated the problem as an optimization one and encoded the parameters to be identified as positions of particles. By using only the error-function evaluation, we have omitted the burden of manipulating complex mathematical relations. Motivated by the good results obtained for the examples we have implemented, we can envisage applying this approach to other classes of hybrid systems and for specific fields such as observation and failure detection and isolation. Moreover, the approach presented in this paper can be extended to HDS with nonlinear continuous dynamics and/or exhibiting some jumps when switching from one operating mode to another. References [1] W.P.M.H. Heemels, B. De Schutter, A. Bemporad, Equivalence of hybrid dynamical models, Automatica 37 (2001) 1085–1091. [2] E. Domlan, B. Huang, J. Ragot, D. Maquin, Robust identification of switched regression models, IET Control Theory and Applications 3 (12) (2009) 1578–1590. [3] Y. Tian, T. Floquet, L. Belkoura, W. Perruquetti, Algebraic switching time identification of linear hybrid systems, Nonlinear Analysis: Hybrid Systems 5 (2011) 233–241.

[4] R. Vidal, Recursive identification of switched ARX systems, Automatica 44 (2008) 2274–2287. [5] L. Bako, K. Boukharouba, E. Duviella, S. Lecoeuche, A recursive identification algorithm for switched linear/affine models, Nonlinear Analysis: Hybrid Systems 5 (2011) 242–253. [6] L. Bako, Identification of switched linear systems via sparse optimization, Automatica 47 (2011) 668–677. [7] F. Lauer, G. Bloch, R. Vidal, A continuous optimization framework for hybrid system identification, Automatica 47 (2011) 608–613. [8] E.F. BaCamacho, D.R. Ramirez, D. Limon, D. Pena, T. Alamo, Model predictive control techniques for hybrid systems, Annual Reviewers in Control 34 (2010) 21–31. [9] G. Quaranti, G. Monti, G.C. Marano, Parameters identification of Van der Pol–Duffing oscillators via particle swarm optimization and differential evolution, Mechanical Systems and Signal Processing 24 (2010) 2076–2095. [10] W. Liu, L. Liu, E. Chung, D. Cartes, Real-time particle swarm optimization based parameter identification applied to permanent magnet synchronous machine, Applied Soft Computing 11 (2011) 2556–2564. [11] H. Modares, A. Alfi, M. Sistani, Parameter estimation of bilinear systems based on an adaptive particle swarm optimization, Engineering Applications of Artificial Intelligence 23 (2011) 1105–1111. [12] M. Yu, M. Luo, D. Wang, S. Arogeti, X. Zhang, Simultaneous fault and mode switching identification for hybrid systems based on particle swarm optimization, Expert Systems with Applications 37 (2010) 3000–3012. [13] S. Boubaker, M. Djemai, N. Manamanni, F. M’Sahli, Switching instants identification of autonomous switched linear systems: a particle swarm optimization approach, in: Proceedings of IEEE International Mediterranean Conference for Control and Automation, Marrakech, Morocco, June 23, 2010, p. 25. [14] J. Kennedy, R.C. Eberhart, Particle swarm optimization, in: Proceedings of IEEE International Conference on Neural-Networks, 1995, pp. 1942–1948. [15] F. Van den Bergh, A.P. Engelbrecht, A study of particle swarm optimization particle trajectories, in: Information Sciences, Elsevier, 2005, pp. 1–35. [16] M. Clerc, J. Kennedy, The particle swarm-explosion, stability, and convergence in a multidimensional complex space, IEEE Transactions on Evolutionary Computation 6 (1) (2002) 58–73. [17] Y. Del valle, G.K. Venayagamoorthy, S. Mohagheghi, G.C. Hernandez, Particle swarm optimization, basic concepts, variants and applications in power systems, IEEE Transactions on Evolutionary Computation 12 (Nb. 2) (2008) 171–195. [18] P. Kou, et al., Parameters identification of nonlinear state space model of synchronous generator, Engineering Applications of Artificial Intelligence 24 (2011) 1227–1237. [19] M. Arumugam Senthil, M.V.C. Rao, On the improved performances of the particle swarm optimization algorithm with adaptive parameters, crossover operators and root mean square (RMS) variants for computing optimal control of a class of hybrid systems, Applied Soft Computing 8 (2008) 324–336. [20] D. Datta, J.R. Figueira, A real-integer-discrete-coded particle swarm optimization for design problems, Applied Soft Computing 11 (2011) 3625–3633.