1 Introduction

For economic, technical and environmental reasons, the microgrid, powered by microsource, such as fuel cells[1], photovoltaic cells, and microturbines, is becoming widely used[23]. The microgrid concept refers to a system which coordinates local level energy supply and demand. It provides a platform for the integration of various distributed energy resources through a communication system enabling control actions. The microgrid can be connected to an upper level utility power grid, but it is also capable of operating in a disconnected island mode.

The consortium for electric reliability technology solutions (CERTS) microgrid concept is driven by the following principles[4]:

  1. 1)

    A systems perspective is necessary for customers, utilities, and society to capture the full benefits of integrating distributed energy resources into an energy system;

  2. 2)

    The business case for accelerating adoption of these advanced concepts will be driven, primarily by lowing the cost and enhancing the value of microgrids.

In the actual operation of microgrids, the key issue is control of the DC-AC interfaced microsource[5,6]. The DC-AC interface is used to connect the microsource to the utility grid. It is important[7] as:

  1. 1)

    It improves power quality by providing extremely fast switching times for sensitive loads;

  2. 2)

    It provides reactive power control and voltage regulation at the microgrids system connection point;

  3. 3)

    It reduces or eliminates fault current effect on micro-grids system, thereby, it allows negligible impacts on protection coordination;

  4. 4)

    It provides flexibility in operations with various other microgrids sources, and reduces overall interconnection costs through standardization and modularity.

The operation and control of a DC-AC interfaced microsource present great challenge for the microgrids. Particularly smooth switching between the isolated mode and grid-connected mode has to be carefully designed in the case of voltage and frequency fluctuations. Also, the control of electrical generator and DC-AC interface will play an important role in the overall control system in microgrid. Different from the conventional large power system, there are not grid voltage and frequency to reference. In this case, the control and operation of DC-AC interface become a great concern in such system design.

There are many control schemes for the power electronic interfaced microsource[812]. Brabandere et al.[8] discussed the voltage and frequency control operations are particularly discussed. They also implemented control concepts of microgrids. Besides, Brabandere et al.[9] described a voltage and frequency droop control method for parallel operation of inverters operating in an island grid or connected to an infinite bus. A detailed analysis shows that this approach has a superior behavior compared to the existing methods. Also, a detail of H repetitive control of DC-AC converters in microgrids is given in [10]. The repetitive control is used to reject harmonic disturbances from nonlinear loads or the public grid, and H method is to ensure that the controller performs effectively with a range of local load impedances. Serban et al.[11] proposed a control strategy for a distributed power generation microgrid application. Feng and Chen[12] presented the control strategy of power electronics interfaced distribution generation units.

This paper proposes an H robust[1315] control scheme for DC-AC interfaced microsource. For the purpose of designing this control scheme, the system powers are firstly obtained via required voltage and frequency. Based on three-phase grid-connected power system model, which is developed for the overall power system including the DC-AC interface, the control scheme is designed as a double loop current-regulated voltage control. In this research, one of the critical challenges was to make the system switch smoothly between the isolated mode and grid-connected mode. The overall system, consisting of a microsource with DC-AC interface, is simulated in the Matlab/Simulink. The performance of the double loop control scheme was thoroughly tested and analyzed by the simulation study, and is systematically presented in the paper.

2 System modeling

2.1 A three-phase grid-connected DC-AC interfaced system

Fig. 1 shows the system to be controlled. This system consists of microsource, DC-AC inverter (IGBT bridge), LCL filters, the local consumers, controllable switch and the power grid. The DC-AC inverter is used to transform the direct current into alternating current. The LCL filter connected at the inverter terminals are to filter out the harmonics at the switching frequency 4 kHz. The controllable switch can make the microgrid connect or disconnect to the power grid. The microgrid connects to the power grid through the transformer.

Fig. 1
figure 1

Three-phase grid-connected power system diagram

2.2 The state-space model of the power system

The state-space model of the island microgrid is

$$\begin{array}{*{20}{c}} {\frac{{d{i_1}}}{{dt}} = - \frac{1}{{{L_1}}}{u_c} + \frac{1}{{{L_1}}}{u_{inv}}} \\ {\frac{{d{i_2}}}{{dt}} = \frac{R}{{{L_2}}}{i_2} + \frac{1}{{{L_2}}}{u_c}} \\ {\frac{{d{u_c}}}{{dt}} = - \frac{1}{C}{i_2} + \frac{1}{C}{i_1}} \end{array}$$
(1)

where u inv is output voltage of the inverter, i 1 is output current of the inverter, u c is voltage of the filter capacitor, i 2 is current of the load, L 1 , L 2 , C are capacitance and inductance of the filter. The output equation is

$$z = R{i_2} - {u_{{\text{ref}}}}$$
(2)

where u ref is reference voltage. Equations (1) and (2) represent the system model and output in state space variables, which can be shown in the following matrix form

$$\left\{ {\begin{array}{*{20}{c}} {\dot x(t) = Ax(t) + Bu(t)} \\ {z(t) = Cx(t)} \end{array} } \right.$$
(3)

where

$$\begin{array}{*{20}{l}} {A = \left[ {\begin{array}{*{20}{c}} 0&0&{ - \frac{1}{{{L_1}}}} \\ 0&{ - \frac{R}{{{L_2}}}}&{\frac{1}{{{L_2}}}} \\ {\frac{1}{C}}&{ - \frac{1}{C}}&0 \end{array}} \right],} \\ {B = \left[ {\begin{array}{*{20}{c}} {\frac{1}{{{L_1}}}} \\ 0 \\ 0 \end{array}} \right],\;C = [0{\kern 1pt} \;\;R\,\;\;0],} \\ {{x^T}(t) = [{i_1}\;\;{i_2}\;\;{u_c}],} \\ {u(t) = [{u_{inv}}].} \end{array}$$

In an actual power system, the nonlinear load, phase asymmetry and other factors must be taken into account. Here, we introduce the parametric uncertainty. We consider the major parameter R as ∆R, (3) can be generalized as

$$\left\{ {\begin{array}{*{20}{c}} {\dot x(t) = (A + \Delta A(t))x(t) + Bu(t)} \\ {z(t) = Cx(t) + D\omega (t).} \end{array} } \right.$$
(4)

The uncertainty matrix is

$$\Delta A(t) = \left[ {\begin{array}{*{20}{c}} 0&0&0 \\ 0&{ - \eta (t)}&0 \\ 0&0&0 \end{array}} \right]$$

where η(t) = ∆RL 2. For the purpose of illustration, the parametric perturbation is considered as ∆R = 0.15R.

3 Controller design

From the state-space model mentioned above, it is obvious that the essential task is to control the output voltage at required magnitude and frequency.

Fig. 2 shows the complete control system of the microsource. The inputs of the control system are either measurements (e.g., the voltages and currents) or set points (e.g., voltage, power and the nominal grid frequency). The outputs are the gate pulses that describe when and for how long the power electronic devices are going to conduct. The inverter voltage and current along with the load voltage are measured. The voltage magnitude at the load bus and the active power injected are then calculated.

Fig. 2
figure 2

Final version of microsource control

As shown in Fig. 2, V abc is the root mean square (RMS) line-to-neutral voltage, i abc is the RMS line current, V ab , V bc , V ac are line-to-line voltage, i a , i b , i c are line current, P and Q are the calculated active power and reactive power. The controller of the inverter is a double-loop controller. In this control strategy, the inner loop is a voltage and current regulation loop, and the outer loop is a power regulation loop. First, V ab , V bc , V ac and i a , i b , i c are measured, and through the power calculation module we can obtain the active power P and reactive power Q. Then, we analyze the fv characteristic, and gain the voltage phase angle ω and magnitude v. Finally, the reference voltage u ref is calculated. Here, we use the H controller to regulate the inner voltage and current loops, and use the droop characteristic controller for the outer loop. This paper mainly describes the design of the H controller, which is designed in the subsequent section.

3.1 Power calculation

The power calculation module is used to calculate the values of active and reactive power. In order to complete the calculation, we will use the instantaneous values of line to line voltages and line currents. These quantities can be brought in from the measuring equipment. The voltages are always measured across the phases in case that there is no ground to refer to. We should measure only two of the line to line voltages and calculate the third one from the fact that the sum of the three delta voltages must equal zero, in balanced as well as under unbalanced conditions. With respect to the currents, we should only measure two currents and the third one is calculated assuming their overall sum is zero, but which is correct only under balanced conditions.

The calculation of P and Q are

$$\begin{array}{*{20}{c}} {P = {V_{bc}}{i_c} - {V_{ab}}{i_a}} \\ {Q = - \frac{{{V_{bc}}(2{i_a} + {i_b}) + {V_{ca}}(2{i_b} + {i_a})}}{{\sqrt 3 }}.} \end{array} $$
(5)

One advantage of adopting (5) is that the variables are readily available, such as voltages denote the line to line voltage so that there is no need to convert them to line to neutral. Another advantage is the simplicity of the equations that do not require the extra step of being converted to rotating frame components, since the powers are evaluated from the immediately available time domain quantities obtained from the sensing equipment.

3.2 f &v characteristic

This section will give the detail of fv droop characteristic and the selection of the voltage-frequency drop coefficients m and n. Chandorker et al.[16] proposed a method to regulate the power-frequency (P, ω) characteristic and reactive power-voltage (Qv) characteristic. This method can make each microsource supply active and reactive power in proportion with its power rating. The equations are

$$\begin{array}{*{20}{c}} {\omega = {\omega _0} - m \cdot P} \\ {v = {v_0} - n \cdot Q} \end{array} $$
(6)

where the droop coefficients m and n can expressed as

$$\begin{array}{*{20}{c}} {m = \frac{{{\omega _0} - {\omega _{\min }}}}{{{p_0} - {p_{\max }}}}} \\ {n = \frac{{{v_0} - {v_{\min }}}}{{{Q_0} - {Q_{\max }}}}} \end{array} $$
(7)

where ω 0 is the operation frequency when there is no load in the system (p 0 = 0), p max , ω min are the maximum active power output of microsource system and the minimum operation frequency. v 0 is the initial value of voltage magnitude, it is set as 318.2V (225 V phase voltage). Q 0 is the initial reactive power, it is set as zero. Q max, v min are the maximum reactive power output of microsource system and the minimum voltage magnitude.

Then, the three-phase reference voltage can be expressed as

$$\begin{array}{*{20}{c}} {{V_{{\text{ref}},a}} = v \cdot \cos (\omega \cdot t)} \\ {{V_{{\text{ref}},b}} = v \cdot \cos (\omega \cdot t - 120^\circ )} \\ {{V_{{\text{ref}},c}} = v \cdot \cos (\omega \cdot t + 120^\circ ).} \end{array} $$
(8)

3.3 H robust controller design

This section will design the H robust controller. The state-space model of the system is (4), which is showed in Section 2.

Assumption 1. The parameter uncertainty ∆A satisfies the matching condition:

$$\Delta A = E\Sigma (t)F$$

where E and F are the constant real matrices with appropriate dimensions, and Σ(t) is an unknown function matrix and satisfies ΣT(t)Σ(t) ≤ I, in which I is a unit matrix. According to Assumption 1, the parameter uncertainties can be expressed as

$$\begin{array}{*{20}{l}} {E = {{[\begin{array}{*{20}{c}} 0&0&1 \end{array}]}^T}} \\ {\Sigma (t) = \left[ {\begin{array}{*{20}{c}} 0&{\frac{{\eta (t)}}{{|\eta (t)|}}}&0 \end{array}} \right]} \\ {F = \left[ {\begin{array}{*{20}{l}} 0&0&0 \\ 0&{ - |\eta (t)|}&0 \\ 0&0&0 \end{array}} \right].} \end{array}$$

For system (6), we consider the state feedback

$$u = Kx(t).$$
(9)

The closed-loop system is obtained as

$$\left\{ {\begin{array}{*{20}{c}} {\dot x(t) = [A + BK + E\Sigma (t)F]x(t)} \\ {z(t) = Cx(t) + D\omega (t).} \end{array} } \right.$$
(10)

Define Lyapunov function of this system as

$$V(t) = {x^T}(t)Px(t)$$

where P is a symmetric positive definite weighting matrix.

Without considering the initial condition, the performance of H is related to the transfer function T z ω(s) in the following form

$$||{T_{z\omega }}(s)|{|_\infty } < \gamma $$
(11)

where γ is a constant representing prescribed attenuation level. T zω(s) is the transfer function from ω(t) to z(t).

Theorem 1. The control system of (4) has a state feedback controller to make the closed-loop system (10) asymptotically stable and possess the control performance in (11), if and only if P = P T > 0 satisfies the following matrix inequality

$$\left[ {\begin{array}{*{20}{c}} {{{\hat A}^T}P + P\hat A}&0&{{C^T}} \\ 0&{ - \gamma }&{{D^T}} \\ C&D&{ - \gamma } \end{array}} \right] < 0$$
(12)

where P is a symmetric positive definite weighting matrix, Â = A + BK +EΣ(t)F.

Proof. Let us left multiply and right multiply diagonal matrix diag {γ1/2 I,γ 1/2 I, γ −1/2 I} into the matrix inequality (12), and denote X = γP > 0, then the equivalent inequality is changed as follows

$$\left[ {\begin{array}{*{20}{c}} {{{\hat A}^T}X + X\hat A}&0&{{C^T}} \\ 0&{ - {\gamma ^2}}&{{D^T}} \\ C&D&{ - I} \end{array}} \right] < 0.$$
(13)

Then, we obtain  T X + < 0, so system (4) is asymptotically stable, and V (t) = x T(t)Xx(t) is a Lyapunov function for the system (4). We select an appropriate constant 0 < λ < 1 satisfying the following matrix inequality

$$\left[ {\begin{array}{*{20}{c}} {{{\hat A}^T}X + X\hat A}&0&{{C^T}} \\ 0&{ - {\gamma ^2}(1 - \lambda )}&{{D^T}} \\ C&D&{ - I} \end{array}} \right] < 0.$$
(14)

By the Schur complement theorem, the above inequality (14) is equivalent to (15)

$$\left[ {\begin{array}{*{20}{c}} {{C^T}} \\ {{D^T}} \end{array}} \right]\;\;[C\;\;D]\; + \;\left[ {\begin{array}{*{20}{c}} {{{\hat A}^T}X + X\hat A}&0 \\ 0&{ - {\gamma ^2}(1 - \lambda )} \end{array}} \right] < 0.$$
(15)

For any T > 0, consider

$${J_T} = \int_0^T {||z|{|^2}} dt - (1 - \lambda ){\gamma ^2}\int_0^T {||\omega |{|^2}} dt.$$

Under the zero initial state conditions,

$$\begin{array}{*{20}{l}} {{J_T} = \int_0^T {[{z^T}(t)} z(t) - (1 - \lambda ){\gamma ^2}{\omega ^T}(t)\omega (t)]dt = } \\ {\int_0^T {[{z^T}} (t)z(t) - (1 - \lambda ){\gamma ^2}{\omega ^T}(t) + \dot V(x(t))]dt - } \\ {V(x(T)) = } \\ {\int_0^T {[{z^T}} (t)z(t) - (1 - \lambda ){\gamma ^2}{\omega ^{\rm T}}(t)\omega (t) + } \\ {2{x^T}(t)X\hat Ax(t)]dt - V(x(T)) = } \\ {\int_0^T {{{\left[ {\begin{array}{*{20}{c}} {x(t)} \\ {\omega (t)} \end{array}} \right]}^T}} \left( {\left[ {\begin{array}{*{20}{c}} {{C^T}} \\ {{D^T}} \end{array}} \right]\;\,\left[ {\;\begin{array}{*{20}{c}} C&D \end{array}\;} \right]\; + } \right.} \\ {\left. {\left[ {\begin{array}{*{20}{c}} {{{\hat A}^T}X + X\hat A}&0 \\ 0&{ - {\gamma ^2}(1 - \lambda )} \end{array}} \right]} \right)\;\,\left[ {\begin{array}{*{20}{c}} {x(t)} \\ {\omega (t)} \end{array}} \right]dt - V(x(T)).} \end{array}$$

From above calculation result and (15), we can obtain

$$\int_0^T {[{z^T}} (t)z(t) - (1 - \lambda ){\gamma ^2}{\omega ^T}(t)\omega (t) + \dot V(x(t))]dt < 0.$$

Take the advantage of the zero initial state conditions again, the calculation result of the above inequality is as

$${x^T}(T)Xx(T) + \int_0^T {||z} (t)|{|^2}dt < (1 - \lambda ){\gamma ^2}\int_0^T {||\omega (t)|{|^2}} dt.$$

By the asymptotic stability of the system and ωL 2[0, 00), let T → ∞ in above inequality, we can obtain

$$\parallel z(t)\parallel _2^2 < (1 - \lambda ){\gamma ^2}\parallel \omega (t)\parallel _2^2 < {\gamma ^2}\parallel \omega (t)\parallel _2^2.$$

The above inequality is equivalent to (11).

In (12), Σ(t) is an unknown matrix function, we should deal with the parameter uncertainty problem as follows. Lemma 1. For matrices (or vectors) Y, D and E with appropriate dimensions, we have

$$Y + DFE + {E^T}{F^T}{D^T} < 0$$

where Y is a symmetric matrix. For all F satisfying F T F < I, if and only if a set of scalar quantity ε > 0 exists, we gain

$$Y + \varepsilon D{D^T} + {\varepsilon ^{ - 1}}{E^T}E < 0.$$

Theorem 2. The system (10) is asymptotically stable by the control action as (9) and it possesses the H controller performance in (11) for a prescribed γ, if and only if a set of scalar quantity β > 0 and P = P T > 0 satisfies the following matrix inequality.

$$\left[ {\begin{array}{*{20}{c}} {\Phi + \beta PE{E^T}P}&0&{{C^T}}&{{F^T}} \\ 0&{ - \gamma }&{{D^T}}&0 \\ C&D&{ - \gamma }&0 \\ F&0&0&{ - \beta I} \end{array}} \right]\;\, < 0$$
(16)

where Φ = P(A+ BK)+(A +BK T P.

Proof. Denote

$$Y = \left[ {\begin{array}{*{20}{c}} \Phi &0&{{C^T}} \\ 0&{ - \gamma }&{{D^T}} \\ C&D&{ - \gamma } \end{array}} \right].$$
(17)

By the equation

$${\hat A^T}P + P\hat A = \Phi + PE\Sigma (t)F + {F^T}{\Sigma ^T}(t){E^T}P$$

the matrix inequality (12) is equivalent to

$$Y + \left[ {\begin{array}{*{20}{c}} {PE} \\ 0 \\ 0 \end{array}} \right]\Sigma (t)[\begin{array}{*{20}{c}} F&0&0 \end{array}] + {[\begin{array}{*{20}{c}} F&0&0 \end{array}]^T}{\Sigma ^T}(t){\left[ {\begin{array}{*{20}{c}} {PE} \\ 0 \\ 0 \end{array}} \right]^T} < 0.$$

According to Lemma 1, for all Σ(t) satisfying ΣT(t)Σ(t) ≤ I, if and only if a set of scalar quantity β > 0 exist, the following inequality is satisfied

$$Y + \beta \left[ {\begin{array}{*{20}{c}} {PE} \\ 0 \\ 0 \end{array}} \right][\begin{array}{*{20}{c}} 0&0&{{E^T}P} \end{array}] + {\beta ^{ - 1}}\left[ {\begin{array}{*{20}{c}} {{F^T}} \\ 0 \\ 0 \end{array}} \right]\;\,[\begin{array}{*{20}{c}} F&0&0 \end{array}] < 0.$$

By the Schur complement, the above inequality is equivalent to (16).

Remark 1. In order to obtain better robust performance, the H control performance can be treated as the following minimization problem so that the performance of H in (11) is reduced as small as possible.

$$\begin{array}{*{20}{l}} {\min \gamma } \\ {s.t.\begin{array}{*{20}{l}} {1)\;{\text{Inequality}}\;(16);} \\ {2)\;P = {P^T} > 0.} \end{array}} \end{array}$$
(18)

The above minimization problem (18) can be transformed into LMI problem. Then, we can use the convex optimization techniques of LMI in Matlab toolboxes to design the controller.

4 Simulation results

The simulation studies have been performed. The simulation parameters are listed in Table 1.

Table 1 Simulation parameters of the overall system

In order to investigate the performance of the proposed controller in response to OR against sudden changes within an islanded network, simulation examples are given in this section. Initially, microgrid was connected to the power grid and worked in the grid-connect mode. At t = 3, the microgrid broke away from the power grid and worked in the isolated mode.

The simulation results are shown in Fig.3. Figs. 3(a) and (b) reflect the power changes during the period when the microgrid is broken away from the distribution network. Initially, the microgrid absorbed partial active power from the grid, so when it was broken away from the grid, the active power output by the microsource was increased. According to Fig. 3 (c), we know the load voltage is still in stable condition. In Fig. 3 (d), the frequency decreased in the case of the active power increase. According to the results, we draw the conclusion that the control scheme can make the system switch smoothly from the isolated mode to grid-connected mode.

Fig. 3
figure 3

Response curves when microsouce is disconnected

At t = 4.5, the microgrid reconnected to the power grid and worked in the grid-connected mode again. The simulation results are shown in Fig. 4.

Fig.4
figure 4

Response curves when microsouce is reconnected

Figs. 4(a) and (b) reflect the active power was decreased and the reactive power was increased during the period when the microgrid was reconnected with the distribution network. According to Fig. 4 (c), we know the load voltage is still in stable condition. In Fig. 4 (d), the frequency increased in the case of the active power decreased. According to the results, we draw the conclusion that the control scheme can make the system switch smoothly from the grid-connected mode to isolated mode.

5 Conclusions

This paper has presented a detailed study of a microgrid system connected with DC-AC interface. A double loop control system for the interface is developed. The H control scheme is designed including the inner voltage/current loop and the outer droop characteristic based power loop. The control performance of the proposed DC-AC interfaced microsource was tested through simulation examples in the Matlab/Simulink software environment. The results show that it is possible to use DC-AC interfaced microsource system to supply high-quality power.