scieee AI-readable full text Open interactive document viewer

Hybrid dynamical control based on consensus algorithms for current sharing in DC-bus microgrids

Albea-Sánchez, Carolina

Abstract

Abstract|The main objective of this work is to propose a novel paradigm for the design of two layers of control laws for DC-bus microgrids in islanded mode. An intensive attention will be paid to the inner control level for the regulation of DC-DC electronic power converters, where the use of Hybrid Dynamical System theory will be crucial to formulate and ex- ploit switching control signals in view of reducing the dissipated energy and improving system performance. Indeed, this recent theory is well suited for analysis of power electronic converters, since they combine continuous (voltage and currents) and discrete (on-o state of switches) signals avoiding, in this way, the use of averaged models. Likewise, an outer control level for controlling DC-bus microgrids will be developed to provide a distributed strategy that makes the microgrid scalable and robust with respect to black- outs of sources and/or loads, following the principle of t Multi-Agent System theory. In this distributed strategy, they are several crucial and innovative as- pects to be regarded such as the di erent converter architectures, the hybrid and nonlinear nature of these converters. Stability properties are guaranteed by using singular perturbation analysis.

Full text

Hybrid dynamical control based on consensus algorithm for current sharing in DC-bus microgrids Carolina Albea Sanchez Abstract— The main objective of this work is to propose a novel paradigm for the design of two layers of control laws for DC-bus microgrids in islanded mode. An intensive attention will be paid to the inner control level for the regulation of DC-DC electronic power converters, where the use of Hybrid Dynamical System theory will be crucial to formulate and exploit switching control signals in view of reducing the dissipated energy and improving system performance. Indeed, this recent theory is well suited for analysis of power electronic converters, since they combine continuous (voltage and currents) and discrete (on-off state of switches) signals avoiding, in this way, the use of averaged models. Likewise, an outer control level for controlling DC-bus microgrids will be developed to provide a distributed strategy that makes the microgrid scalable and robust with respect to blackouts of sources and/or loads, following the principle of t Multi-Agent System theory. In this distributed strategy, they are several crucial and innovative aspects to be regarded such as the different converter architectures, the hybrid and nonlinear nature of these converters. Stability properties are guaranteed by using singular perturbation analysis. I. Introduction Microgrids linked to renewable energies emerge from the necessity to reduce the pollution as, for instance, the CO2equivalent emissions and to account for the increasing energy demand. This class of systems are composed of distributed loads and Distributed Generations (DG1), that can operate in parallel with the broader utility grid (grid-connected mode) with a grid-following (current dependent) control [9] or as autonomous power system (islanded mode) with a grid-forming (voltage dependent) control [28]. Moreover, they can be seen as the building blocks of Smartgrids. The main advantages of microgrids are the reliability, thanks to the DGs, their efficiency due to the reduction of the energy transmission and their ability to let to integrate alternative energy resources [20]. In order to exploit all these advantages, microgrids must ensure low distribution losses, high reliability, energy efficiency, robustness with respect to blackouts and scalability. The interconnection between different electrical characteristics, including sources, loads and storage elements, is ensured by electronic power converters, merging to different control network structures in order to maintain C. Albea Sanchez are with LAAS-CNRS, Univ. de Toulouse, UPS, LAAS, 7 avenue du Colonel Roche, F-31400 Toulouse, France. [email protected] 1DG is an electric power generation source connected directly to the distribution network or to the customer side, thus encompasses the sources and the electronic converters [18]. microgrid power balancing. Historically, a first solution refers to the conventional droop control method [6], [21], which consists in reducing a common voltage reference for every DG, as the output current increases. This decentralized control method has been widely used for low power sharing because of its scalability and answer to plug-and-play paradigm. Nevertheless, this approach presents some important drawbacks as detailed in [15]: frequency and voltage deviations, uncertainties in the line impedances and harmonic loads. In order to alleviate these drawbacks, some control solutions have been proposed adding a communication line between the converters, leading to two control levels: the inner control level of DGs for the conventional droop control, and outer control level of distribution bus for the extra control loop. The first control solution of these two control levels was a centralized hierarchical control. This structure provides a droop voltage (or current) reference to each DG, which is computed through the error between the measured and reference voltage (or current) of the microgrid. This method presents a good power sharing in steady state and transient time. However, it needs the communication of the outer control loop with each DG, which requires an expensive cost due to the demanded high-bandwidth communication. Moreover, it is neither robust, with respect to source blackouts and failures of the outer control loop, nor scalable. It also disregards the line resistance [14], [19], which is not suitable with the application of the plug and play paradigm and limits the potential of the approach. Another communication structure was the master/slave control, where one controlled DG specifies the current reference of the other slave DGs [7], [32]. The main advantages are the ability of recovering the outputs and its acceptable power sharing in steady state. Nevertheless, it also requires a high bandwidth communication, it is not reliable to master failures and it presents a high current overshoot in transient time, a low scalability and a reduced robustness performance. Recently, some works propose distributed control strategies with low-bandwidth communication [4], [16], [35]. These controllers are based on Multi-Agent Systems theory, proposing a leader-follower consensus control algorithm [11] in the outer control loop. By developing this algorithm by means of control theory, the microgrid can present, additionally to a low bandwidth communication, very good performance (e.g. transienttime, steady-state), reliability, efficiency, scalability and robustness. Nevertheless, this method generally disregards the nonlinear nature of power converters dynamics [22], [36]. The deal here focuses on providing reliable, efficient and robust distributed power flow controllers for DC- microgrids in islanded mode. The objective consists in integrating in the DC-bus a network model for islanded mode, including the electronic converters dynamics, which are nonlinear with continuous and discrete dynamics, providing stability properties of the overall system. The main advantages of considering this more realistic dynamical model is to avoid undesirable behaviour in transient-time and to increase the energy efficiency in every loop for the considered microgrids. Hence, the loops are the following ones: a) Inner loop: This loop is concerned by the dynamic of the microgrid power converters [4]. Converters control has been widely studied by the electronic and control communities, mostly using approximate models, such as averaged models [5], [24], [31]. These approaches have solved many practical problems in terms of theoretical justifications, but the answers still are incomplete to some extent. More recently, the control community has concentrated some efforts on the study of new hybrid control techniques applied to DC-DC converters that consider the real dynamics including: continuous-time dynamics as the current and voltage and discrete-time dynamics as the switching, for example, in [2], [10], [23] where the problem is formulated in terms of control of switched systems, whose modes are described by affine differential equations. Moreover, some solutions using this approach consider a practical implementation limitation related to avoid infinitely fast switching. A formalism relying on controlled switches, ensuring a minimum dwell time is proposed in [1], [17], [33]. The formalism used here is based on the Hybrid Dynamical Systems (HDS) theory given in [13]. This theory presents some advantages in power converters, as managing switching in the transient time for reducing the dissipated energy and avoiding current peaks in the start up [30]. b) Outer loop: The outer loop control ensures an efficient and reliable current sharing in the DC-bus in islanded mode, considering the converter dynamics. Indeed, this outer loop must generate the corresponding reference signals for each converter connected to the bus, maintaining a power balancing. The most efficient communication-based power sharing strategies are related to Multi-Agent System (MAS) theory, which basically refer to a continuous distributed interaction control law and lead the agents in the network to an agreement. The convergence properties, such as the existence of a unique equilibrium or the speed of convergence, strongly depend on the properties of communication graph among agents. This field has been very active for more than a decade and in many relevant directions have conducted to milestone results. To cite only few, one may refer to consensus algorithms, rendezvous problems, synchronization [25], [27]. Solutions consisting in the application of consensus algorithms in DC microgrids were proposed in [16] or [35]. However, none of these two publications consider the dynamics of the converters, nor ensure the network stability. The authors of [4] assess stability of ideal outer loops through an eigenvalue analysis, without regarding the dynamics of the converters. Moreover, in [8], [34] the authors propose a consensus algorithm taking into account the inner loop dynamics, controlled by sliding mode controls in [8] and by first-order filters in [34]. These dynamics are specifically focussed on buck converter architectures, which present linear average behaviours. Likewise, they neither allow a reduction of dissipated energy managing the switching, nor avoid current peaks in the start up. Moreover, the objective in [8] is a voltage balancing, which is different to the goal given here about current sharing in a DC-bus microgrid architecture and, [34] does not take into account the hybrid dynamical nature of the converters. We follow here a different paradigm of controlling DC- bus microgrids in islanded mode that gathers not only the different converter architectures, but also the switched affine model of the nodes, arising from the suggestive framework recently proposed in [12], [13]. The appealing feature of this new framework together MAS theory [27] uses Lyapunov tools to provide stability guarantees for designing distributed hybrid systems, based on a leaderfollower consensus algorithm. Moreover, time-scale separation is considered for the microgrid state variables, relating the inner loop dynamic to slow dynamics and the outer loop dynamic to fast dynamics. Hence, singular perturbation analysis in HDS [29] will provide suited stability properties. In addition, a minimum dwell time for the converter dynamics, current balancing weighted by the battery generation capacities as well as, robustness with respect to plug-in-play, connection failures and parameter variations are also ensured. The paper is organized as follows. A characterisation of the DC-bus microgrid in islanded mode and the problem formulation is given in Section II. The mathematical model is provided in Section III. Hence, an hybrid control scheme that gathers both loops (the inner and the outer) is presented in Section IV. Stability guarantees are ensured in Section V. Likewise, some simulations are shown in Section VI validating the main result. Finally, a conclusion section closes the paper. Notation: Throughout the paper Nand Rdenote the set of natural and real numbers, respectively. Rnthe ndimensional Euclidean space and Rn×mthe set of all real n×mmatrices. I,1and 0represent the identity matrix, vectors of ones and zeros, resp. of suited dimension. ∅ represents an empty set. The Euclidean norm of vector x∈Rnis denoted by |x|. For any symmetric matrix Mof Rn×n, the notation M0 (M≺0) means that the eigenvalues of Mare strictly positive (negative). diag{a1, a2, ..., aN}is a diagonal matrix whose elements are a1, a2, ..., aN.λm(M) and λM(M), represent the minimum and maximum eigenvalue of M. II. Formulation of the problem This paper considers a DC-bus microgrid composed of Ldistributed loads, NDGs composed of source units, such as, solar systems (photovoltaic and combustion), wind turbines, geothermal energy production or hydro- thermal plants and an integrated supercapacitor for filtering the high frequencies originated from the source units. Without loss of generality, there are Nbatteries storing the exceeded production from the DGs, which will be returned to the grid when power consumption rises above power production. It is assumed that the source units and supercapacitors are connected to the DC-bus line through converters that optimize the power generated by the source units, as the Maximum Power Point Tracking (MPPT) converter used for photovoltaic systems and, imposing an input current to the DC-bus line, ig,i. The Nbatteries are connected through a converter with reversible current, ib,1, in order to allow the flow of power in both directions. For simplicity, we consider that the loads with their DC-DC converters, as well as, the batteries working in loading mode are Constant Power Loads (CPL), Pwd,p, with p∈ L ={1,2, .., L}. As the batteries can be located far (in the space) from the DC- bus line, resistances Rl,i with i∈ N ={1,2, .., N}are added for modelling the energy dissipation due to the cable length. Note that, this assumption is not given for the sources and supercapacitors, since the ig,i are imposed. Likewise, there exists a power balancing over the DC-bus line, between the generated power by the DGs, Pwg,i, and the power demanded by the loads, Pwd,p. As there is a constant voltage, Vbus, in the Point of Common Coupling (PCC) of the DC-bus line, a current balancing must be ensured: N X i=1 µiig,i + N X i=1 (αs,i −αl,i)ib,i = L X p=1 βpil,p (1) where αs,i, αl,i, βp, µi∈ {0,1}. Indeed, a given battery ican work in supply or loading mode, i.e., supplying current ib,i (αs,i = 1 and αl,i = 0) or demanding current ib,j (αs,i = 0 and αl,i = 1) in the DC-bus line. This balancing takes into account the plug-in-play phenomenon, that means, if a failure of any DG, battery or load is occurred, being formulated with µi= 0, αi=αs,i −αl,i = 0 or βp= 0, for the DG i, battery ior load p, respectively. Note that a fault mode of the battery iis detected if αs,i =αl,i. On the one hand, it is natural to understand that this system can be modelled by a hybrid dynamical model, because it is composed by continuous-time dynamics from the voltage and current signals and discretetime dynamics from the switching signals of the DCDC converters. On the other hand, the considered DC- microgrid presents two control levels, as shown in Fig. 2. An inner control loop for managing the power converters of the batteries in supply mode and, an outer one, for the synchronization of the currents ib,i, such that, robustness properties are provided to every unit with respect to any system parameter variations, and plug in play of any DG, battery or load. In the plug in play phenomenon can be also included the fact that the battery is source or load. For the sake of simplicity, it is not considered the control of the DC-DC converters of the sources, super-capacitors Vbus DC/DC Rl;1 : : ib;1 Pwd;1 Pwd;2 Pwd;3 Pwd;L : : DC/DC DC/DC 1 il;1 il;2 il;3 il;L ig;1 DG1 AC/DC Rl;2 ib;2 DC/DC DC/DC 2 ig;2 DG2 DC/DC Rl;n ib;N DC/DC DC/DC N ig;N DGN Fig. 1: Microgrid. and loads, because ig:= N X i=1 µiig,i il:= L X p=1 βjil,p ib,d := L X j=1 αl,iib,i are considered exogenous inputs. Note that ib,d gathers the output currents of the batteries, when these ones work in loading mode. Thus, the total demanded current to be balanced by the batteries in supply mode is id:= il+ib,d −ig.(2) For simplicity, let us call “node i”, the ith battery with its DC/DC converter and recall xb,i := ib,i. Then, the general dynamical model of node iin the microgrid is, ˙xb,i =χi(xb,i, σi) for i∈ N,(3) where xb,i ∈Rrepresents the current output of the node i, and σi∈Ki:= {1,2, ..., Ki}the switching of this converter, i. Remark 1: It is not necessary that all nodes have access to the output currents of all nodes. Indeed, the microgrid is represented by an undirected graph G(N,E), where Nrepresents the nodes and E={1,2, .., E}the xb;i+1 xr b;i+1 xb;1 xb;i+1 xb;S : xb;i xr b;i xb;1 xb;i xb;S : SYNCHRO. SYNCHRO. CONTROL Fig. 2: Control levels in the microgrid. interconnections between DGs. Moreover, consider that L=Pi∈N1`inodes are leaders, i.e., these nodes present the information about the desired consensus value, being `i:1 if iis leader 0 if iis follower , and N−Lnodes are followers. y The inner control level, mentioned before, concerns the design of the control law that decides over each σi. Additionally, the outer control law provides the references xr b,i that guaranty the synchronization of all xb,i to a consensus value, x∗ b. This leader-follower consensus must not only guarantee the consensus between all references xr b,i, but also the current balancing given in (1). Hence, the following definition x∗ b:= id/ N X i=1 αs,i,(4) which will be the desired current reference for the L leaders. The problem considered here is formulated as follows: Problem 1: Design a hybrid dynamical system for (3), that considers both the continuous-time and discretetime dynamics of each node i, providing 1) a control law for the switching signal σi, that guaranties a globally asymptotically stability of a small neighbourhood of xb,i, 2) and a control law for the continuous-time signal xr b,i, that ensures an asymptotic stability of all xr b,i to a neighbourhood of x∗ bdefined in (4), guaranteeing a robust system w.r.t., parameter variations and plug in play of the DGs, nodes and loads. This problem considers a current balancing between all xb,i having every node the same weight. Nevertheless, later, in Section V a current balancing with nodes weighted by battery generation capacities will be provided. III. Modelling of a DC microgrid First, let us focus in a node iand its connection with the DC-bus line, as depicted in Fig. 3. The dynamical model of this node ican be rewritten as follows: ˙xi=Aσ,ixi+Bσ,i yi=Cσ,ixi(5) where Aσ,i,Bσ,i and Cσ,i are matrices of suited dimensions, σiis the input control signal which switches in Ki, Vin;i Rl;i DC/DC i xb;i (xb;i;σi) xr b;i Vbus + − Fig. 3: Node iin the microgrid. yi∈Rniis the output system and xi= [xγ,i, x%,i]>∈Rni is the system state, being xγ,i ∈R1a current signal through any inductance and x%,i ∈Rni−1a vector with other state signals. For one side, it is easy to see that the reference xr b,i provides the equilibrium of current xγ,i, through xe,γ,i =φi(xr b,i),(6) being φia function given by the converter architecture. On the other side, the equilibrium of (5), xe,i := [xe,γ,i xe,%,i], not necessarily has to be the solution of the continuous-time system, but it can be the solution of the switching system, leading to a generalized solution in sense of Fillipov, as given in [2], [10]. The set of equilibriums of system (5) is characterized by the following sufficient condition. Assumption 1: For system (5), there exists λi= [λi,1, λi,2, ..., λi,N ] satisfying PN k=1 λi,k = 1 and such that the following convex combination holds S X i,k λi,k(Ak,ixi+Bk,i(xb,i)). Moreover, the power converters fulfil the following property. Property 1: Given matrices Ak,i for system (5), with k∈Ki, then there exists matrices Pi0∈Rniand Qi0∈Rni, such that, A> i,kPi+PiAi,k ≺ −2Qi, for all k∈Ki. This property requires that every Ai,k is Hurwitz. IV. Hybrid control structure This section is devoted to propose a hybrid dynamical structure for the mentioned two control levels, following the paradigm given in [13], and such that considers the continuous-time and discrete-time dynamics and ensures all items of Problem 1. The overall dynamics is represented as follows: Hi(ξi, xr b) :                                ˙xi ˙σi ˙τi ˙xr b,i     =fi(ξi, xr b) (ξi, xr b,i)∈ Ci,     x+ i σ+ i τ+ i xr+ b,i     ∈Gi(ξi, xr b) (ξi, xr b,i)∈ Di, (7) where ξi:= [xi, σi, τi]>and xr b:= [xr b,1, xr b,2, .., xr b,N ]>. Likewise, σ+ i∈Kiand ˙xr b,i ∈Rare designed for satisfying the inner and outer control objectives of Problem 1, respectively. Finally, fiis a map that defines the continuous-time dynamic and Giis a (set-valued) map that captures the switching logic. Both of them, are defined as follows: fi:=       αs,i(Aσ,ixi+Bσ,i) 0 r(τi Ti) −αs,i Kc,i N P j=1 (xr b,i −xr b,j)+ ˜xr b,i`i!−αs,i(xγ,i −xe,γ,i)        (8) Gi∈     xi argmin σ∈K (xi−xe,i)> Piαs,i (Aσ,ixi+Bσ,i) 0 ˜xr b,i      ,(9) such that, fi, Gi∈Hi:= Rni×Ki×[0,2Ti]×R1,Kc,i a positive parameter to be designed and ˜xr b,i := xr b,i −x∗ b. Note that x∗ b, given in (4), is a picewise function that can change from the exogenous discrete variables, µi,αs,i, αl,i and βj.r(τi Ti) = min(1,2−τi Ti), with Tia positive parameter that fixes the minimum dwell time. Likewise, xe,i is related to xr b,i from (6). The so-called “flow” and “jump” sets Ciand Di, respectively, are given by Ci:=ξi∈Hi: ˜x> iPiαs,i(Aσ,ixi+Bσ,i )≤−αs,iηi˜x> iQi˜xi  ∪{ξi:τi∈[0, Ti]}} × RBi(10) Di:=ξi∈Hi: ˜x> iPiαs,i(Aσ,ixi+Bσ,i )≥−αs,iηi˜x> iQi˜xi  ∩{ξi:τi∈[Ti,2Ti]}} × RBi,(11) where ˜xi:= xi−xe,i and RBia closed ball of radius Rin the Euclidean norm centred at the origin, thus it is compact underlying set of ξi∈Hi: ˜x> iPiαs,i(Aσ,ixi+Bσ,i )≤−αs,1ηi˜x> iQi˜xi where xr b,i evolves. Note that parameter αs,i decides if the state xiof node ievolves according dynamic (5), supplying current xb,i to the DC-bus. If this parameter switches to loading mode (i.e. αs,i = 0, αl,i = 1), the dynamic of xiwill be ˙xi= 0. However, the demanded current, id, defined in (2) will change, and consequently, x∗ b, the reference signals xr b,h and the desired equilibrium xe,h,∀h6=iwill be also modified. This variation in id, and thus in xe,h occurs, if any node, any DG or any load fails or quickly changes, because the microgrid elements are connected by xr b,h. Moreover, parameter ηi∈(0,1) manages a tradeoff in the transient time between reducing the switching frequency and improving any performance level given by a functional, as shown in [1], [2]. Let us remind that the advantages of using HDS for controlling power converters are shown in [30]. Finally, it is emphasized, that Hidefines an event-triggered control that guarantees a minimum dwell time for each node igiven by Ti. Indeed, all solutions of Himust flow at least Tiordinary time after each jump, because the dynamic ˙τi= 1 evolves, while τi≤Ti. The characterized system Hiallows introducing the following compact attractor Ai:= {ξi∈Hi:Vi(˜xi)< εi} × RBi.(12) where Vi(˜xi) = max{Wi(˜xi)−εi,0}(13) with Wi(˜xi) := ˜xT iPi˜xi 2 and Pi∈ Rni. It is emphasized that the minimum dwell time, Ti, leads to the convergence of xito a neighbourhood of xe,i, being the distance between xito xe,i characterized by the upper bound εi. Next lemma is invoked, in order to establish a property that defines the relationship between the upper bounds of εiand Tiin the stead state. Lemma 1: [3, Lemma 2] Consider that Assumption 1 and Property 1 are satisfied, then all the eigenvalues of the matrix P−1 iQiare positive and ||eAi,kt|| ≤ λ−1/2 i,m (Pi) λ−1/2 i,M (Pi)e−αit, where αi:= λm(P−1 iQi). Then, a practical minimum dwell time can be established. Property 2: There exists a positive scalar T∗ iand an associated ε∗ i=εi(T∗ i), such that for any chosen Ti≤ T∗ i, inducing εi≤ε∗ i, the solutions (t, j)∈[tss,∞)× [jss,∞)→ϕ(t, j) to hybrid system Hiflow in the steady state for at least Tiordinary time after the jump, jand before reaching set Di. Proof: We follow the proof of [3, Property 1]. Then, consider the first jump in the steady state (tj, j)∈ [tss,∞)×[jss,∞)→ϕ(tj, j) to hybrid system Hi, allowing to introduce the variable ˜ t=t−tj. From the instant time (tj, j), the solution for node iflows in the set Ci, being the trajectories described by ˙ ˜xi(˜ t) = Aσ,i ˜xi(˜ t) + bσ,i,˜xi(tj) = ˜xi,j, with bσ,i := Bσ,i −Aσ,ixe,i(˜ t). Then, it is had ˜xi(˜ t) = eAσ,i˜ t(˜xi,j +A−1 σ,i bσ,i)−A−1 σ,i bσ,i, for 0 ≤˜ t≤Ti. From the properties of a norm, it is got k˜xi(˜ t) + A−1 σ,i bσ,i k=keAσ,i˜ tkk ˜xi,j +A−1 σ,i bσ,i k and applying Lemma 1, it is had k˜xi(˜ t) + A−1 σ,i bσ,i k=λ−1/2 i,m (Pi) λ−1/2 i,M (Pi)e−αitk˜xi,j +A−1 σ,i bσ,i k. Then, following the reasoning in [3, Property 1], the upper bound of dwell time Tiis T∗ i= min σ 1 αi Ln λ−1/2 i,M (Pi)k˜xi,j +A−1 σ,i bσ,i k λ−1/2 i,m (Pi)k˜xi,j(T∗ i) + A−1 σ,i bσ,i k!, (14) such that, 0 ≤Ti≤T∗ iand ˜xi,j(T∗ i)∈ {− 2ε∗ i λM,i(Pi),2ε∗ i λM,i(Pi)}. Note that the mode σis given by the set-valued map Gi. Therefore, it is concluded that the maximum admissible chattering in the steady state, (t, j)∈[tss,∞)× [jss,∞), induced by T∗ iis defined from ˜xi,j and ˜xi,j(T∗ i), for node i∈ N. Remark 2: It is easy to see, from (14), that if ε∗ igoes to zero, then T∗ igoes to 1 αiLn λ−1/2 i,M (Pi) λ−1/2 i,m (Pi).It should be expected that if ε∗ igoes to zero, then T∗ ialso goes to zero, however the conservatism introduced in Lemma 1 avoids to reach this intuitive result. y A. Global hybrid structure Highlighting that the microgrid is composed of i∈ N subsystems, the idea is to control locally every one of these i-subsystem, in such a way that the global system enjoys of suited stability properties. In order to define a compact hybrid system that gathers all dynamics, it is needed to introduce next definition about the Laplacian matrix. Definition 1: The Laplacian matrix represents the undirected graph G(L,E) of interconnections given by: L(αs) = ∆(αs)− A(αs), being αs:= diag{αs,1, αs,2, .., αs,N },A(αs) the adjacency matrix A(αs)=[aih(αs)], where aih(αs) : αs,iαs,h if i6=h 0 if i=h∀i, h ∈ N (15) and the diagonal matrix ∆(αs)=[δih(αs)], with δih(αs) : 0 if i6=h Pp∈N ,p6=iaip(αs) if i=h∀i, h ∈ N. (16) Note that the Laplacian matrix L(αs) is a symmetric positive semi-definite matrix [26]. This notation allows to define the global hybrid system H(ξ, xr b) :                             ˙x ˙σ ˙τ ˙xr b   =f(ξ, xr b) (ξ, xr b)∈ C,     x+ σ+ τ+ xr+ b     ∈G(ξ, xr b) (ξ, xr b)∈ D, (17) such that, f(ξ, xr b) :=   Aσx+Bσ 0 r −Kc(L(αs)xr b+αsI`˜xr b)−αs(xγ−xe,γ)    (18) G(ξ, xr b)∈[ i=1,2,..N Gi(ξi, xr b,i) (19) being x:= [x1, x2, .., xN]> σ:= [σ1, σ2, .., σN]> τ:= [τ1, τ2, .., τN]> r:= r1τi Ti, r2τ2 T2, ..rNτN TN> I`(`i) := diag{`1, `2, .., `N} ˜xr b:= [˜xr b,1,˜xr b,2, .., ˜xr b,N ]> xγ:= [xγ,1, xγ,2, .., xγ,N ]> xe,γ := [xe,γ,1, xe,γ,2, .., xe,γ,N ]>, Aσ:= diag{αs,1Aσ,1, αs,2Aσ,2, .., αs,N Aσ,N } Bσ:= [αs,1Bσ,1, αs,2Bσ,2, .., αs,N Bσ,N ]> Kc:= diag{αs,1Kc,1, αs,2Kc,2, .., αs,N Kc,N ,} and C=[ i=1,2,..N Ci,D=[ i=1,2,..N Di.(20) Now, from this hybrid model of the complete microgrid, the main result of this work can be presented. V. Main result According to Property 2, the main objective is to guarantee that xiconverges to a neighbourhood of xe,i, such that, |xi−xe,i|<2ε∗ i λM,i(Pi), and that all xr b,i converge to a consensus defined by x∗ b(4), such that, |xr b,i −x∗ b|< ψi(εi), being ψi(εi) a function given by the converter architecture, which relates the state, ξiand xb,i. Next lemma is introduced in order to prove the main result. Lemma 2: For a given Piand Qisatisfying Property 1, System 5 presents the following property min k∈K˜x> iPiαs,i(Ak,ixi+Bk,i)≺ −ηiαs,i ˜xT iQi˜xi Proof: The proof is easily deducted from [2, Theorem 1]. Now, let us focus in the hybrid system Hwhich is composed of slow variables, ξ, and fast continuous-time variables, xr b. Thus, the inner control level, σ, manages the slow variables and the outer control level, xr b, manages the fast variables. Moreover, the tuned parameters Kc,i are selected for ensuring the next: Assumption 2: Take Kc,i >> 3 Ti ,(21) such that, xr b,i converges very fast to a consensus with respect to the ordinary time evolution. Therefore, let us rewrite Hin a singular perturbation form: Hsp(ξ, xr b) :                             ˙x ˙σ ˙τ ν˙xr b   =fsp(ξ, xr b) (ξ, xr b)∈ C,     x+ σ+ τ+ xr+ b     ∈G(ξ, xr b) (ξ, xr b)∈ D, (22) such that, fsp(ξ) :=   Aσx+Bσ 0 r −(L(αs)xr b+αsI`˜xr b)−ναs(xγ−xe,γ)    (23) where ν:= K−1 c>0 is small enough ensuring Assumption 2. Indeed, the outer control level, xr b, evolves sufficiently fast with respect to the inner control level σevolution, such that, a regulation problem for xcan be considered. Note that the jump set Gin a singular perturbed form does not change. An analysis of the singular perturbation regularization given in (22) is leaded in order to stablish Semi Gmobal Practical Stability (SPAS) as νgoes to 0+of set A:= A1∪ A2∪.. ∪ AN. For this deal, let us define the suited properties stated in the following propositions. Proposition 1: System Hsp(fsp, G, C,D) is well-posed. Proof: It is easy to see that hybrid system Hsp(fsp, G, C,D) verifies the following properties •Cand Dare closed sets in H:= S i=1,..,N Hi; •fsp is a continuous function, thus locally bounded and outer semi-continuous. Moreover, it is convex for each (ξ, xr b)∈ C; •Gis outer semi-continuous and locally bounded. Proposition 2: Regularity of the system Hsp “manifold”. Proof: The set-valued mapping M:H\RN→RN is a “manifold”, i.e., it is a map between the slow variable ξ∈H\RNand the fast variable xr b∈RNand corresponds to the quasi-steady-state equilibrium manifold in singular perturbation theory, i.e. as ν→0+, it is got I`xr b→x∗ b1 and L(αs)xr b→0to get a consensus. Here, this manifold is defined as follows: M(ξ) = −ν(xγ−xe,γ)ξ∈C \ RB ∅ξ /∈C \ RB. Remind that xe,γ depends on xr baccording to (6). Readily, it is seen that this map is locally bounded and outer semi-continuous. Unlike, M(ξ) is a nonempty subset of RB, for each ξ∈ C. Proposition 3: Consider the reduced system given by Hr(ξ) :                      ˙x ˙σ ˙τ =  Aσx+Bσ 0 r ξ∈ C(M),   x+ σ+ τ+ ∈Gr(ξ)ξ∈ D(M), (24) being Gr(ξ) := S i=1,2,..N Gr,i(ξi) with Gr,i(ξi) :=    xi argmin σ∈K (xi−xe,i)>Piαs,i (Aσ,ixi+Bσ,i) 0   . Then, Ar:= A\RBwith RB:= RB1∪RB2∪..∪RXBN is Uniformly Globally Asymptotically Stable (UGAS). Proof: Let us consider the following candidate Lyapunov function for the reduced hybrid system, V(˜x) = max{W(˜x)−ε(T)}(25) with W(˜x) := ˜xTP˜x 2, P= diag{P1, P2, .., PN}and ε(T) the associated parameter to T=: max(Ti), such that Ti< T∗ ifor each i∈ N , as given in Property 2, We emphasize that W(˜x) may increase for τi∈[0, Ti], because the solutions can be forced to flow a maximum ordinary time T. Next, from Lemma 2, the affine definition of ˙ W(˜x) and the reasoning given in [1, Section V.B], the increase of W(˜x) can be bounded by W(˜x)≤ε(T) := 2e2κ1Tε(T∗) + 2κ2 2 κ2 1 (eκ1T−1)2, for all 0 < τi< T, being κ1and κ2positive parameters that allow to bound |˜x|. Hence, if Tshrinks to zero, then ε(T) diminishes. Now, let us introduce the following compact set AE:= {ξ∈H\RN:V(˜x)< ε}. It is easy to see that Vis continuous in C ∪ D and locally Lipschitz near each point in C\AE. Likewise, Vis positive definite with respect to Aεin C ∪D and radially unbounded. Then, UGAS proof of AEfor the reduced hybrid system Hris complete from Lemma 2 and [1, Theorem 3]. The selection of Tand its associated εallows achieving Ar⊂ AE. Therefore, if AEis UGAS for Hr(ξ), then Ar is UGAS, as well. Proposition 4: Consider the “boundary layer”    ˙x ˙σ ˙τ ˙xr b   =   0 0 0 −(L(αs)xr b+αsIl˜xr b)−αs(xγ−xe,γ)   , (26) such that, (ξ, xr b)∈(C \ RB∩ρB)×RB,for any ρ > 0 large enough. Then, the compact set Mρ:= {(ξ, xr b) : ξ∈(C \ RB∩ρB), xr b∈RB} is globally asymptotically stable. Proof: Readily, it is seen that the flow set in the boundary layer given in (26) is compact. Moreover, the dynamic (26) are obtained re-scaling the ordinary time, t, in (22), by 1/ν. Unlike, there is not jump in the boundary layer if (21) is satisfied, remaining ξconstant during flows. Consider ρ=ρ1and ρ=ρ2, such that, 0 < ρ1< ρ2. As Mρ1⊂ Mρ2, if Mρ2is globally asymptotically stable for (26), then Mρ1also is globally asymptotically stable. Then, as C\RBis compact, it is had C\RB∩ρB=C\RB for all ρlarge enough. Now, consider the particular solution of ξin the boundary layer, such that, x−xe= 0, that means, xγ=xe,γ. Therefore, if it is chosen Vc:= 1 2(˜xr> bL(αs)xr b+ ˜xr> bIl˜xr b) =1 2(˜xr> bL(αs)˜xr b+ ˜xr> bIl˜xr b)≥0, as candidate Lyapunov function, it is obtained hOVc(˜xr b), fbli=−˜xr> bL(αs)KcL(αs)˜xr b −2˜xr> bL(αs)KcIl˜xr b−˜xr> bIlKcIl˜xr b<0, where fbl =−Kc(L(αs)˜xr b+ ˜xr b). Indeed, the control law defined in the dynamic xr bguarantees that the specific xr b,i of all Lnodes designed as leaders converge to x∗ b. Hence, the consensus algorithm ensures that the followers also converge to x∗ b, because L(αs)xr b→0. Now,it is possible to formulate the theorem that guaranties Abe SPAS for hybrid system H, i.e., the deal is to ensure that both proposed controls: the distributed control law for xband the local control for xstabilize the global system H. Theorem 1: Consider equilibrium xewith its associated vector λ:= [λ1, λ2, .., λN] ensuring Assumption 1, and a selected Tifor each i∈ N, such that, Assumption 2 is satisfied. Consider an interconnected graph, G(N,E) with Lleaders. Moreover, if there exist some matrices Pi, Qi∈Rni0 that satisfy Property 1 for each i∈ N , then Ais SPAS for the hybrid system H, (17)–(20).  Proof: The proof is based on singular perturbation theory applied to hybrid dynamical systems given in [29]. Therefore, it is straightforward from Proposition 1–4. Remark 3: If all Tiare sufficiently small the SPAS set Acan be close to the SPAS set A0:= A0,1∪A0,2∪..∪A0,N with Ai,0:= {ξi∈Hi:Vi(ξi)<0, σi∈Ki, τ = 0} × RiBi. y In many practical situations, it is desirable that the current consensus achieved by the xb,i are weighted by the generation capacities on the batteries. In order to consider this fact, the Laplacian matrix L(αs) can be redesigned, introducing the weight of every node iin the microgrid, and thus, leading to the following corollary that establishes stability properties in this particular case. Corollary 1: Consider that every node is weighted by wi∈[0,1], such that Pi∈N wi= 1, being the Laplacian matrix L(αsw), with w= diag{w1, w2, .., wN}. Then, the desired consensus comes defined by the vector x∗ b=idw1 and the hybrid system, H, (17)–(20) is modified by the following dynamic ˙xr b=−Kc(L(αs)wxr b+αsIl˜xr b)−αs(xγ−xe,γ),(27) driving to a new hybrid scheme Hw(w). Then Ais SPAS for the hybrid system Hw. The proof is direct from Theorem 1 proof. VI. Simulations This section is depicted to validate in simulation the main result given in Theorem 1. Here, it is considered a microgrid composed by N= 5 DGs and batteries (or nodes) and L= 4 PCLs. The parameter values are given in Table I. The voltage of the PCC is Vbus = 48V and the batteries in supply mode are connected by boost converters, with the following parameters for all nodes i: an inductance of Lc,i = 470µH, a capacitance of Cc,i = 600µF and a dissipative load of Rc,i = 3Ω. The state is xi= [iL,i, vC,i]>, with iL,i, the current through the inductance Liand vC,i the tension over the capacitance Ci. The switched space state model (5) is A0,i ="Rc,i Lc,i 0 0−1 Rl,iCc,i #, A1,i ="Rc,i Lc,i −1 Lc 1 Cc−1 Rl,iCc,i #, and B0,i =B1,i ="Vin,i Lc,i Vbus Rl,iCc,i #. DGs i1 2 3 4 5 ig,i(A) 8 12 15 8 7 Batteries i1 2 3 4 5 Vin,i(V) 60 58 35 61 43 Rl,i(Ω) 2 1.34 3.67 2.34 3 PCL j1 2 3 Pw,d,j (Kw) 4 3 2.4 TABLE I: Microgrid data. The graph G(N,E) of the microgrid is composed by 5 nodes (Ni) and every node iis connected with its neighbourhood. Likewise, there is L= 1 leader, which is node N1, as shown in Fig. 4. The matrices Piand Qiare computed satisfying Property 1. Applying [2, Theorem 2], which allows achieving a trade off between any performance level and switching reduction in the transient time, it is chosen ηi= 0.32 for all nodes i. Moreover, the minimum dwell times, T∗ i, mentioned in Property 2 are computed considering a N1 leader N2 N3 N4 N5 E1 E2 E3 E4 E5 Fig. 4: Microgrid graph. maximum chattering of iL,i equal to 2Aand a maximum chattering of vC,i equal to 5V, giving T∗ 1= 0.0037s, T∗ 2= 0.0195s, T∗ 3= 0.0014s, T∗ 4= 0.0003s and T∗ 5= 0.0022s, which satisfy (14). Thus, T∗= 0.0003s. Hence, it is chosen Tdw = 10µs and Kc,i = 3 ·106for satisfying Assumption 2. The validation of Theorem 1 is performed from the following scenarios: a) Scenario 1:Initially, all batteries are in supply mode. The battery of node N3fails at 0.006s and it is again connected at 0.032s. Likewise, the battery of node N2changes from supply mode to loading mode at 0.024s. Finally, there is a load, L1, which is disconnected from the microgrid at 0.016s. These connections/disconnections are shown in Fig. 5. Likewise, it is performed in Fig. 6, the evolutions of this scenario. Note as the reference current of the leader, ir b, is quickly adapted according to the demanded current changes, occurred by plug in play of any DG, battery or load or any change of the battery mode. Likewise, the output current of the converters in supply mode asymptotically converge to a neighbourhood of their equilibriums. Note that the ibof the nodes in loading mode or in failure are not concerned by the consensus objective. 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.5 1 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.5 1 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.5 1 Fig. 5: From the top, the following evolutions of the exogenous signals, αs,2,αs,3and β4. 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 50 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 50 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 50 100 150 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 2000 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.5 1 1.5 Fig. 6: From the top, the following evolutions: current reference of the leader N1,ir b,i, output currents of each node, ib, demanded current id, number of switching of each node and discrete input variables σi. b) Scenario 2:This scenario illustrates Corollary 1 and the fact that some connections can fail. Initially, all batteries are in supply mode. Then, connection E3fails at 0.01s and then E1fails at 0.025s. Note as the currents, ib,i, converge to their references, which are proportional to the input source Vin,i of each node i. It is highlighted that the current balancing (1) is hold. Moreover, the hybrid system Hwis robust with respect to communication lost between nodes. VII. Conclusions This work provides a novel paradigm based on HDS and MAS theory for modelling and controlling DC- bus microgrids in islanded mode. Indeed, two control levels are identified. On one hand, an inner control loop drives DC-DC converters, considering the hybrid nature: the continuous-time signals (voltages and currents) and discrete-time signals (state of the switches). This control is based on HDS theory, which allows obtaining some advantages in terms of switching reduction during transient times and avoiding current peaks in start up. On the other hand, the outer control, which is a leaderfollower consensus control, designed from MAS theory,