Processing math: 0%
Optimization-Based Fast-Frequency Estimation and Control of Low-Inertia Microgrids | IEEE Journals & Magazine | IEEE Xplore

Optimization-Based Fast-Frequency Estimation and Control of Low-Inertia Microgrids


Abstract:

The lack of inertial response from non-synchronous, inverter-based generation in microgrids makes the power system vulnerable to a large rate of change of frequency (ROCO...Show More

Abstract:

The lack of inertial response from non-synchronous, inverter-based generation in microgrids makes the power system vulnerable to a large rate of change of frequency (ROCOF) and frequency excursions. Energy storage systems (ESSs) can be utilized to provide fast-frequency support to prevent such large excursions in the system. However, fast-frequency support is a power-intensive application that has a significant impact on the ESS lifetime. In this paper, a framework that allows the ESS operator to provide fast-frequency support as a service is proposed. The framework maintains the desired quality-of-service (limiting the ROCOF and frequency) while taking into account the ESS lifetime and physical limits. The framework utilizes moving horizon estimation (MHE) to estimate the frequency deviation and ROCOF from noisy phase-locked loop (PLL) measurements. These estimates are employed by a model predictive control (MPC) algorithm that computes control actions by solving a finite-horizon, online optimization problem. Additionally, this approach avoids oscillatory behavior induced by delays that are common when using low-pass filters as with traditional derivative-based (virtual inertia) controllers. MATLAB/Simulink simulations on a test system from Cordova, Alaska, show the effectiveness of the MHE-MPC approach to reduce frequency deviations and ROCOF of a low-inertia microgrid.
Published in: IEEE Transactions on Energy Conversion ( Volume: 36, Issue: 2, June 2021)
Page(s): 1459 - 1468
Date of Publication: 24 November 2020

ISSN Information:

Funding Agency:


CCBY - IEEE is not the copyright holder of this material. Please follow the instructions via https://creativecommons.org/licenses/by/4.0/ to obtain full-text articles and stipulations in the API documentation.
SECTION I.

Introduction

Integration of photovoltaic (PV) and/or wind generation through power electronic inverters means that the traditional rotational generation-based microgrids are being transformed into inverter-based systems [1], [2]. As a result, fast-frequency dynamics are more prevalent in such low-inertia microgrids. During frequency events, the rate-of-change-of-frequency (ROCOF) is large causing significant frequency deviations. This can trigger protection systems, such as under frequency load shedding (UFLS), and can lead to cascaded outages throughout the system and eventually cause a total blackout. Control strategies deployed using energy storage systems (ESSs) interfaced through power electronic inverters can provide fast-frequency support for these low-inertia microgrids to maintain stability and reliability.

Traditionally to provide fast-frequency support in low-inertia microgrids, techniques where the power output of the ESS is controlled based on the derivative of the frequency have been proposed [3], [4]. This is referred to as virtual inertia (VI) in the literature as it replicates the inertial response from rotational generators in a power system. As has been shown in [5], [6], these controllers are difficult to tune and susceptible to instability due to noisy frequency measurements from phase-locked loops (PLLs). To address these issues, a number of optimal frequency control techniques have been proposed in the literature. These control techniques provide fast-frequency control by reducing frequency deviations and the ROCOF, while minimizing the energy/power consumption. An overview of the current state-of-the-art in this area is provided in Section II.

Fast-frequency support is a power-intensive service and can result in large power demands and ramp-rates from the energy medium, which can have a substantial negative impact on the ESS lifetime [7]. The ESS operator needs to provide frequency support to minimize the ROCOF and the frequency deviation, while minimizing the impact on the ESS. Furthermore, there are physical constraints of the ESS to be considered, such as limits on peak-power and/or ramp-rates. It is thus favorable for the ESS operator to be able to dispatch the ESS unit based on desired quality-of-service (QoS) (i.e., reduction in ROCOF and the frequency deviation) and the incentives required to provide the QoS for such a frequency-as-a-service in the market.

In this paper, we formulate a flexible approach that uses model predictive control (MPC) [8] and moving horizon estimation (MHE) [9] to enable an ESS to provide fast-frequency support. MPC allows the system operator to achieve near-optimal control actions (based on a defined cost-function) while having the ability to incorporate ESS constraints into the control framework. Additionally, the ESS operator has the flexibility to change dynamic behavior of the system (based on desired QoS) by intuitive adjustment of the weighting parameters. For instance, if there are sufficient incentives in the market mechanisms, the ESS operator can select weighting parameters such that significant reduction in ROCOF is provided even at the expense of battery degradation.

MHE is used to estimate the states as it has been shown have superior performance for linear and constrained systems compared to other techniques proposed in the literature such as Kalman filters/ particle filters. In addition, MHE is also well suited to deal with state estimation when the measurement noise distribution is unknown [10]. These estimates facilitate control actions that avoid the oscillatory behavior observed with traditional derivative-based (virtual inertia) controllers due to interaction with PLLs. With traditional virtual inertia controllers, a low pass filter (LPF) is used to filter out PLL measurement noise. The delay caused by the LPF is known to cause instability, especially under high controller gain values [11]. Thus, using a LPF with low cut-off frequencies limits the controller gains and the effectiveness of the controller in providing fast-frequency support. In the proposed framework, a PLL without a LPF is used as the MHE performs the necessary filtering and prevents the aforementioned oscillatory behavior.

The authors introduced an MPC-based fast-frequency control in [12] that was analyzed in a simple linearized transfer function based power system model. In this paper, the authors extend this framework with MHE, which helps to prevent oscillatory behavior, and the combined framework is tested in a realistic test system from Cordova, Alaska. The contributions of the paper are as follows:

  1. Designed a fast-frequency support framework that achieves the required performance while incorporating physical constraints of the ESS and enabling efficient computation for real-time operation.

  2. Developed a flexible mechanism for an ESS operator to change dynamic performance based on available reserves and market requirements/incentives.

  3. Improved performance compared to traditional virtual inertia controllers through the use of MHE.

The paper is organized as follows: Section II describes the state-of-the-art for optimal fast-frequency support techniques. The proposed MHE-MPC framework is introduced in Section III. The simulation setup and test system are described and presented in Section IV, followed by the simulation results and analysis in Section V. The paper is concluded in Section VI.

SECTION II.

State of the Art: Optimal Fast-Frequency Support Techniques

Numerous fast-frequency support mechanisms for low-inertia power systems have been proposed in the literature [13], [14]. Techniques to optimize the performance in terms of reducing energy/power requirements for frequency support have been widely studied. Different machine learning/black-box approaches have been proposed to optimize the performance of the fast-frequency controllers. The main objective of these approaches is to reduce the frequency deviations and the ROCOF while minimizing the peak-power and/or energy usage. Several methods based on fuzzy logic [15], [16], neural networks [17], and reinforcement learning [18], [19] have been proposed. These methods can be computationally expensive and as the system parameters change, require complex re-training.

Approaches based on predictive models of the system have also been proposed, using the swing equation of the power system as the predictive model. A predictive controller was developed in [20] to provide dynamic frequency support using an ESS. However, the method was limited to one-sample time ahead predictions which limited the performance as the system dynamics were not captured over a longer time horizon. A technique using explicit MPC was proposed in [21] to provide frequency support. In this approach, control actions were analytically computed offline, and thus the control actions were limited to a lookup table, reducing the flexibility of the controller to changing system conditions. Similarly, a MPC was proposed to damp oscillations in a power system by controlling the power injections of high voltage direct current (HVDC) links [22]. MPC-based approaches specific to frequency containment for large power systems have been proposed in [23], [24], however they use large sampling times that may make control actions too slow for the fast-frequency dynamics that are observed in low-inertia microgrids. As will be shown later, by taking advantage of real time iteration (RTI)-based solvers [25], the proposed MHE-MPC framework is able to accommodate significantly smaller sampling times. Linear quadratic regulator (LQR) techniques have also been developed in the literature [26], [27], but these approaches are limited as they do not provide the flexibility to be reconfigured online as needed and cannot handle physical system constraints.

Other techniques to improve performance use a heuristic “alternate/flexible inertia” method where the gains of the controller are adjusted based on the acceleration of the frequency [28], [29]. Although such techniques have been shown to achieve faster settling times and reduced energy usage, they are also prone to oscillations [29]. Hence, most techniques in the literature rely on black-box models or short-horizon predictions with limited flexibility to optimize the fast-frequency controller. The proposed MHE-MPC framework allows for improved control flexibility and optimization over longer prediction horizons.

SECTION III.

Proposed MHE-MPC Framework

The proposed MHE-MPC framework is shown in Fig. 1. The proposed framework consists of two distinct modules – the MHE and the MPC. The MHE performs state estimation based on noisy frequency and ROCOF measurements from a PLL. The state estimates are then used in the MPC algorithm that generates control signals for the ESS. The optimization problem formulations in the MHE and MPC algorithms use an approximate model of the system's frequency dynamics, physical system constraints, and defined cost-functions. Solving these optimization problems at each time step results in current state estimates and future ESS control actions. The cost-function typically consists of several terms that penalize the states (frequency and ROCOF) and/or the ESS power output. By tuning weights in the cost-function, a system operator can change the dynamic performance of the controller based on the desired QoS. Additionally, physical constraints of the ESS such as peak-power limits and/or ramp-rate limits can be formulated within the MPC framework. One of the main challenges with existing fast-frequency support techniques is that a PLL must be supplemented with a LPF to account for measurement noise. The dynamics of such PLLs with LPFs can cause oscillatory behavior, especially at higher control gains, as illustrated in a number of relevant work in the literature [5], [6], [11]. The MHE module allows the use of a PLL without a LPF, thus the combined framework can prevent oscillatory response in the system.

Fig. 1. - Proposed MHE-MPC framework for fast-frequency control. The MHE provides state estimates for the frequency and ROCOF from noisy PLL measurements while the MPC provides ESS control signals to provide fast-frequency support.
Fig. 1.

Proposed MHE-MPC framework for fast-frequency control. The MHE provides state estimates for the frequency and ROCOF from noisy PLL measurements while the MPC provides ESS control signals to provide fast-frequency support.

The objective of this section is to first develop an approximate model that defines the microgrid system dynamics due to changes in the ESS power output. The model makes several simplifying assumptions and is not a comprehensive representation of microgrid system dynamics. Such an approximate model is desired for the MHE/MPC to reduce computational cost and ensure optimization convergence. The approximate model is used in the formulation of the MHE and the MPC as given in the second part of this section. Both the MHE and the MPC are formulated as quadratic programs (QP) which ensures convexity and allows the use of an efficient solver for the optimization problems [30]. The effectiveness of the proposed approach when implemented in the closed-loop is illustrated in simulations that use detailed microgrid system dynamic models, as described in Section IV. Therefore, the proposed MHE-MPC approach that uses this approximate model is sufficient to provide effective state estimates and control actions for fast-frequency support in a realistic microgrid scenario.

A. Predictive Model Representing Frequency Dynamics

To model the frequency dynamics of an isolated microgrid system, a multi-machine system can be modeled by a single equivalent generator as shown in Fig. 2. Because the inverter dynamics are much faster than the dynamics of rotational generators, we assume that the frequency dynamics are mostly dominated by the rotational generators [31]. The linearized swing equation of microgrid frequency dynamics is given by [32]: \begin{equation*} M \Delta \dot{\omega } + D\Delta\omega = \Delta P_m - \Delta P - \Delta P_l \tag{1} \end{equation*} View SourceRight-click on figure for MathML and additional features. where \Delta\omega is the change in the system frequency, \Delta \dot{\omega } is the ROCOF, M is the equivalent system inertia constant, D is the equivalent system damping constant. Similarly, \Delta P_m and \Delta P are the change in the total mechanical power and the ESS power output in per unit (p.u.). The net load change \Delta P_l is assumed to be a disturbance from the point-of-view of the ESS unit. Also, as this is an isolated microgrid the tie-line power flows are not modeled [33].

Fig. 2. - Transfer function representation of an isolated microgrid system including the frequency control loops.
Fig. 2.

Transfer function representation of an isolated microgrid system including the frequency control loops.

The type of governor and the dynamics of the turbine itself affect the dynamics of the frequency of the system. It is assumed that in general the turbine-governor dynamics can be represented by the following differential equation [27]: \begin{equation*} T_g \Delta\dot{P}_m + \Delta P_m = -{R_p}^{-1}\Delta\omega \tag{2} \end{equation*} View SourceRight-click on figure for MathML and additional features. where T_g is the turbine-governor time constant of the aggregated generators, and R_p is the aggregated droop constant. In Fig. 2, \Delta P_s is the secondary power which models the equivalent effect of automatic generation control (AGC) in the system with K_i representing the integral gain of this loop. This loop can generally be neglected for the inertial time-frame of interest in this paper.

Based on (1) and (2), the following differential equation describing the overall frequency dynamics of the isolated microgrid system can then be derived: \begin{align*} \Delta\ddot{\omega } = &-\left(\frac{D}{M} +\frac{1}{T_g} \right) \Delta\dot{\omega } - \left(\frac{D}{MT_g} + \frac{1}{R_pMT_g}\right) \Delta\omega \\ &- \frac{1}{MT_g} \Delta P - \frac{\Delta\dot{P}}{M} \tag{3} \end{align*} View SourceRight-click on figure for MathML and additional features. If the derivative term of the input \Delta\dot{P} is neglected, the state-space representation of (3) is given by: \begin{align*} \dot{x} = A x + B (u + d) \tag{4} \\ y = C x + \eta \tag{5} \end{align*} View SourceRight-click on figure for MathML and additional features. where \begin{equation*} x = \begin{bmatrix}\Delta{\omega }\,\,\, \Delta\dot{\omega } \end{bmatrix}^{\top }, u = \Delta P \end{equation*} View SourceRight-click on figure for MathML and additional features. d denotes possible actuation error, and, \begin{equation*} { A = \begin{bmatrix}0 & 1 \\ -\left(\frac{D}{MT_g} + \frac{1}{R_p M T_g} \right) & -\left(\frac{D}{M} +\frac{1}{T_g} \right) \end{bmatrix} ; B = \begin{bmatrix}0\\ \frac{-1}{MT_g} \end{bmatrix} } \end{equation*} View SourceRight-click on figure for MathML and additional features. \begin{equation*} C = diag(1,1) \end{equation*} View SourceRight-click on figure for MathML and additional features. The measurement noise is denoted by \eta. The derivative term in (3) is neglected to simplify the model to be used by the MHE and the MPC framework. As only an approximate model is required, this assumption does not significantly impact the performance of the proposed control framework.

B. Formulation of Moving Horizon Estimation

Let us define L as the length of the backward time horizon, which is usually chosen long enough to capture relevant system dynamics, such as the length of frequency deviations. Also, at a discrete time instant k, {x_k} = [\Delta\omega _k \,\,\,{\Delta\dot{\omega }_k}]^\top defines the states of the system, u_k is the applied control input, and y_k is the measured output. In MHE, past measurements are collected over a finite horizon and then the state and parameters at the current sampling time are estimated based on minimizing a cost-function while satisfying constraints. The MHE problem thus takes the following form: \begin{align*} &\underset{\hat{x}_k, \hat{d}_k}{\text{min}} J_{L}:=\sum _{k=q-L}^{q} \left({C_d \hat{x}_k -y_k} \right) ^{\top }V\left({C_d \hat{x}_k -{y}_k} \right)\\ & \qquad\qquad\qquad\,\, +\sum _{k=q-L}^{q-1} \hat{d}_k^\top W \hat{d}_k \tag{6a} \\ &\text{subject to} \\ & {{\hat{x}_{k+1} = A_d \hat{x}_{k} + B_d (u_k + \hat{d}_k)}}\\ & \forall k \in {\lbrace {q-L},\ldots, q-1 \rbrace }\tag{6b} \end{align*} View SourceRight-click on figure for MathML and additional features.

Matrices A_d, B_d, and C_d are discretized state-space matrices. The discretization of the continuous time dynamics in (4)–​(5) is carried out within the solver used for implementing the MHE as described later. The cost function to be minimized is J_{L} while V and W are the weighting matrices. The matrix V is defined as V = diag(V_{11}, V_{22}). Similarly, W is a scalar since there is only a single control signal. The first term in the cost function J_L penalizes the difference between the measured outputs and the predicted outputs using the elements V_{11} and V_{22} of the weighting matrix V. Similarly, the second term accounts for actuation errors [34] which is achieved by proper selection of the weighting matrix W. Solving this optimization problem at each sampling time yields state estimates \hat{x}_k and estimates of the actuation error \hat{d}_k.

C. Formulation of Model Predictive Control

Let us define T as the length of the forward time-horizon, which is chosen long enough to predict the impact that current control actions will have sufficiently far into the future. The proposed MPC formulation will then take the following form: \begin{align*} & \underset{u_k}{\text{min}}J_{T}:= \sum _{k=q}^{{q+T-1}} {\left(x_{k}^{\top }Qx_k + u_{k}^{\top } R u_k \right) } + x_{q+T}^{\top }Q^{f} x_{q+T} \tag{7a}\\ &\text{subject to} \\ & {x_{k+1} = A_d x_{k} + B_d u_k} \quad \forall k\in {\lbrace q,\ldots, q+T-1 \rbrace }\tag{7b}\\ & {\left| u_k\right| \leq P_{max}} \quad \forall k\in {\lbrace q,\ldots, q+T-1 \rbrace }\tag{7c}\\ & {\left\Vert u_{k+1} - u_k \right\Vert _ \infty \leq E} \quad \forall k\in {\lbrace q,\ldots, q+T-1 \rbrace }\tag{7d} \end{align*} View SourceRight-click on figure for MathML and additional features. where J_{T} is the cost-function to be minimized, and Q and R are the weighting matrices corresponding to the future predicted states and the future control signals, respectively. The weighting matrix Q is defined as Q=diag(Q_{11}, Q_{22}). The element Q_{11} is used to penalize change in frequency, and the element Q_{22} is used to penalize the ROCOF. The matrix R is used to penalize the control effort (i.e., the power output from the ESS). In this case, R is a scalar since the ESS output power is the only control action. Similarly, Q^{f} is a terminal cost that penalizes the final predicted state in the future finite time horizon and can be used to improve stability or performance [8]. We simply choose Q^{f} = Q throughout this paper. More details on the choice of the terminal cost and time-horizon can be found in [35].

The system dynamics are incorporated within constraint (7b). Similarly, (7c) limits the power output of the ESS to P_{max}. The ramp-rate of the ESS power output is limited to E by (7d). This optimal control problem is solved at each discrete time instant k. Then the first element of the resulting sequence of future control actions is applied to the system, and the process is repeated at the next time instant in a receding horizon fashion.

SECTION IV.

Simulation Setup

A. Test System

To test the proposed estimation and control framework, the remote microgrid test system from Cordova, Alaska, was modified as shown in Fig. 3(a). Only two substations are considered – the ORCA 12.47 kV substation with three diesel generators (ORCA 3, ORCA 4, and ORCA 5) and the Humpback Creek 12.47 kV substation, where a 1 MW PV system is connected. The implementation of the governor and excitation systems of the generators is shown in Fig. 3(b). Typical parameters used are R_p =5\%, K_i=20, T_g=0.2\,s, R_q=5\%, k_v=0.1, and T_v=0.05\,s [15], [36]. The same parameters are used for the controllers of all three generators. Detailed parameters used to model each generator are listed in Table I. All the generators are operated in droop mode. ORCA 3 provides AGC to bring the system frequency back to the nominal value after the primary control action to automatically restore the remaining generators to their scheduled values [32].

TABLE I Generator Parameters
Table I- Generator Parameters
Fig. 3. - Modified test system of Cordova, Alaska.
Fig. 3.

Modified test system of Cordova, Alaska.

A 3 MW ESS is connected to the ORCA substation. The proposed MHE-MPC control framework is implemented on this ESS. The ESS can be utilized to perform a wide-array of grid ancillary services in different time scales, with fast-frequency support being the application discussed in this paper. The ESS inverter is modeled using three independent current-controlled voltage sources, which allows the system to be analyzed without modeling the DC-link dynamics and/or harmonics. These dynamics are much faster than the frequency dynamics, which are the main concern of this paper. A PI-type-2 controller as described in [37] is used to implement the current controllers which control the output of the current-controlled voltage sources. The ESS is interfaced through an LC filter with an inductance L_f = 10 mH and capacitance C_f = 3.3 \mu F. A PLL measures the change in frequency \Delta\omega and ROCOF \Delta\dot{\omega } for the MHE-MPC framework which then generates the reference power/current for the current controller. The PLL dynamics are not modeled when implementing the MHE and the MPC assuming the major dynamics are from the power system. As shown later, even under this assumption, the proposed MHE-MPC framework is able to provide appropriate control decisions. The PV plant is modeled as controlled current sources and has no frequency dynamics associated with it. This reduces the overall inertial response of the microgrid system.

B. Configuration for the MHE-MPC Framework

A sampling time of 0.02 s was used for both the MHE and MPC modules. For the MHE, the backward time-horizon L is set to 10 samples (or 0.2 s). This provides a good balance between being long enough to effectively capture the dynamics of the frequency and ROCOF during a frequency event, and being short enough to keep the computational cost low. For MHE, it is common practice to tune the weighting matrices based on the co-variance of the measurement noise. If g represents the co-variance of measurement noise, the corresponding weighting parameter in the matrix V is set to g^{-1/2}. In this example, the weighting matrix W is set to a larger value of 10,000 as there is no significant actuation error. If there are significant actuation errors, the value of W can be decreased accordingly. For the MPC module, the forward time-horizon T is set to 50 samples. This corresponds to 1 s with a sampling time of 0.02 s, which matches the typical range of the frequency dynamics of concern in the system. The values in the weighting matrices Q and R are varied based on the simulation analysis being performed and are described in subsequent sections.

Both the MHE and the MPC modules are formulated using the ACADO Toolkit [38], which is an open-source toolbox to implement dynamic optimization problems. The test system was implemented in MATLAB/Simulink (using the Simscape Power Systems library), and the parameters for the approximate model were estimated using an offline least squares estimator but could be estimated online using an approach as in [39]. It should be noted that while an approximate equivalent generator based model is used for formulating the MHE/MPC, the proposed framework is tested in a detail microgrid model implemented in MATLAB/Simulink as described in Section IV-A.

SECTION V.

Results and Analysis

In this section, the performance of the MHE in estimating the frequency deviation and ROCOF of the system is first illustrated. This is followed by analysis of the proposed combined framework, which is illustrated in terms of the operational flexibility, capability to handle ESS constraints, and performance improvement under noisy measurement conditions. All simulation results are presented in p.u. with frequency and ROCOF normalized against a 60 Hz base while the power is normalized against a 3 MVA base. In all the cases, it is assumed that system base load is 3 MW (1 p.u.) to begin with, and there is a 2 MW (0.67 p.u.) change in the system load at 5 s.

A. Performance of the MHE

The performance of the MHE is illustrated in Fig. 4. The measurements from the PLL are assumed to have measurement noise with a Gaussian distribution of mean 0 and co-variance 10^{-7}, equivalent to a signal-to-noise ratio (SNR) of 65 dB, which is typical for PLL measurements [40]. The parameters of the PLL are set to k_i^{PLL} = 92 and k_d^{PLL} = 4232 [11]. The unfiltered PLL measurement is then fed into the MHE. The performance of the MHE is compared to the filtered frequency and ROCOF obtained from using a second-order Butterworth-type LPF with cut-off frequency f_c of 5 Hz and a damping ratio \xi of 0.707 in Fig. 4(a).

Fig. 4. - Frequency and ROCOF of the microgrid system estimated using MHE. The estimates are compared against the noisy PLL measurements and the measurement from LPFs.
Fig. 4.

Frequency and ROCOF of the microgrid system estimated using MHE. The estimates are compared against the noisy PLL measurements and the measurement from LPFs.

As stated earlier, a lower f_c introduces significant delay in the measurement and makes the closed-loop system more susceptible to oscillatory behavior. This delay is critical when measuring the ROCOF, as the controller needs to detect and respond to fast changes to provide adequate fast-frequency support. A low cut-off frequency of 5 Hz is required to properly filter out noise in the frequency measurements in Fig. 4(a), but this leads to a significant delay in the ROCOF measurement as shown in Fig. 4(b). The proposed MHE, however, is able to estimate both the frequency and ROCOF without significant delay.

The frequency estimate has similar performance as compared to the case when using a LPF. On the other hand, MHE provides significantly better ROCOF estimates than using an LPF and with minimal delay, which helps to maintain system stability. Avoiding this delay prevents oscillatory behavior in the system as highlighted in further detail in Section V.D. Even though some errors exist in the estimate, the results in the subsequent sections indicate that the proposed framework can provide desired fast-frequency support.

B. Performance: Operational Flexibility

The performance of the MPC in terms of providing operational flexibility for the ESS operator is illustrated here. The maximum frequency change, maximum ROCOF, and the peak-power injected by the ESS for different weighting constants are illustrated in the heatmaps in Fig. 5. The elements of the Q matrix, Q_{11} and Q_{22}, are varied from 0.1 to 1 in increments of 0.1. Increasing Q_{11} penalizes the change in frequency \Delta\omega, while increasing Q_{22} penalizes the ROCOF \Delta\dot{\omega }. For the results in Fig. 5, the R matrix, which penalizes the control signal, is kept constant at a low value of 0.001 so that there is only a small penalty on the control action from the MPC. Fig. 5(a) shows that increasing Q_{11} reduces the frequency deviation in the system by a significant amount. Increasing Q_{22} at a constant value of Q_{11}, however, does not result in much variation in the frequency deviation as expected. On the other hand, increasing Q_{22} results in significant reduction in the ROCOF as shown in Fig. 5(b). A higher peak power demand from ESS is observed when using high values of Q_{22} as the ESS tries to minimize the ROCOF of the system as illustrated in Fig. 5(c).

Fig. 5. - Heatmaps illustrating the variation of different system parameters based on the selection of $Q_{11}$ and $Q_{22}$. (a) Maximum frequency change. (b) Maximum ROCOF. (c) Peak-power output from ESS.
Fig. 5.

Heatmaps illustrating the variation of different system parameters based on the selection of Q_{11} and Q_{22}. (a) Maximum frequency change. (b) Maximum ROCOF. (c) Peak-power output from ESS.

Fig. 6 shows how the dynamics of the frequency, ROCOF and the ESS power outputs change depending on the selection of Q. For the case when Q_{11}=0.1 and Q_{22}=0.5, since there is a higher penalty on the ROCOF deviation, a significant reduction in the system ROCOF can be observed. This, however, results in a higher peak-power output from the ESS. On the other hand, for the case when Q_{11}=0.5 and Q_{22}=0.1 the reduction in ROCOF is lower and thus the peak-power usage is also lower. Finally, the effect of varying R is shown in Fig. 7. When a relatively large value of R =0.01 is used, there is a larger penalty on the control action, so the power output from the ESS and the energy usage is limited. However, this means there is only a slight reduction in the frequency deviation and ROCOF. When R is reduced to 0.001 and 0.0001 the power/energy usage increases and leads to greater reductions in frequency deviation and ROCOF. Therefore, R can be tuned, e.g., to consider the operator's concerns regarding ESS lifetime.

Fig. 6. - Frequency, ROCOF, and peak-power output of ESS for different values of $Q$.
Fig. 6.

Frequency, ROCOF, and peak-power output of ESS for different values of Q.

Fig. 7. - Frequency, ROCOF, and peak-power output of ESS for different values of $R$.
Fig. 7.

Frequency, ROCOF, and peak-power output of ESS for different values of R.

The intention of the proposed control framework is to allow a system operator to consider ESS lifetime. Analyzing the effect of such a fast-frequency support service on the ESS lifetime is out of the scope of this work. The weighting parameters provides an intuitive mechanism for the system operator to control the frequency dynamics of the microgrid, either manually or adaptively as part of a market mechanism. Based on the ESS power availability, system inertia, and market incentives, the ESS operator can select appropriate weighting parameters. For instance, if the system inertia is particularly low at any given instance, the ESS operator can increase Q_{22} to put more emphasis on reducing the large ROCOF that occurs in low-inertia situations to prevent large frequency transients and prevent system UFLS. Similarly, ESS operator can prevent battery degradation by controlling the R parameter. Thus, the ESS and microgrid operators can find a balance between frequency QoS (depending on the microgrid consumers) and the battery life degradation in the MHE-MPC framework. This mechanism also allows the ESS operator to deploy fast-frequency support as a service for the microgrid.

C. Performance: Constraints Handling

The proposed MHE-MPC framework allows the microgrid or ESS operator to impose constraints based on available resources, QoS incentives in the market, or to provide multiple market services. For this particular analysis, it is assumed that the ESS operator has limited the power output of the unit to 0.1 p.u. (0.3 MW). Fig. 8 shows the change in frequency, ROCOF and the power output from the ESS for three cases – with no fast-frequency controller, a constrained controller, and an unconstrained controller. In all cases, the same settings were used for both the MHE and the MPC modules. For the MHE, the settings described in Section IV-B are used, while for the MPC the weights are set to Q = diag(0.1, 0.9) and R=0.001.

Fig. 8. - Comparison of constrained versus unconstrained system operation. The peak-power output is constrained to 0.1 p.u. in this case.
Fig. 8.

Comparison of constrained versus unconstrained system operation. The peak-power output is constrained to 0.1 p.u. in this case.

The reduction in frequency deviation is highest when there are no constraints in the formulation, as shown in Fig. 8(a). Similarly, the ROCOF is also least for the unconstrained case as illustrated in Fig. 8(b). However, significant reductions come at the cost of a larger peak-power injection of 0.3 p.u. (0.9 MW) from the ESS, as shown in Fig. 8(c). Furthermore, the energy usage per frequency event is also higher. All of these factors could degrade the ESS lifetime and impact other ESS services (e.g., arbitrage). However, with constrained operation the ESS operator can inherently include a constraint on the peak-power of the ESS within the formulation, which limits the control action generated by the MPC to 0.1 p.u. (0.3 MW) as shown in Fig. 8(c). With peak-power limited, the reduction in frequency deviation and the ROCOF is lower compared to the unconstrained case, but this results in lower power/energy usage and longer ESS lifetime.

D. Performance Improvement

To highlight the advantage of the MHE module, two sets of simulations are carried out. In the first case shown in Fig. 9(a) the measurements from the PLL with a LPF are used by the MPC. A second-order Butterworth-type LPF with a cut-off frequency f_c of 5 Hz is employed. The parameters of the PLL are set to k_i^{PLL} = 92 and k_d^{PLL} = 4232 [11]. In the second case, shown in Fig. 9(b), the PLL measurements are directly fed to the proposed MHE-MPC framework. It should be noted that in Fig. 9(b), the PLL does not include a LPF as the MHE provides the filtered estimates. For the same weighting parameters, Q=diag(0.1, 0.9) and R={0.0001}, the frequency and the ROCOF for the two cases are shown in Fig. 10. Due to the delay caused by the LPF, the system shows oscillatory behavior when the MHE module is not used. These simulations highlight that the LPF delay can lead to an oscillatory response, and the use of MHE can enhance the system dynamic performance.

Fig. 9. - Simulation setups to analyze the advantage of the MHE module. (a) MPC with measurements from PLL+LPF. (b) Proposed combined MHE-MPC.
Fig. 9.

Simulation setups to analyze the advantage of the MHE module. (a) MPC with measurements from PLL+LPF. (b) Proposed combined MHE-MPC.

Fig. 10. - Frequency and ROCOF with and without using the MHE module.
Fig. 10.

Frequency and ROCOF with and without using the MHE module.

E. Computational Requirements/Performance

In this section, the computational requirements of the proposed MHE-MPC framework are discussed. Both the MPC and MHE are implemented using ACADO code generation toolbox [38], which uses a RTI scheme to generate optimized code for embedded applications. With this implementation, a single sequential quadratic program (SQP) is solved in each sampling time. For instance, each MPC computation is performed in two phases: in phase 1 all the derivatives and functions needed to set up a QP is performed; and in phase 2 as soon as the state estimate is available a single QP is solved to complete the SQP. ACADO exports highly efficient C-code for solving the MHE and MPC optimization problems. An interface to a QP solver (qpOASES) is also exported by the toolkit. These features make the ACADO toolkit particularly suitable for embedded MHE/MPC applications with sampling times on the order of \mu s and ms. In these simulation examples, both the MHE and MPC were implemented in using an Intel Core i7-8750H processor running at 2.2 GHz. The average time to solve the optimization problems for the proposed MHE and MPC formulations was recorded at 0.025 ms and 0.1 ms, respectively, which is significantly less than the sampling time of 20 ms. This indicates that implementation with an application specific embedded processor (with a dedicated real-time operating system) will result in feasible computation times and will require further testing in the future.

SECTION VI.

Conclusion and Future Work

An optimization-based estimation and control framework was developed for fast-frequency support in low-inertia microgrids. The framework used moving horizon estimation (MHE) and model predictive control (MPC) to achieve a flexible approach that can be used by system operators to achieve desired performance. Through simulations performed in a high-fidelity low-inertia test system, it was illustrated that the MHE can estimate the change in frequency and ROCOF of the system from noisy PLL measurements. These estimates enable the MPC to compute effective power commands for an energy storage system (ESS) to provide fast-frequency support. The proposed approach results in significant reductions in frequency deviation and ROCOF without any oscillatory behavior that is common with traditional virtual inertia controllers. The flexibility of the proposed MHE-MPC fast-frequency support framework allows the ESS owner or microgrid operator to tune the quality-of-service (QoS) provided by straightforwardly tuning the weighting matrices, allowing the trade-off between performance and battery degradation. It was also shown that the proposed framework can incorporate physical operating constraints of an ESS, such as peak-power limits. As an added benefit, properly setting this constraint, allows the ESS owner to provide stacked services to the microgrid and maximize benefit or revenue over the battery lifetime.

The proposed framework is tested in a relatively small microgrid model that allowed adequate frequency support to be provided from a single ESS unit. For larger power systems, multiple ESS units will be needed. This may require coordinated control through communication between the units and will be explored in the future. Furthermore, the model simplification may result in sub-optimal control action in some cases and will require further investigation in the future.

ACKNOWLEDGMENT

The authors would like to thank Dr. Rodrigo Trevizan for reviewing the paper during Sandia National Laboratories’ internal review process.

References

References is not available for this document.