1. Introduction
A modern power grid consists of distributed generations (DGs) such as renewable energy sources (RESs). It is characterized by decentralized and distributed control and operation systems. There are several options available to customers when considering marketing and deregulation policies. In this type of power grid, the use of remote and automated monitoring/control is common, including a wide range of generation and demand. Modern power grids are known for several new features, such as full generation/load control, bidirectional flows of power and data, the integration of numerous DGs and RESs, a wide network of monitoring units such as phasor measurement units (PMUs) and intelligent electronic devices, while the complexity in these systems is increased [
1].
A modern power grid has sophisticated metering technology that enables remote reading and monitoring as well as remote connection and disconnection. This infrastructure enhances consumer visibility and provides a pathway for home and grid automation. However, the primary issues affecting the dynamic performance and stability of a modern power grid arise from a decrease in the rotational inertia of the system, which occurs when grid-connected converters (GCCs) associated with DGs and RESs progressively replace synchronous generators (SGs).
Decreasing the rotational inertia in a power grid may hurt the system reaction and could affect the control capability and performance [
2]. This may result in significant fluctuations in grid frequency, angle, and voltage, and it may potentially cause system instability [
1]. Therefore, the increasing penetration of GCCs leads to a reduction in power grid inertia, which poses significant challenges for load–power balance and frequency management. The inherent nature of renewable power production further intensifies this problem [
2]. Consequently, many studies have been conducted in this area, and several techniques have been introduced using grid-forming (GFM) converters’ capabilities to address this challenge.
GFM converters are now commonly acknowledged as a viable option for enhancing modern electrical grids. These systems can operate in both grid-connected and islanded operating modes [
1]. The integration of GFM converters can reduce frequency nadir in a hybrid diesel microgrid. Researchers in [
3] investigate the transient dynamics of a real-world hybrid diesel microgrid. It proposes a transition from a diesel spinning reserve to a battery energy storage system (BESS) operating reserve scheme. The proposed transition improves power quality in terms of voltage deviation and frequency nadir when the microgrid is subjected to a loss of wind generation scenario. Additionally, Ref. [
4] explores the use of hybrid energy storage systems with GFM conversion in low-inertia systems. It highlights the importance of these systems in addressing reduced system inertia and ensuring grid stability. The study highlights the operational advantages of hybrid systems over traditional BESS systems, emphasizing the need for prioritizing their deployment and optimization for sustainable energy.
In a DC microgrid, photovoltaic systems (PVSs) usually function in the maximum power point tracking (MPPT) mode, while the DC bus voltage is mainly regulated by the energy storage system (ESS). Thus, to ensure the stability of the bus voltage in DC microgrids, it is often necessary to have large-scale ESSs, which leads to higher investments and maintenance expenses. Ref. [
5] introduces an adaptive power point tracking (APPT) control approach for PVSs to run in the GFM mode and actively regulate the voltage for a DC microgrid. Additionally, a virtual inertia control mechanism is suggested to enable the ESS to function in the GFM mode and mimic the dynamic properties of an SG. Furthermore, the suggested method introduces adaptive non-singular terminal sliding mode control loops for the voltage and current control loops of the GFM converters. This approach successfully enhances the voltage and frequency regulation performance.
BESSs can rapidly modify their power output beyond the capabilities of traditional power production. This makes them valuable assets for restoring and maintaining appropriate levels of frequency control capacity. BESSs are often linked to the electrical grid using a power converter that can function in GFM modes. Ref. [
6] provides a quantitative analysis of the influence of large-scale BESSs on the ability of a low-inertia power grid to regulate frequency. It also compares the effectiveness of GFM converters’ management mode in this regard. Additionally, Ref. [
7] presents a new approach called virtual inertia control that uses a feedforward decoupling strategy to solve the problem of low inertia in GFM converter-interfaced microgrids. The feedforward control strategy is used to mitigate the interdependence between active and reactive power resulting from line impedance. An active power–voltage droop is used for the battery converter in hybrid energy storage systems (HESSs). This updated voltage input control approach has been developed to enhance the inertia of the microgrid by improving the supercapacitor converter in a HESS. An in-depth analysis was performed to create a precise small-signal model of the supercapacitor converter using the suggested virtual inertia control. This resulted in the derivation of a transfer function model. Additionally, virtual inertia and virtual damping were investigated using the pole–zero map technique to determine their parameters.
With the widespread integration of GFM-based sources into power grids, there is a growing interest in distributed energy systems. Nevertheless, reduced inertia adversely affects the stability of voltage or frequency and the capacity of systems to withstand disturbances, making power quality susceptible to the intermittent and unpredictable nature of solar or wind plants. Hence, virtual inertia control is suggested to sustain system stability. Ref. [
8] presents a virtual adaptive inertia control technique. The dual extended Kalman filter is used to predict the online states of energy storage battery packs (ESBPs). The virtual inertia and droop parameters are determined using fuzzy logic and virtual battery algorithms, which consider the battery states and bus voltage changes. The objective is to allocate inertia and power during dynamic and steady periods, respectively. It can mitigate voltage fluctuations, enhance system stability, and accomplish decentralized and coordinated control throughout the whole operation of the microgrid. Furthermore, the implementation of a microgrid with a significant proportion of RESs is now essential. ESSs offer sustainable and uninterrupted active power assistance to the power grid, while also being cost-effective and environmentally friendly. Nevertheless, as mentioned above, the lack of inertia is a drawback of RES-based systems, as it has a detrimental impact on the dynamic performance of the microgrid and may result in serious repercussions such as a loss of synchronization and instability. Various strategies have been suggested to simulate virtual inertia to solve the problem of inertia deficit. Out of these options, the derivative control technique (DCT) is widely favored because of its straightforwardness and efficiency. The abovementioned study employed ESSs to provide virtual inertia assistance via DCT during load imbalance. However, this approach fails to consider the potential for harnessing virtual inertia support derived from ESSs. Ref. [
9] presents an innovative approach to harnessing the virtual inertia capability of ESS by enhancing the derivative control mechanism, hence enhancing the dynamic performance of the system.
In DC microgrids, the size of the DC connection capacitor is minimized to ensure the presence of inherent inertial properties. Consequently, significant voltage variations arise when there are changes in the load or unpredictable fluctuations in the power supply from unreliable sources. This results in a deterioration in voltage quality. To address the issue of low inertia, Ref. [
10] suggests the use of a high-speed ESS technology, such as a supercapacitor, which can imitate inertial reactions by using a specific control algorithm. A bidirectional DC-DC converter is used to connect a supercapacitor ESS to a DC microgrid. The control method consists of a virtual capacitor and a virtual conductance. The implementation is carried out inside the inner loop controls, namely the current loop control, to provide a high-speed emulation of the concepts of inertia and damping.
Recent research has focused on the incorporation of GFM converters with energy storage devices, since they have the potential to significantly improve grid stability and performance. Nevertheless, there is a significant deficiency in the existing body of literature about the use of ESS-based GFM converters to effectively enhance frequency performance robustly. The present work aims to overcome this limitation by proposing an efficient and reliable frequency control technique that combines Kharitonov’s theorem with a Bayesian optimization approach. Kharitonov’s theorem gives a framework for studying the robustness of closed-loop control system while faced with unknown parameters. Additionally, Bayesian optimization provides a systematic approach for optimizing the obtained robust results to reach the most acceptable performance. The proposed control strategy seeks to improve the frequency and active power control by integrating the two techniques mentioned above. This would eventually result in a more robust and dependable electrical grid that can effectively handle the growing use of RESs. The proposed control strategy is successfully examined in a power grid case study using a supercapacitor-based GFM converter. The results are verified in both simulation and laboratory real-time experimental environments.
Optimizing a complex system involves selecting suitable optimization algorithms and tuning their parameters for efficiency. Genetic algorithms (GAs) are a widely recognized optimization method that aims to identify the optimal solution within a wide range of feasible options. This method finds the optimal solution in complex control systems as presented in [
11]. In addition, control schemes for the coordination of multiple microgrid generators are presented in [
12], especially with voltage source converter type interfaces, for both grid-connected and autonomous modes. To maintain required control performance and power quality during severe conditions, an effective optimal control parameter-tuning method using the particle swarm optimization (PSO) algorithm is proposed.
The novelty of this work lies in the application of a robust stability method utilizing the Kharitonov theorem, combined with a systematic D-stability approach through Bayesian optimization for a GCC powered by ESSs. Additionally, this study demonstrates the capability of frequency regulation support achieved with a simple optimally adjusted PI controller, ensuring robust performance.
This paper is organized as follows:
Section 2 provides the theoretical background essential for understanding the discussed concepts.
Section 3 introduces the microgrid case study that serves as the basis for the control analysis and synthesis.
Section 4 focuses on power–frequency response modeling and analysis, detailing the methodologies employed. In
Section 5, the proposed robust optimal secondary controller design is presented, highlighting the key design principles.
Section 6 discusses the simulation and laboratory real-time results, showcasing the practical implications of the proposed approach. Finally,
Section 7 concludes the paper, summarizing the findings and their significance.
4. Power–Frequency Response Modeling and Analysis
The objective of this section is to analyze the dynamic characteristics of the GFM converter and its compatibility with an actual AC system. In addition to ensuring synchronization and consistent power injection, the converter must also be capable of providing grid control support. Therefore, a GFM control is employed to provide an inertial effect, which aids in restricting the rate of change of frequency (RoCoF) following a serious load-generation disturbance.
The GFM converter connected with an AC system which is shown in
Figure 3 is redrawn in
Figure 5. In this figure, the AC power grid is replaced by its frequency response model, which is widely recognized for power system frequency and active power response analysis and relevant control synthesis issues. Frequency regulation support can be provided using the GFM converter by implementing an outer droop control loop. The aggregated turbine dynamics are simplified with a swing equation and an associated lead–lag filter [
17,
18]. To support the grid frequency, a governor has been added. The ratio between the rated powers of AC sources as given in Equation (4) is the basis for achieving a realistic situation. Its aim is to demonstrate how the GFM converter supports the AC grid and affects the system frequency response.
PR, , and , are the power ratio, converter side base power, and grid side base power, respectively.
In this research, the GFM converter and AC grid deliver a total of 1000 MW of power (
). It is noteworthy that, here in the reduced-order frequency response model, the nonlinearities and fast dynamics of both the grid and GFM converter are neglected. Moreover, it is assumed that the system is already equipped with other required protection and control units such as a synchronizing system [
19,
20].
4.1. A Simplified Power–Frequency Response Model
The use of simplified models for power system analysis is a well-established practice, particularly while the focus is on studying system frequency response and active power characteristics. Similarly, in the context of modern power grids including GFM-based DGs connected to the grid, this modeling approach is acceptable [
1]. In this subsection, the detailed non-linear model of the system under investigation for the sake of frequency response analysis and supplementary control design is reduced to the second-order model. Simulation findings also demonstrate that, for frequency and active power studies, the reduced second-order model can be employed as a substitute for the detailed dynamics model. This model simplification is specifically validated for supplementary control system analysis and synthesis, as its dynamics are slower than the dynamics of primary control layer.
Like
Figure 4, a quasi-static model is utilized for the grid-connected GFM converter in
Figure 6. According to
Figure 6, a differential equation for small signal frequency and active power analysis can be written as follows:
Here,
are controller gain, cut-off frequency, and base frequency, respectively. The active power flow between the GFM converter and the AC grid is calculated as follows:
where
is the synchronization coefficient of the converter. By combining (5) and (6), the following equation is obtained:
Then,
can be expressed in terms of
and
:
Neglecting the frequency estimation error,
, (8) can be rewritten as follows:
Ignoring the power losses in
Figure 5, the power flowing from
to
is the same as the power flowing from
to
. A similar relation as in Equation (6) can be derived by using
and
.
is the equivalent angle obtained from the grid frequency response model using the concept of the center of inertia frequency (angle) for a control area [
1].
where
is a synchronizing coefficient of the grid (with respect to its aggregated model) (
). Using
and
results in the following:
Assuming constant frequency in the equivalent frequency response model (
), the relation between
and
can be derived as follows:
Finally, by replacing
from Equation (12) to Equation (9), a second-order model is obtained:
The reduced frequency response model given by (13) is compared to the full dynamic linear model and detailed non-linear model to demonstrate its accuracy. It is noteworthy that the detailed nonlinear model is implemented in the Sim-power toolbox of the MATLAB (R2024b) invironment. The full dynamic linearized model can be provided by Equations (14) and (15).
where TVR represents transient virtual resistance. The obtained results indicate that all models behave in a similar manner, which confirms the validity of the proposed simplified model for frequency response analysis. The active power and frequency dynamics for various control and system parameters can be analyzed using this model in the next subsection [
16]. The linearized model represented by Equation (15) is a 12-order dynamic model.
4.2. An Updated Simplified Model
The behavior of a GFM converter under variable frequency of the equivalent grid control area is investigated in this subsection. Indeed, with the fixed frequency of the equivalent grid configuration (i.e., ), the active power dynamics were impacted only by the grid impedance as proved by Equation (13). The variable frequency has a significant impact on the system dynamics because is no longer null.
Equation (9) is employed to examine the dynamic of active power. In Equation (9),
must be expressed with respect to the converter and the AC grid parameters.
is the power consumed by the domestic load. By inserting Equation (15) into Equation (9), the following expression is obtained:
Using the grid frequency response model in
Figure 5,
can be written as follows [
21]:
are the parameters of the grid frequency response model. By replacing
in Equation (17) with Equation (18), the transfer functions of the active power with respect to the setpoint
and
are obtained:
where
,
,
, and
are given in
Appendix A. The obtained transfer function is of the fourth order.
The control structure depicted in
Figure 6 provides the potential for grid active power (frequency) tracking because of the incorporation of
. Since the present work is mainly focused on a grid with frequency support,
Figure 6 must be updated to find a clear representation between the GFM converter and the grid frequency response models, i.e., a relationship between
, and the given frequency set point (
). The updated model is shown in
Figure 7. In the updated control scheme, the output frequency
is obtained as follows:
According to
Figure 7, the differential equation presented in Equation (5) can be written as follows:
Then, Equation (6) can be updated as follows:
where
[
18]. Then, the closed-loop transfer function is determined by putting Equation (22) in Equation (23) as follows:
The steady-state error (ε) of the transfer function of Equation (23) can be expressed as follows:
Considering Equation (24), in a steady state, if the grid frequency changes, the active power will be adjusted with respect to the following equation:
The above equation is equivalent to the representation of the primary frequency control, often known as droop control. However, because of the power mismatch, the frequency is derived, and this function is alternatively referred to as “Inverse droop control” [
22,
23]. Hence, the ratio of the feedback gain
to the input frequency
is referred to as the droop gain. It affects the distribution of the total load among several sources. Based on the findings in Equations (20) and (25), it can be inferred that the addressed control structure acts as a hybrid control that serves as both a primary frequency control and an emulator of inertial effects.
The polynomial function that represents the characteristic equation of the closed-loop system is obtained from Equation (23) as follows:
The associated damping ratio
and the natural frequency
are obtained as follows:
The simulation results indicate that the error between the simplified model and the full dynamic model can be ignored. Therefore, it may be first inferred that the separation between the inner and outer control loops is assured. Furthermore, the reduced model will suffice for quasi-static analysis. Using Equation (23), the updated simplified model for GFM power control with respect to the relevant power is a second-order system:
Remark 1. In this study, the primary focus is on the dynamics of frequency and active power responses. Consequently, other dynamics are not addressed, and the analysis is limited to the perspectives of active power and frequency.
5. Proposed Robust Optimal Secondary Controller Design
5.1. Finding All Robust Stabilizing PI Controllers
By combining the PI-based supplementary controller and the inner power control loop given by Equation (28), the polynomial characteristic equation of the closed-loop system can be obtained. This equation enables the utilization of Kharitonov’s theorem to analyze the system robust stability. The closed-loop system, considering the PI controller (
), is defined as follows:
Considering the incorporation of a PI controller as the supplementary control layer for the case study presented in
Figure 3, the characteristic equation of the closed-loop system is derived as follows:
Considering 50% variation in
and
(max
and min
as uncertain parameters,
and
in Equation (2) can be obtained, and Kharitonov’s polynomials can be calculated (i denotes the number of coefficients). The line parameters
and
are identified as uncertainties for two primary reasons: (i) The line parameters are derived from estimation methods, which inherently introduce uncertainties. This indicates that these parameters are not fixed values but are subject to variation. (ii) Alterations in grid topology can result in modifications to the line parameters. These changes can be modeled as uncertainties, reflecting the dynamic nature of the system. As given in Equation (30), the order of the closed-loop system is three, and as mentioned earlier, for applying Kharitonov’s theorem on a third-order characteristic equation, the Hurwitz criterion just needs to be tested for the third polynomial of Equation (2):
where
To ensure the stability of
, using a Routh–Hurwitz table, the following inequality must be derived, which provides the necessary and sufficient condition:
Considering the above inequality, it is possible to find the allowed values of and to satisfy the robust stability. In the next section, the results of this stage are shown in detail.
In fact, the Kharitonov polynomial
leads to the determination of a family of PI parameters (
) to keep stabilizing the closed-loop system in the presence of the perturbation of specified uncertain parameters.
Figure 8 illustrates all members of the solution family for the PI parameters.
The zero-exclusion condition [
13] is a fundamental concept for assessing system stability. In this study, the zero-exclusion condition is analyzed within the frequency range of
kHz, and the resulting geometric representation is presented in
Figure 9. According to the zero-exclusion condition, the considered closed-loop system is robustly stable because the rectangle plots do not encompass the origin of the plane. This condition is crucial in ensuring the robust stability of the system for specific parameter perturbation and disturbances.
5.2. Finding Optimal Robust Solutions
To achieve robust stability for the selected case study, a family of solutions for the proportional gain () and integral gain parameters has been obtained. This solution family ensures the stability of the closed-loop system under various operating conditions regarding parametric uncertainty. However, to determine the optimal values for and to achieve the desired performance, a Bayesian optimization method has been employed.
To enhance robust optimal performance using Bayesian optimization, the system performance metrics are considered as the step response maximum overshoot and settling time to perform the required objective functions. The objective was to find the best values of and that minimize these performance metrics.
Through the Bayesian optimization process, the best values for and among the Kharitonov’s solutions family were identified. These values were selected based on their ability to minimize the maximum overshoot and settling time, indicating improved system performance. By using this optimization method, an optimal PI controller is obtained, ensuring both robust stability and optimal performance for the given case study.
To evaluate the performance of each PI parameter combination (), a cost function is defined. The cost function includes the performance metric obtained via the step response of the closed-loop system for each pair of and values within the mentioned solution family. The step response is analyzed to determine the relevant settling time () and overshoot ().
The objective function is calculated as a linear combination of the settling time and overshoot, where the settling time is multiplied by a weight of 10 to prioritize its minimization. The weight of 10 assigned to the settling time in the objective function was chosen based on the relative importance of minimizing the settling time compared to the overshoot. Since the settling time is a critical performance metric that directly impacts the system’s responsiveness and performance, we decided to prioritize its minimization by weighting it more heavily than the overshoot in the overall cost function. This approach reflects the fact that excessive settling time can be detrimental to system performance, even if the overshoot is relatively low.
The specific weight of 10 was determined through accurate testing and sensitivity analysis, as it provided a good balance between minimizing the settling time while also considering the overshoot. However, the choice of the weight factor is ultimately dependent on the specific requirements and priorities of the system under study. In a different application, the relative weights assigned to the settling time and overshoot in the objective function may need to be adjusted accordingly. The optimization process includes four main steps:
Step 1: Determine the step response for the given and .
Step 2: Calculate the corresponding settling time () and overshoot ().
For a step response vector,
and
can be calculated as follows:
Step 3: Calculate the corresponding cost function (CF) as follows:
Step 4: If the optimization criteria are satisfied, stop; otherwise, and go back to step 1.
The developed algorithm flowchart is shown in
Figure 10. The key aspect here is that the Bayesian optimization algorithm adjusts the values of
and
in an iterative manner, guided by the internal model’s understanding of the relationship between the parameter values and the CF. This allows the algorithm to efficiently explore the parameter space and converge to the optimal values.
By iteratively investigating different combinations of and values and evaluating their performance using the defined CF, the Bayesian optimization algorithm determines the optimal values that minimize the CF, providing an efficient and data-driven approach to tuning the controller parameters for improved system performance as desired.