Published in: Proceedings of the th European Conference on Power Electronics and Applications (EPE'15 ECCE- Europe)

Similar documents
Published in: Proceedings of IECON 2016: 42nd Annual Conference of the IEEE Industrial Electronics Society

Published in: Proceedings of the 39th Annual Conference of the IEEE Industrial Electronics Society, IECON 2013

The Wien Bridge Oscillator Family

Aalborg Universitet. Lecture 14 - Introduction to experimental work Kramer, Morten Mejlhede. Publication date: 2015

Sound absorption properties of a perforated plate and membrane ceiling element Nilsson, Anders C.; Rasmussen, Birgit

Unknown input observer based scheme for detecting faults in a wind turbine converter Odgaard, Peter Fogh; Stoustrup, Jakob

Modeling and Stability Analysis of a DC Microgrid Employing Distributed Control Algorithm

Geometry of power flows and convex-relaxed power flows in distribution networks with high penetration of renewables

Aalborg Universitet. Land-use modelling by cellular automata Hansen, Henning Sten. Published in: NORDGI : Nordic Geographic Information

Economic factors, environmental concerns, and the rapidly

Control Configuration Selection for Multivariable Descriptor Systems Shaker, Hamid Reza; Stoustrup, Jakob

Centralized Supplementary Controller to Stabilize an Islanded AC Microgrid

MICROGRID is a future trend of integrating renewable

A Review and Modeling of Different Droop Control Based Methods for Battery State of the Charge Balancing in DC Microgrids

Realtime 3D stress measurement in curing epoxy packaging

Published in: Proceedings of the Twentieth (2010) International Offshore and Polar Engineering Conference

SoC Balancing of Different Energy Storage Systems in DC Microgrids Using Modified Droop Control

Published in: Proceedings of the 21st Symposium on Mathematical Theory of Networks and Systems

Adaptive Fuzzy Logic Power Filter for Nonlinear Systems

Upper and Lower Bounds of Frequency Interval Gramians for a Class of Perturbed Linear Systems Shaker, Hamid Reza

Agent-Based Decentralized Control Method for Islanded Microgrids Li, Qiang; Chen, Feixiong; Chen, Minyou; Guerrero, Josep M.

Aalborg Universitet. Disturbance Control of the Hydraulic Brake in a Wind Turbine Jepsen, Frank ; Søborg, Anders ; Yang, Zhenyu

Aalborg Universitet. Bounds on information combining for parity-check equations Land, Ingmar Rüdiger; Hoeher, A.; Huber, Johannes

Document Version Publisher s PDF, also known as Version of Record (includes final page, issue and volume numbers)

The colpitts oscillator family

Published in: Proceedings of the 18th European Conference on Power Electronics and Applications (EPE'16 ECCE Europe), 2016

Generating the optimal magnetic field for magnetic refrigeration

Estimation of Peak Wave Stresses in Slender Complex Concrete Armor Units

Accelerating interior point methods with GPUs for smart grid systems

Reactive power control strategies for UNIFLEX-PM Converter

Secondary Frequency Control of Microgrids In Islanded Operation Mode and Its Optimum Regulation Based on the Particle Swarm Optimization Algorithm

Characterization of the Airflow from a Bottom Hung Window under Natural Ventilation

Chapter 2 Control and Modeling of Microgrids

Aalborg Universitet. Publication date: Document Version Publisher's PDF, also known as Version of record

Benchmarking of optimization methods for topology optimization problems

Dynamic Effects of Diabatization in Distillation Columns

A Note on Powers in Finite Fields

Tectonic Thinking Beim, Anne; Bech-Danielsen, Claus; Bundgaard, Charlotte; Madsen, Ulrik Stylsvig

Radioactivity in the Risø District January-June 2014

Aalborg Universitet. Published in: Proceedings of Roomvent Publication date: 2007

Graphs with given diameter maximizing the spectral radius van Dam, Edwin

Tilburg University. Strongly Regular Graphs with Maximal Energy Haemers, W. H. Publication date: Link to publication

Feasibility of non-linear simulation for Field II using an angular spectrum approach

The Smallest Transistor-Based Nonautonomous Chaotic Circuit

Shunt Hybrid Power Filter combined with Thyristor- Controlled Reactor for Power Quality Improvement.

Secondary Frequency and Voltage Control of Islanded Microgrids via Distributed Averaging

Control Strategies for Microgrids

Matrix representation of a Neural Network

The IEA Annex 20 Two-Dimensional Benchmark Test for CFD Predictions

The dipole moment of a wall-charged void in a bulk dielectric

Franek, Ondrej; Sørensen, Morten; Bonev, Ivan Bonev; Ebert, Hans; Pedersen, Gert F.

Aalborg Universitet. Comparison between Different Air Distribution Systems Nielsen, Peter Vilhelm. Publication date: 2006

Determination of packaging induced 3D stress utilizing a piezocoefficient mapping device

Optimal dispatch strategy for the agile virtual power plant Petersen, Mette Kirschmeyer; Bendtsen, Jan Dimon; Stoustrup, Jakob

Aalborg Universitet. CLIMA proceedings of the 12th REHVA World Congress Heiselberg, Per Kvols. Publication date: 2016

Aalborg Universitet. Windows Heiselberg, Per Kvols; Svidt, Kjeld; Nielsen, Peter Vilhelm. Publication date: 2000

Characterization of microporous silica-based membranes by calorimetric analysis Boffa, Vittorio; Yue, Yuanzheng

Aalborg Universitet. Seawall Overtopping Tests sea erosion study : Sohar Cornice Frigaard, Peter. Publication date: 1990

GIS Readiness Survey 2014 Schrøder, Anne Lise; Hvingel, Line Træholt; Hansen, Henning Sten; Skovdal, Jesper Høi

Minimum analysis time in capillary gas chromatography. Vacuum- versus atmospheric-outlet column operation Leclercq, P.A.; Cramers, C.A.M.G.

Kommerciel arbejde med WAsP

Citation for published version (APA): Burcharth, H. F. (1988). Stress Analysis. Aalborg: Department of Civil Engineering, Aalborg University.

Validation of Boundary Layer Winds from WRF Mesoscale Forecasts over Denmark

Reducing Uncertainty of Near-shore wind resource Estimates (RUNE) using wind lidars and mesoscale models

Space charge fields in DC cables

Online Thevenin Equivalent Parameter Estimation using Nonlinear and Linear Recursive Least Square Algorithm

Lidar calibration What s the problem?

THREE-PHASE POSITIVE AND NEGATIVE SEQUENCES ESTIMATOR TO GENERATE CURRENT REFERENCE FOR SELECTIVE ACTIVE FILTERS

Research on Consistency Problem of Network Multi-agent Car System with State Predictor

Numerical modeling of the conduction and radiation heating in precision glass moulding

Development of a Dainish infrastructure for spatial information (DAISI) Brande-Lavridsen, Hanne; Jensen, Bent Hulegaard

2D PIM Simulation Based on COMSOL

A numerical study of vortex-induced vibrations (viv) in an elastic cantilever

Published in: Proceedings of the 15th European Conference on Power Electronics and Applications, EPE 2013

An Indicator for Separation of Structural and Harmonic Modes in Output-Only Modal Testing Brincker, Rune; Andersen, P.; Møller, N.

Embankment dam seepage assessment by resistivity monitoring

De Prisco, Renato; Comunian, Michele; Grespan, Franscesco; Piscent, Andrea; Karlsson, Anders

Optimizing Reliability using BECAS - an Open-Source Cross Section Analysis Tool

On a set of diophantine equations

On numerical evaluation of two-dimensional phase integrals

Global Wind Atlas validation and uncertainty

An Equivalent Source Method for Modelling the Lithospheric Magnetic Field Using Satellite and Airborne Magnetic Data

Radioactivity in the Risø District July-December 2013

Aalborg Universitet. The Landauer-Büttiker formula and resonant quantum transport Cornean, Decebal Horia; Jensen, Arne; Moldoveanu, Valeriu

Design of Robust AMB Controllers for Rotors Subjected to Varying and Uncertain Seal Forces

Document Version Publisher s PDF, also known as Version of Record (includes final page, issue and volume numbers)

Elevated Neutral to Earth Voltages Due to Harmonics A T&D Update

Resonant Inerter Based Absorbers for a Selected Global Mode

Geometry explains the large difference in the elastic properties of fcc and hcp crystals of hard spheres Sushko, N.; van der Schoot, P.P.A.M.

Capacitor performance limitations in high power converter applications

The M/G/1 FIFO queue with several customer classes

Multiple Scenario Inversion of Reflection Seismic Prestack Data

Aalborg Universitet. All P3-equipackable graphs Randerath, Bert; Vestergaard, Preben Dahl. Publication date: 2008

On the Einstein-Stern model of rotational heat capacities

Design possibilities for impact noise insulation in lightweight floors A parameter study

Spatial decay rate of speech in open plan offices: the use of D2,S and Lp,A,S,4m as building requirements Wenmaekers, R.H.C.; Hak, C.C.J.M.

Aalborg Universitet. The number of independent sets in unicyclic graphs Pedersen, Anders Sune; Vestergaard, Preben Dahl. Publication date: 2005

Secondary control of microgrids based on distributed cooperative control of multi-agent systems

Transcription:

Aalborg Universitet Dynamic Consensus Algorithm based Distributed Voltage armonic Compensation in Islanded Microgrids Meng, Lexuan; Tang, Fen; Savaghebi, Mehdi; Dragicevic, Tomislav; Quintero, Juan Carlos Vasquez; Guerrero, Josep M. Published in: Proceedings of the 2015 17th European Conference on Power Electronics and Applications (EPE'15 ECCE- Europe) DOI (link to publication from Publisher): 10.1109/EPE.2015.7309451 Publication date: 2015 Document Version Early version, also known as pre-print Link to publication from Aalborg University Citation for published version (APA): Meng, L., Tang, F., Firoozabadi, M. S., Dragicevic, T., Quintero, J. C. V., & Guerrero, J. M. (2015). Dynamic Consensus Algorithm based Distributed Voltage armonic Compensation in Islanded Microgrids. In Proceedings of the 2015 17th European Conference on Power Electronics and Applications (EPE'15 ECCE-Europe) (pp. 1-9). IEEE Press. https://doi.org/10.1109/epe.2015.7309451 General rights Copyright and moral rights for the publications made accessible in the public portal are retained by the authors and/or other copyright owners and it is a condition of accessing publications that users recognise and abide by the legal requirements associated with these rights.? Users may download and print one copy of any publication from the public portal for the purpose of private study or research.? You may not further distribute the material or use it for any profit-making activity or commercial gain? You may freely distribute the URL identifying the publication in the public portal? Take down policy If you believe that this document breaches copyright please contact us at vbn@aub.aau.dk providing details, and we will remove access to the work immediately and investigate your claim. Downloaded from vbn.aau.dk on: november 06, 2018

Dynamic Consensus Algorithm based Distributed Voltage armonic Compensation in Islanded Microgrids 1 Lexuan Meng, 1 Mehdi Savaghebi, 2 Fen Tang, 1 Tomislav Dragicevic, 1 Juan C. Vasquez, 1 Josep M. Guerrero 1 AALBORG UNIVERSITY Pontoppidanstraede 101 Aalborg, Denmark 2 BEIJING JIAOTONG UNIVERSITY No.3 Shangyuancun, aidian District Beijing, China E-Mail: 1 {lme, mes, tdr, juq, joz}@et.aau.dk, 2 ftang_nego@126.com URL: www.microgrids.et.aau.dk Keywords «microgrids», «hierarchical control», «voltage harmonics», «consensus algorithm», «current sharing». Abstract In islanded microgrids, the existence of nonlinear electric loads may cause voltage distortion and affect the performance of power quality sensitive equipment. Thanks to the prevalent utilization of interfacing power electronic devices and information/communication technologies, distributed generators can be employed as compensators to enhance the power quality on consumer side. owever, conventional centralized control is facing obstacles because of the distributed fashion of generation and consumption. Accordingly, this paper proposes a consensus algorithm based distributed hierarchical control to realize voltage harmonic compensation and accurate current sharing in multi-bus islanded microgrids. Low order harmonic components are considered as examples in this paper. armonic current sharing is also realized among distributed generators by applying the proposed methods. Plug-and-play capability is demonstrated for flexible operation. The proposed method is based on proper analysis and modeling of the system. Introduction Microgrids (MG) [1] concept has been proposed aiming to adapt to the distributed generation, consumption and storage paradigm and liberate the operation of power distribution systems. It enables the possibility of islanding operation of each system fraction. owever, a number of critical issues need to be addressed such as system stability, security, power control, as well as power quality. The existence of nonlinear loads, such as power electronic devices, electric arc furnaces, fluorescent lighting, variable frequency motor drives, etc., may cause voltage and current distortion and finally affect the performance of sensitive equipment resulting in over heating or even malfunction [2] [4]. In small scale islanded MG, system stability can be also influenced because of small system damping. Accordingly, it is necessary to limit the system harmonics within certain level [5]. In case of MG systems, thanks to the prevalent using of power electronic converters, information and communication technologies, the distributed generators can be used as compensators to ensure desirable power quality on consumer side [6] [9]. owever, a central controller is usually required which generates the common compensation reference for all the DG units [8], [9]. In addition, most existing studies fail to consider the current sharing issues under unbalanced or harmonic distorted conditions, which may cause over current fault to the compensating DGs which are located close to the compensating point. Accordingly, the objective of this paper is to realize distributed compensation

Fig. 1: Study case islanded three-phase AC MG. control by applying proper information sharing and communication algorithms, and to avoid the using of a central controller and consequently enhance the system flexibility. Besides, the harmonic current sharing needs to be accurately controlled so that all the DG units can proportionally share the total load current according to their compensating capabilities. A study case three-phase MG system is considered as shown in Fig. 1. Three DG units are installed to supply the loads on the Common Bus (CB). If nonlinear loads are connected to CB, voltage harmonics may appear affecting the performance of power quality sensitive equipment. In order to alleviate the voltage distortion, the DG units with interfacing inverters can act as distributed compensators. The harmonic distortion in dominate orders (e.g. 5- D, 7+ D, 11- D ) are first measured and calculated locally. Then the local controller (LC) can generate compensation reference to reduce the harmonic distortion on CB. Moreover, considering the measurement difference of DGs caused by different measuring points and equipment error, the average value is required. Also the accurate sharing of harmonic currents becomes important especially when large amount of nonlinear loads are connected. Accordingly, a communication algorithm is required to assist the discovering of global information like the average value of each order harmonic current ( I S ), and the average value of voltage / h harmonic components in each order ( D + ). Finally, in order to reduce the communication cost, communication links are only established between neighboring untis. Based on the objectives described above, this paper dedicates to the system modeling, analysis and development of distributed control methods. System modeling and analysis for harmonic compensation and current sharing In order to achieve harmonic compensation and current sharing, this Section puts efforts to the modeling of harmonic distorted system. A 2-DG islanded system is considered in the analysis as shown in Fig. 2. The essence of this compensation approach is actually quite simple but effective. First of all, considering that the nonlinear loads can be seen as harmonic current sources under certain load conditions [10], an equivalent circuit can be established as shown in Fig. 2 (a). The harmonic current flow causes the distortion of common bus voltage. The aim of voltage harmonic compensation is actually to reduce the harmonic components on CB. The ideal compensation process is generally sketched in Fig. 2 (b). Consider that ohm s law is always obeyed:

Fig. 2: (a) equivalent system model; (b) general compensation approach; (c) current sharing approach. V = V + I / Y V = V + I / Y I CB = I S1 + I S 2 CB S1 S1 1 CB S 2 S 2 2 (1) where the superscript stands for different harmonic components (= -5, +7, -11, +13, ), V S 1 and V S 2 are the voltage phasors at DG sides, I CB, I S1 and I S 2 are the current phasors, Y 1 and Y 2 are the admittances of distribution lines. As I CB can be seen as a current source if the load remains unchanged, V ' CB can be reduced to V CB by decreasing the harmonic voltage components in DG sides (from V S1, V ' ' S2 to V S1, V S2, respectively), as shown in Fig. 2 (b). In addition, if V S 1 and V S 2 are ' ' equally adjusted ( V S1 = V ), the current flow S2 I S and I 1 S 2 will remain unchanged. By applying this approach, the voltage distortion on CB can be mitigated. owever, it can be also seen from Fig. 2 (b) that the current is not well shared if the distribution line admittances are different ( Y 1 Y 2 ). With the same compensation references, the DG unit with larger admittance will provide more current which may cause overcurrent fault. Accordingly, in order to balance the current while without affecting the compensation performance, the respective voltage components on DG sides can be readjusted. The simplified process is sketched ' ' in Fig. 2 (c). By properly adjusting DG compensation references (from V S1, V '' '' S2 to V S1, V S2 ), the '' '' current sharing proportion can be accurately controlled ( I S1 = I ) while without affecting the voltage S2 component on CB ( V ). ' CB Distributed ierarchical Control Scheme Based on the analysis above, a distributed hierarchical control scheme is proposed, as shown in Fig. 3, which includes primary and secondary control levels as well as a communication layer. The primary control includes inner control loops for voltage and current control, droop control loops for active/reactive power sharing and virtual impedance loops. All the control loops in primary level are designed in αβ frame. Detailed design of primary controllers can be found in [11]. The secondary control contains two dedicated loops for voltage harmonic compensation and harmonic current sharing. Three main harmonics, -5 th, +7 th and -11 th, are considered in this study. The voltage harmonic compensation loop first measures and calculates the harmonic distortion level (i.e. 5- D ), which is actually the percentage of harmonic voltage amplitude compared with fundamental component as shown in Fig. 3. In order to eliminate the measurement error caused by different measuring points and devices, the local measured value is first transmitted to the neighboring units,

ierarchical Control Scheme i i-1 i+1 Comm. Network I +/-h si +/-h D 1 Ntot armonic Distortion Calculation h D = 100 ( v ) + ( v ) ( v ) ( ) h 2 h 2 d q 1 2 1 2 d + vq Primary Control Secondary Control Comm. Layer -11 th armonic Current Sharing Loop -11 11- αβ 11- CR hn +7 7+ +7 th armonic Current Sharing Loop Current PR Controller PWM αβ 7+ CR hp i L -5 5- * Voltage PR Controller δ I PI Controller αβ V si 5- v ref Reference E* Generator * Virtual Impedance αβ v Loop V i odgi Dynamic Consensus Algorithm (DCA) -5 th armonic Component Extraction d-q components are transmitted and controlled separately P/Q Droop Controller + P DGi i odgi 5- CS CR 5- -5 th armonic Current Sharing Loop + Q DGi Positive Sequence Power Calculation PI Controller 5- V CB D 5- D 5-* -5 th armonic Component Extraction -5 th armonic Compensation Loop +7 th Voltage armonic Compensation Loop -11 th Voltage armonic Compensation Loop DG Local Controller D 5- DC link i L L i odgi Y i V CB Energy Resource DGi C V si Common Bus (CB) Fig. 3: Distributed hierarchical control scheme. 5 and by using of consensus algorithm, the global average value (i.e. D ) can be obtained and used in 5* the control loop comparing with desired value ( D ). Proportional and integral controller is used to generate the compensation reference and cancel the error. With only droop control, the harmonic current cannot be accurately shared. Additional control loops are implemented in each LC as shown in Fig. 3. Taking -5 th harmonic current sharing loop as an example, it compares the d-q components of local -5 th harmonic current ( I 5 si ) with averaged values of d-q components of the -5 th harmonic current from all the DG sides ( I ): 5 si where psc 5 kisc 5 5 CS = ( + k psc ) ( Isi ) (2) s k and k isc are the proportional and integral coefficients of the PI control loop for d- and q- axis currents respectively (d- and q-axis currents are controlled separately), I 5 si is the locally measured -5 th harmonic current in d-q reference, and I 5 si is the average -5 th harmonic current discovered by using DCA realizing distributed information sharing and flexible operation. Dynamic Consensus Algorithm The DCA can help distributed units to reach an agreement on a quantity of interest through communication network. Considering the dispersed feature of generation, communication links are only needed between neighboring units, also the plug-and-play capability can be realized. The fundamental of DCA is shown in Fig. 4, which can be expressed using following equations [12]:

δii, 1( k + 1) δ ii, 1( k)... δ + ii, 1( k) δ ii, + 1( k + 1) Fig. 4: Dynamic consensus algorithm. xi( k + 1) = xi(0) + ε δij( k + 1) (3) j Ni ( ) δ ( k + 1) = δ ( k) + a x ( k) x ( k) (4) ij ij ij j i where xi () k is the information status of agent i at iteration k, and a ij is the connection status between node i and node j. In that sense, if the nodes i and j are not neighboring, then a ij =0. N i is the set of indices of the agents that are connected with agent i, ε is the constant edge weight used for tuning the dynamic of DCA, δ ij ( k) stores the cumulative difference between two agents, and δ ij (0) = 0, which realizes the accurate averaging during dynamic change conditions. From a system point of view, the vector form of the iteration algorithm can be expressed as [13]: x( k+ 1) = W x ( k) (5) with T x ( k) = [ x1( k), x2( k),..., xn ( k)] and W is the weight matrix of the communication network. If T constant edge weight ε is considered, W can be described as: W= I ε L (6) a1j a1nt j N1 L = a1nt ant j j NnT (7) where L is the Laplacian matrix of the communication network [14], [15], n T is the total number of agents. The final consensus equilibrium x eq is: k 1 T xeq = lim x( k) = lim W x(0) = 1 1 (0) k k n x (8) T where x(0) = [ x1(0), x2(0),..., x N T (0)] is the vector of the initial values held by each agent, 1 denotes the vector with the values of all the elements being 1. The detailed proof of the convergence can be found in [13].

2 T1 T2 T3 D 5- on CB D 5- on DG1 D 5- on DG2 #1 1 D 5- on DG3 0 5 4 D 7+ on DG1 #2 3 2 1 D 7+ on CB D 7+ on DG2 D 7+ on DG3 0 50 Frequency on CB #3 49.95 49.90 0-1 d axis currents #4-2 -3-4 -5 I 1+d s1 of DG1 I 1+d s2 of DG2 I 1+d s3 of DG3 I 1+q s3 of DG3 I 1+q s2 of DG2 I 1+q s1 of DG1 q axis currents #5 3 2 1 0 I 5-q of DG2 s2 I 5-d of DG1 s1 I 5-q of DG1 s1 I 5-d of DG3 s3 I 5-d of DG2 s2 d axis currents q axis currents -1 I 5-q of DG3 s3 #6 1 0-1 I 7+d of DG3 s3 I 7+q of DG2 s2 I 7+d of DG1 s1 I 7+q of DG3 s3 I 7+d of DG2 s2 I 7+q of DG1 s1 q axis currents d axis currents -2 0 1 2 3 4 5 6 7 8 9 orizontal Axis: Time (s) Fig. 5: Simulation results. In this study case, x(k) includes the discovered average value of voltage harmonic distortion in each / h order ( D + ) and harmonic current components in each order ( ), and x(0) is the local measured 5- values in each order ( D and I ). si Simulation Results The study case system shown in Fig. 1 and the control system shown in Fig. 3 are established in Matlab/Simulink. Three DGs are used as compensators to reduce the voltage harmonics on CB. They

are considered the same compensating capability so that equal sharing of load current is expected (for DGs with different compensating capabilities, when normalized, will share the same per-unit value). The nonlinear load used in the simulation is based on 6-pulse diode rectifier. The sampling time of the DCA/communication part and the controller/mg part are set to 50ms and 1us respectively. The 5th and 7th harmonics components ( D 5- and D 7+ ) are taken as examples and shown in Fig. 5 #1 and #2, respectively. The frequency is given in Fig. 5 #3. The fundamental current components, the - 5 th and +7 th harmonic current components in reference frame are shown in Fig. 5 #4~#6 respectively. Fig. 6: DG Phase current comparison. Fig. 7: Plug-and-play verification. At T1, nonlinear load is connected in CB, which causes the increasing of 5- D and 7+ D. At T2, the voltage harmonic compensation control is activated to enhance the power quality in CB. It can be seen 5- that after activation, the D and 7+ D on CB are both reduced to 0.2%, which is achieved by 5-7+ adjusting the harmonic voltage in DG sides (from T2 to T3 the D and D in DG sides are changed). The frequency is kept at 49.97 z. Although the power quality has been improved, the load current is not well shared as can be seen in Fig. 5 #5~#6 and Fig. 6 #1 and #2. In Fig. 5 #4, the positive

sequence fundamental current component is well shared due to the using of droop control. But the Fig. 5 #5 and #6 show that from T1 to T3 the -5 th and +7 th harmonic current of the three DGs are different, which causes inaccurate sharing of load current as shown in Fig. 6 #2. It can be seen from Fig. 6 #2 that the peak value of DG3 current is around 7A while the DG1 is only 5A. At T3, the harmonic current sharing control loops are activated resulting in the convergence of the DG currents as shown in Fig. 5 #5 and #6. The Fig. 6 #3 shows that after activating the current sharing control, the DG currents are accurately shared among all the DG units. Moreover, plug-and-play capability is demonstrated in Fig. 7. The -5 th harmonic current in q-axis is used here as an example. Fig. 7 #1 gives the current curves, and Fig. 7 #2 shows the dynamic of the DCA during this process. At T1, current sharing control and DCA is activated, the DG currents are converged to the same value. At T2, DG1 is excluded from the current sharing due to communication loss or intentional operation. DG2 and DG3 currents are able to converge to the new average value and DG1 is not participating. At T3, DG1 is included again into the sharing group. This process demonstrates that the proposed method realizes plug-and-play function. Conclusion This paper proposes a dynamic consensus algorithm based distributed compensation and total current sharing method. The system is first analyzed and modeled, based on which the compensation and current sharing approach is proposed. A complete hierarchical control scheme is introduced with primary, secondary and communication layer differentiated. Simulation results demonstrate that the proposed method is able to keep the desirable power quality in CB while ensuring accurate current sharing. The flexibility of the system is also enhanced with plug-and-play capability. References [1] R.. Lasseter, Smart Distribution: Coupled Microgrids, Proc. IEEE, vol. 99, no. 6, pp. 1074 1082, Jun. 2011. [2] L. Cividino, Power factor, harmonic distortion; causes, effects and considerations, in [Proceedings] Fourteenth International Telecommunications Energy Conference - INTELEC 92, 1992, pp. 506 513. [3] B. Singh, K. Al-addad, and A. Chandra, A review of active filters for power quality improvement, IEEE Trans. Ind. Electron., vol. 46, no. 5, pp. 960 971, 1999. [4]. Akagi, New trends in active filters for power conditioning, IEEE Trans. Ind. Appl., vol. 32, no. 6, pp. 1312 1322, 1996. [5] J. M. Guerrero, P. C. Loh, T.-L. Lee, and M. Chandorkar, Advanced Control Architectures for Intelligent Microgrids Part II: Power Quality, Energy Storage, and AC/DC Microgrids, IEEE Trans. Ind. Electron., vol. 60, no. 4, pp. 1263 1270, Apr. 2013. [6] A. Bueno, J. M. Aller, J. A. Restrepo, R. arley, and T. G. abetler, armonic and Unbalance Compensation Based on Direct Power Control for Electric Railway Systems, Power Electronics, IEEE Transactions on, vol. 28. pp. 5823 5831, 2013. [7] M. Prodanovic and T. C. Green, igh-quality Power Generation Through Distributed Control of a Power Park Microgrid, IEEE Trans. Ind. Electron., vol. 53, 2006. [8] M. Savaghebi, A. Jalilian, J. C. Vasquez, and J. M. Guerrero, Autonomous Voltage Unbalance Compensation in an Islanded Droop-Controlled Microgrid, IEEE Trans. Ind. Electron., vol. 60, no. 4, pp. 1390 1402, Apr. 2013. [9] M. Savaghebi, A. Jalilian, J. C. Vasquez, and J. M. Guerrero, Secondary Control Scheme for Voltage Unbalance Compensation in an Islanded Droop-Controlled Microgrid, IEEE Trans. Smart Grid, vol. 3, no. 2, pp. 797 807, Jun. 2012. [10] L. Meng, F. Tang, M. Savaghebi, J. C. Vasquez, and J. M. Guerrero, Tertiary Control of Voltage Unbalance Compensation for Optimal Power Quality in Islanded Microgrids, IEEE Trans. Energy Convers., vol. PP, no. 99, pp. 1 14, 2014.

[11] M. Savaghebi, A. Jalilian, J. C. Vasquez, and J. M. Guerrero, Secondary Control for Voltage Quality Enhancement in Microgrids, IEEE Trans. Smart Grid, vol. 3, no. 4, pp. 1893 1902, Dec. 2012. [12] M. Kriegleder, A Correction to Algorithm A2 in Asynchronous Distributed Averaging on Communication Networks, vol. PP, no. 99. p. 1, 2013. [13] R. Olfati-Saber, J. A. Fax, and R. M. Murray, Consensus and Cooperation in Networked Multi-Agent Systems, Proc. IEEE, vol. 95, 2007. [14] N. Biggs, Algebraic Graph Theory, Cambridge Tracks in Mathematics. Cambridge, U.K.: Cambridge Univ. Press, 1974. [15] C. Godsil and G. Royle, Algebraic Graph Theory, Vol. 207. New York: Springer-Verlag, 2001.