Skip to Content
EnergiesEnergies
  • Article
  • Open Access

1 December 2026

21 Pages

Time-Varying Inertia Estimation and Economic Dispatch of Islanded Microgrids Considering a Frequency Security Domain

and
School of Information Engineering, Nanchang University, Nanchang 330031, China
*
Author to whom correspondence should be addressed.

Abstract

This paper proposes a time-varying inertia estimation and economic dispatch method incorporating an inertia safety domain. First, the inertia safety domain is established based on frequency-security constraints and post-contingency inertia availability to determine the admissible inertia range in each period. Second, a fixed-delay online residual physics-informed neural network (Res-PINN) is developed to estimate time-varying inertia and quantify test-set estimation errors. Finally, the estimation error and contingency risk are combined to construct an adaptive inertia margin, which is embedded in a model predictive control dispatch model to dynamically adjust the inertia setting with operating conditions. A 24-h microgrid case study shows that the proposed method achieves zero inertia violations and reduces the average virtual synchronous generator (VSG) inertia, expressed on the system base, from 9.8817 s to 6.5499 s (33.72%), compared with the fixed-safe strategy.

1. Introduction

In islanded microgrids, distributed energy resources such as wind turbines, photovoltaic units, and energy storage systems are predominantly interfaced through power electronic converters. As the share of synchronous generators decreases, physical inertia declines and frequency-support capability become increasingly dependent on operating conditions. Load increases, renewable power drops, or conventional generator outages may cause excessive RoCoF and lower frequency nadirs, potentially leading to frequency violations [1,2]. Inertia and frequency security constraints should therefore be explicitly incorporated into the economic dispatch of islanded microgrids [3].
Virtual synchronous generator (VSG) control is widely applied to energy-storage converters and renewable interfaces to improve frequency dynamics in low-inertia systems [4]. By emulating synchronous-machine rotor dynamics, VSGs provide equivalent inertia and damping and support frequency during the initial disturbance period [5]. In an islanded microgrid containing a diesel generator and wind–solar–storage VSG branches, total inertia comprises the physical inertia of conventional units and the virtual inertia of VSGs. The former is mainly determined by equipment parameters, whereas the latter is adjustable and may vary with operating conditions and control strategies [6,7]. A fixed-inertia assumption therefore fails to reflect time-varying frequency-support capability and may cause either inertia shortages or unnecessary redundancy from persistently high inertia settings [8,9].
Existing inertia-estimation methods mainly include analytical calculation, disturbance-response identification, and data-driven estimation [10,11]. Analytical methods are physically interpretable but sensitive to model parameters and RoCoF measurements. Disturbance-response methods generally require a complete transient process and are therefore more suitable for offline analysis. Purely data-driven methods can capture nonlinear frequency responses but do not explicitly enforce the governing dynamics [12]. Physics-informed neural networks (PINNs) incorporate governing-equation residuals into training to improve physical consistency [13]. In power systems, this approach has been applied to online inertia estimation using PMU measurements and swing-equation parameter identification [14,15]. Nevertheless, inertia estimates alone cannot guarantee dispatch security. Estimation errors, contingency severity, and frequency-security limits must also be incorporated into the economic dispatch model.
The main contributions are as follows:
(1)
Security boundary characterization: An inertia safety domain is established by combining the minimum inertia requirement determined from RoCoF and frequency-nadir constraints with the maximum post-contingency available inertia.
(2)
Online inertia estimation: A Res-PINN-based online estimator is developed for time-varying inertia, and its test-set estimation errors are quantified.
(3)
Adaptive decision-making: Estimation errors and contingency risks are converted into an adaptive inertia margin and embedded in model predictive control (MPC) dispatch, reducing conservatism while maintaining security.
The remainder of this paper is organized as follows. Section 2 formulates the inertia safety domain. Section 3 presents the Res-PINN-based inertia estimation method. Section 4 develops the adaptive-margin MPC dispatch model. Section 5 provides case studies, and Section 6 concludes the paper.

2. Inertia Safety Domain Modeling for Islanded Microgrids

2.1. Equivalent Inertia and Contingency Model

The dispatch system considered in this study is an islanded microgrid comprising a conventional generator, wind and photovoltaic generation, and a storage-based VSG branch, as shown in Figure 1. The diesel generator provides active-power support and fixed physical inertia, whereas the storage-based VSG provides adjustable virtual inertia and fast frequency support. To incorporate frequency-security requirements into dispatch, an inertia safety domain is constructed to characterize the feasible post-contingency inertia range. Its lower boundary represents the minimum inertia required to satisfy the frequency-security constraints, whereas its upper boundary represents the maximum physically available inertia under the corresponding operating state and contingency.
Figure 1. Configuration of the wind–solar–storage–diesel microgrid.
Since the devices have different rated capacities, their inertia contributions are converted to a common system base. Let Sbase, SG, and SVSG denote the system base capacity, conventional-generator capacity, and VSG-branch capacity, respectively, and let HG and HVSG(k) denote their inertia constants. The equivalent system inertia during normal operation in dispatch period k is expressed as:
H eq ( k ) = x G ( k ) H G S G + H VSG ( k ) S VSG S base
where χG(k) is the operating-state variable of the conventional generator, equal to 1 when online and 0 otherwise. Equation (1) shows that the equivalent system inertia comprises the physical inertia of the conventional generator and the virtual inertia of the VSG, both converted to the same capacity base. The former is determined by equipment parameters, whereas the latter is adjustable through VSG control and therefore serves as a dispatchable inertia resource.
Different contingencies alter the inertia available after the disturbance. To avoid overestimating frequency support following generator disconnection, the post-contingency available inertia is defined as:
H ava ( k ) = χ G ( k ) H G S G + H VSG ( k ) S VSG S base
where χ G c ( k ) indicates whether the conventional generator inertia remains available after the contingency. It equals 1 for contingencies other than generator disconnection and 0 when the conventional generator is disconnected. Equation (2) therefore distinguishes the effective inertia support under different contingency types.
The VSG virtual inertia is constrained by its control parameters and storage operating conditions:
H VSG min ≤ H VSG ( k ) ≤ H VSG max
Equations (2) and (3) define the post-contingency available-inertia bounds for each period. When the conventional generator remains connected, both physical and virtual inertia contribute to system support. Following generator disconnection, inertia support is provided primarily by the VSG branch. The inertia safety domain therefore depends on the VSG setting, contingency type, and generator operating state.
Three single contingencies are considered in each dispatch period: a sudden load increase, a reduction in renewable generation, and a diesel-generator outage. For each contingency, the power deficit and the remaining system inertia are evaluated separately.
Let PL(k), PW(k), PPV(k), and PG(k) denote the load, available wind power, available photovoltaic power, and conventional-generator output in period k, respectively. The power deficits caused by a load increase, renewable generation reduction, and conventional-generator outage are respectively given by:
P CS L ( k ) = α L P L ( k )
P CS RE ( k ) = α W P W ( k ) + α PV P PV ( k )
P CS G ( k ) = x G ( k ) P G ( k )
where αL, αW, and αPV are the load-increase ratio, wind-power-drop ratio, and photovoltaic-power-drop ratio, respectively. The three corresponding power deficits are denoted by P CS L ( k ) , P CS RE ( k ) , and P CS G ( k ) . When the conventional generator is offline, xG(k) and the generator-outage deficit is zero. The maximum power deficit among these contingencies is defined as:
P CK ( k ) = max { P CS L ( k ) , P CS RE ( k ) , P CS G ( k ) }
Equation (7) gives the maximum power deficit but does not necessarily identify the contingency requiring the highest VSG inertia. The latter is determined by evaluating the frequency-security requirements and the remaining physical inertia for each contingency separately.

2.2. Minimum Inertia Requirement and Inertia Safety Domain

During the initial stage of a disturbance, the frequency deviation remains small, and RoCoF is mainly determined by the power imbalance and system inertia. To limit the initial frequency decline, the RoCoF constraint should be satisfied [16]:
d f d t   ≤   R max
where Rmax is the maximum allowable RoCoF. The minimum inertia required to satisfy this constraint is calculated separately for each contingency [17]:
H req R , ( c ) ( k ) = f 0 P CS ( c ) ( k ) 2 S base R max
where P CS c k denotes the power deficit under contingency c, and f0 and Sbase are the nominal frequency and system base capacity, respectively.
The RoCoF constraint alone cannot fully ensure frequency security because the frequency may continue to decline after the initial disturbance. Therefore, the frequency nadir constraint is also imposed [18]:
f nadir ( c ) ( k )   ≥   f min
where f nadir c k is the frequency nadir under contingency c, and fmin is the minimum acceptable frequency. For each contingency, the nadir constraint is checked at the minimum physically available inertia. If the constraint is already satisfied, it is regarded as inactive; otherwise, the minimum required inertia is determined by a one-dimensional search using the reduced-order frequency-response model. The model parameters are listed in Table A1. Combining the RoCoF and frequency-nadir constraints gives:
H req min , ( c ) ( k ) = max H req R , ( c ) ( k ) , H req F , ( c ) ( k )
The required VSG inertia for each contingency is obtained by subtracting the remaining physical inertia from the minimum inertia requirement. The limiting contingency, denoted by c*(k), is identified by the largest required VSG inertia rather than the largest power deficit.
For the limiting contingency c*(k), the lower boundary of the inertia safety domain is defined as:
H SIL ( k )   =   H req min , ( c * ) ( k )
where HSIL(k) denotes the lower boundary of the inertia safety domain, representing the minimum post-contingency inertia required to satisfy the RoCoF and frequency-nadir constraints under the limiting contingency.
The upper boundary is determined by the maximum post-contingency available inertia and depends on the contingency type, the VSG inertia limit, and the storage operating state:
H MIL ( k )   =   χ G c * ( k ) H G S G + H VSG max ( k ) S VSG S base
where HMIL(k) denotes the upper boundary, and H VSG max is the maximum allowable virtual inertia of the VSG branch. When the limiting contingency is conventional-generator disconnection, its physical inertia is unavailable; otherwise, it remains included in the post-contingency inertia.
The upper boundary represents the physical availability ceiling of inertia rather than a stability-related upper safety limit and does not imply that larger inertia is dynamically unsafe.
Accordingly, the inertia safety domain under the limiting contingency is expressed as:
H SIL ( k )   ≤   H ava ( k )   ≤   H MIL ( k )
A feasible domain indicates that the post-contingency frequency-security requirements can be satisfied by adjusting the VSG inertia. If the lower boundary exceeds the upper boundary, the available inertia is insufficient, and additional measures such as increased fast frequency support, revised generator commitment, or greater storage reserve are required.

3. Online Estimation of Time-Varying Inertia

In microgrids with a high penetration of power-electronic devices, storage-based VSGs provide equivalent inertia and damping through their control loops. Because virtual inertia is determined by control parameters and operating conditions, the available frequency support varies over time [19,20,21]. Neural network-based methods have also been applied to continuous and multiarea inertia estimation [22,23].
An online inertia-estimation model is developed using simulated data from a wind–storage VSG microgrid. As shown in Figure 2, frequency and active power responses are measured at the VSG AC terminal upstream of the line impedance. Frequency deviation, active-power disturbance, RoCoF, and time features are then constructed as inputs to the Res-PINN for time-varying inertia estimation.
Figure 2. Wind–storage VSG microgrid and measurement locations.
Online estimation can only use current and historical frequency and power responses. A fixed-delay sliding window is therefore adopted to extract local dynamic features and estimate the inertia at a delayed target instant, as illustrated in Figure 3.
Figure 3. Online Res-PINN framework for time-varying inertia estimation.
Let tk denote the sampling instant, L denote the window length, l denote the fixed delay, and x(t) denote the input feature vector. The fixed-delay input window and estimation mapping are expressed as:
X k = x ( t k − L + 1 ) , x ( t k − L + 2 ) , ⋯ , x ( t k )
H ^ ( t k − l )   =   F θ ( X k )
where Fθ(⋅) denotes the trainable online Res-PINN, Xk is the input window at time tk, and H ^ ( t k − l ) is the estimated inertia at the delayed target instant. Because the window contains only current and historical measurements, the estimator satisfies causality. The fixed delay provides a compromise between real-time performance and inertia identifiability.
The input features are derived from frequency and active-power responses and include frequency deviation, active-power disturbance, causally calculated RoCoF, and normalized time describing the relative position within the disturbance process. The feature vector at each sampling instant is:
x ( t ) = τ ( t ) , Δ f ( t ) , Δ P ( t ) , Δ f . ( t )
All features are standardized before being fed into the network. The Res-PINN uses residual blocks to extract temporal dynamics within the input window and outputs the inertia estimate at the target instant [15].
To improve physical consistency, a residual based on the equivalent swing equation is incorporated into training [24]. Neglecting high-frequency electromagnetic transients and retaining the dominant frequency dynamics gives:
2 H ( t ) Δ f . ( t ) + D eq Δ f ( t ) + Δ P ( t ) = 0
where H(t) is the time-varying inertia to be estimated and Deq is the equivalent damping coefficient. The corresponding physical residual is:
r ( t ) = 2 H ^ ( t ) Δ f ˙ ( t ) + D eq Δ f ( t ) + Δ P ( t )
The training loss is defined as:
L = λ H L H + λ phys L phys
The two loss terms are defined as L H = 1 N ∑ i = 1 N H ^ i − H i 2 and Lphys = 1 N ∑ i = 1 N r i 2 , where N is the number of training samples. The weights are set to λH = 1 and λphys = 0.005, with the equivalent damping coefficient fixed at Deq = 10. The physical residual provides a soft constraint on the estimated inertia [25].
The scheduled VSG inertia is a controller setting, whereas the estimator identifies the equivalent inertia reflected in the measured frequency–power response. Because the estimation and dispatch models use different system configurations, the estimated trajectory is not directly imposed on the 24-h dispatch. Instead, the test-set relative-error statistics are used to construct the adaptive inertia margin after all inertia contributions are expressed on the common system base.

4. Error-Aware Adaptive-Margin MPC Dispatch Model

4.1. Adaptive Inertia Margin

The lower boundary of the inertia safety domain derived above represents the minimum inertia required for frequency security. To account for online estimation errors, an adaptive inertia margin is added to this lower boundary and incorporated into a receding horizon MPC framework for 24-h economic dispatch [26]. The model takes the load, renewable generation, state of charge (SOC), contingency power, and minimum inertia requirement as inputs and optimizes the conventional generator output, storage power, fast frequency support, and VSG virtual inertia.
The risk factor is calculated using the maximum contingency power deficit PCS(k) defined in (7), with P CS min and P CS max denoting its minimum and maximum values over the dispatch horizon, respectively:
ρ ( k ) = P CS ( k ) − P CS min P CS max − P CS min
where ρ(k) ∈ [0, 1] represents the contingency severity in period k. A larger contingency power results in a higher inertia margin.
A relative-error formulation is adopted so that the margin can adapt to different operating conditions. Let ε0 denote the baseline relative error and εmax the conservative error bound for high-risk periods. The adaptive error coefficient is defined as:
ε ( k )   =   ε 0 + ρ ( k ) ε max   −   ε 0
where ε0 = 0.0355 is the test-set MAPE, and εmax = 0.0919 is the 95th percentile of the one-sided relative inertia overestimation error, defined as max { H ^ − H / H , 0 } . The scheme assigns a more conservative error bound to periods with larger contingency consequences; it does not assume a statistical correlation between contingency power and estimation error.
On the system base, the VSG contribution required to satisfy the basic inertia boundary is:
H VSG , req sys ( k ) = max ( 0 ,   H SIL ( k ) − H G , ava ( k ) )
where HSIL(k) is the lower boundary of the inertia safety domain and HG,ava(k) is the post-contingency available inertia of the conventional generator. Equation (23) gives the inertia contribution that must be supplied by the VSG after subtracting the available physical inertia. When the conventional generator is disconnected, the VSG provides the dominant inertia support.
Based on (22) and (23), the adaptive inertia margin is defined as:
Δ H adp sys ( k ) = γ ε ( k ) H VSG , req sys ( k )
where γ is an engineering conservatism factor. Because the margin is expressed on the system base, it can be directly included in the MPC inertia constraint. The final inertia requirement for dispatch is therefore:
H req MPC ( k ) = H SIL ( k ) + Δ H adp sys ( k )
Equation (25) combines the minimum inertia requirement with the estimation-error margin to form a risk-adaptive dispatch boundary. This avoids applying the maximum inertia setting throughout the day. The corrected boundary is imposed as the MPC inertia-security constraint together with power balance, SOC, ramping, fast-support, and equipment-limit constraints.

4.2. MPC-Based Economic Dispatch Model

After determining the dispatch inertia requirement, a receding horizon optimization model is established based on frequency-constrained economic dispatch [27,28]. At the current dispatch instant k, the model predicts over a horizon of Np periods, implements only the first-period decision, and is solved again in the next period using the updated SOC, load, and renewable generation. The decision variables include conventional-generator output, utilized wind and photovoltaic power, storage charging and discharging power, fast frequency support, SOC, and VSG virtual inertia.
To balance operating economy and frequency security, the objective function includes conventional-generator operating cost, renewable curtailment cost, storage operating cost, fast-support cost, VSG inertia-setting cost, and constraint-violation penalties:
min J ( k ) = ∑ i ∈ N k C run ( i ) + C curt ( i ) + C B ( i ) + C fast ( i ) + C H ( i ) + C pen ( i )
where Ccon, Ccur, CB, Cfast, CH, and Cpen denote the conventional generator operating cost, renewable curtailment cost, storage operating cost, fast-support cost, VSG inertia-setting cost, and penalty cost, respectively.
Because the islanded microgrid does not exchange power with an upstream grid, the power balance in each period is:
P G ( i ) + P w use ( i ) + P pv use ( i ) + P dis ( i ) − P ch ( i ) = P L ( i )
where PG(i) is the conventional generator output; P w use ( i ) and P pv use ( i ) are the utilized wind and photovoltaic power, respectively; Pdis(i) and Pch(i) are the storage discharging and charging power; and PL(i) is the load. The utilized wind and photovoltaic power are obtained by subtracting curtailment from the available generation:
P w use ( i ) = P w av ( i ) − P curt w ( i )
P pv use ( i ) = P pv av ( i ) − P curt pv ( i )
The storage SOC evolves according to the charging and discharging power while accounting for standby losses:
SOC ( i + 1 ) = 1 − η loss SOC ( i ) + η ch P ch ( i ) Δ t E B − P dis ( i ) Δ t η dis E B
The SOC is also subject to operating bounds and a terminal constraint:
SOC min ≤ SOC ( i ) ≤ SOC max   SOC ( i end ) ≥ SOC end min
where EB is the rated storage capacity, ηch and ηdis are the charging and discharging efficiencies, ηloss is the standby-loss coefficient, and Δt is the dispatch interval.
Fast frequency support compensates for the instantaneous post-contingency power deficit. A nonnegative slack variable is introduced to preserve model feasibility under extreme conditions:
P fast ( i ) + ξ ( i ) ≥ P fast req ( i )
where Pfast(i) is the available fast-support power and P fast req ( i ) is the required fast support. Fast support represents a second-scale reserve and is therefore excluded from the hourly power-balance equation. The slack variable is assigned a large penalty and remains zero under normal conditions.
The inertia-security constraint is central to the MPC model. The total post-contingency available inertia, comprising the available conventional-generator inertia and the VSG contribution, must satisfy the margin-adjusted dispatch requirement:
H G , ava ( i ) + H VSG sys ( i ) ≥ H req MPC ( i )
where HG,ava(k) is the remaining physical inertia after the contingency, H VSG sys k is the VSG inertia contribution on the system base, and H req MPC k includes the adaptive margin. For a diesel-generator outage, the RoCoF constraint is also imposed using the scheduled diesel output, with the generator’s physical inertia excluded.
All device powers and the VSG virtual inertia are subject to their respective operating bounds, while the conventional generator output and storage net power satisfy ramp-rate limits. To prevent the VSG inertia setting from exceeding the storage support capability, the effects of SOC and storage-power utilization on the admissible inertia upper bound are further considered:
H VSG sys ( i ) ≤ H cap soc , min + K soc SOC ( i ) − SO C min
H VSG sys ( i ) + K p P dis ( i ) + P ch ( i ) ≤ H VSG max
where H VSG SOC , min is the allowable VSG inertia upper limit at the minimum SOC, KSOC is the conversion coefficient between SOC and the inertia limit, and KP is the reduction coefficient representing the effect of storage-power utilization on the admissible VSG inertia.

5. Case Studies

5.1. Test Systems and Parameter Settings

Simulation data are generated in MATLAB/Simulink R2024b using the wind–storage VSG microgrid shown in Figure 2. The wind and storage branches share a DC link and supply a three-phase load through a VSG-controlled inverter, an LC filter, and an RL feeder. The system base is 8 kW at 50 Hz. The filter parameters are Lf = 3 mH and Cf = 30 μF, while the feeder parameters are RL = 0.4 Ω and LL = 1 mH. The three-phase RL load is set to 6 kW and 3 kvar at 380 V. No transformer is included in the estimation model. Frequency and active-power responses are recorded, while the prescribed inertia trajectories provide the reference labels. Each simulation runs from 0 to 1.0 s with a sampling interval of 0.01 s; the 0.4–1.0 s segment is retained, yielding 61 samples. The load disturbance occurs at 0.5 s, and 0.50–0.69 s is selected as the target interval for inertia estimation.
The dataset comprises 3000 cases, combining 20 load-disturbance magnitudes (0.3–6.0 kW), 15 nominal inertia levels (2.0–9.0 s), five inertia-trajectory types (constant, step, ramp, sinusoidal, and mixed), and two variants of each type. The cases are split into training, validation, and test sets in an 8:1:1 ratio, with all sliding windows from the same case assigned to the same subset. The input-window length is L = 16, and the fixed delay is l = 6, corresponding to an estimation delay of 0.06 s. The test set contains 6000 target points.
LSTM [29] and GRU [30] are selected as benchmark models. All three models use the same data split, input features, target interval, window length, and fixed-delay setting. They are trained for 100 epochs with a batch size of 512 using the AdamW optimizer in PyTorch 2.1.0. The physical-residual loss weight of the Res-PINN is selected according to validation performance and is set to λphys = 0.005.
The estimation accuracy is evaluated using the root mean square error (RMSE), mean absolute error (MAE), mean absolute percentage error (MAPE), and coefficient of determination (R2):
RMSE = 1 N ∑ i = 1 N H ^ i − H i 2
MAE = 1 N ∑ i = 1 N H ^ i − H i
MAPE = 1 N ∑ i = 1 N H ^ i − H i H i × 100 %
R 2 = 1 − ∑ i = 1 N H i − H ^ i 2 ∑ i = 1 N H i − H ¯ 2
where Hi and H ^ i are the actual and estimated inertia at the ith test point, respectively; H ¯ is the mean actual inertia; and N is the number of test points.
A 24-h islanded microgrid comprising a diesel generator, wind and photovoltaic generation, and a storage-based VSG branch is further established to evaluate the proposed adaptive-margin MPC method. The main system parameters are listed in Table A1, while the typical daily load, wind and photovoltaic generation, reference SOC profile used for the inertia safety-domain assessment, and predispatched diesel-generator output are provided in Table A2. The dispatch interval is 1 h, and the prediction horizon is Np = 6 periods. Four strategies are compared: fixed-baseline VSG, fixed-safe VSG, time-varying-inertia MPC with a fixed relative safety margin of 9.19%, and the proposed time-varying-inertia MPC with an adaptive margin.

5.2. Inertia Safety-Domain Results

To evaluate the inertia safety domain under time-varying operating conditions, the limiting contingency and corresponding minimum inertia requirement are first determined for each period. The maximum post-contingency available inertia is then evaluated to form the upper boundary, providing the inertia limits for the subsequent dispatch.
As shown in Figure 4, conventional-generator outages cause the largest power deficit in most periods, whereas renewable generation drops become more significant during periods of high photovoltaic output. At hour 17, the renewable-power deficit (82.2 kW) exceeds the diesel-outage deficit (55.0 kW), but the latter requires slightly more VSG inertia (2.75 s versus 2.71 s) because the generator’s physical inertia is lost.
Figure 4. Comparison of candidate contingency power deficits.
Figure 5 shows that the minimum inertia requirement varies from 2.7500 s at hour 17 to 9.0500 s at hour 20 over the 24-h period. The RoCoF constraint is binding in all periods, whereas the frequency-nadir constraint remains inactive because the nadir limit is already satisfied at the physically admissible minimum inertia. As further verified in Figure 6, the frequency nadir remains above the 49.5 Hz security limit in all periods. These results are obtained with a VSG active-power response time constant of 0.015 s. For the diesel-generator outage at hour 20, increasing this constant to 0.25 s raises the nadir-based inertia requirement to 9.4547 s, exceeding the RoCoF-based requirement of 9.0500 s and making the nadir constraint binding.
Figure 5. Minimum inertia requirement under the active frequency-security constraint.
Figure 6. Frequency-nadir validation at the final minimum inertia requirement.
Figure 7 shows that the lower boundary of the inertia safety domain varies with the minimum frequency-security requirement, while the upper boundary is determined by the maximum physically available post-contingency inertia. The domain remains feasible throughout the day, indicating that an admissible inertia configuration exists in every period. The upper boundary represents an inertia-availability ceiling rather than a stability-related maximum safe inertia. The fixed-baseline inertia falls below the lower boundary in most periods, whereas the fixed-safe strategy maintains a conservative inertia level and introduces redundancy during periods with lower requirements.
Figure 7. Inertia safety-domain assessment over 24 h.

5.3. Analysis of Online Inertia-Estimation Results

To evaluate the fixed-delay online Res-PINN for time-varying inertia estimation, it is compared with online LSTM and GRU models. All models use the same dataset split, input features, target interval, and fixed-delay window. Their overall test-set performance is summarized in Table 1.
Table 1. Test-set performance of different online inertia-estimation models.
All three models capture the relationship between the frequency–power response and time-varying inertia. Res-PINN performs slightly better across all metrics. Compared with GRU, its MAE decreases from 0.1724 to 0.1464 and its MAPE from 4.33% to 3.55%. The effect of the physical-residual term is further examined through the ablation study below.
Figure 8 shows that the predicted values remain concentrated around the corresponding true inertia levels under the constant-inertia cases.
Figure 8. Test-set prediction distribution under constant-inertia conditions.
To assess the effect of the physical-residual term, an ablation study is conducted using different physical-loss weights while keeping the network architecture, data split, and fixed-delay setting unchanged. The results are listed in Table 2, where λ phys = 0 indicates that the physical-residual constraint is removed.
Table 2. Test-set performance under different physical-loss weights.
At λ phys = 0.005 , the RMSE, MAE, and MAPE are optimal or nearly optimal. A further increase in the weight imposes an excessively strong simplified swing-equation constraint, which may weaken the model’s ability to fit the nonlinear VSG dynamics. Therefore, λ phys = 0.005 is adopted in the subsequent analysis.
Figure 9, Figure 10, Figure 11 and Figure 12 show that Res-PINN effectively tracks step, ramp, sinusoidal, and mixed inertia variations, with the largest errors occurring near abrupt transitions and intervals with superimposed fluctuations. The test-set MAPE is 3.55%, and the 95th percentile of the one-sided relative inertia overestimation error is 9.19%. These values are used as the baseline and high-risk error coefficients, respectively, in the adaptive inertia-margin formulation.
Figure 9. Actual and estimated inertia under step-inertia conditions: (a) step-inertia case 1; (b) step-inertia case 2.
Figure 10. Actual and estimated inertia under ramp-inertia conditions: (a) ramp-inertia case 1; (b) ramp-inertia case 2.
Figure 11. Actual and estimated inertia under sinusoidal-inertia conditions: (a) sinusoidal-inertia case 1; (b) sinusoidal-inertia case 2.
Figure 12. Actual and estimated inertia under mixed-inertia conditions: (a) mixed-inertia case 1; (b) mixed-inertia case 2.
Additional tests were conducted to examine sensitivity to measurement noise, damping mismatch, and estimation delay. With Gaussian noise standard deviations of 0.001 Hz in frequency and 8 W in active power, the original model’s RMSE increased from 0.2586 to 0.7608 s, while supplementary noise-augmented fine-tuning reduced it to 0.5166 s. In five representative cases, changing the damping coefficient from D = 10 to D = 9 or 11 increased the RMSE from 0.2230 to 1.8767 or 2.8639 s, respectively. For independently retrained models with delays of 0, 0.03, 0.06, and 0.09 s, the RMSEs over the common 0.56–0.69 s target interval were 0.5069, 0.3563, 0.3085, and 0.2738 s, respectively. The 0.06 s delay was retained as a compromise between estimation accuracy and reporting latency. The delay-comparison models were independently retrained and evaluated over a common target interval, whereas Table 1 reports the final checkpoint over the full 0.50–0.69 s interval. The inertia margin used in the 24-h dispatch study is calibrated using the nominal noise-free test data with D = 10.

5.4. MPC Dispatch Results and Strategy Comparison

A 24-h typical islanded microgrid scenario with a 1-h dispatch interval is used to validate the proposed method. The lower boundary of the inertia safety domain serves as the basic frequency-security constraint, and the adaptive inertia margin is added to obtain the final MPC inertia requirement.
For the selected typical day, the lower boundary of the inertia safety domain varies from 2.7500 to 9.0500 s. After including the adaptive margin, the inertia requirement imposed on the MPC ranges from 2.8568 to 9.8817 s, while the margin itself varies from 0.1068 to 0.8317 s on the system base.
Four strategies are compared: fixed-baseline VSG, fixed-safe VSG, time-varying-inertia MPC with a fixed 9.19% relative margin, and the proposed MPC with an adaptive margin. The two MPC strategies use the same optimization framework and differ only in their inertia-margin settings. The results are summarized in Table 3.
Table 3. Comparison of different inertia-dispatch strategies.
As shown in Table 3, the fixed-baseline VSG has the lowest operating cost but violates the inertia requirement in 95.83% of the periods. The fixed-safe VSG eliminates these violations, although its average VSG inertia reaches 9.8817 s. The proposed adaptive-margin MPC also achieves zero violations while reducing the average VSG inertia to 6.5499 s, a 33.72% reduction relative to the fixed-safe strategy. Compared with the fixed-margin MPC, it further reduces the average VSG inertia from 6.7265 to 6.5499 s (2.63%), with a comparable total operating cost.
Figure 13 and Figure 14 show that the fixed-baseline VSG remains below the dispatch inertia requirement during most periods, whereas the fixed-safe VSG maintains a consistently high inertia level. By contrast, the proposed method adjusts the post-contingency available inertia according to the time-varying requirement. As the contingency power increases, both the risk factor and adaptive inertia margin increase; during low-risk periods, the margin remains small, thereby reducing inertia redundancy.
Figure 13. Comparison of post-contingency available inertia under different strategies.
Figure 14. Adaptive inertia margin and operating-risk factor.
Figure 15 and Figure 16 show that the conventional generator, wind and photovoltaic generation, and storage charging/discharging jointly satisfy the load power balance. The storage SOC remains within 0.2500–0.8400, satisfying the prescribed SOC limits.
Figure 15. The 24-h power-dispatch results under the proposed method.
Figure 16. BESS SOC and net charging/discharging power.

6. Conclusions

This study investigates inertia assessment and security-constrained economic dispatch for an islanded microgrid comprising a conventional generator and wind–solar–storage VSG branches. Following an integrated framework of inertia safety-domain assessment, inertia estimation, and security-constrained dispatch, the main conclusions are as follows:
(1)
Frequency security domain assessment: An inertia safety-domain calculation method is established by considering RoCoF, frequency nadir, and post-contingency inertia availability. For the studied daily scenario, RoCoF determines the minimum inertia requirement, while the frequency-nadir constraint remains inactive within the physically admissible inertia range.
(2)
Time-varying inertia estimation: A Res-PINN equivalent-inertia estimation method based on a fixed-delay input window is developed, with the frequency-dynamic equation residual embedded in network training. The proposed method achieves lower RMSE, MAE, and MAPE and a higher R2 than LSTM and GRU on the test set. The resulting error statistics are used to construct the inertia margin.
(3)
Security-constrained dispatch: An adaptive inertia-margin method considering operating risk is proposed and embedded in the MPC economic dispatch model. In the 24-h case study, the proposed method achieves zero inertia violations and reduces the average system-base VSG inertia from 9.8817 s under the fixed-safe strategy to 6.5499 s, a reduction of 33.72%. Compared with the fixed-margin MPC, it further reduces the average VSG inertia from 6.7265 to 6.5499 s, with comparable total operating costs.

Author Contributions

Conceptualization, X.N. and Z.N.; methodology, Z.N.; software, Z.N.; validation, Z.N.; formal analysis, Z.N.; investigation, Z.N.; data curation, Z.N.; writing—original draft preparation, Z.N.; writing—review and editing, X.N. and Z.N.; visualization, Z.N.; supervision, X.N.; project administration, X.N.; funding acquisition, X.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China, grant number 52367010.

Data Availability Statement

The data presented in this study are available from the corresponding author upon reasonable request.

Acknowledgments

During the preparation of this work, the author(s) used DeepSeek-V3 in order to language polishing and grammar checking. After using this tool/service, the author(s) reviewed and edited the content as needed and take(s) full responsibility for the content of the published article.

Conflicts of Interest

The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Appendix A

Table A1. Main parameters of the islanded microgrid.
Table A2. Operating data for the 24-h typical day.

References

  1. Njoka, G.M.; Mogaka, L.; Wangai, A. Impact of variable renewable energy sources on the power system frequency stability and system inertia. Energy Rep. 2024, 12, 4983–4997. [Google Scholar] [CrossRef] [Scilit]
  2. He, C.; Geng, H.; Rajashekara, K.; Chandra, A. Analysis and control of frequency stability in low-inertia power systems: A review. IEEE/CAA J. Autom. Sin. 2024, 11, 2363–2383. [Google Scholar] [CrossRef] [Scilit]
  3. Zhou, J.; Guo, Y.; Yang, L.; Shi, J.; Zhang, Y.; Li, Y.; Guo, Q.; Sun, H. A review on frequency management for low-inertia power systems: From inertia and fast frequency response perspectives. Electr. Power Syst. Res. 2024, 228, 110095. [Google Scholar] [CrossRef] [Scilit]
  4. Shadoul, M.; Ahshan, R.; AlAbri, R.S.; Al-Badi, A.; Albadi, M.; Jamil, M. A comprehensive review on a virtual synchronous generator: Topologies, control orders and techniques, energy storages, and applications. Energies 2022, 15, 8406. [Google Scholar] [CrossRef] [Scilit]
  5. Sang, W.; Guo, W.; Dai, S.; Tian, C.; Yu, S.; Teng, Y. Virtual synchronous generator, a comprehensive overview. Energies 2022, 15, 6148. [Google Scholar] [CrossRef] [Scilit]
  6. Roy, N.K.; Islam, S.; Podder, A.K.; Roy, T.K.; Muyeen, S.M. Virtual inertia support in power systems for high penetration of renewables—Overview of categorization, comparison, and evaluation of control techniques. IEEE Access 2022, 10, 129190–129216. [Google Scholar] [CrossRef] [Scilit]
  7. Jafari, M.; Gharehpetian, G.B.; Anvari-Moghaddam, A. On the role of virtual inertia units in modern power systems: A review of control strategies, applications and recent developments. Int. J. Electr. Power Energy Syst. 2024, 159, 110067. [Google Scholar] [CrossRef] [Scilit]
  8. Gurski, E.; Kuiava, R.; Perez, F.; Benedito, R.A.S.; Damm, G. A novel VSG with adaptive virtual inertia and adaptive damping coefficient to improve transient frequency response of microgrids. Energies 2024, 17, 4370. [Google Scholar] [CrossRef] [Scilit]
  9. Ren, B.; Li, Q.; Fan, Z.; Sun, Y. Adaptive control of a virtual synchronous generator with multiparameter coordination. Energies 2023, 16, 4789. [Google Scholar] [CrossRef] [Scilit]
  10. Kontis, E.O.; Pasiopoulou, I.D.; Kirykos, D.A.; Papadopoulos, T.A.; Papagiannis, G.K. Estimation of power system inertia: A comparative assessment of measurement-based techniques. Electr. Power Syst. Res. 2021, 196, 107250. [Google Scholar] [CrossRef] [Scilit]
  11. Prabhakar, K.; Jain, S.K.; Padhy, P.K. Inertia estimation in modern power system: A comprehensive review. Electr. Power Syst. Res. 2022, 211, 108222. [Google Scholar] [CrossRef] [Scilit]
  12. Mazidi, M.; McKelvey, T.; Chen, P. A pure data-driven method for online inertia estimation in power systems using local rational model approach. IEEE Trans. Ind. Appl. 2023, 59, 5506–5516. [Google Scholar] [CrossRef] [Scilit]
  13. Huang, B.; Wang, J. Applications of physics-informed neural networks in power systems—A review. IEEE Trans. Power Syst. 2023, 38, 572–588. [Google Scholar] [CrossRef] [Scilit]
  14. Yao, W.; Zhao, Y.; Xiong, Y.; Li, Y.; Gan, W.; Wen, J.; Peng, J.C.-H. Online inertia estimation for wind-integrated power systems with ambient PMU measurements using sliced parallel physics-informed neural networks. Appl. Energy 2026, 414, 127849. [Google Scholar] [CrossRef] [Scilit]
  15. Zeng, J.; Li, X.; Dai, H.; Zhang, L.; Wang, W.; Zhang, Z.; Kong, S.; Xu, L. A residual physics-informed neural network approach for identifying dynamic parameters in swing equation-based power systems. Energies 2025, 18, 2888. [Google Scholar] [CrossRef] [Scilit]
  16. Chu, Z.; Zhang, N.; Teng, F. Frequency-constrained resilient scheduling of microgrid: A distributionally robust approach. IEEE Trans. Smart Grid 2021, 12, 4914–4925. [Google Scholar] [CrossRef] [Scilit]
  17. Tuo, M.; Li, X. Security-constrained unit commitment considering locational frequency stability in low-inertia power grids. IEEE Trans. Power Syst. 2023, 38, 4134–4147. [Google Scholar] [CrossRef] [Scilit]
  18. Shen, Y.; Wu, W.; Wang, B.; Yang, Y.; Lin, Y. Data-driven convexification for frequency nadir constraint of unit commitment. J. Mod. Power Syst. Clean Energy 2023, 11, 1711–1717. [Google Scholar] [CrossRef] [Scilit]
  19. Liu, D.; Jiang, K.; Ji, X.; Cao, K.; Xu, C.; Sang, S.; Yang, D. Improved VSG strategy of grid-forming inverters for supporting inertia and damping. Front. Energy Res. 2024, 11, 1331024. [Google Scholar] [CrossRef] [Scilit]
  20. Hamanah, W.M.; Shafiullah, M.; Alhems, L.M.; Alam, M.S.; Abido, M.A. Realization of robust frequency stability in low-inertia islanded microgrids with optimized virtual inertia control. IEEE Access 2024, 12, 58208–58221. [Google Scholar] [CrossRef] [Scilit]
  21. Suman, G.K.; Yadav, S.; Guerrero, J.M. Frequency regulation strategy in islanded microgrid with high renewable penetration supported by virtual inertia. Smart Grids Sustain. Energy 2024, 9, 33. [Google Scholar] [CrossRef] [Scilit]
  22. Linaro, D.; Bizzarri, F.; del Giudice, D.; Pisani, C.; Giannuzzi, G.M.; Grillo, S.; Brambilla, A.M. Continuous estimation of power system inertia using convolutional neural networks. Nat. Commun. 2023, 14, 4440. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  23. Poudyal, A.; Tamrakar, U.; Trevizan, R.D.; Fourney, R.; Tonkoski, R.; Hansen, T.M. Multiarea inertia estimation using convolutional neural networks and federated learning. IEEE Syst. J. 2022, 16, 6401–6412. [Google Scholar] [CrossRef] [Scilit]
  24. Stiasny, J.; Chatzivasileiadis, S. Physics-informed neural networks for time-domain simulations: Accuracy, computational cost, and flexibility. Electr. Power Syst. Res. 2023, 224, 109748. [Google Scholar] [CrossRef] [Scilit]
  25. Stiasny, J.; Zhang, B.; Chatzivasileiadis, S. PINNSim: A simulator for power system dynamics based on physics-informed neural networks. Electr. Power Syst. Res. 2024, 235, 110796. [Google Scholar] [CrossRef] [Scilit]
  26. Fawzy, A.; Bakeer, A.; Magdy, G.; Atawi, I.E.; Roshdy, M. Adaptive virtual inertia-damping system based on model predictive control for low-inertia microgrids. IEEE Access 2021, 9, 109718–109731. [Google Scholar] [CrossRef] [Scilit]
  27. Hu, J.; Shan, Y.; Yang, Y.; Parisio, A.; Li, Y.; Amjady, N.; Islam, S.; Cheng, K.W.; Guerrero, J.M.; Rodríguez, J. Economic model predictive control for microgrid optimization: A review. IEEE Trans. Smart Grid 2024, 15, 472–484. [Google Scholar] [CrossRef] [Scilit]
  28. Wu, Z.; Chen, C.; Xu, D.; Guan, L. Frequency-constrained economic dispatch of microgrids considering frequency response performance. Energies 2025, 18, 2014. [Google Scholar] [CrossRef] [Scilit]
  29. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Mienye, I.D.; Swart, T.G.; Obaido, G. Recurrent neural networks: A comprehensive review of architectures, variants, and applications. Information 2024, 15, 517. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.