1 Introduction

The increasing frequency of extreme events and the operational uncertainties underscore the importance of enhancing the resilience, i.e., the ability of a system to prepare for and adapt to changing conditions, and withstand and recover rapidly from extreme outages [1,2,3]. The deployment of microgrids, which are self-controlled entities with the capability to operate in islanded mode, is an important way of enhancing the resilience of distribution systems. An islanded microgrid can encounter disturbances, e.g., the unintentional islanding, the outage of generation resource, and large changes of load. Such disturbances will cause an instantaneous power imbalance. Due to the well-known low-inertia property of microgrids, such imbalance can immediately cause a rapid deviation of frequency, and thus challenge the operation of microgrid or lead to instabilities. This is one of the most challenging issues for islanded microgrid operations. In case of low frequency, the microgrid will be vulnerable to additional disturbances on such occasions as the key microgrid parameters are designed based on the rated operation states. If the frequency falls below its set point for a while, some distributed generation resources (DERs) could stop working, resulting in additional power deficit. Even though the frequency collapse may be averted using load shedding schemes, the large frequency deviation may pose a threat to microgrid stability.

Microgrids involve the large-scale deployment of low-inertia DERs which are typically inverter-coupled PVs and energy storage units, and wind turbines. This has led to a high share of low-inertia resources and has greatly reduced rotational inertia of microgrids. Consequently, the loss of rotational inertia leads to new frequency instability phenomena in microgrids. This is notably a concern for both the steady-state operation of microgrid and the system resilience after disturbances. A low-inertia level will render the frequency stabilization and restoration after a disturbance more difficult. If the frequency cannot be stabilized and restored while satisfying the performance criteria, e.g., the limits on rate-of-change-of-frequency (ROCOF) and frequency nadir, then the frequency deviation can cause vibrations in machines, damage critical facilities or lead to transient instabilities. This underscores the need for appropriate enhancement of frequency stabilization methods to enhance microgrid resilience.

The microgrid inertia problem may not be fully addressed by the recently proposed virtual inertia (VI) techniques [4,5,6]. Firstly, the VI techniques typically provide the VI by regulating the DERs’ response. This paper investigates the low inertia issue which is the adequacy of the inherent rotational inertia of the system. Secondly, the VI is not an inherent physical behavior, but relies on detecting frequency deviation or ROCOF based on the power electronic control loops. Such control loops use “the active power-frequency (P-ω) control” and operate “converters as virtual synchronous machines” to “emulate inertia, damping characteristic and the primary frequency regulation” [4], vary the DER power “according to the grid frequency” [5], “reduce frequency deviations in microgrids by modifying inverter control” based on the detection of frequency [6].Thus, the VI techniques basically adjust the response of DERs after detecting the frequency deviations. Hence, supposing a large disturbance occurs at t = 0, the VI will be delivered after a time delay ∆t, which is the total time needed for implementing all of the following processes: the detection of frequency change, data transmission, signal processing, computation, converter control, and the process of increasing the DER’s power output by the converter control. However, the ROCOF equals to the instantaneous power imbalance divided by the inertia. Therefore, when a low-inertia microgrid encounters the aforementioned disturbance, it is likely that the large imbalance and lower-inertia will cause a large magnitude of ROCOF and thus lead to large frequency deviation within ∆t, i.e., before the delivery of VI. Therefore, the VI based approaches may not fully address the low inertia issue of islanded microgrids especially in the case of large disturbance.

When an islanded microgrid encounters a large power imbalance after a disturbance, the load shedding schemes, e.g., the under-frequency load shedding (UFLS) [7,8,9,10], are used to prevent the system collapse. In such load shedding schemes, it is a challenging task to determine the load curtailment amount at each step by estimating the power deficiency [7]. The recently proposed adaptive load shedding schemes [8, 9] estimate power imbalances by measuring frequency derivatives, determining the optimal amount of load to be shed, or implementing multi-step load shedding, which can help avoid the excessive curtailment. By estimating the ROCOF in the equivalent center of inertia, adaptive load shedding at each step corresponding to the frequency control response can be devised. However, the low inertia issue of microgrids will challenge the load shedding schedule as it requires the load shedding schemes response to the disturbance faster and more accurate.

To undertake this challenge, this paper proposes the primary frequency response rescheduling (PFRR) approach. For a certain operational interval, the PFRR will optimally reschedule the distributed generators (DGs) that have non-zero mechanical inertia and adjust the battery power, with the objective to limit the ROCOF and maintain the frequency nadir after the disturbance above a prescribed threshold. The contributions of the paper are listed as follows.

  1. 1)

    The PFRR strategy is proposed for enhancing the microgrid resilience in terms of frequency dynamics when the islanded microgrid encounters disturbances. The PFRR can ensure the ROCOF and frequency nadir performance criteria.

  2. 2)

    The relationships among system inertia, ROCOF, frequency nadir, primary frequency response (PFR) reserve and the microgrid primary/secondary controls are analyzed and investigated.

  3. 3)

    This work contributes to further investigation of effective resolution to the low inertia issue of microgrids.

The remainder of this paper is organized as follows. Section 2 introduces the background information. Section 3 presents the proposed PFRR, which is validated by detailed simulations in Section 4. Finally, Section 5 concludes the paper.

2 Background

The inertia, PFR, and how the PFR in the bulk power systems is modeled in the literature, are discussed as follows.

2.1 Inertia

The kinetic energy stored in a rotational mass is proportional to its moment of inertia and the square of angular velocity. For a synchronous generator, the angular speed is directly coupled with the system frequency. The amount of the kinetic energy in the system and thus the system inertia is determined by the rational inertia of the online rotating machines. In case of a disturbance mentioned in Section 1, a sudden power imbalance occurs. In the case of a power deficit caused by a loss of generation (due to either unintentional islanding or generation outage), the power deficit is automatically and instantaneously balanced by the inherent physical behavior of the rotating machines which draw on their stored mechanical kinetic energy to fill the gap between the generation and load. This is completed instantaneously without any time delays because the electrical powers (generation and consumption) in the system are balanced all the time and the frequency (coupled with the angular speed of synchronous generators) will immediately decrease after the disturbance. Hence, the conversion of the kinetic energy to the electrical energy will result in a slow-down of the synchronous generators and a drop in frequency. The inertia constants of conventional synchronous generators are in the order of 2-9 s [11]. The inertia can be provided by both generators and motors, although we focus on the generation in this work.

The analysis is analogous for the power surplus case (e.g., caused by microgrid islanding or loss of load).

2.2 PFR

Microgrids are operated in the primary, secondary and tertiary control levels (tertiary is the highest level), which provide the functions of power control, frequency/voltage restoration and system-wide coordination, respectively. A higher control level has a longer time scale. The PFR includes the primary control and the system frequency dynamics in response to a sudden power mismatch, where the latter is determined by the inertia. The traditional concept of microgrid “primary control” does not involve the PFR and frequency dynamics as it implicitly assumes that the system has adequate inertia.

The system frequency dynamics are determined by the swing equation:

$$\frac{{{\text{d}}f\left( t \right)}}{{{\text{d}}t}} = \frac{1}{H}\left( {P_{m} - P_{e} } \right)$$
(1)

where \(\frac{{{\text{d}}f\left( t \right)}}{{{\text{d}}t}}\) is the ROCOF; H is the inertia; and \(f\) is the frequency. In normal operations, the power mismatch \(P_{m} - P_{e}\) is small, and \(f\left( t \right)\) is close to the rated frequency. In the power deficit case, \(P_{m}\) reduces and the value of power mismatch becomes significant (negative), and the frequency starts declining as determined by (1). Next, the microgrid primary control begins to take action. For synchronous gentrater couple DERs, their governors will respond by increasing mechanical power to re-establish the balance between \(P_{m}\) and \(P_{e}\). For inverter-coupled DERs, their primary control loop will increase the power output according to the sensed frequency drop as determined by their droop characteristics. The system frequency does not show significant variations across buses even in a large-scale power system [11]. So for a microgrid, it is reasonable to assume that the system frequency is the same at different nodes in the microgrid.

The limitation of the VI techniques lies in the fact that a microgrid with a higher share of inverter-coupled DERs has a lower value of \(H\). Therefore, according to (1), it will have very large ROCOF when encountering a power deficit. Such a large ROCOF is likely to cause a very large frequency deviation within \(\Delta t\), i.e., a very large value of \(\frac{{{\text{d}}f\left( t \right)}}{{{\text{d}}t}}\Delta t\). Here \(\Delta t\) is used to denote the time delay of delivering the VI, i.e., the time between the starting of the disturbance (at which the frequency starts changing) and the full delivery of the VI. As mentioned earlier, it includes the time needed for implementing the detection of frequency change, data transmission, signal processing, computation, converter control, and the process of increasing the DER’s power output by the converter control. In contrast, the rotational inertia is built on the inherent physical law and always supports the frequency instantaneously.

2.3 Modeling PFR and governor ramp

The PFR problem is first analyzed in [12], which developes a detailed model of the governor primary response for generation dispatch. Later, governor rate-constrained optimal power flow and dynamics-constrained frequency unit commitment are examined in [13, 14].

Governor ramp rate cg represents the prime mover ramping restriction, i.e., the fastest rate of change of mechanical power output in response to sudden frequency deviations [15]. Reference [15] proves that the necessary (but insufficient) condition for ensuring the frequency nadir limit is:

$$\left\{ {\begin{array}{*{20}l} {R_{g} \le P_{g}^{nad} = \frac{{2H\left( {f_{0} - f_{nad} } \right)}}{L}c_{g} } \hfill \\ {\mathop \sum \limits_{g} R_{g} \ge L} \hfill \\ \end{array} } \right.$$
(2)

where \(f_{0}\) and \(f_{nad}\) are the nominal frequency and nadir threshold, respectively; \(R_{g}\) is the PFR reserve of unit \(g\); pnadg is the upper limit of \(R_{g}\); and \(L\) is the power mismatch imposed by the disturbance. Equation (2) means that when a system with the inertia of \(H\) and individual governor ramp rate of \(c_{g}\) encounters a sudden power loss of size \(L\), its frequency can be kept above the nadir \(f_{nad}\) if its total governor primary response reserve \(\sum\limits_{g} {R_{g} }\), constrained in (2), is enough to cover \(L\).

3 The proposed PFRR approach

3.1 Frequency nadir criterion

Different from [15, 16], the DER with non-zero mechanical inertia in a microgrid may or may not have a governor in its prime mover. However, the PFR mechanism discussed in [15] still applies to this paper. Therefore, we use a more general term source (“source power” and “source ramp rate” which replaces “mechanical power” and “governor ramp rate” in [15], respectively) when discussing the physical ramping restrictions in the prime mover or power source of a controllable DER in the microgrid.

The development of PFR constraint is presented below. In case of a disturbance (due to generation outage, load step change, unintentional islanding), the microgrid experiences a sudden power shortage of magnitude \(L\). The dynamic response of the overall source power to the mismatch with a constant overall source ramp rate of \(c\) is depicted in Fig. 1 , where \({\bar{P}}^{dis}\) and \({P}^{batt}\) are the maximum discharging power and the power of the energy storage; tB is the time delay of dead band [13]; and c denotes a constant overall source ramp rate of c. In [15, 16], the source power and the source ramp rate are the mechanical power and its ramp rate of generators in the bulk power system, respectively. In this paper, they refer to the mechanical or source power input of a controllable DG and its ramp rate (the DG may or may not be converter-coupled), respectively. The ramp rate is not constant in reality, but a constant rate is used here and it is assumed that such constant value is a conservative estimate so that the response will be always faster than estimated.

Fig. 1
figure 1

PFR model

The derivation of the constraints of the proposed PFRR is given below. For the PFR model depicted in Fig. 1, integrating (1), we have:

$$\begin{aligned} \int _{0}^{{t_{nad} }} \frac{{{\text{d}}f\left( t \right)}}{{{\text{d}}t}}{\text{d}}t & = f\left( {t_{nad} } \right) - f\left( 0 \right) = f_{nad} - f_{0} \\ & = \frac{1}{H} \int _{0}^{{t_{nad} }} \left( {P_{m} \left( t \right) - P_{e} \left( t \right)} \right){\text{d}}t \\ \end{aligned}$$
(3)

Therefore,

$$H\left( {f_{0} - f_{nad} } \right) = \int _{0}^{{t_{nad} }} \left( {P_{e} \left( t \right) - P_{m} \left( t \right)} \right){\text{d}}t$$
(4)

The right-hand side of (4) is geometrically represented by the area of the shaded region in Fig. 1. Hence, (4) is transformed to:

$$H(f_{0} - f_{nad} ) = \left( {L - \frac{1}{2}ct_{B} } \right)t_{B} + \frac{{\left( {L - ct_{B} - \sum\limits_{j} {(\bar{P}_{j}^{dis} - P_{j}^{batt} )} } \right)^{2} }}{2c}$$
(5)

where  \( \bar{P}_{j}^{dis}\) is maximum discharging power of battery j; and \(P_{j}^{batt}\) is the power of the energy storage unit j (its positive and negative values denote the discharging and charging powers, respectively). Considering that \(ct_{B}\)<<L, we ignore \(ct_{B}\) on the right-hand of (5). According to [15], we can obtain the minimal overall ramp rate from (5):

$$c_{ \hbox{min} }^{UP} = \frac{1}{2}\frac{{\left( {L - \sum\limits_{j} {(\bar{P}_{j}^{dis} - P_{j}^{batt} )} } \right)^{2} }}{{H(f_{0} - f_{nad} ) - Lt_{B} }}$$
(6)

Next, we derive the frequency nadir constraint as follows. According to [15], the PFR constraint for a single unit i is:

$$R_{i}^{UP} \le c_{i} \Delta t = c_{i} \frac{{L - \sum\limits_{j} {(\bar{P}_{j}^{dis} - P_{j}^{batt} )} }}{{c_{ \hbox{min} }^{UP} }}$$
(7)

where \(R_{i}^{UP}\) and \(c_{i}\) are the PFR reserve and the PFR governor ramp rate of non-zero-inertia DGs (NZI-DG) i, respectively. Substitute (6) into (7), we have:

$$R_{i}^{UP} \le 2c_{i} \frac{{H(f_{0} - f_{nad} ) - Lt_{B} }}{{L - \sum\limits_{j} {(\bar{P}_{j}^{dis} - P_{j}^{batt} )} }}$$
(8)

Therefore, (8) together with (9) are sufficient conditions for the system to satisfy the PFR criterion in case of power shortage:

$$\mathop \sum \limits_{i} R_{i}^{UP} \ge L - \mathop \sum \limits_{j} \left( {\bar{P}_{j}^{dis} - P_{j}^{batt} } \right)$$
(9)

In case of a sudden power surplus of magnitude \(L\) caused by a disturbance, analogous derivation can be performed and therefore (10) together with (11) are sufficient conditions for the system to satisfy the PFR criterion:

$$R_{i}^{DN} \le 2c_{i} \frac{{H(f_{nad} - f_{0} ) - Lt_{B} }}{{L - \sum\limits_{j} {(\bar{P}_{j}^{ch} + P_{j}^{batt} )} }}$$
(10)
$$\mathop \sum \limits_{i} R_{i}^{DN} \ge L - \mathop \sum \limits_{j} \left( {\bar{P}_{j}^{ch} + P_{j}^{batt} } \right)$$
(11)

where \(\bar{P}_{j}^{ch}\) is charging power (positive parameter) of battery j; and \(R_{i}^{DN}\) is the PFR reserve when DG i is ramping down.

Particularly, in the case of resource i being limited by its generation capacity (i.e., its capacity reserve is less than the right-hand side of (8) or (10)), its generation capacity constraint will ensure \(R_{i}\) can be delivered before \(t_{nad}\). Otherwise, constraint (8) or (10) will be active and will ensure \(R_{i}\) can be delivered before \(t_{nad}\). Furthermore, \(c_{i}\) is used in both (8) and (10) as we assume the same ramp rate in up and down directions. If they are not the same, different parameters should be used.

\(c_{i}\) can be obtained from stress test (a measurement of the generation resources) [17] and \(H\) can be estimated from empirical data [18] or online testing [19].

3.2 ROCOF criterion

ROCOF is limited by the constraint below:

$$\gamma_{0} = \frac{{{\text{d}}f\left( t \right)}}{{{\text{d}}t}} = \frac{L}{2H} \le \gamma^{{{ \hbox{max} }}}_0$$
(12)
$$\gamma_{{}}^{UP} = \frac{{{\text{d}}f(t)}}{{{\text{d}}t}} = \frac{{L - \sum\limits_{j} {(\bar{P}_{j}^{dis} - P_{j}^{batt} )} }}{2H} \le \gamma_{\text{max}}^{UP}$$
(13)
$$\gamma_{{}}^{DN} = \frac{{{\text{d}}f(t)}}{{{\text{d}}t}} = \frac{{L - \sum\limits_{j} {(\bar{P}_{j}^{ch} + P_{j}^{batt} )} }}{2H} \le \gamma_{\text{max}}^{DN}$$
(14)

where \(\gamma\) is the ROCOF; \(\gamma_{0}\) is immediately after the disturbance (t = 0+); and \(\gamma^{UP}\) and \(\gamma^{DN}\) are the ROCOF after immediately battery discharging and charging in power-shortage and power-surplus cases, respectively. \(\gamma_{0}\) is considered because battery storage or any VI device cannot provide mechanical/rotational inertia as discussed in Section 2. Immediately after the disturbance (t = 0+), ROCOF of the system is arrested by \(H\). Hence, the ROCOF constraint is given as (12). In fact, constraint (12) not only limits the ROCOF caused by the disturbance but also indicates a fact that the microgrid should have enough mechanical/rotational inertia to support its frequency dynamic response immediately after the disturbance.

The system inertia is calculated as:

$$H = \frac{1}{{f_{0} }}\mathop \sum \limits_{i} J_{i} P_{i}^{ \hbox{max} }$$
(15)

where \(J_{i}\) is the inertia constant of unit I; \(f_{0}\) is the nominal frequency; and \(H\) is in (kW·s/Hz). Hence, substitute (15) into (12)-(14), the ROCOF constraints are written as:

$$\mathop \sum \limits_{i} J_{i} P_{i}^{ \hbox{max} } \ge \frac{{Lf_{0} }}{{2\gamma_0^{{{ \hbox{max} }}} }}$$
(16)
$$\sum\limits_{i} {J_{i} } P_{i}^{\hbox{max} } \ge \frac{{\left( {L - \sum\limits_{j} {(\bar{P}_{j}^{dis} - P_{j}^{batt} )} } \right)f_{0} }}{{2\gamma_{\text{max}}^{UP} }}$$
(17)
$$\sum\limits_{i} {J_{i} } P_{i}^{\hbox{max} } \ge \frac{{\left( {L - \sum\limits_{j} {(\bar{P}_{j}^{ch} + P_{j}^{batt} )} } \right)f_{0} }}{{2\gamma_{\text{max}}^{DN} }}$$
(18)

where the different ROCOF limit can be specified.

3.3 PFRR model

In this paper, the DGs with non-zero mechanical inertia (typically micro-turbines) are referred to as NZI-DGs. While in comparison, the converter-coupled wind and PV units which provide very small inertia are referred to as zero-inertia DGs (ZI-DGs).

The goal of the proposed PFRR is to reschedule the NZI-DG and/or adjust the battery power to provide inertia and PFR ramp capability for the purpose of enhancing the dynamic performance of microgrid frequency in the given operational interval.

The PFRR is formulated below:

$${ \hbox{min} }\ \varvec{s}^{\text{T}} \varvec{I} +\varvec{\alpha}^{\text{T}} \varvec{P} +\varvec{\beta}^{\text{T}} \varvec{B}$$
(19)

s.t.

$$I_{i} \underset{\raise0.3em\hbox{$\smash{\scriptscriptstyle-}$}}{P}_{i} \le P_{i} \le I_{i} \bar{P}_{i}$$
(20)
$$\left\{ {\begin{array}{*{20}c} {P_{i} + R_{i}^{UP} \le I_{i} \bar{P}_{i} } \\ {P_{i} - R_{i}^{DN} \ge I_{i} \underset{\raise0.3em\hbox{$\smash{\scriptscriptstyle-}$}}{P}_{i} } \\ \end{array} } \right.$$
(21)
$$ \left\{ {\begin{array}{*{20}c} {{\mathbf{0}} \le \varvec{R}^{UP} \le \overline{{\varvec{R}^{UP} }} } \\ {{\mathbf{0}} \le \varvec{R}^{DN} \le \overline{{\varvec{R}^{DN} }} } \\ \end{array} } \right. $$
(22)
$$- \bar{\varvec{P}}^{ch} \le \varvec{P}^{batt} \le \bar{\varvec{P}}^{dis}$$
(23)
$$\left\{ {\begin{array}{*{20}l} {\varvec {B} \ge \varvec{P}^{batt} } \hfill \\ {\varvec {B} \ge - \varvec{P}^{batt} } \hfill \\ \end{array} } \right.$$
(24)
$$\left\{ \begin{aligned} R_{i}^{UP} \le 2c_{i} \frac{{H(f_{0} - f_{nad} ) - Lt_{B} }}{{L - \sum\limits_{j} {(\bar{P}_{j}^{dis} - P_{j}^{batt} )} }} \hfill \\ R_{i}^{DN} \le 2c_{i} \frac{{H(f_{nad} - f_{0} ) - Lt_{B} }}{{L - \sum\limits_{j} {(\bar{P}_{j}^{ch} + P_{j}^{batt} )} }} \hfill \\ \end{aligned} \right.$$
(25)
$$\left\{ {\begin{array}{*{20}c} {\mathop \sum \limits_{i} R_{i}^{UP} \ge L - \mathop \sum \limits_{j} \left( {\bar{P}_{j}^{dis} - P_{j}^{batt} } \right)} \\ {\mathop \sum \limits_{i} R_{i}^{DN} \ge L - \mathop \sum \limits_{j} \left( {\bar{P}_{j}^{ch} + P_{j}^{batt} } \right)} \\ \end{array} } \right.$$
(26)
$$\left\{ \begin{aligned} & \sum\limits_{i} {I_{i} J_{i} } P_{i}^{\hbox{max} } \ge \frac{{Lf_{0} }}{{2\gamma_{0}^{\text{max}} }} \\ & \sum\limits_{i} {I_{i} J_{i} } P_{i}^{\hbox{max} } \ge \frac{{\left( {L - \sum\limits_{j} {(\bar{P}_{j}^{dis} - P_{j}^{batt} )} } \right)f_{0} }}{{2\gamma_{\text{max}}^{UP} }} \\ & \sum\limits_{i} {I_{i} J_{i} } P_{i}^{\hbox{max} } \ge \frac{{\left( {L - \sum\limits_{j} {(\bar{P}_{j}^{ch} + P_{j}^{batt} )} } \right)f_{0} }}{{2\gamma_{\text{max}}^{DN} }} \\ \end{aligned} \right.$$
(27)

In the model, P and Pbatt are the vectors of NZI-DG power and battery power, respectively; \(\bar{P}_{i}\) and \(\underset{\raise0.3em\hbox{$\smash{\scriptscriptstyle-}$}}{P}_{i}\) are the upper and lower power limits of unit i; and \(J_{i}\) is the inertia time constant of unit i. In (19), α, β and s are the cost factors; B is the vector for calculating battery operational cost; and the three terms are the start-up cost, DG operational cost, and battery charging/discharging cost (accounting for battery degradation), respectively. Binary variable \(I_{i}\) is the NZI-DG status indicator (\(I_{i}\) = 1/0 mean ON/OFF).

Constraints (20)-(22) place the bounds on the DG power \(P_{i}\) and PFR reserves \(R_{i}^{UP}\) and \(R_{i}^{DN}\). Constraints (23)-(24) are the battery power constraints. Constraints (25)-(27) are the PFR constraints proposed earlier. It is noticed that (25), after being reformulated, will include the bilinear terms \(R_{i}^{UP} P_{j}^{batt}\) and \(R_{i}^{DN} P_{j}^{batt}\). They are linearized using McCormick’s envelope [20].

4 Case Study

4.1 Simulation setup

In this section, the proposed PFRR is validated by simulations on the modified IEEE 123-node test feeder system. Details about the system can be found in [3] and [21]. The optimization problems are solved by CPLEX 12.4 and the time-domain simulation is performed in MATLAB Simulink.

The test system forms an islanded microgrid. Ten NZI-DGs are connected in the system (the connection locations are depicted in [3]). Each of them has a capacity of \(\bar{P}_{i}\) = 100 kW, \(\underset{\raise0.3em\hbox{$\smash{\scriptscriptstyle-}$}}{P}_{i}\) = 0, governor (PFR) ramp rate of ci = 30 kW/s, and inertia time constant of \(J_{i}\) = 3 s. The battery has the largest charging/discharging power of 100 kW and action time assumed as tB = 0.001 s (the battery parameter). In each case, the base-case load is 500 kW, the power change (surplur/shortage) is applied by a step change of load. It is assumed that the collected mechanic inertia provided by all the ZI-DGs is equal to the inertia of a single NZI-DG.

The simulation is performed using the modified governor (DEGOV) model [22] integrated with microgrid primary and secondary control functions depicted in Fig. 2, where ω, ω0, ω2nd and ωref denote the detected, rated, second-control and reference frequencies, respectively, and a symbol T with a subscript is a time constant in the control.The default DEGOV parameters used in the industry are provided in [22]. Considering that microgrids can have smaller time constants, the time constants (parameters) are modified as T1 = 1 s, T2 = T5 = T6 = 0.2 s, T3 = T4 = 1 s, Td = 0.01 s, K = 1, Tmax/Tmin = 1/0 p.u.. The detailed microgrid primary and secondary control functions are given in [2]. ci can be estimated from the governor stress test [17]. In dynamic simulations, ci which represents the fastest ramp rate of governor mechanical power is implemented in the governor model by adding a rating limiter to the output as proved in [16]. In Fig. 2, a rate limiter (−Tc,+Tc) is added.

Fig. 2
figure 2

Modified governor (DEGOV) model integrated with microgrid primary and secondary control functions

For simplicity, the simulation is only performed for the power shortage case. In each simulated case, the power shortage is applied by switching on an additional load at t = 2 s. Rate frequency is 60 Hz. Frequency nadir threshold is defined as 59.0 Hz (for all test cases). Analogous simulation can be conducted for the power surplus case.

4.2 Simulation results

For a certain operational time interval, the proposed PFRR is used to reschedule NZI-DGs and battery for improving the frequency dynamic performance. The performance is compared in the following three cases. The status and power of the NZI-DGs in these cases are shown in Table 1. The storage at steady-state for Cases 1-3 are -50, 0, 0 kW, respectively.

Table 1 Control actions and NZI-DG power in Cases 1-3

The frequency dynamic performance under the proposed PFRR is shown in Fig. 3. It can be seen that the frequency response can be divided into three phases: the frequency declines before the action of battery (ROCOF limited by inertia), the frequency declines after the power injection of battery (ROCOF is reduced), and frequency reaching nadir point (the actual nadir is successfully maintained above the prescribed threshold by the PFRR).

Fig. 3
figure 3

Frequency response using the proposed PFRR (Case 2)

The simulation results in the three cases are compared in Table 1 and Fig. 4, which are discussed as follows.

Fig. 4
figure 4

Comparison of frequency response performances among different cases

Case 1: it is benchmark (PFRR is not used). The DGs are scheduled by the economic dispatch model (the economic dispatch model is not the focus of this paper). The sum of the maximum power of the ZI-DGs (wind and PV) is 550 kW. Thus the battery is being charged at 50 kW as shown in Table 1. The microgrid mechanical inertia with all the NZI-DGs off is only 5 kW·s/Hz, which is provided by the ZI-DG.

In fact, this is a case that all the online DGs are ZI-DGs. So the microgrid has zero rotational inertia. As shown by the blue curve in Fig. 4, the frequency dropped below the nadir point (collapse) before the time at which the battery power can arrest the frequency. This is because of the very large ROCOF due to the zero-inertia of the system. The power injection of the battery can help arrest the frequency decline, but the frequency drops below the nadir threshold before it is being controlled by the action of battery. This verifies the necessity of implementing the PFRR.

Case 2: the proposed PFRR tool is used to adjust the DG schedule and battery power in preparation for a sudden power shortage/surplus of 150 kW (applied by a step change of load). The results show that the battery power at steady state is regulated at 0 kW and two NZI-DGs are turned on, and the total power of NZI-DG is dispatched at 482 kW, which are determined by the solution to the PFRR model. On one hand, each of them has an inertia constant of 3 s so they increase the mechanical inertia of microgrid from 5 kW·s/Hz to 20 kW·s/Hz. On the other hand, they will provide the PFR ramp rate (up and down). Suppose only PFR ramp-up is considered, it could be expected that their output will be equal to their Pmin (0) due to the minimization of 15.1.

The frequency response is shown by the green curve in Fig. 4. It can be seen that the initial frequency drop is arrested by the inertia provided by the two DGs, which is different from Case 1. The battery injects 100 kW (full capacity) to compensate a portion of the power shortage. This power injection after tB = 2.001 s (the disturbance occurs at t0 = 2 s) should be differentiated from the battery power dispatch shown in Table 1. Once the battery takes action, the ROCOF is approximately 1.67 Hz/s and will be reduced as the NZI-DGs providing the primary frequency response. As the mechanical power of NZI-DG ramps up, the gap between the input and output power of the generator becomes smaller. When it becomes zero, the frequency reaches its nadir point. Fig. 4 shows that the actual frequency nadir is successfully kept above the prescribed value (59.0 Hz). Next, the primary and secondary control of the microgrid starts to restore the frequency.

This verifies that the following processes when the microgrid adjusted by the proposed PFRR experiences a disturbance: the ROCOF is limited by the system inertia; the frequency nadir point is kept above the secured value by the PFR source ramp (governor ramp in micro-turbines). And then the microgrid primary and secondary controls will increase the DG output and restore the frequency back to the rated value.

Case 3: similar to Case 2, the proposed PFRR tool is used in this case to adjust the DG schedule and battery power in preparation for a sudden power shortage/surplus with the same prescribed threshold of frequency nadir. But the power change is 200 kW.

In this case, in preparation for the higher level of power shortage, more NZI-DGs are needed to provide the inertia and the PFR to the microgrid. The system inertia increases to 30 kW·s/Hz.

The frequency response is shown by the red curve in Fig. 4. Figure 4 shows the actual ROCOF is 1.667 Hz/s after the battery action and the actual frequency nadir is also kept above the prescribed threshold (59.0 Hz) even though the power shortage is larger than that in Case 2. More NZI-DGs are needed to be online to support the required frequency dynamic performance. This is because the system needs a larger PFR ramp-up capability to increase the mechanical power faster and therefore maintain the frequency nadir point above the threshold even under a larger disturbance.

Case 4: An additional comparative case is presented in Fig. 5, in which the same PFRR as that in Case 2 is applied, but ci of each NZI-DG is reduced to be 15 kW/s. The results show that, although the initial ROCOF is the same, the DGs provide slower PFR ramp, the frequency and therefore the system will have larger frequency declines and the actual nadir point will be below the threshold (59.0 Hz).

Fig. 5
figure 5

Frequency response in Case 4

5 Conclusion

In this paper, the PFRR strategy is proposed for enhancing the microgrid resilience in terms of frequency dynamics in case of disturbances in the islanded operation mode. The PFRR can ensure the ROCOF and frequency nadir performance criteria. The relationships among system inertia, ROCOF, frequency nadir, PFR as well as primary/secondary controls of the microgrid are analyzed and investigated. These measures enhance the microgrid resilience and survivability, which is essential for serving the critical loads in risky events. This work also contributes to further investigation of effective resolution to the low inertia issue of microgrids.

Future research will further investigate the impacts of the ramp rate of the battery and size on the frequency nadir after a sudden power change in the islanded operation mode.