- freely available
- re-usable

*Energies*
**2015**,
*8*(3),
1784-1801;
doi:10.3390/en8031784

^{1}

^{2}

^{*}

## Abstract

**:**This paper presents a microgrid stability controller (MSC) in order to provide existing distributed generation units (DGs) the additional functionality of working in islanding mode without changing their control strategies in grid-connected mode and to enhance the stability of the microgrid. Microgrid operating characteristics and mathematical models of the MSC indicate that the system is inherently nonlinear and time-variable. Therefore, this paper proposes an adaptive robust total sliding-mode control (ARTSMC) system for the MSC. It is proved that the ARTSMC system is insensitive to parametric uncertainties and external disturbances. The MSC provides fast dynamic response and robustness to the microgrid. When the system is operating in grid-connected mode, it is able to improve the controllability of the exchanged power between the microgrid and the utility grid, while smoothing the DGs’ output power. When the microgrid is operating in islanded mode, it provides voltage and frequency support, while guaranteeing seamless transition between the two operation modes. Simulation and experimental results show the effectiveness of the proposed approach.

## 1. Introduction

Features such as low investment, environmental friendliness, high reliability and flexibility make distributed generation (DG) systems an interesting and promising technological option [1,2,3]. As power systems are seeing an increasing DG penetration level, beside the aforementioned advantages, DG units may also bring problems to the utility grid like bidirectional power flow, voltage deviations, and voltage fluctuations. In this sense, a microgrid, which consists on a cluster of loads and parallel-connected DG units in a local area [4,5] is a suitable solution to problems caused by the high DG penetration, thus making possible large-scale DG penetration [6,7]. A microgrid can be connected to the utility grid at the point of common coupling (PCC), being able to flexibly import/export energy from/to the grid by controlling active and reactive power flows [8,9]. When there is a fault in the utility grid or during maintenance, according to IEEE standard 1547.4 [10], the microgrid must be disconnected from the utility grid, thus operating in islanded mode in order to guarantee the electrical power supply to the critical loads [11,12].

In general, the normal DG operation mode is performed connected to the grid, since in this case maximum produced power can be injected into the grid [13,14]. The control algorithms for grid-connected DGs have been developed and refined over the years [15,16]. Blaabjerg [17,18] presented an overview of different control and synchronization techniques for DG systems [19]. Different control strategies for DG systems under unbalanced condition are given in. Savaghebi, Castilla and Twining [20,21,22] proposed different controllers for DG systems to compensate harmonic components. Guerrero designed control schemes for parallel connected DGs [23,24,25], hierarchical control is discussed in [26,27]. Nowadays these control schemes are mature technologies that are available on the market. Therefore, a real microgrid plant often uses commercial DG systems and adds extra customized equipment to provide extra functionalities.

This paper proposes a “microgrid stability controller” (MSC) based on energy storage equipment, which provides islanding operation functionality to conventional DG systems without changing their grid-connected control strategies. In addition, in grid-connected mode, the MSC can smooth the exchanged power at the PCC, thus avoiding voltage fluctuations and other power quality issues in the main grid. This feature is important when prime movers are renewable energy sources which are characterized by having a stochastic and intermittent behavior.

The MSC is expected to operate with high efficiency, low output current total harmonics distortion, and sinusoidal output voltage with a specified frequency and amplitude in all operation modes. In addition to this requirement, the MSC must be robust against disturbances, having good voltage regulation and fast dynamic response. In that sense, many control techniques have been proposed for pulse width modulation (PWM) converters to achieve good dynamic response under different types of loads, including proportional-integral-derivative control, model-based linear control, robust control, and internal model principle based control [28,29,30]. However, uncertainties caused by the operation mode transitions and DG disturbances make the MSC a nonlinear, time-variable system. Therefore, it is difficult to reach ideal control objectives with conventional control techniques due to their multivariable structure and highly coupled nonlinearity of the system. Most of the conventional control techniques only guarantee the desired closed-loop response at the expected operating point, thus degrading their performances outside this point. Hence, it seems natural to explore other nonlinear controls that can overcome the uncertainties problem, and to achieve better compensation and global stability in large-signal sense [31].

For instance, sliding mode control (SMC) is one of the most effective nonlinear robust control approaches, since it provides to the system a dynamics with an invariance property to uncertainties once the system dynamics is controlled in the sliding mode [32,33,34,35,36]. Reference [37] applies the SMC scheme to a three-phase AC-to-DC voltage source boost converter to provide a constant level output voltage while keeping unity power factor. Reference [38] applies SMC in a single phase inverter and designs different control schemes in stand-alone and grid connected modes. Reference [39] uses SMC in the voltage control loop of a voltage-sourced rectifier, which provides quasi unity power factor operation, low harmonic content and fast dynamic response. While hysteretic control is applied in the current control loop, so that the switching frequency is variable, also named chattering.

In practical control systems, parameter variation, uncertainties, external disturbances and the limitation of detection make it difficult to acquire an accurate mathematical model. Consequently, the traditional SMC can hardly achieve outstanding results. Therefore, this work proposes an adaptive robust total sliding-mode control (ARTSMC) system for the MSC, which colligates the advantages of adaptive control and SMC. The total sliding surface eliminates the control error and gets a sliding motion through the whole state trajectory [40,41]. Furthermore, the use of PWM avoids variable switching frequency.

This paper is organized as follows: in Section 2 the configuration of a microgrid including the proposed MSC is presented. In Section 3 the model of the proposed MSC is derived for the system operating in both islanded and grid-connected modes. Section 4 presents the ARTSMC system for both voltage control and current control used in islanded and grid-connected modes respectively. Section 5 validates the proposed approach by means of simulation results, and Section 6 present the experimental results extracted by an AERTSMC-controlled MSC of 3 kVA. Finally, Section 7 concludes the paper.

## 2. Proposed MSC-Based Microgrid

Figure 1 shows the circuit topology of a microgrid including a photovoltaic (PV)-based DG unit and critical loads connected to an AC bus. The microgrid is connected to the electrical distribution network through a circuit breaker QF. The MSC, which consists of an energy storage system, a bidirectional DC-to-AC converter with an inductor-capacitor (LC) filter, is connected to the AC bus together with the DG unit and the critical load inside the microgrid.

As the MSC is based on an energy storage system (ESS) and full controlled converter, it can flexibly import/export power from/to the grid. When the microgrid operates in grid-connected mode, the MSC can compensate the power variations or reduce the power fluctuations caused by the DG unit or the critical loads inside the microgrid. When the microgrid is disconnected from the main grid, thus operating in islanded mode, the MSC fixes the microgrid output voltage and frequency, which are the references to be used by the DG. Note that when the microgrid operates in islanded mode, it is a weak AC power system, consequently, the DG output power variations or load disturbances are more likely to cause voltage fluctuations or voltage sags. These problems may enforce DG units and/or sensitive load disconnection from the AC line. Therefore, it is necessary to use the MSC to balance active and reactive in the microgrid in order to maintain voltage and power quality.

## 3. MSC Modeling

Figure 2 shows the power stage of the MSC when the microgrid operates in islanded mode. In this figure, v_{0a}, v_{0b}, v_{0c} are the AC bus voltages (per phase) and i_{0a}, i_{0b}, i_{0c} are the AC currents (per phase) of the MSC; L_{a}, L_{b}, L_{c} and C_{fa}, C_{fb}, C_{fc} are the filter inductor and capacitor values, respectively; r_{a}, r_{b}, r_{c} represent the equivalent series resistor (ESR) of the converter, inductor, and power line; r_{fa}, r_{fb}, r_{fc} represent the ESR of the filter capacitor; and i_{ma}, i_{mb}, i_{mc} represent the aforementioned disturbances in the microgrid.

The states of the switches of the n-th leg (n = 1, 2, 3) can be represented by the time-dependent variable S_{n}, defined as:

This switching strategy, together with a small dead-time generator, will avoid internal shorts between the two switches of each bridge leg, as the switches will always be in complementary states. Assuming that the switching frequency is high enough compared to the modulation and natural frequencies, the equivalent dynamic model of Figure 2 can be obtained as shown in Figure 3, where s is the Laplace operator, the power gain can be defined as k_{PWM} = V_{d}/v_{tri}, and v_{tri} is the amplitude of a triangular carrier signal.

#### 3.1. System Modeling in Islanding Mode

When the microgrid operates in islanded mode, the dynamic Equation of the MSC during the positive-half period can be represented as:

_{control1k}is the control signal, k = a, b, c.

According to the aforementioned discussion, the microgrid is a nonlinear, time-variable system and there are uncertainties in the MSC system, which are caused by parametric variations or external disturbances. Therefore, Equation (2) should be modified as follows:

**∆A**_{k}, **∆B**_{k}, **∆D**_{k} represent the system parameter variations and they satisfy the matching condition which is **∆A**_{k} = **B**_{k}**G**_{k}, **∆B**_{k} = **B**_{k}**H**_{k}, **∆D**_{k} = **B**_{k}**J**_{k}, **F**_{k}**I**_{mk} = **B**_{k}**K**_{k}. In order to analyze conveniently, define:

Thus, rearranging Equation (4) as:

The bound of the uncertainty is assumed to meet the following inequality:

_{1k}and q

_{2k}are unknown positive constants and

**e**

_{k}is the voltage control error, which is defined as:

_{refk}is the output voltage reference, which is set to the nominal value.

#### 3.2. System Modeling in Grid-Connected Mode

When the microgrid operates in grid-connected mode, it is connected to the utility grid through QF as shown in Figure 4.

In order to provide the desired power to the grid, we propose use the MSC to compensate power variations and to reduce power fluctuations caused by the DGs and/or loads in the microgrid. The dynamic Equation of the MSC during the positive-half period is represented as:

Equation (8) can be rearranged as follows:

**L**

_{g}= diag(L

_{ga}, L

_{gb}, L

_{gc}),

**i**

_{0}= diag(i

_{0a}, i

_{0b}, i

_{0c}),

**R**

_{g}= diag(R

_{ga}, R

_{gb}, R

_{gc}), ${\stackrel{\xb7}{i}}_{0}=diag({\stackrel{\xb7}{i}}_{0a}{\stackrel{\xb7}{i}}_{0b}{\stackrel{\xb7}{i}}_{0c})$,

**v**

_{0}= diag(v

_{0a}, v

_{0b}, v

_{0c}),

**v**

_{m}= diag(v

_{ma}, v

_{mb}, v

_{mc}), being

**u**

_{control2}= diag(u

_{control2a}, u

_{control2b}, u

_{control2c}) the control signal; L

_{ga}, L

_{gb}, L

_{gc}and R

_{ga}, R

_{gb}, R

_{gc}represent inductors and their respective ESRs; v

_{0a}, v

_{0b}, v

_{0c}and i

_{0a}, i

_{0b}, i

_{0c}are the AC voltage and current (per phase) respectively; and v

_{ma}, v

_{mb}, v

_{mc}represent disturbances or uncertainties in the microgrid. Equation (9) can be rearranged as:

**a**= diag(−R

_{ga}/L

_{ga}, −R

_{gb}/L

_{gb}, −R

_{gc}/L

_{gc}),

**b**= diag(k

_{PWM}/L

_{ga}, k

_{PWM}/L

_{gb}, k

_{PWM}/L

_{gc}),

**c**= diag(−1/L

_{ga}, −1/L

_{gb}, −1/L

_{gc}). Due to the parametric variations or external disturbances, Equation (10) should be modified as:

**∆a**, **∆b**, **∆c** represent the system parameter variations and they satisfy the matching condition which is **∆a** = **bf**, **∆b** = **bm**, **∆c** = **bn**, **v**_{m}**/L**_{g} = **bg**. In order to analyze conveniently, define:

**w**is the uncertainty. Therefore Equation (11) is modified as:

The bound of the uncertainty is assumed to meet the following inequality:

Being **q** = diag(q_{a}, q_{b},q _{c}) an unknown positive constant.

## 4. ARTSMC System

The proposed ARTSMC is insensitive to parametric uncertainties and external disturbances. The total sliding surface ensures stability and robustness through the entire state trajectory. Hence, the system dynamics in the reaching phase is not influenced by uncertainties. The control law encompasses a state feedback term, a robust control term, and an adaptive compensation term. The state feedback term takes advantage of the pole assignment and state feedback, while simplifying the sliding surface design. The robust control term decides the basic structure of the uncertain nonlinear system. Uncertainties in the MSC system do not have a fixed value, so that it is difficult and impractical to measure real-time uncertainties. Thus, a logical solution is to apply an adaptive strategy. Instead of fixing a boundary of uncertainties, an adaptive compensation term is introduced in order to adjust the uncertainties in real-time. According to the difference between the nominal nonlinear system and the uncertain nonlinear system, the sliding surface and other parameters compose the adaptive law which satisfies the global Lyapunov stability condition.

The proposed ARTSMC system is divided into two main parts, as illustrated in Figure 5. The first part is the ARTSMC based voltage control loop, which produces the control signals u_{control1a}, u_{control1b} and u_{control1c}. The second part is the ARTSMC based current control loop, which produces the control signals u_{control2a}, u_{control2b}, and u_{control2c}. When the microgrid operates in grid-connected mode, the current control loop determines the output power of the MSC by controlling its output current. In this scenario, its output voltage v_{0a}, v_{0b}, and v_{0c} is equal to the grid voltage (v_{ga}, v_{gb}, v_{gc}), which is assumed to be the nominal value, meaning that v_{0a}, v_{0b}, v_{0c} equal to v_{refa}, v_{refb}, v_{refc}, thus the voltage control loop is automatically disabled. When the microgrid operates in islanded mode, the voltage control loop enforces the output voltage of the MSC to track the reference value v_{refa}, v_{refb}, v_{refc} and to keep the microgrid voltage constant. The output power of the MSC is determined by the power balance among DGs, loads, and losses in the microgrid. Under this circumstance, the current control loop is not necessary and therefore the switch S is open.

#### 4.1. ARTSMC Based Current Control Loop

The main task of the ARTSMC-based current control loop is to control the output power of the MSC by regulating its AC current. Specifically, it has to enforce i_{0a}, i_{0b}, i_{0c} to track the output current reference i_{refa}, i_{refb}, i_{refc}. Thus, a PLL structure is applied in order to generate the output current reference i_{refa}, i_{refb}, i_{refc}, to achieve unity power factor. It is important to notice that the power factor can be adjusted by modifying θ_{PLL}. The current control loop is synthesized as follows. The first step is to define a sliding surface [35,36]:

**e**

_{i}= diag(i

_{0a}−i

_{refa}, i

_{0b}−i

_{refb}, i

_{0c}−i

_{refc}),

**s**= diag(s

_{a}, s

_{b}, s

_{c}) and β is the state feedback coefficient. e

_{io}is the initial state of e

_{i}. The second step is to design the control to enforce the system state trajectories to go toward the sliding surface (15) and to stay on it:

Being **u**_{1} the state feedback term, **u**_{2} the robust control term, and **u**_{3} the adaptive compensation term; ε is a small positive constant number; **sign(s)** = diag(sign(s_{a}), sign(s_{b}), sign(s_{b})) and sign(·) is the sign function; abs(·) is the absolute value function; $\widehat{q}$ is the estimated value of **q**; the parameter deviation is defined as $\tilde{q}=\widehat{q}-q$; and the adaptive law is:

Proof: The existence condition of the sliding mode can be derived by using Lyapunov stability analysis, by consider the Lyapunov function candidate as:

By taking the derivative of Equation (15) along Equation (13) and substituting Equation (16) and Equation (20) into Equation (22), it yields:

Therefore, $\dot{V}<0$, when $abs(s)\ne 0$. It implies that the asymptotically stable behavior for the sliding mode system on the sliding surface (15) can be ensured.

Once the system trajectory reaches the sliding surface, $s=\stackrel{\xb7}{s}=0$:

Then, the equivalent control can be obtained from the following equation:

By substituting Equation (24) into Equation (13), it yields:

It implies that by properly selecting the state feedback coefficient β, the robustness of sliding mode (25) can be guaranteed, and the main dynamics features of the MSC such as rising time and maximum overshoot can easily be designed.

#### 4.2. ARTSMC Based for Voltage Control Loop

The main function of the ARTSMC-based voltage control loop is to force the MSC output voltage to track its reference value v_{refa}, v_{refb}, v_{refc}, thus keeping the microgrid voltage constant when the microgrid operates in islanded mode. In order to eliminate the control error and to get a sliding motion through the entire state trajectory, let us define a sliding surface as:

**C**is a full rank constant matrix,

**CB**is nonsingular, and

**β**is state feedback control coefficient matrix, e

_{ko}is the initial value of e

_{k}. The system state trajectories are forced toward the sliding surface (26) and stay on it, by designing the control scheme as follows such that:

_{1k}is the state feedback term, u

_{2k}is the robust control term, u

_{3k}is the adaptive compensation term; ${X}_{rk}={\left[\begin{array}{cc}{v}_{refk}& {\dot{v}}_{refk}\end{array}\right]}^{\mathrm{T}}$; ε is a small positive constant and sign(·) is the sign function; ${\widehat{q}}_{1k}$, ${\widehat{q}}_{2k}$ are estimated values of ${q}_{1k}$, ${q}_{2k}$. The parameter deviations are ${\tilde{q}}_{1k}={\widehat{q}}_{1k}-{q}_{1k}$, ${\tilde{q}}_{2k}={\widehat{q}}_{2k}-{q}_{2k}$. Choose adaptive law as:

Proof: By considering a Lyapunov function candidate as:

Taking the derivative of Equation (31):

Substituting Equation (27) into (32), it yields:

Consequently, the asymptotically stable behavior for the sliding mode system on the sliding surface (26) can be guaranteed.

Once the system trajectory reaches the sliding surface:

Therefore, the equivalent control can be obtained from Equation (34) which is:

Substituting Equation (34) into Equation (5), it yields:

This implies that with a properly designed state feedback coefficient **β**, the robustness of sliding mode (35) can be determined. The strictly logical and rigorous proof illustrates the ARTSMC system is insensitive to parametric uncertainties and external disturbances.

## 5. Simulation Results

A simulation platform under PSCAD/EMTDC environment is developed based on Figure 1 to study the performance of the MSC and to verify the proposed ARTSMC system. Table 1 shows the electrical parameters of MSC under study. The AC output voltage reference v_{ref} is set to 220 V at 50 Hz, and the AC output current reference i_{ref} is set according to the desired power exchange value at the PCC. Based on the sliding surfaces (15) and (26), the state feedback coefficients are designed to guarantee the robustness of the sliding modes (25) and (35), while determining the control performance and system stability, the parameters are given as: β = 30, β = [0.00270]. The DG_{PV} system in Figure 1 is connected to the same AC bus with the MSC through a DC-to-AC inverter, which is in phase with the grid voltage, and injecting power to the microgrid.

Parameter | Value |
---|---|

DC voltage (Energy storage equipment) | 800 V |

filter capacitance | 3 μF |

filter inductance | 1.5 mH |

output voltage (RMS) (phase) | 220 V |

output frequency | 50 Hz |

The microgrid operates in grid-connected mode and delivers 30 kW to the power grid. The output power of DG_{PV} is set to 40 kW and the critical load inside the microgrid is 30 kW. At 0.5 s, the output power of DG_{PV} increases to 50 kW and at 1 s the microgrid disconnects from the utility, thus operating in islanded mode. At 1.5 s the output power of DG_{PV} decreases to 20 kW, and at 1.75 s the 30 kW critical load is connected to the microgrid.

Figure 6 presents output power of the MSC, which is 20 kW at the beginning, and then it goes down to 10 kW at 0.5 s. The MSC switches to charge mode at 1 s as there is 20 kW excess of power when the microgrid operates in islanded mode from 1 s. When the output power of DG_{PV} decreases to 20 kW at 1.5 s, the MSC starts injecting 10 kW of active power to the microgrid, and its output power raise to 40 kW as the critical load in the microgrid increases to 60 kW at 1.75 s, while the output power of the DG_{PV} remains constant.

Output active and reactive powers of the MSC.

The voltage and current waveforms of the MSC at its AC side are shown in Figure 7 and Figure 8. The output current of the MSC does not have any inrush spikes during the entire transition period. Furthermore, there is no voltage perturbation along the operation. Due to the parallel connection of the MSC, the critical load and the DG_{PV}, the microgrid voltage remains stable in all situations.

**Figure 7.**(

**a**) Voltage waveform of the MSC between 0.35 s and 0.65 s; (

**b**) Voltage waveforms of the MSC between 0.85 s and 1.15 s; (

**c**) Voltage waveforms of the MSC between 1.35 s and 1.65 s; (

**d**) Voltage waveforms of the MSC between 1.6 s and 1.9 s.

**Figure 8.**(

**a**) Current waveforms of the MSC between 0.35 s and 0.65 s; (

**b**) Current waveforms of the MSC between 0.85 s and 1.15 s; (

**c**) Current waveforms of the MSC between 1.35 s and 1.65 s; (

**d**) Current waveforms of the MSC between 1.6 s and 1.9 s.

Figure 9 gives the output power of the DG_{PV}. Figure 10 and Figure 11 present the output voltage and current waveforms of the DG_{PV}. Their output voltage keep steady, while the output current increases at 0.5 s and reduces at 1.5 s with no inrush current. The simulation results indicate smooth transaction and stable operation of the DG system. It shows that MSC provides DG_{PV} additional islanded operation functionality without changing their inner control strategies conceived for grid-connected mode.

**Figure 10.**(

**a**) Output voltage waveforms of DG

_{PV}between 0.35 s and 0.65 s; (

**b**) Output voltage waveforms of DG

_{PV}between 0.85 s and 1.15 s; (

**c**) Output voltage waveforms of DG

_{PV}between 1.35 s and 1.65 s; (

**d**) Output voltage waveforms of DG

_{PV}between 1.6 s and 1.9 s.

**Figure 11.**(

**a**) Output current waveforms of DG

_{PV}between 0.35 s and 0.65 s; (

**b**) Output current waveforms of DG

_{PV}between 0.85 s and 1.15 s; (

**c**) Output current waveforms of DG

_{PV}between 1.35 s and 1.65 s; (

**d**) Output current waveforms of DG

_{PV}between 1.6 s and 1.9 s.

## 6. Experimental Results

A 3kVA experimental MSC setup is shown in Figure 12. The converter used in the MSC is built based on IGBTs and the proposed control strategy is carried out by using a digital signal processor (DSP) TMS320F28335 produced by Texas Instruments Inc. (Dallas, TX, USA). The switching frequency of the PWM gating signal is 12 kHz, and the main circuit devices have the same value as in the simulation model. Figure 13 and Figure 14 give experimental results of the MSC under different conditions. The upper waveform is the voltage waveform of the MSC at the AC side and the lower one is the current waveform of phase A.

**Figure 13.**(

**a**) Experimental results from grid-connected to islanding modes; (

**b**) Experimental results from islanded to grid-connected modes.

**Figure 14.**(

**a**) Experimental results in grid-connected mode; (

**b**) Experimental results in islanded mode.

The experimental results of MSC when the microgrid transfers between the two operation modes are shown in Figure 13. In Figure 13a, the microgrid operates in grid-connected mode and transfers to islanded mode, while in Figure 13b the microgrid operates in islanded mode and reconnects to the utility. The output power reference of the MSC is set at 2 kW when the microgrid operates in grid-connected mode. If it is disconnected from the utility grid, the MSC supplies a 3 kW load. It can be seen that in Figure 13 the output power is controlled to be follow the reference value, and the voltage is controlled to track the voltage reference (220 V, 50 Hz). Note that the output voltage and current of the MSC do not have any inrush spikes during the entire transition period, thus indicating a smooth transition.

Figure 14a presents the experimental results when the microgrid operates in grid-connected mode, the output power reference value of MSC is set at 2.5 kW at first and then increases to 3 kW. Note that its output current is increased and the output voltage is stable. During islanded mode, the MSC feed a 1.5 kW load, and then another 1.5 kW load is connected to the microgrid. The experimental results are given in Figure 14b, showing clearly that the voltage remains stable during the whole period.

## 7. Conclusions

As the MSC in a microgrid is inherently nonlinear, time-variable, the authors proposed to employ the ARTSMC scheme in order to ensure its stability and dynamics. The ARTSMC system is developed after analyzing the microgrid operating characteristics and the mathematical models of the MSC. The rigorous proof illustrates the ARTSMC system is insensitive to parametric uncertainties and external disturbances. Simulation and experimental results have shown the fast dynamic response and robustness performance of the MSC, while guaranteeing stable operation of the microgrid in grid-connected and islanded modes, as well as automatic and seamless transition between these two operation modes. The MSC improves the reliability and power quality of the microgrid, thus providing additional islanded mode functionality without changing DG inner control strategies. The MSC is suitable for existing DGs to extend their function and to form a microgrid to supply critical loads. The proposed solution is quite independent from the use of third-party commercial DG units, such as PV inverters, so that no specific customized DGs are necessary.

## Acknowledgments

This work is supported by Sino-Danish Strategic Research Cooperation within Sustainable and Renewable Energy (2014DFG72620). URL: www.idclab.et.aau.dk “111” Project (B08013) of China.

## Author Contributions

Xiaoling Su and Minxiao Han designed the microgrid stability controller and its control system. Xiaoling Su and Hai Su performed the experiments. Xiaoling Su, Minxiao Han and Josep M. Guerrero contributed jointly to the writing of the manuscript. All authors have read and approved the final manuscript.

## Conflicts of Interest

The authors declare no conflict of interest.

## References

- Vovos, P.; Kiprakis, A.; Wallace, A. Centralized and distributed voltage control: Impact on distributed generation penetration. IEEE Trans. Power Syst.
**2007**, 22, 476–483. [Google Scholar] - Marwali, M.N.; Dai, M.; Keyhani, A. Robust stability analysis of voltage and current control for distributed generation systems. IEEE Trans. Energy Convers.
**2006**, 21, 516–526. [Google Scholar] - Su, X.; Han, M.; Zhao, Z. Research on DG planning strategies for minimizing main grid power. Power Syst. Technol.
**2012**, 36, 87–92. [Google Scholar] - Lu, Z.; Wang, C.; Min, Y. Overview on microgrid research. Autom. Electr. Power Syst.
**2007**, 31, 100–107. [Google Scholar] - Lasseter, R.H. Microgrids. In Proceedings of the IEEE Power Engineering Society Winter Meeting, New York, NY, USA, 27–31 January 2002; pp. 305–308.
- Balaguer, I.J.; Qin, L.; Yang, S.; Supatti, U.; Peng, F.Z. Control for grid-connected and intentional islanding operations of distributed power generation. IEEE Trans. Ind. Electron.
**2011**, 58, 147–157. [Google Scholar] - Vasquez, J.C.; Guerrero, J.M.; Luna, A.; Rodriguez, P. Adaptive droop control applied to voltage-source inverters operating in grid-connected and islanded modes. IEEE Trans. Ind. Electron.
**2009**, 56, 4088–4096. [Google Scholar] - Ciobotaru, M.; Agelidis, V.G.; Teodorescu, R.; Blaabjerg, F. Accurate and less-disturbing active anti-islanding method based on PLL for grid-connected converters. IEEE Trans. Power Electron.
**2010**, 25, 1576–1584. [Google Scholar] - Chen, Y.-M.; Wu, H.-C.; Chen, Y.-C.; Lee, K.-Y.; Shyu, S.-S. The AC line current regulation strategy for the grid-connected PV system. IEEE Trans. Power Electron.
**2010**, 25, 209–218. [Google Scholar] - 1547.4WG-DR Island Systems Working Group. IEEE Guide for Design, Operation, and Integration of Distributed Resource Island Systems with Electric Power Systems; The IEEE Standards Association: Piscataway, NJ, USA, 2011; pp. 1–42. [Google Scholar]
- Min, D.; Marwali, M.N.; Jung, J.-W.; Keyhani, A. A three-phase four-wire inverter control technique for a single distributed generation unit in island mode. IEEE Trans. Power Electron.
**2008**, 23, 322–331. [Google Scholar] - Tirumala, R.; Mohan, N.; Henze, C. Seamless transfer of grid-connected PWM inverters between utility-interactive and stand-alone modes. In Proceedings of the IEEE Applied Power Electronics Conference and Exposition, Dallas, TX, USA, 10–14 March 2002; pp. 1081–1086.
- Pouresmaeil, E.; Montesinos-Miracle, D.; Gomis-Bellmunt, O.; Bergas-Jané, J. A multi-objective control strategy for grid connection of DG (distributed generation) resources. Energy
**2010**, 35, 5022–5030. [Google Scholar] - Guerrero, J.M.; Blaabjerg, F.; Zhelev, T.; Hemmes, K. Distributed generation: Toward a new energy paradigm. Ind. Electron.
**2010**, 4, 52–64. [Google Scholar] - Timbus, A.; Liserre, M.; Teodorescu, R.; Rodriguez, P.; Blaabjerg, F. Evaluation of current controllers for distributed power generation systems. IEEE Trans. Power Electron.
**2010**, 24, 654–664. [Google Scholar] - Mohamed, Y.A.-R.I.; El-Saadany, E.F. A robust natural-frame-based interfacing scheme for grid-connected distributed generation inverters. IEEE Trans. Energy Convers.
**2011**, 26, 728–736. [Google Scholar] - Cheng, P.T.; Chen, C.; Lee, T.L.; Kuo, S.Y. A cooperative imbalance compensation method for distributed-generation interface converters. IEEE Trans. Ind. Appl.
**2009**, 45, 805–815. [Google Scholar] - Saccomando, G.; Svensson, J. Transient operation of grid-connected voltage source converter under unbalanced voltage conditions. In Proceedings of the Thirty-Sixth IAS Annual Meeting, Chicago, IL, USA; 2001; 4, pp. 2419–2424. [Google Scholar]
- Blaabjerg, F.; Teodorescu, R.; Liserre, M.; Timbus, A.V. Overview of control and grid synchronization for distributed power generation systems. IEEE Trans. Power Electron.
**2006**, 53, 1398–1409. [Google Scholar] - Savaghebi, M.; Guerrero, J.M.; Jalilian, A.; Vasquez, J.C. Mitigation of voltage and current harmonics in grid-connected microgrids. In Proceedings of the IEEE International Symposium on Industrial Electronics, Hangzhou, China, 28–31 May 2012; pp. 1610–1615.
- Castilla, M.; Miret, J.; Matas, J.; de Vicuña, L.G.; Guerrero, J.M. Linear current control scheme with series resonant harmonic compensator for single-phase grid-connected photovoltaic inverters. IEEE Trans. Ind. Electron.
**2008**, 55, 2724–2733. [Google Scholar] - Twining, E.; Holmes, D.G. Grid current regulation of a three-phase voltage source inverter with an LCL input filter. IEEE Trans. Power Electron.
**2003**, 18, 888–895. [Google Scholar] - Guerrero, J.M.; Matas, J.; de Vicuña, L.G.; Castilla, M.; Miret, J. Wireless-control strategy for parallel operation of distributed-generation inverters. IEEE Trans. Ind. Electron.
**2006**, 53, 1461–1470. [Google Scholar] - Guerrero, J.M.; Hang, L.; Uceda, J. Control of distributed uninterruptible power supply systems. IEEE Trans. Ind. Electron.
**2008**, 55, 2845–2859. [Google Scholar] - Guerrero, J.M.; Vasquez, J.C.; Matas, J.; Castilla, M.; de Vicuña, L.G. Control strategy for flexible microgrid based on parallel line-interactive ups systems. IEEE Trans. Ind. Electron.
**2009**, 56, 726–736. [Google Scholar] - Kim, J.; Guerrero, J.M.; Rodriguez, P.; Teodorescu, R.; Nam, K. Mode adaptive droop control with virtual output impedances for an inverter-based flexible AC micro-grid. IEEE Trans. Power Electr.
**2011**, 26, 689–701. [Google Scholar] - Vasquez, J.C.; Guerrero, J.M.; Savaghebi, M.; Eloy-Garcia, J.; Teodorescu, R. Modeling, analysis, and design of stationary-reference-frame droop-controlled parallel three-phase voltage source inverters. IEEE Trans. Power Electr.
**2013**, 60, 1271–1280. [Google Scholar] - Abdel-Rahim, N.M.; Quaicoe, J.E. Analysis and design of multiple feedback loop control strategy for single-phase voltage-source UPS inverter. IEEE Trans. Power Electron.
**1996**, 11, 532–541. [Google Scholar] - Kukrer, O.; Komurcugil, H.; Doganalp, A. A three-level hysteresis function approach to the sliding mode control of single-phase UPS inverters. IEEE Trans. Ind. Electron.
**2009**, 56, 3477–3486. [Google Scholar] - Tzou, Y.; Jung, S.; Yeh, H. Adaptive repetitive control of PWM inverters for very low THD AC-voltage regulation with unknown loads. IEEE Trans. Power Electron.
**1999**, 14, 973–981. [Google Scholar] - Moharana, A.; Dash, P.K. Input-output linearization and robust sliding-mode controller for the vsc-hvdc transmission link. IEEE Trans. Power Deliv.
**2010**, 25, 1952–1961. [Google Scholar] - Datta, R.; Ranganathan, V.T. Variable-speed wind power generation using doubly fed wound rotor induction machine—A comparison with alternative schemes. IEEE Trans. Energy Convers.
**2002**, 17, 414–421. [Google Scholar] - Utkin, V.; Guldner, I.; Shi, J.X. Sliding Mode Control in Electro-Mechanical System; Taylor and Francis: London, UK, 1999. [Google Scholar]
- Utkin, V. Variable Structure system with sliding modes. IEEE Trans. Autom. Control
**1979**, 22, 212–222. [Google Scholar] - Zhai, S. Research on the Theory and Application of Sliding Mode Control for Variable Structure System; Central China Normal University Press: Wuhan, China, 2008; pp. 61–68. [Google Scholar]
- Jung, S.-L.; Tzou, Y.-Y. Sliding mode control of a closed-loop regulated PWM inverter under large load variation. In Proceedings of the IEEE Power Electronics Specialists Conference, Seattle, WA, USA, 20–24 June 1993; pp. 616–622.
- Kordkheili, A.R.; Mehrasa, M. Sliding mode control for three-phrase AC/DC voltage-source boost converter. In Proceedings of the International Symposium on Power Electronics Electrical Drives Automation and Motion, Pisa, Italy, 14–16 June 2010; pp. 1213–1217.
- Wai, R.-J.; Lin, C.-Y.; Huang, Y.-C. Design of high-performance stand-alone and grid-connected inverter for distributed generation applications. IEEE Trans. Ind. Electron.
**2013**, 60, 1542–1555. [Google Scholar] - Fernando, S.J. Sliding-mode control of boost-type unity-power-factor PWM rectifiers. IEEE Trans. Ind. Electron.
**1999**, 46, 594–603. [Google Scholar] - Santi, E.; Monti, A.; Li, D.; Proddutur, K.; Dougal, R.A. Synergetic control for DC-DC boost converter: Implementation options. IEEE Trans. Ind. Appl.
**2003**, 39, 1803–1813. [Google Scholar] - Wai, R.J.; Lin, C.Y. Active low-frequency ripple control for clean energy power conditioning mechanism. IEEE Trans. Ind. Electron.
**2010**, 57, 3780–3792. [Google Scholar]

© 2015 by the authors; licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution license (http://creativecommons.org/licenses/by/4.0/).