1. Introduction
The global electrification of the transportation sector, coupled with the decentralization of power systems, has led to unprecedented challenges and opportunities in modern electrical networks. The proliferation of electric vehicles (EVs) and distributed energy resources (DERs) has shifted the traditional centralized generation paradigm toward more dynamic and decentralized architectures [
1,
2,
3,
4]. In this evolving context, the integration of electric vehicle charging stations (EVCSs) within power grids demands new strategies that ensure both operational efficiency and stability. One of the major challenges arising from this integration lies in the dual role of EVCSs as both high-demand loads and potential grid support assets. The impact of large-scale EV penetration, particularly when co-located with DERs such as photovoltaic (PV) systems or wind generation, poses concerns related to voltage fluctuations, congestion, and reduced inertia in the grid [
3,
5]. Additionally, the increasing prevalence of renewable sources introduces variability and intermittency that must be mitigated through advanced control and planning approaches [
6,
7,
8]. In this scenario, the deployment of flexible alternating current transmission systems (FACTS) devices emerges as a promising solution to manage power flow, enhance stability, and facilitate the seamless operation of EVCSs within active distribution networks [
9,
10,
11]. Despite the technological potential of FACTS devices, their coordinated control with EVCSs and DERs in deregulated or semi-regulated environments remains a complex task. The dynamic behavior of EV charging demand, combined with uncertainties in renewable generation, necessitates robust, adaptive, and often intelligent control strategies. Recent advances in neuro-fuzzy and AI-based controllers have shown promise in damping oscillations and improving voltage and frequency regulation under such conditions [
12,
13]. Several approaches have integrated reinforcement learning and fuzzy logic for similar coordination problems [
14,
15]. High PV variability and uncertain EVCS demand cause concurrent active- and reactive-power stresses in low-inertia distribution networks, leading to voltage excursions and degraded frequency quality. This motivates studying a forecast-informed supervisory strategy that jointly schedules EVCS/BESS and coordinates FACTS for fast voltage support, providing a principled basis to assess siting, sizing, and operation under realistic uncertainty [
16,
17].
The integration of EVCSs into modern power systems has motivated extensive research efforts focused on planning, control, and optimization. The growing presence of EVs and their charging infrastructure poses technical challenges such as voltage deviations, congestion, and transformer overloading. To address these concerns, planning models have been proposed that incorporate spatial and temporal charging behavior. For instance, ref. [
6] introduces a probabilistic planning approach that considers the uncertainties associated with EV charging demand and DER variability, highlighting the importance of multi-scenario simulations for urban networks. The operational stress caused by uncoordinated EV charging has also been quantified. In [
18], a statistical analysis based on real-world EV charging profiles reveals that peak demand during evening hours can accelerate transformer aging and produce voltage drops, particularly in radial distribution systems. These findings align with those in [
19], where stochastic modeling of EV load patterns is used to assess impacts on energy losses and asset lifespan. To mitigate the adverse effects of EV charging, coordinated and intelligent control strategies have been developed. A predictive model based on short-term voltage forecasts is presented in [
20], where a model predictive control (MPC) algorithm adjusts charging setpoints to maintain network stability. Complementary to this, ref. [
2] proposes a decentralized EV charging strategy aligned with PV generation profiles, significantly improving local voltage regulation and reducing ramping requirements from conventional sources. The synergy between EVCSs and renewable generation has been further explored in [
3], which introduces a demand-side management scheme that prioritizes charging during periods of high solar output. However, such alignment remains limited by the intermittency of renewables, reinforcing the need for hybrid solutions involving energy storage systems (ESS). In this context, ref. [
21] evaluates a configuration that couples static synchronous compensators (STATCOMs) with battery energy storage systems (BESSs) to deliver both voltage support and frequency regulation during EV charging peaks.
Flexible AC transmission systems devices, particularly static var compensators (SVCs) and STATCOMs, have been widely applied to enhance voltage stability in distribution systems with high DER and EVCS penetration. In [
9], a comparative assessment of SVCs and STATCOMs demonstrates their effectiveness in mitigating voltage sags and regulating reactive power flows. Additional insights are provided in [
22], which analyzes the optimal placement of STATCOMs to minimize voltage deviation and power losses in heavily loaded feeders. Intelligent control techniques have gained attention for their adaptability under nonlinear and dynamic conditions. A fuzzy logic-based STATCOM controller is developed in [
8], outperforming conventional PI controllers in response time and stability margins during EV load fluctuations. Neuro-fuzzy and machine learning-based controllers are also investigated in [
12], showing improved damping of voltage oscillations and robust performance under high DER variability. Furthermore, ref. [
23] applies long short-term memory (LSTM) networks to forecast voltage profiles, enabling real-time adjustments in FACTS device outputs to prevent limit violations. From a planning perspective, evolutionary computation techniques, such as genetic algorithms (GAs) and multi-objective particle swarm optimization (MOPSO), have been employed. In [
24], a GA-based optimization is used to co-locate EVCSs and STATCOMs, minimizing installation cost while improving power quality. A multi-objective framework considering voltage deviation, power losses, and economic indicators is proposed in [
24], offering balanced planning strategies for distribution systems with high EV penetration.
Despite recent advances in decentralized control, forecasting techniques, and simulation-based studies for EVCS integration, the literature still lacks a control framework that jointly coordinates EV charging infrastructure, ESS, and FACTS devices under predictive operation. Most existing contributions focus on isolated aspects of the problem, such as forecasting, energy storage dispatch, or reactive power compensation, but do not provide a cohesive architecture for simultaneous coordination. Additionally, while methods based on soft computing and digital twin modeling have been proposed for specific components, these are rarely integrated into end-to-end control strategies with fast response under forecast uncertainty. To illustrate these research gaps,
Table 1 provides a comparative review of representative studies based on six dimensions: the inclusion of EVCS, FACTS, BESS, predictive control models, soft computing or artificial intelligence methods, and simulation environments inspired by digital twins. The final column summarizes the main limitation of each contribution. While some works include several of these components, few combine more than three, and none offer a simulation-based coordination strategy integrating all six under a unified predictive framework. This work addresses part of this gap by coordinating EVCS, BESS dispatch, and FACTS control through short-term forecasting within a single simulation environment, evaluated under high-variability operating conditions.
The gaps identified in
Table 1 reveal that the current literature lacks a unified control strategy capable of coordinating EVCS, BESS dispatch, and FACTS operation under forecast uncertainty. While some studies introduce predictive models or explore soft computing methods, they are often limited to isolated components and lack integrated control across all key subsystems. Furthermore, prior works frequently overlook the combined impact of EVCS on power quality and system stability, particularly in low-inertia distribution grids with high variability. Existing approaches generally omit adaptive real-time coordination mechanisms that can respond to rapid fluctuations in demand and generation. In response to these limitations, this work proposes a hybrid predictive control strategy that combines short-term forecasting via recurrent neural networks with coordinated actuation of EVCS, BESS, and FACTS. The proposed method is evaluated entirely through simulation in a MATLAB/Simulink environment using realistic profiles of solar generation and electric vehicle charging demand. Performance is assessed under a range of operating conditions using dynamic response metrics and an RRI. Concretely, this work differs from prior studies by operationalizing forecast-informed, real-time coordination of EVCSs, BESS dispatch, and reactive-power support within a single supervisory scheme; by introducing a resilience response index that captures performance under disturbances, forecast latency, and high charging penetration; by quantifying, through sensitivity analysis, when support from FACTS devices becomes necessary; and by substantiating the above with time-domain simulations driven by realistic solar irradiance and charging-demand profiles. For the sake of simplicity, the main contributions of this work are as follows:
Design of a hybrid control architecture that integrates short-term frequency and voltage forecasting with coordinated dispatch of EVCS, BESS, and reactive power compensation devices.
Simulation-based validation of the proposed control framework under variable demand and source conditions using realistic operating profiles.
Introduction of a resilience-oriented performance index that captures voltage deviations, frequency excursions, control response times, and energy efficiency in low-inertia microgrids.
Sensitivity analysis quantifying the effects of forecast latency, battery capacity, and electric vehicle penetration on system stability and control performance.
In summary, the structure of this paper is organized as follows:
Section 2 describes the materials and methods used;
Section 3 presents the results;
Section 4 provides a discussion of the findings; and
Section 5 outlines the main conclusions of the study.
2. Materials and Methods
This section outlines the methodological framework adopted to design, implement, and evaluate the proposed hybrid control strategy for microgrid frequency regulation. The approach integrates real-time signal acquisition, predictive modeling using LSTM networks, and coordinated actuation via FACTS devices and BESS. In addition, a supervisory logic layer ensures consistency between predictive outcomes and reactive control efforts. Performance is assessed using both dynamic response indicators, such as root mean square (RMS) deviation and settling time, and operational metrics, including energy efficiency, activation time, and resilience response index (RRI). Sensitivity analyses were conducted to evaluate the robustness of the system under varying battery sizes, prediction delays, and EV charging loads.
Figure 1 provides a comprehensive overview of the proposed hybrid control framework. The diagram integrates real-time measurement acquisition, LSTM-based frequency forecasting, decentralized control via FACTS devices and BESS units, and a supervisory coordination layer. System responses are evaluated through voltage, frequency, and state of charge (SOC) signals, which are then assessed using multiple performance metrics, including RMSD, energy efficiency, and the RRI. Sensitivity analysis on prediction delays, BESS sizing, and EV charging load further supports the robustness and adaptability of the proposed method.
2.1. Power System Modeling and Series Compensation Strategy
The simulation model implemented in MATLAB/Simulink replicates a medium-voltage radial distribution system operating at 69 kV and 60 Hz. It includes an ideal synchronous generator, a 50 km transmission line, and a dynamic load node representing the aggregated demand of EVCS. The transmission line is defined by an impedance of
, which corresponds to
and
, derived from typical conductor parameters and validated using the reference model in [
19]. To emulate realistic charging behavior, the load integrates both static and time-varying reactive power components. The latter is constructed using mobility-based load profiles with fast transitions that reflect urban EVCS operation. The reactive component, denoted
, ranges from 0 to 6 Mvar within short intervals, introducing frequency perturbations typical of systems under dynamic load conditions [
6]. This makes frequency stabilization a central challenge. To mitigate such disturbances, a thyristor-controlled series capacitor (TCSC) is introduced in series with the line. This device injects a variable reactance
, modifying the total series reactance according to:
where
is constant and
is dynamically controlled. The TCSC is modeled as a parallel LC circuit with thyristor switching, yielding the nonlinear time-varying reactance:
where
and
, with
the angular frequency. For
Hz, and choosing
and
as in [
20], the resulting resonance frequency is approximately 167 Hz. This ensures dynamic modulation without resonance interference. The injection range of the TCSC is constrained to
of
, resulting in compensation between approximately
Mvar and
Mvar.
The control of the TCSC reactance relies on a frequency feedback loop using a proportional-integral (PI) controller. The control variable is the thyristor firing angle
, adjusted according to the deviation from nominal frequency:
where
is the nominal angular frequency, and
is estimated via a Phase-Locked Loop (PLL). The controller computes:
with gains
and
, empirically tuned to guarantee fast response (settling times below 0.5 s) while avoiding overshoot [
20]. This dynamic modulation of
directly adjusts
, altering the impedance seen by the generator and enabling power flow redistribution.
The power flow through the line is described by the well-known expression:
where
and
are the magnitudes of sending and receiving voltages (assumed to be balanced at 69 kV), and
is the rotor angle difference. As
decreases, the transmitted active power
increases, contributing to the damping of oscillations in
and promoting frequency stability [
22].
To evaluate the effect of compensation, the frequency deviation is quantified using the root mean square deviation (RMSD) over a period
T:
Smaller
values imply better regulation, and comparisons against the uncompensated case confirm the TCSC’s ability to improve frequency damping in scenarios with EVCS-induced variability [
6].
2.2. Shunt Compensation through Static Var Compensator for Voltage Support
The mitigation of voltage deviations under highly variable EV charging demand was addressed by incorporating an SVC at the node exhibiting the highest voltage sensitivity, as determined from load flow Jacobian analysis. The SVC topology implemented in the simulation environment is based on a Thyristor-Controlled Reactor (TCR) in parallel with a fixed capacitor bank, enabling a continuous modulation of reactive power injection or absorption to stabilize the nodal voltage. The overall admittance of the SVC system is time-dependent and can be expressed as:
where
is the angular frequency of the system (with
Hz),
C is the capacitance of the fixed capacitor bank, and
denotes the time-varying inductance of the reactor controlled via the thyristor firing angle
. The dynamic behavior of
is governed by:
which allows smooth variation of the net reactive power exchange. The net reactive power injected by the SVC into the bus is then given by:
where
is the instantaneous voltage magnitude at the connection node. This modulation is essential to counteract the voltage drops induced by the sudden aggregation of EV charging events, which, according to [
19], can lead to voltage sags exceeding 8% in urban feeders with radial topology and limited reactive reserves.
The SVC controller is implemented using a PI structure tuned to maintain the voltage at its nominal value
p.u. The control signal operates on the voltage error
, generating a control action on
as:
where
and
are the proportional and integral gains selected to ensure fast damping and zero steady-state error. The control range for
is limited between
and
to prevent resonance conditions and avoid capacitor overcompensation. Simulation-based tuning, following the methodology in [
22], identified that values of
and
yield optimal convergence under worst-case loading conditions.
The maximum reactive compensation capacity of the SVC is set at
Mvar, equivalent to approximately 15% of the peak system load, consistent with typical deployment ratios in medium-voltage feeders as recommended in [
9]. The inclusion of the SVC substantially reduces nodal voltage deviation, particularly during synchronized evening charging periods. To quantify its impact, the voltage deviation index (VDI) was employed:
Simulations confirmed that the VDI is reduced by more than 60% when the SVC is active, validating its effectiveness in preserving voltage quality in networks exposed to stochastic charging behaviors. The observed performance aligns with findings reported in [
10], where SVC deployment in suburban grids demonstrated similar attenuation of voltage excursions without inducing harmonics or resonance phenomena.
2.3. Battery Energy Storage System and Predictive Frequency Control Scheme
The Battery Energy Storage System is represented as a grid-connected unit interfaced through a bidirectional Voltage Source Converter (VSC), operating in a grid-following mode synchronized to the voltage at the Point of Common Coupling (PCC). The instantaneous active power exchanged by the BESS with the grid is defined as:
where
is the RMS voltage magnitude at the PCC,
is the RMS current injected or absorbed by the BESS, and
and
are the instantaneous voltage and current angles, respectively. The direction of power flow (charging or discharging) is governed by the sign of
.
The BESS control system operates under a predictive paradigm aimed at supporting system frequency in the presence of high EVCS demand and weak grid conditions. To achieve this, a two-layer control structure is implemented. The inner layer consists of a current control loop ensuring proper power delivery through pulse-width modulation (PWM), while the outer layer forecasts the frequency deviation using a data-driven model and adjusts the active power reference accordingly. The frequency forecast is produced using an LSTM neural network trained on historical frequency fluctuations and EVCS usage data under similar operational scenarios. The LSTM model provides a set of predicted values for , representing the expected evolution of frequency over a prediction horizon H.
Using this forecast, a predictive dispatch signal is generated by solving a constrained optimization problem at each control interval, as expressed by the following cost function:
Here,
Hz is the nominal system frequency,
and
are weighting coefficients prioritizing frequency stability and minimizing power injection effort. This optimization is subject to physical limits:
where
and
define the converter limits in MW,
is the state of charge, and
represents the maximum ramping rate in MW/s. The values used in the simulation are:
MWh,
MW,
,
, and
[
5,
23,
24].
The control interval is set at 100 ms, matching the response speed of the VSC and the required resolution for short-term frequency support. The BESS dispatch is implemented using a receding horizon strategy, where only the first element of the optimized power sequence is applied at each step. This structure ensures adaptive behavior in fast-changing environments, with the LSTM continuously updated with new frequency samples. Evaluation of the frequency control performance incorporates metrics such as the RMSD from the nominal frequency, the maximum frequency excursion
, and the dynamic response time
, defined as the interval required for frequency to return and remain within ±0.1 Hz of the nominal value [
12]:
2.4. Coordinated Operation with EVCS, Grid-Connected Devices
The simulation framework models the EVCS as a composite, time-varying load characterized by aggregated user profiles. These profiles reflect daily charging patterns with demand peaks occurring between 07:00 and 09:00 and 18:00 and 21:00, based on stochastic arrival processes and session durations derived from local urban mobility statistics [
5]. The active power demand
is synthesized using a superposition of Gaussian time distributions and adjusted through calibration with empirical measurements. In V2G-enabled scenarios, the model includes bidirectional operation constrained by minimum SOC thresholds and forecasted departure times. The net power exchange with the grid is represented as:
where
indicates discharge, idle, or charge status of the
i-th vehicle, and
is the corresponding power level. This approach allows flexibility in simulating load response strategies without compromising user constraints. To anticipate frequency deviations and proactively coordinate the operation of BESS, TCSC, and SVC, an LSTM neural network is implemented as a sequence-to-one regressor that estimates the future value of frequency deviation
based on past observations. The LSTM receives as input a time window of length
L comprising past frequency measurements:
where
. The LSTM output is a scalar prediction:
with
denoting the trained weight parameters of the network. The LSTM cell includes gates and memory vectors designed to handle temporal dependencies and nonlinearities, and its internal update equations are given by:
where
,
,
are the input, forget, and output gates, respectively,
is the memory cell state,
the hidden state,
the input at time
t,
the sigmoid activation, and ⊙ denotes element-wise multiplication. All matrices
W and
U, and biases
b are trained during backpropagation through time using the Adam optimizer and a loss function defined as:
where
K is the number of training samples. The trained LSTM is deployed in the control loop to update predictive control actions in real time.
The output
is used to adjust the setpoints of the BESS and TCSC by computing anticipated control efforts:
where
and
are predictive control gains tuned offline to ensure stable convergence without overshoot. These setpoints are filtered through rate limiters to prevent abrupt transients. This anticipatory modulation provides better damping and faster recovery than reactive-only PI controllers, as demonstrated in the performance comparison [
8,
18].
The coordination between grid-connected control devices—TCSC, SVC, and BESS—is realized through a real-time digital twin architecture [
18]. The digital twin replicates the physical grid state in simulation, receiving live telemetry from sensors and controllers, and returns optimized control setpoints through a predictive interface. This architecture ensures temporal alignment and anticipatory actuation across devices. FACTS devices execute power flow adjustments and voltage support via fast-reacting electronic switching. The SVC injects or absorbs reactive power depending on voltage deviations, as described by:
with
as the nodal voltage magnitude,
as nominal reference, and
a design constant calibrated to ensure voltage recovery within 500 ms post-disturbance [
12]. Performance assessment is structured around multiple evaluation metrics, each expressed mathematically and computed for all control configurations.
2.5. Advanced Performance Metrics
To enable a more comprehensive evaluation of the proposed control framework, several advanced metrics were computed. These indicators extend beyond conventional voltage and frequency deviation indices, providing deeper insights into the operational efficiency and dynamic responsiveness of the system under high electric vehicle charging penetration.
The
VDI quantifies long-term voltage stability across monitored nodes and is given by:
where
N is the number of monitored buses and
T the simulation time window. Higher VDI values indicate poor voltage regulation and delayed compensation by reactive power devices [
9].
Complementarily, the
RMSD of Frequency (
) measures the cumulative deviation from nominal angular frequency:
with
rad/s. This metric is sensitive to oscillatory instability and damping deficiencies [
8].
The
Maximum Frequency Deviation (
) captures the most severe under- or over-frequency excursion:
where
and
Hz.
Furthermore, the Frequency Recovery Time () is used as a proxy for inertial adequacy. It is defined as the smallest time interval after a disturbance such that the condition Hz holds for all . A shorter indicates faster system stabilization.
To assess energy conversion quality, the
Round-Trip Efficiency of the BESS (
) is calculated as:
where
and
are the discharge and charge power profiles. This ratio reflects cumulative inverter and battery losses and is critical for assessing long-term operational viability [
12].
The
Normalized Discharge Rate or C-rate (
) provides a dimensionless measure of battery usage stress during transients:
where
is the nominal capacity of the BESS in MWh. Sustained values above
are associated with thermal and aging stresses [
8].
Another relevant metric is the Control Activation Delay (), which captures the responsiveness of the control system after contingencies. This includes:
: time taken by the predictive model to generate a corrective signal;
: delay in response from the conventional PI controller.
Lower values indicate faster adaptation to disturbances, which is essential in low-inertia grids.
To evaluate the support provided to electric vehicle charging loads, the
EV Load Compensation Ratio (
) is defined as:
indicating the extent to which the support systems counterbalance EVCS-induced variability. Higher values suggest better local compensation and reduced upstream network stress.
Additionally, all performance aspects are synthesized into a unified
RRI, defined as:
This scalar index rewards fast frequency recovery, high energy efficiency, and low voltage deviations, enabling concise benchmarking and sensitivity assessments across control strategies.
Simulations were conducted under three coordinated scenarios: (i) baseline operation with no active control; (ii) conventional PI-based regulation for SVC and BESS; and (iii) predictive control using LSTM forecasting. The results confirm that predictive coordination reduces
by over 40%, VDI by 35%, and
from 1.2 s to under 0.6 s. Furthermore, the predictive strategy maintains round-trip BESS efficiency above 92% over daily cycles, and limits C-rate excursions, thereby outperforming reactive-only configurations in both stability and energy terms [
9,
18].
2.6. Real-Time Control Algorithm
The logic of the proposed hybrid control scheme is summarized below. The routine executes in real time, combining LSTM-based forecasting with coordinated actuation through the control units already described. Initially, the algorithm acquires the relevant system measurements—frequency, voltage, power, and SOC—and uses the LSTM layer to generate short-term forecasts. These predicted signals are then compared to reference values to calculate control deviations. If the deviation in frequency exceeds a predefined threshold, the BESS and TCSC units are activated to counteract the disturbance. In parallel, the SVC acts on voltage regulation based on the forecasted signal. This process is repeated continuously throughout system operation, enabling the controller to adapt dynamically to fluctuations and maintain stability (see Algorithm 1).
Algorithm 1: Hybrid LSTM + FACTS Control Algorithm. |
Input: Real-time measurements: f, V, P, SOC |
Output: Control commands for BESS, TCSC, and SVC |
1 Initialization: Load trained LSTM model and control parameters; |
2 while system is operational do |
![Technologies 13 00402 i001 Technologies 13 00402 i001]() |
2.7. System Architecture
The proposed hybrid microgrid system integrates multiple DERs, storage, and flexible control components, all interconnected through a low-voltage (0.48 kV) AC bus. The architecture is designed to support real-time operational flexibility under dynamic load and generation conditions. PV panels supply power to the main bus through an inverter and transformer T1. A BESS is connected via a bidirectional inverter and transformer T3, allowing energy exchange with the grid and support for frequency stability. EVCSs act as dynamic loads, located at two different points in the network—B-3 and B-8, each connected via transformers T3 and T4, respectively. To enhance voltage regulation and power quality, the system incorporates several FACTS devices. An SVC is connected at bus B-3 to inject or absorb reactive power. A TCSC and an SSSC are placed in series with Transmission Line 2 to control power flow and enhance transfer capacity. On the right-hand side of the network, a STATCOM is installed at bus B-4 to provide fast voltage support. The microgrid is interfaced to the external 69 kV distribution network through transformer T2. A centralized control system based on an LSTM neural network forecasts system variables and dispatches control actions to the BESS and FACTS devices. The detailed system layout is shown in
Figure 2. To evaluate the dynamic performance of the proposed control strategies, a contingency event was introduced at
, simulating the abrupt connection of a 250 kW EVCS. This sudden increase in load induces a transient frequency dip and voltage sag, challenging the system’s stability and triggering compensatory actions from the SVC, TCSC, and BESS subsystems. The control schemes, conventional PI and LSTM-based predictive coordination, are then compared in terms of response time, deviation mitigation, and recovery quality.
2.8. Model Validation and Verification
To substantiate the correctness of the MATLAB/Simulink implementation, we formalize the equation-to-block mapping of the plant and controllers and report quantitative agreement against independent references and benchmark behaviors. Let the continuous-time model be expressed as a semi-explicit DAE
where
collects dynamic states (e.g., DC-link, LCL filter, and BESS Thevenin states),
algebraic variables (network currents/voltages in
),
inputs (irradiance/load steps, EVCS demand), and
physical parameters. Each Simulink block is traceable to a constituent of
using standard formulations for converter-interfaced resources in the synchronous reference frame and single-diode PV and battery equivalent-circuit models, with parameters taken from manufacturer datasheets or prior studies [
6,
9,
10,
19,
20,
22].
Figure 1 and
Figure 2 document the signal graph and parameterization. Static component-level validation was performed by reproducing reference curves and ratings. For PV and BESS, the simulated
I–
V and efficiency characteristics at STC/NOC matched datasheet loci within the expected tolerance bands; for the inverter, the steady-state per-phase RMS and THD under rated operation are consistent with the selected LCL design and switching scheme (references as above). For the data-driven predictor, we employed a hold-out protocol (training/validation split with early stopping) aligned with the closed-loop operating envelope.
Dynamic, system-level validation relied on benchmark disturbances commonly used in microgrid analysis. With controllers disabled (open-loop), a source trip and a fast EVCS step were injected; the observed transients, follow the expected qualitative shape (initial deviation governed by effective inertia/damping, natural recovery) and magnitudes coherent with the aggregate stiffness of the network. Quantitatively, we use
and the settling time
defined as the first
t such that
for all subsequent
t (with
set by grid-code practice). Under closed-loop operation,
,
, and
decrease consistently relative to open-loop, indicating that the simulated plant reacts coherently to control action and that closed-loop improvements are not artefacts of numerical tuning. Then, sensitivity analyses around the nominal operating point (BESS capacity, EVCS penetration, predictor latency, resilience-weighting) produce monotonic and physically plausible trends (e.g., increased capacity reduces frequency excursions; higher demand steps increase
).
The combination of equation-level traceability, static curve reproduction, benchmark transient behavior, and parameter-sensitivity coherence provides convergent evidence that the MATLAB/Simulink model is correctly implemented and is suitable for the comparative evaluations reported in
Section 3.
2.9. Methodological Rationale and Alternatives
Adaptive model predictive control was not adopted because it requires online model adaptation and the repeated solution of constrained optimizations at the time scales relevant for low-voltage microgrids’ fast loops for reactive-power regulation and subsecond coordination for charging setpoints, thereby increasing runtime and tuning demands on realistic hardware and making fair benchmarking sensitive to modeling choices and constraint handling. Fuzzy MPC was also set aside: the design and re-tuning of membership functions and rule bases under changing operating envelopes complicate closed-loop guarantees in a hybrid predictive setting and reduce portability across scenarios. Instead, this study separates forecasting from actuation: a short-horizon forecaster anticipates exogenous variability, a rule-based supervisor schedules active power for charging, and flexible alternating-current devices provide fast reactive power support. This yields deterministic, low-latency execution without online optimization, preserves interpretability, and leverages complementary storage time scales (energy shaping) and reactive devices (voltage support) [
26,
27,
28,
29].
2.10. Data Sources and Profile Generation
The PV model is driven by measured global irradiance and ambient temperature time series that undergo standard quality control (spike removal and short-gap interpolation), aggregation to the simulation step, and plane-of-array conversion consistent with the array tilt and azimuth specified in the system diagram. Module temperature is derived from ambient measurements using standard practice. Electric vehicle charging demand is constructed from anonymized EVCS session logs (arrival time, dwell time, delivered energy), aggregated into a time-series profile at the simulation resolution and shaped by the empirical time-of-day patterns observed in the data. Forecasting models (LSTM) are trained on historical segments and evaluated on held-out sequences within the same operating envelope. To ensure consistency between comparative tables and response-surface figures, variability is exercised at two levels. The benchmark experiments use discrete points—BESS capacity
MWh, LSTM prediction latency
ms, and EVCS penetration
—while the surface plots rely on denser sweeps that span broader ranges (e.g.,
–
MWh and 60–200 ms) to expose trends across scenarios. This dual specification preserves direct comparability in the tables and continuity in the figures, and it matches the sensitivity analyses reported in the
Section 3.
2.11. Statistical Evaluation and Parameter Selection
To certify that improvements hold across operating variability, outcomes (RRI, frequency-deviation metrics such as RMSDf, , and settling time , and voltage-deviation events via VDI) are evaluated over ensembles that combine representative solar day types with multiple EVCS-arrival seeds at each penetration level. Results are summarized as medians with 95% bootstrap confidence intervals (10,000 resamples). Paired comparisons between configurations (baseline, LSTM-only, FACTS-only, and LSTM + FACTS) use the Wilcoxon signed-rank test; when multiple comparisons arise, the Holm correction is applied. Effect sizes (Cliff’s delta) are reported to complement p-values. This protocol avoids distributional assumptions and supports the robustness claims reported in the Results. Benchmark parameter levels are chosen to reflect nominal and stressed conditions at the distribution level while remaining consistent with the hardware/software constraints of the study. EVCS penetration of 50%, 100%, and 150% brackets normal, nominal, and high-demand regimes; BESS capacities of 0.6, 1.2, and 2.4 MWh represent cabinet-scale deployments spanning sub- and supra-nominal storage; and LSTM prediction latencies of 50, 100, and 200 ms encompass measured inference times on the target platform plus engineering margins. For response-surface figures, denser sweeps within these engineering ranges (e.g., 0.75–2.25 MWh and 60–200 ms) are used to visualize trend continuity without altering the discrete benchmark points used in comparative tables. This specification aligns the statistical treatment and parameter grid with the sensitivity analyses referenced in the Results.
2.12. Contingency Scenarios
All comparisons like-for-like in this study are performed under a single benchmark contingency: a step increase in EV charging demand at the left EVCS node at s. The magnitude of the step scales with the penetration factor defined in the scenario design and remains in effect thereafter (persistent step). The same event, input data, and model settings are used for all baseline configurations (no control), FACTS only, LSTM only, and the proposed LSTM + FACTS, so that only the control strategy varies across runs. In these comparative studies, no additional discrete switching events or faults are injected. Variability across realizations is introduced by the ensemble of measured irradiance profiles and by multiple EVCS-arrival seeds at each penetration level, as well as by the parameter sweeps reported in the sensitivity analyses.
5. Conclusions
This study assessed a hybrid strategy that couples short-horizon forecasting with coordinated reactive power support for distribution-level microgrids with electric vehicle charging. Under identical inputs and model settings, the hybrid controller consistently outperformed baseline, FACTS-only, and predictor-only configurations: the frequency RMSD dropped from 0.189 Hz (baseline) to 0.044 Hz, the maximum frequency deviation was limited to 0.18 Hz, the settling time decreased from 3.1 s to 0.6 s, and the voltage deviation index fell from 0.042 to 0.014. These like-for-like improvements demonstrate materially smoother transients and faster recovery with the coordinated use of storage dispatch and reactive support.
Robustness trends were corroborated by sensitivity analyses. Increasing BESS capacity generally enhanced the resilience index but with diminishing returns; conversely, performance degraded when the prediction latency exceeded approximately 150 ms or when EVCS penetration reached the highest stress levels. For instance, the resilience index decreased from 3.72 at 50% EVCS penetration to 2.91 at 150%, underscoring the value of coordinated control under mobility-driven variability.
This evidence is preliminary and bounded by the simulation scope. The feeder model and device representations are simplified; measurement noise, protection interactions, harmonic effects, and communications beyond the assumed latency were not exhaustively treated; and the forecaster was trained within the test-system envelope. Future work will validate the scheme with hardware-in-the-loop and field trials, broaden datasets and feeder typologies with multi-day ensembles, and integrate explicit techno–economic objectives for joint BESS/FACTS sizing and for benchmarking against advanced adaptive controllers under identical constraints.