Open Access
This article is

- freely available
- re-usable

*Energies*
**2015**,
*8*(8),
8798-8813;
https://doi.org/10.3390/en8088798

Article

Application of Model Predictive Control to BESS for Microgrid Control

Department of Electrical Engineering, Incheon National University, 12-1 Songdo-dong, Yeonsu-gu, Incheon 406-840, Korea

^{*}

Author to whom correspondence should be addressed.

Academic Editor:
William Holderbaum

Received: 27 June 2015 / Accepted: 5 August 2015 / Published: 19 August 2015

## Abstract

**:**

Battery energy storage systems (BESSs) have been widely used for microgrid control. Generally, BESS control systems are based on proportional-integral (PI) control techniques with the outer and inner control loops based on PI regulators. Recently, model predictive control (MPC) has attracted attention for application to future energy processing and control systems because it can easily deal with multivariable cases, system constraints, and nonlinearities. This study considers the application of MPC-based BESSs to microgrid control. Two types of MPC are presented in this study: MPC based on predictive power control (PPC) and MPC based on PI control in the outer and predictive current control (PCC) in the inner control loops. In particular, the effective application of MPC for microgrids with multiple BESSs should be considered because of the differences in their control performance. In this study, microgrids with two BESSs based on two MPC techniques are considered as an example. The control performance of the MPC used for the control microgrid is compared to that of the PI control. The proposed control strategy is investigated through simulations using MATLAB/Simulink software. The simulation results show that the response time, power and voltage ripples, and frequency spectrum could be improved significantly by using MPC.

Keywords:

microgrid; model predictive control; predictive power control; battery energy storage system (BESS); frequency control## 1. Introduction

Microgrids are becoming popular in distribution systems because they can improve the power quality and reliability of power supplies and reduce the environmental impact. Microgrid operation can be classified into two modes: grid-connected and islanded modes. In general, microgrids are comprised of distributed energy resources (DERs) including renewable energy sources, distributed energy storage systems (ESSs), and local loads [1,2,3]. However, the use of renewable energy sources such as wind and solar power in microgrids causes power flow variations owing to uncertainties in their power outputs. These variations should be reduced to meet power-quality requirements [4,5]. This study focuses on handling the problems that are introduced by wind power.

To compensate for fluctuations in wind power, various ESSs have been implemented in microgrids. Short-term ESSs such as superconducting magnetic energy storage (SMES) systems [6], electrical double-layer capacitors (EDLCs) [7], and flywheel energy storage systems (FESSs) [8,9,10] as well as long-term ESSs such as battery energy storage systems (BESSs) [11,12] are applied to microgrid control. ESSs can also be used to control the power flow at point of common coupling in the grid-connected mode as well as to regulate the frequency and voltage of a microgrid in the islanded mode. Among these ESSs, BESSs have been implemented widely owing to their versatility, high energy density, and efficiency. Moreover, their cost has decreased whereas their performance and lifetime has increased [13].

In practice, BESSs with high performance such as smooth and fast dynamic response during charging and discharging are required for microgrid control. This performance depends on the control performance of the power electronic converter. Proportional-integral (PI) control is a practical and popular control technique for BESS control systems. However, PI control might show unsatisfactory results for nonlinear and discontinuous systems [10]. Meanwhile, model predictive control (MPC) is considered an attractive alternative to promote the performance of future energy processing and control systems [14]. Predictive strategies are based on the inherent discrete nature of a power converter. Owing to the finite number of switching states of a power converter, all possible states are considered for predicting the system behavior. Then, each prediction is used to evaluate a cost function. Consequently, the switching state with the minimum cost function is selected and applied to the converter [15]. One of the advantages of an MPC is the easy inclusion of constraints and nonlinearities. Therefore, MPC has been widely applied to drive applications [15,16,17,18] and power converters such as active front-end rectifiers [19], matrix converters [20], and multilevel converters [21]. Recently, it has been applied to a bidirectional AC-DC converter for use in BESSs [22,23,24].

Only a few literatures were found on the application of MPC to microgrid control. Most existing studies focused on MPC for a distributed generator in a microgrid with voltage and/or power control [25,26,27]. A modified MPC method for voltage control of a BESS in the islanded mode operation of a microgrid was presented in [27]. However, this study did not deal with frequency control in the islanded mode operation of a microgrid. MPC based on PI control in the outer control loop and predictive current control (PCC) in the inner control loop for BESS was presented in [28]. Coordinated predictive control of a wind/battery microgrid system was proposed to maintain the system voltage and frequency by adjusting the output power of BESS. PCC was used to control the current in the inner control loop, whereas PI regulators were used to regulate the voltage and power in the outer control loop. Owing to the use of PI regulators in the outer control loop, the dynamic response time under such MPC techniques was similar to that under PI control techniques with outer and inner control loops using PI regulators.

Another MPC technique is based on predictive power control (PPC), in which the power is predicted and controlled directly. This MPC technique could be applied to microgrid control because it affords advantages such as fast dynamic response for power control; however, studies have not yet explored the application of the PPC-based MPC technique to microgrid control. Furthermore, this MPC technique can only be used for power control. To overcome this problem, PI regulators can be used in an additional control loop to control the frequency and voltage. Therefore, this MPC technique uses PI regulators in the outer control loop and PPC in the inner control loop. It is similar to previous MPC techniques in which PI control is used in the outer control loop and PCC is used in the inner control loop. However, an MPC technique based on PI and PPC requires more computation time than does one based on PI and PCC, owing to the predicting powers in the inner PPC control loop. Therefore, in a microgrid with a single BESS, MPC based on PI and PCC is a suitable alternative for microgrid control. Another approach to overcome this limitation of the MPC control technique is to use a droop control scheme. Thus, a PPC-based MPC technique can be applied to microgrids consisting of multiple BESSs with different functionalities. This study deals with the effective application of an MPC technique to a microgrid with two BESSs as an example of multiple BESSs in a microgrid.

This study discusses the effective application of two MPC techniques to BESSs for microgrid control based on the characteristics of the MPC techniques as well as the functionalities of BESSs. One BESS is based on PI control in the outer and PCC in the inner control loops (PI (outer) + PCC (inner)); it is used for smoothing wind power fluctuations both in the grid-connected and the islanded modes. The other BESS is based on PPC (one loop); it controls the tie-line powers at the point of common coupling in the grid-connected mode and the frequency in the islanded mode. Additionally, to reduce the power losses of converters, the reduction of the switching frequency of the converter is considered an additional control variable in the MPC algorithm. The control performances of the two types of MPC techniques are compared to the PI control technique using PI regulators in the outer and inner control loops (PI (outer) + PI (inner)). The tuning of PI regulator parameters must be taken into account to effectively compare the control performance of MPC techniques to the PI control technique. Several tuning techniques have been used to select the PI regulator parameters. In this study, the tuning technique provided by MATLAB/Simulink software is used. The efficacy of the proposed control system is verified via simulations in the MATLAB/Simulink environment.

The remainder of this paper is organized as follows. Section 2 introduces the discrete-time model of the converter for prediction and MPC algorithms. Two types of MPC techniques are introduced in this section. Section 3 describes the microgrid system used to test the performance of the proposed control strategies. Section 4 presents a comparison of the MPC and PI control techniques and the considerations for the effective application of MPC-based BESSs to microgrid control. Section 5 presents the simulation results for microgrid control in the grid-connected and islanded modes. The performances of the MPC techniques are compared to those of the PI control technique. Finally, Section 6 summarizes the main conclusions of this study.

## 2. MPC for BESS

#### 2.1. Discrete-Time Model of Converter

The predicted variables of BESS are determined based on the discrete-time model of the converter. In this study, the BESS uses a two-level voltage source converter (VSC) converter, shown in Figure 1, connected to the three-phase AC power supply voltage v

_{g}through filter inductance L and resistance R. The equations for each phase are given by Equations (1)–(3):
$${v}_{aN}=L\frac{d{i}_{a}}{dt}+R{i}_{a}+{v}_{ga}$$

$${v}_{bN}=L\frac{d{i}_{b}}{dt}+R{i}_{b}+{v}_{gb}$$

$${v}_{cN}=L\frac{d{i}_{c}}{dt}+R{i}_{c}+{v}_{gc}$$

These equations can be represented by the space-vector equations given in Equation (4).
where $\mathit{a}={e}^{j2\pi /3}$.

$$\frac{2}{3}\left({v}_{aN}+\mathit{a}{v}_{bN}+{\mathit{a}}^{2}{v}_{cN}\right)=L\frac{d}{dt}\left(\frac{2}{3}\left({i}_{a}+\mathit{a}{i}_{b}+{\mathit{a}}^{2}{i}_{c}\right)\right)+R\left(\frac{2}{3}\left({i}_{a}+\mathit{a}{i}_{b}+{\mathit{a}}^{2}{i}_{c}\right)\right)+\frac{2}{3}\left({v}_{ga}+\mathit{a}{v}_{gb}+{\mathit{a}}^{2}{v}_{gc}\right)$$

Equation (4) can be simplified by considering the following definitions.

$$v=\frac{2}{3}\left({v}_{aN}+\mathit{a}{v}_{bN}+{\mathit{a}}^{2}{v}_{cN}\right)$$

$$i=\frac{2}{3}\left({i}_{a}+\mathit{a}{i}_{b}+{\mathit{a}}^{2}{i}_{c}\right)$$

$${v}_{g}=\frac{2}{3}\left({v}_{ga}+\mathit{a}{v}_{gb}+{\mathit{a}}^{2}{v}_{gc}\right)$$

The voltage v in Equation (5) is determined by the switching states of the converter and the DC link voltage (${V}_{DC}$), as given in Equation (8).
Where the switching signals S

$$v=\frac{2}{3}{V}_{DC}\left({S}_{a}+\mathit{a}{S}_{b}+{\mathit{a}}^{2}{S}_{c}\right)$$

_{a}, S_{b}, and S_{c}are defined as follows:
$${S}_{a}=\{\begin{array}{c}1\text{}\mathrm{if}\text{}{S}_{1}\text{}\mathrm{on}\text{}\mathrm{and}\text{}{S}_{4}\text{}\mathrm{off}\\ 0\text{}\mathrm{if}\text{}{S}_{1}\text{}\mathrm{off}\text{}\mathrm{and}\text{}{S}_{4}\text{}\mathrm{on}\end{array}$$

$${S}_{b}=\{\begin{array}{c}1\text{}\mathrm{if}\text{}{S}_{2}\text{}\mathrm{on}\text{}\mathrm{and}\text{}{S}_{5}\text{}\mathrm{off}\\ 0\text{}\mathrm{if}\text{}{S}_{2}\text{}\mathrm{off}\text{}\mathrm{and}\text{}{S}_{5}\text{}\mathrm{on}\end{array}$$

$${S}_{c}=\{\begin{array}{c}1\text{}\mathrm{if}\text{}{S}_{3}\text{}\mathrm{on}\text{}\mathrm{and}\text{}{S}_{6}\text{}\mathrm{off}\\ 0\text{}\mathrm{if}\text{}{S}_{3}\text{}\mathrm{off}\text{}\mathrm{and}\text{}{S}_{6}\text{}\mathrm{on}\end{array}$$

The combination of S

_{a}, S_{b}, and S_{c}creates eight switching states and eight voltage vectors, as shown in Table 1.**Table 1.**Switching states and voltage vectors [29].

x | S_{a} | S_{b} | S_{c} | Voltage vectors |
---|---|---|---|---|

1 | 0 | 0 | 0 | v_{0} = 0 |

2 | 1 | 0 | 0 | ${v}_{1}=\frac{2}{3}{V}_{dc}$ |

3 | 1 | 1 | 0 | ${v}_{2}=\frac{1}{3}{V}_{dc}+j\frac{\sqrt{3}}{3}{V}_{dc}$ |

4 | 0 | 1 | 0 | ${v}_{3}=-\frac{1}{3}{V}_{dc}+j\frac{\sqrt{3}}{3}{V}_{dc}$ |

5 | 0 | 1 | 1 | ${v}_{4}=-\frac{2}{3}{V}_{dc}$ |

6 | 0 | 0 | 1 | ${v}_{5}=-\frac{1}{3}{V}_{dc}-j\frac{\sqrt{3}}{3}{V}_{dc}$ |

7 | 0 | 1 | 1 | ${v}_{6}=\frac{1}{3}{V}_{dc}-j\frac{\sqrt{3}}{3}{V}_{dc}$ |

8 | 1 | 1 | 1 | v_{7} = 0 |

Substituting Equations (5)–(7) in Equation (4), we get

$$v=L\frac{di}{dt}+Ri+{v}_{g}$$

From Equation (12), the discrete-time model of the converter is determined by approximating the derivative load current $di/dt$ in terms of a forward Euler approximation, as shown in Equation (13).

$$\frac{di}{dt}\approx \frac{i\left(k+1\right)-i\left(k\right)}{{T}_{s}}$$

By substituting Equation (13) in Equation (12), the future current at the sampling instant k + 1 is represented as
where i(k) and v

$${i}^{p}\left(k+1\right)=\left(1-\frac{R{T}_{s}}{L}\right)i\left(k\right)+\frac{{T}_{s}}{L}\left(v\left(k\right)-{v}_{g}\left(k\right)\right)$$

_{g}(k) are the three-phase current and voltage of the BESS measured at sampling instant k, respectively; v(k) is the voltage vector according to the eight switching states of the converter; and T_{s}is the sampling time.Based on the measured voltage and current of BESS at sampling instant k, the variables at sampling instant k + 1 are predicted as given in Equation (14). For a small sampling time (T
where $\stackrel{-p}{i}(k+1)$ is the complex conjugate of the predicted current vector ${i}^{p}\left(k+1\right)$.

_{s}), the predicted grid voltage at sampling instant k + 1 can be assumed equal to the measured grid voltage at the k^{th}sampling instant (v_{g}(k + 1) = v_{g}(k)) owing to the fundamental grid frequency [29]. As a result, the predicted instantaneous real and reactive powers can be expressed as follows:
$${P}^{p}\left(k+1\right)=1.5Re\left\{{\overline{i}}^{p}\left(k+1\right){v}_{g}^{m}\left(k\right)\right\}$$

$${Q}^{p}\left(k+1\right)=1.5Im\left\{{\overline{i}}^{p}\left(k+1\right){v}_{g}^{m}\left(k\right)\right\}$$

Equations (14)−(16) show that the predictive current and power highly rely on system model, converter, and filter parameters. Any change in the model parameters can provide inaccuracy in the predictive variables. Reference [29] shown that the current or power ripple could be affected by the parameter variations, whereas the dynamic response was almost unchanged. In case of extreme variations in the model parameters, an online parameter estimation algorithm should be included in the MPC strategy [30,31]. However, MPC can effectively handle the small change in inductive filter parameters. The comparison between MPC with and without the online filter estimation was presented in [29,32]. The major errors were observed at low values of the filter parameters. In addition, only a small difference was observed at high values of the filter parameters. In this study, a high value of the filter parameter is chosen to avoid the major errors by filter parameter variations. Thus, the model parameters is assumed unchanged during simulation for the sake of simplicity.

#### 2.2. Principle of MPC

MPC is based on the inherent discrete nature of a power converter, which has a finite number of switching states. All possibilities of variables (current or real/reactive powers) of the converter according to switching states can be predicted. The predicted variables are compared to the reference control signal, and the predicted variable that is closest to the reference control signal is chosen as shown in Figure 2. Then, the switching state related to this predicted variable is applied to control the converter.

Figure 3 shows two types of MPC techniques applied for BESSs: MPC based on PI control in the outer and PCC in the inner control loops (Figure 3a) and MPC based on PPC (Figure 3b). As shown in Figure 3a, PI control in the outer control loop is used to regulate the real/reactive powers as well as voltage of the microgrid. The reference current obtained by the outer control loop is used for the inner PCC control loop based on Equation (14). As shown in Figure 3b, in comparison, PPC based on Equations (15) and (16) can control real/reactive powers directly. To control the frequency of the microgrid, the frequency droop control scheme is suitable for a BESSs control system. However, conventional droop control can cause a steady-state error [33]. Thus, this study proposes an improved droop control scheme in which the steady-state error is removed by a new feedback signal through the PI regulator [9].

The objective of the MPC scheme is to minimize the error between the reference values and the measured values. This can be achieved by introducing a cost function ${g}_{C}$ for PCC and ${g}_{S}$ for PPC, as shown in the following equations.
where ${i}_{\alpha}^{*}\left(k+1\right)$ and ${i}_{\beta}^{*}\left(k+1\right)$ are the real and imaginary parts of the reference current, ${i}_{\alpha}^{p}\left(k+1\right)$ and ${i}_{\beta}^{p}\left(k+1\right)$ are the real and imaginary parts of the predicted current vectors ${i}^{p}\left(k+1\right)$ according to Equation (14), ${P}^{*}\left(k+1\right)$ and ${Q}^{*}\left(k+1\right)$ are the real and reactive reference powers, ${P}^{p}\left(k+1\right)$ and ${Q}^{p}\left(k+1\right)$ are the predicted real and reactive powers according to Equations (15) and (16), ${\lambda}_{C}\cdot n$ and ${\lambda}_{S}\cdot n$ represent the reduction of switching frequency of the converter where $n$ is the number of switches that change when the switching states $S=({S}_{a},{S}_{b},{S}_{c})$ are applied, and ${\lambda}_{C}$ and ${\lambda}_{S}$ are the weighting factor for PCC and PPC, respectively.

$${g}_{C}={\left|{i}_{\alpha}^{*}\left(k+1\right)-{i}_{\alpha}^{p}\left(k+1\right)\right|}^{2}+{\left|{i}_{\beta}^{*}\left(k+1\right)-{i}_{\beta}^{p}\left(k+1\right)\right|}^{2}+{\lambda}_{C}\cdot n$$

$${g}_{S}={\left|{P}^{*}\left(k+1\right)-{P}^{p}\left(k+1\right)\right|}^{2}+{\left|{Q}^{*}\left(k+1\right)-{Q}^{p}\left(k+1\right)\right|}^{2}+{\lambda}_{S}\cdot n$$

The cost functions ${g}_{C}$ and ${g}_{S}$ have two terms with different goals. The primary goal is the current control in case of ${g}_{C}$ or power control in case of ${g}_{S}$, which must be achieved to provide a proper system behavior. The secondary goal is the reduction of switching frequency (${\lambda}_{C}\cdot n$ and ${\lambda}_{S}\cdot n$) in both cost functions. The importance of second term corresponds to the weighting factors ${\lambda}_{C}$ and ${\lambda}_{S}$ that can impose a trade-off with the primary control objective. The algorithm to adjust the weighting factors proposed in [29] is used in this study. Total harmonic distortion (THD) is used to estimate the trade-off between the primary and secondary goals.

The switching frequency of the converter depends on the change in the switching state, which can be only one or zero. Therefore, the number of switches that change from $S\left(k-1\right)$ to $S\left(k\right)$ is defined as given in Equation (19):

$$n=\left|{S}_{a}\left(k\right)-{S}_{a}\left(k-1\right)\right|+\left|{S}_{b}\left(k\right)-{S}_{b}\left(k-1\right)\right|+\left|{S}_{c}\left(k\right)-{S}_{c}\left(k-1\right)\right|$$

**Figure 3.**MPC block diagrams: (

**a**) MPC based on PI control in the outer and PCC in the inner control loops; (

**b**) MPC based on PPC.

The control strategy of MPC techniques involves the following four steps:

- (1)
- The three-phase current and voltage of the BESS are measured, and the values of reference signals are obtained from the outer control loop.
- (2)
- The discrete-time model of the converter is used to predict the values of current or real/reactive powers in the next sampling interval (k + 1) for each voltage vector according to Equations (14)–(16).
- (3)
- The cost function ${g}_{C}$ or ${g}_{S}$ based on Equations (17) and (18) is used to compute the errors between the reference and the predicted current or real/reactive powers for each voltage vector.
- (4)
- The minimum value of the cost function gives the minimum error between the reference and the measured signals. The voltage vector with respect to the minimum cost function is selected, and the corresponding switching state signals are generated to apply to the converter.

## 3. Test Microgrid

The test microgrid system (Figure 4) used in this study includes several components: A diesel generator, a consumer load, a wind generator, and two BESSs. Table 2 shows the parameters of the test microgrid system. In this study, the fixed-speed wind energy conversion system (WECS), a type of WECS [34], is used for simplicity. Two BESSs with different control strategies according to the operation mode of the microgrid, as shown in Table 3, are used. In the grid-connected mode, the voltage and frequency of the microgrid is set by the utility grid. Therefore, the main function of the BESS is to control the real and reactive powers. On the other hand, in the islanded mode, the microgrid is disconnected from the utility grid and controls its own frequency and voltage.

Components | Rating |
---|---|

Wind generator | 150 kVA |

BESS_{1} | 450 kWh |

BESS_{2} | 200 kWh |

Load | 500 kW; 100 kVAR |

Diesel generator | 500 kVA |

Mean wind speed | 9 m/s |

System frequency | 60 Hz |

Transformer | 700 kVA; 6.6 kV/380 V |

Operation modes | BESS_{1} | BESS_{2} |
---|---|---|

Grid-connected | Tie-line powers at point of common coupling | Smoothing wind power |

Islanded | Frequency control | Smoothing wind power |

Reactive power at point of common coupling | Voltage control |

## 4. Control Performance of MPC Techniques

#### 4.1. Comparison of Control Performance of MPC and PI Control Techniques

The control performances of two MPC techniques according to the change in real power are compared to that of the PI control technique proposed in [35]. Tuning the PI parameters is an important factor for comparison. Several functions as well as linear analysis tools provided by MATLAB/Simulink are used for tuning. First, the function “getlinio” is used to obtain the linearized input/output of the plant. The linear approximation of the plant is estimated based on the linearized input/output by using the “linearize” function. Then, the linear analysis tool in Simulink is used to estimate the frequency response of a plant based on the linear approximation of the plant. Finally, the PID tuner in Simulink is used to automatically tune the PI parameters based on the frequency response estimation.

Figure 5 shows the simulation results of three types of control techniques. The real power changes from 0 to 50 kW at 1.0 s. The response of the PPC technique is clearly much quicker than that of other techniques. In the case of MPC based on PI in the outer and PCC in the inner control loops and PI control technique using PI regulators in the outer and inner control loops, the dynamic response is similar owing to the action of the PI controller in the outer control loop. Both MPC technique based on PI and PCC and PI technique show good reference tracking under the steady-state condition. However, the power ripple obtained by MPC technique is smaller than that obtained by PI control technique owing to PCC in the inner control loop in MPC technique. Figure 5 shows that MPC techniques can significantly improve the performance of a control system for BESSs in terms of the response time and power ripple.

#### 4.2. Effective Application of MPC Techniques to Microgrid Control

Table 4 shows the characteristics of the MPC and PI control techniques. Among these two MPC techniques, the PPC technique shows the best control performance; however, it can only be used for controlling the power. On the other hand, the MPC technique based on PI in outer and PCC in inner control loops is more flexible owing to the use of a PI regulator in the outer control loop; this technique can be used to control the power, frequency, and voltage. The ripple in case of both MPC techniques is smaller than that in case of the PI control technique.

Characteristics | PI (outer) + PI (inner) | PI (outer) + PCC (inner) | PPC (one loop) |
---|---|---|---|

Ability to control | P/Q, f/v | P/Q, f/v | P/Q |

Response time | Long | Long | Short |

Ripple | Large | Small | Small |

In this study, two BESSs with different functionalities are proposed to control the microgrid, as shown in Table 3. BESS

_{1}is used to control the power at the point of common coupling and the frequency in the islanded mode, in which case fast dynamic response under disturbances is required for the control system. Therefore, PPC-based MPC is suitable for application to BESS_{1}because its control performance shows the shortest response time compared to other cases. Furthermore, BESS_{2}is used for handling fluctuations in wind power in both grid-connected and islanded modes. Thus, the control performance of the MPC technique based on PI control in the outer control loop and PCC control in the inner control loop is suitable for BESS_{2}owing to gradual fluctuations in wind power. The microgrid voltage is controlled by BESS_{2}and the frequency, by BEES_{1}and BESS_{2}through the improved frequency droop control scheme.## 5. Simulation Results

#### 5.1. Control Microgrid in Grid-Connected Mode

BESSs can operate in the charging or discharging mode. Therefore, they can reduce the fluctuations in wind power through effective compensation. Figure 6 shows the action of BESS

_{2}in terms of smoothing the wind power. In the case of BESS_{2}, the MPC technique based on PI control in the outer control loop and PCC in the inner current control loop is applied as the control system. This figure shows that the wind power fluctuations can be reduced significantly by effectively charging or discharging BESS_{2}. Both the MPC and the PI control techniques show good results from the viewpoint of smoothing the wind power. However, the power ripple in case of the MPC technique is much smaller than that in case of the PI control technique.On the other hand, BESS

_{1}based on the PPC technique controls the power at the point of common coupling. In this study, it is assumed that the real power at the point of common coupling is maintained at zero. Figure 7 shows the simulation result. At 10 s, an additional load of 100 kW is connected to the microgrid. Therefore, BESS_{1}increases its real power to maintain the power at zero. The subfigure of Figure 7 shows that the response of the MPC technique is slightly quicker than that of the PI control technique. Additionally, the ripples of the BESS power when using the MPC technique is smaller than that of PI control technique. Both the MPC and the PI control techniques show good performance for controlling the power at the point of common coupling.#### 5.2. Control Microgrid in Islanded Mode

In the islanded mode, the microgrid frequency is controlled by BESS

_{1}, and the microgrid voltage is controlled by BESS_{2}. Figure 8 and Figure 9 respectively show the frequency and voltage of the microgrid. Both the MPC and the PI control techniques can stably control the frequency and voltage of the microgrid. However, as shown in Figure 8, the frequency response under the MPC technique is quicker than that under the PI control technique. Moreover, Figure 9 shows the microgrid voltage. Obviously, the performance of the MPC techniques is much better than that of the PI control technique. The voltage ripple in the case of the MPC technique is much smaller than that in the case of the PI control technique.Additionally, the output voltage spectra generated by the converter is one of the important factors. Figure 10 shows a comparison of the voltage spectra of the MPC and PI control techniques. As shown in Figure 10b, the frequency spectrum generated using the PI control technique is concentrated around the carrier frequency owing to PWM. For comparison, Figure 10a shows the frequency spectrum obtained by MPC. The reduction of the switching frequency of the converter is implemented in the cost function of MPC as a secondary control objective to reduce the power losses of converters. Figure 10 shows that the average switching frequency (${f}_{s}$) obtained by MPC is slightly lower than that obtained by the PI control technique. Moreover, the MPC technique shows significantly lower THD than the PI control technique.

## 6. Conclusions

This study discusses the effective application of two types of MPC techniques to BESSs for microgrid control: MPC based on PPC and MPC based on PI control in the outer control loop and PCC in the inner current control loop. In addition, PI control using a PI regulator in the outer and inner control loops for BESS was compared to these two types of MPC techniques. A reduction switching frequency is implemented in the cost function to reduce the power losses of converters. The simulation results show that the response time, power ripples, and frequency spectrum could be improved significantly by using MPC techniques. Both the average switching frequency and the THD obtained by using MPC techniques were lower than those obtained by using PI control. Using MPC based on PI control in the outer and PCC in the inner control loops did not improve the response time under power changing compared to PI control; however, it could significantly improve the power and voltage ripples under the steady-state condition. Moreover, using PPC-based MPC could reduce the response time under power changing compared to other control techniques. Therefore, in microgrids with multiple BESSs, the PPC-based MPC technique should be applied for BESSs that control the power at the point of common coupling and the frequency of the microgrid, and an MPC technique based on PI in the outer control loop and PCC in the inner control loop should be applied for BESSs that play the role of smoothing wind power fluctuations. Besides, in case of microgrids with a BESS, PCC-based MPC technique should be a suitable alternative for the BESS owing to its flexible characteristic. MPC technique is easy to implement and it can eliminate the tuning controller parameters effort that has to be done in the PI technique. Furthermore, various control objectives can be included in the MPC strategies.

In the future, we plan to include additional control variables such as considering the state of charge of the battery and coordination control of multiple ESSs in the MPC algorithm.

## Acknowledgments

This work was supported by the Power Generation & Electricity Delivery Core Technology Program of the Korea Institute of Energy Technology Evaluation and Planning (KETEP), granted financial resource from the Ministry of Trade, Industry & Energy, Republic of Korea. (No. 20141020402350).

## Author Contributions

The paper was a collaborative effort between the authors. The authors contributed collectively to the theoretical analysis, modeling, simulation, and manuscript preparation.

## Conflicts of Interest

The authors declare no conflict of interest.

## References

- Mahmoud, M.S.; Hussain, S.A.; Abido, M.A. Modeling and control of microgrid: An overview. J. Frankl. Inst.
**2014**, 351, 2822–2859. [Google Scholar] [CrossRef] - Hatziargyriou, N.D. Microgrids. IEEE Power Energy
**2008**, 6, 26–29. [Google Scholar] [CrossRef] - Olivares, D.E.; Mehrizi-Sani, A.; Etemadi, A.H.; Canizares, C.A.; Iravani, R.; Kazerani, M.; Hajimiragha, A.H.; Gomis-Bellmunt, O.; Saeedifard, M.; Palma-Behnke, R.; et al. Trends in microgrid control. IEEE Trans. Smart Grid
**2014**, 5, 1905–1919. [Google Scholar] [CrossRef] - Kim, H.-M.; Lim, Y.; Kinoshita, T. An intelligent multiagent system for autonomous microgrid operation. Energies
**2012**, 5, 3347–3362. [Google Scholar] [CrossRef] - Kim, H.-M.; Kinoshita, T. A multiagent system for microgrid operation in the grid-interconnected mode. J. Electr. Eng. Technol.
**2010**, 2, 246–254. [Google Scholar] [CrossRef] - Molina, M.G.; Mercado, P.E. Power flow stabilization and control of microgrid with wind generation by superconducting magnetic energy storage. IEEE Trans. Power Electron.
**2011**, 26, 910–922. [Google Scholar] [CrossRef] - Inthamoussou, F.A.; Pegueroles-Queralt, J.; Bianchi, F.D. Control of a supercapacitor energy storage system for microgrid applications. IEEE Trans. Energy Conver.
**2013**, 28, 690–697. [Google Scholar] [CrossRef] - Islam, F.; Al-Durra, A.; Muyeen, S.M. Smoothing of wind farm output by prediction and supervisory-control-unit-based FESS. IEEE Trans. Sustain. Energy
**2013**, 4, 925–933. [Google Scholar] [CrossRef] - Nguyen, T.-T.; Yoo, H.-J.; Kim, H.-M. A flywheel energy storage system based on a doubly fed induction machine and battery for microgrid control. Energies
**2015**, 8, 5074–5089. [Google Scholar] [CrossRef] - Chang, X.; Li, Y.; Zhang, W.; Wang, N.; Xue, W. Active disturbance rejection control for a flywheel energy storage system. IEEE Trans. Ind. Electron.
**2015**, 62, 991–1001. [Google Scholar] [CrossRef] - Li, X. Fuzzy adaptive kalman filter for wind power output smoothing with battery energy storage system. IET Renew. Power Gener.
**2012**, 6, 340–347. [Google Scholar] [CrossRef] - Li, X.; Hui, D.; Lai, X. Battery energy storage station (BESS)-based smoothing control of photovoltaic (PV) and wind power generation fluctuations. IEEE Trans. Sustain. Energy
**2013**, 4, 464–476. [Google Scholar] [CrossRef] - Lawder, M.T.; Suthar, B.; Northrop, P.W.C.; De, S.; Hoff, C.M.; Leitermann, O.; Crow, M.L.; Santhanagopalan, S.; Subramanian, V.R. Battery energy storage system (BESS) and battery management system (BMS) for grid-scale applications. Proc. IEEE
**2014**, 102, 1014–1030. [Google Scholar] [CrossRef] - Duran, M.J.; Prieto, J.; Barrero, F.; Toral, S. Predictive current control of dual three-phase drives using restraned search techiniques. IEEE Trans. Ind. Electron.
**2011**, 58, 3253–3263. [Google Scholar] [CrossRef] - Kouro, S.; Cortés, P.; Vargas, R.; Ammann, U.; Rodríguez, J. Model predictive control—A Simple and powerful method to control power converter. IEEE Trans. Ind. Electron.
**2009**, 56, 1826–1838. [Google Scholar] [CrossRef] - Miranda, H.; Cortés, P.; Yuz, J.I.; Rodríguez, J. Predictive Torque control of induction machines based on state-space models. IEEE Trans. Ind. Electron.
**2009**, 56, 1916–1924. [Google Scholar] [CrossRef] - Morel, F.; Xuefang, L.S.; Retif, J.M.; Allard, B.; Buttay, C. A comparative study of predictive current control schemes for a permanent-magnet synchronous machine drive. IEEE Trans. Ind. Electron.
**2009**, 56, 2715–2728. [Google Scholar] [CrossRef] - Bolognani, S.; Peretti, L.; Zigliotto, M. Design and implementation of model predictive control for electrical motor drives. IEEE Trans. Ind. Electron.
**2009**, 56, 1925–1936. [Google Scholar] [CrossRef] - Cortés, P.; Rodríguez, J.; Antoniewicz, P.; Kazmierkowski, M. Direct power control of an AFE using predictive control. IEEE Trans. Power Electron.
**2008**, 23, 2516–2523. [Google Scholar] [CrossRef] - Vargas, R.; Rodríguez, J.; Ammann, U.; Wheeler, P.W. Predictive current control of an induction machine fed by a matrix converter with reactive power control. IEEE Trans. Ind. Electron.
**2008**, 55, 4362–4371. [Google Scholar] [CrossRef] - Abad, G.; Rodriguez, M.A.; Poza, J. Three-level NPC converter based predictive direct power control of the doubly fed induction machine at low constant switching frequency. IEEE Trans. Ind. Electron.
**2008**, 55, 4417–4429. [Google Scholar] [CrossRef] - Torreglosa, J.P.; Garcia, P.; Femadez, L.M.; Jurado, F. Predictive control for the energy management of a fuel-cell-battery-supercapacitor tramway. IEEE Trans. Ind. Electron.
**2014**, 10, 276–285. [Google Scholar] [CrossRef] - Hredzak, B.; Agelidis, V.G.; Jang, M. A model predictive control system for a hybrid battery-ultracapacitor power source. IEEE Trans. Power Electron.
**2014**, 29, 1469–1479. [Google Scholar] [CrossRef] - Akter, M.P.; Mekhilef, S.; Tan, N.M.L.; Akagi, H. Model predictive control of bidirectional AC-DC converter for energy storage system. J. Electr. Eng. Technol.
**2015**, 10, 165–175. [Google Scholar] [CrossRef] - John, T.; Wang, Y.; Tan, K.T.; So, P.L. Model predictive control of distributed generation inverter in a microgrid. In Proceedings of the 2014 IEEE Innovative Smart Grid Technologies (ISGT Asia), Kuala Lumpur, Malaysia, 20–23 May 2014; pp. 657–662.
- Jafari, H.; Mahmodi, M.; Rastegar, H. Frequency control of micro-grid in autonomous mode using model predictive control. In Proceedings of the 2012 IEEE Iranian Conference on Smart Grids (ICSG), Tehran, Iran, 24–25 May 2012; pp. 1–5.
- Naeiji, N.; Hamzeh, M.; Rahimi Kian, A. A modified model predictive control method for voltage control of an inverter in islanded microgrids. In Proceedings of the 2015 IEEE Power Electronics, Drives Systems & Technologies Conference (PEDSTC), Tehran, Iran, 3–4 February 2015; pp. 555–560.
- Han, J.; Solanki, S.K.; Solanki, J. Coordinated predictive control of a wind-battery microgrid system. IEEE J. Emerg. Sel. Top. Power Electron.
**2013**, 1, 296–305. [Google Scholar] [CrossRef] - Rodríguez, J.; Cortés, P. Predictive Control of Power Converter and Electrical Drives; John Wiley & Sons: West Sussex, UK, 2012. [Google Scholar]
- Xia, C.; Wang, M.; Song, Z.; Liu, T. Robust model predictive current control of three-phase voltage source PWM rectifier with online disturbance observation. IEEE Trans. Ind. Informat.
**2012**, 8, 459–471. [Google Scholar] [CrossRef] - Antoniewicz, P.; Kazmierkowski, M.P. Virtual-flux-based predictive direct power control of AC/DC converters with online inductance estimation. IEEE Trans. Ind. Electron.
**2008**, 55, 4381–4390. [Google Scholar] [CrossRef] - Rivera, M.; Yaramasu, V.; Rodriguez, J.; Wu, B. Model predictive current control of two-level four-leg inverters—Part II: Experimental implementation and validation. IEEE Trans. Power Electron.
**2013**, 28, 3469–3478. [Google Scholar] [CrossRef] - Natesan, C.; Ajithan, S.; Mani, S.; Kandhasamy, P. Applicability of droop regulation technique in microgrid—A survey. Eng. J.
**2014**, 18, 23–35. [Google Scholar] [CrossRef] - Wu, B.; Lang, Y.; Zargari, N.; Kouro, S. Power Conversion and Control of Wind Energy Systems, 1st ed.; Wiley-IEEE Press: Hoboken, NJ, USA, 2011; pp. 153–170. [Google Scholar]
- Yoo, H.-J.; Kim, H.-M.; Song, C.-H. A coordinated frequency control of lead-acid BESS and Li-ion BESS during islanded microgrid operation. In Proceedings of the 2012 IEEE Vehicle Power and Propulsion Conference (VPPC), Seoul, Korea, 9–12 October 2012; pp. 1453–1456.

© 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/).