Walrus Optimization-Based Adaptive Virtual Inertia Control for Frequency Regulation in Islanded Microgrids
Abstract
1. Introduction
- First application of WaOA for frequency regulation in PV-based microgrids.
- Dual-layer VIC–PID architecture combining fast inertia with WaOA-tuned PID.
- Comprehensive validation under medium/low inertia and uncertainty.
- Benchmarking against PID, IMC-PID, and H∞-VIC with superior results.
2. Methodology
- A primary virtual inertia control (VIC) layer is integrated with an energy storage system (ESS).
- A secondary proportional–integral–derivative (PID) controller tuned by the Walrus Optimization Algorithm (WaOA).
2.1. Primary Layer (Virtual Inertia Control with ESS)
2.2. Secondary Layer (WaOA-PID Control)
2.3. Area Control Error (ACE) Coordination
2.4. Disturbance and System Modeling
2.5. Adaptive Control Integration
- Figure 2a—Baseline damping loop: Conventional virtual inertia and damping terms stabilize frequency deviations immediately after a disturbance.
- Figure 2b—Supplementary damping control: An additional feedback loop introduces extra damping to suppress oscillations.
- Figure 2c—Adaptive inertia regulation: The virtual inertia constant is dynamically adjusted between and to reflect real-time system conditions.
- Figure 2d—Unified adaptive framework: Both adaptive damping and adaptive inertia are integrated with the WaOAPID controller. Here, WaOA optimally tunes the control parameters, ensuring improved robustness, reduced overshoot, and faster frequency recovery under high renewable penetration.
- Equations (5) and (6) extend the classical VIC formulation in Equation (1) by allowing the inertia constant and damping coefficient to adapt dynamically as functions of the system state, thereby improving robustness under varying disturbances.
2.6. WaOA-PID Optimization
| Algorithm 1 Pseudocode of WaOA |
| Input: Optimization problem, number of walruses , maximum iterations . Output: Best PID gains .
|
3. Results and Discussion
3.1. Challenges of Maintaining Frequency Stability
3.2. Inference
- The study compared the WaOA-PID controller with conventional PID, IMC-PID, and H∞ VIC controllers using the following key performance metrics:
- Frequency Nadir (Minimum Frequency): Indicates the lowest frequency dip after a disturbance, reflecting system resilience.
- Overshoot/Undershoot: Measures peak deviation from the nominal frequency, showing transient stability.
- Settling Time: Time taken for frequency to return within an acceptable range around the nominal value, assessing dynamic response.
- Rate of Change of Frequency (RoCoF): Evaluates the ability to slow rapid frequency variations, important for inertia emulation.
- Integral Error Indices (ISE, ITAE): Quantify overall control performance by integrating frequency deviation over time.
- Control Effort: Assesses the energy or actuation demand for implementing the control strategy.
- Conventional PID controllers face significant limitations in dynamic microgrid environments due to fixed gain settings, which cannot adapt to rapid changes in load and renewable generation. Their inability to handle nonlinear dynamics often leads to high overshoot, oscillations, and prolonged settling times. Furthermore, they lack robustness against parameter uncertainties and exhibit poor performance under reduced inertia conditions caused by inverter-based resources. The WaOA-PID controller addresses these challenges by employing Walrus Optimization for adaptive tuning of PID gains, ensuring optimal performance under varying operating scenarios. This approach minimizes overshoot, reduces RoCoF, shortens settling time, and achieves the lowest ITAE and ISE values, providing superior frequency regulation and enhanced stability compared to conventional PID strategies.
4. Conclusions
5. Research Limitations
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| ACE | Area Control Error |
| AID-VSG | Adaptive Inertia and Damping Virtual Synchronous Generator |
| ANN | Artificial Neural Network |
| D(t) | Time-varying Damping Coefficient |
| ESS | Energy Storage System |
| FACTS | Flexible AC Transmission Systems |
| GA | Genetic Algorithm |
| GRC | Governor Rate Constraint |
| H(t) | Time-varying Virtual Inertia |
| H∞ | H-infinity |
| Hmin, Hmax | Minimum and Maximum Virtual Inertia |
| ITAE | Integral of Time-Weighted Absolute Error |
| KD | Damping Control Gain |
| KH | Inertia Control Gain |
| LFC | Load Frequency Control |
| MPC | Model Predictive Control |
| PD | Damping Power |
| PDPI | Proportional Derivative Proportional Integral |
| PID | Proportional–Integral–Derivative |
| PLL | Phase-Locked Loop |
| PSO | Particle Swarm Optimization |
| RESs | Renewable Energy Sources |
| RoCoF | Rate of Change of Frequency |
| SG | Synchronous Generator |
| TD | Time Constant of Damping Filter |
| VIC | Virtual Inertia Control |
| VSG | Virtual Synchronous Generator |
| Vu, VL | Upper and Lower Valve Rate Limits |
| WaOA | Walrus Optimization Algorithm |
References
- Kerdphol, T.; Rahman, F.S.; Watanabe, M.; Mitani, Y.; Turschner, D.; Beck, H.P. Enhanced Virtual Inertia Control Based on Derivative Technique to Emulate Simultaneous Inertia and Damping Properties for Microgrid Frequency Regulation. IEEE Access 2019, 7, 14422–14433. [Google Scholar] [CrossRef]
- Abdel-Rahim, O.; Chub, A.; Vinnikov, D.; Blinov, A. DC Integration of Residential Photovoltaic Systems: A Survey. IEEE Access 2022, 10, 66974–66991. [Google Scholar] [CrossRef]
- 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]
- 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]
- Sun, S.; Liu, T.; Deng, Y. VSG Frequency Regulation Strategy for Adaptive Model Predictive Control. Int. J. Mech. Electr. Eng. 2024, 2, 13–26. [Google Scholar] [CrossRef]
- Kerdphol, T.; Rahman, F.S.; Mitani, Y. Virtual Inertia Control Application to Enhance Frequency Stability of Interconnected Power Systems with High Renewable Energy Penetration. Energies 2018, 11, 981. [Google Scholar] [CrossRef]
- ENTSO-E. Frequency Stability Evaluation Criteria for the Synchronous Zone of Continental Europe—Requirements and Impacting Factors; ENTSO-E: Brussels, Belgium, 2016; Available online: https://www.entsoe.eu/Documents/SOC%20documents/RGCE_SPD_frequency_stability_criteria_v10.pdf?utm_source=chatgpt.com (accessed on 5 June 2025).
- Kerdphol, T.; Rahman, F.S.; Watanabe, M.; Mitani, Y. Robust Virtual Inertia Control of a Low Inertia Microgrid Considering Frequency Measurement Effects. IEEE Access 2019, 7, 57550–57560. [Google Scholar] [CrossRef]
- Zhao, J.; Lyu, X.; Fu, Y.; Hu, X.; Li, F. Coordinated Microgrid Frequency Regulation Based on DFIG Variable Coefficient Using Virtual Inertia and Primary Frequency Control. IEEE Trans. Energy Convers. 2016, 31, 833–845. [Google Scholar] [CrossRef]
- Castro Martinez, J.; Arnaltes, S.; Alonso-Martinez, J.; Rodriguez Amenedo, J.L. Contribution of Wind Farms to the Stability of Power Systems with High Penetration of Renewables. Energies 2021, 14, 2207. [Google Scholar] [CrossRef]
- Parise, G.; Martirano, L.; Kermani, M. Designing a Power Control Strategy in a Microgrid Using PID/Fuzzy Controller Based on Battery Energy Storage. In Proceedings of the 2017 IEEE International Conference on Environment and Electrical Engineering (EEEIC/I&CPS Europe), Milan, Italy, 6–9 June 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 1–5. [Google Scholar] [CrossRef]
- Sayed, F.; Kamel, S.; Abdel-Rahim, O. Load Shedding Solution Using Multi-Objective Teaching-Learning-Based Optimization. In Proceedings of the 2018 International Conference on Innovation Trends in Computer Engineering (ITCE), Aswan, Egypt, 19–21 February 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 447–452. [Google Scholar] [CrossRef]
- Gong, K.; Shi, J.; Liu, Y.; Wang, Z.; Ren, L.; Zhang, Y. Application of SMES in the Microgrid Based on Fuzzy Control. IEEE Trans. Appl. Supercond. 2016, 26, 3800205. [Google Scholar] [CrossRef]
- Kamel, S.; Rabea, F.; Jurado, F.; Abdel-Rahim, O. Implementation of a Simplified SVC Model into Newton-Raphson Load Flow Algorithm. In Proceedings of the 2018 International Conference on Innovation Trends in Computer Engineering (ITCE), Aswan, Egypt, 19–21 February 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 374–437. [Google Scholar] [CrossRef]
- Mohamed, E.A.; Mitani, Y. Enhancement of the Dynamic Performance of Islanded Microgrid Using a Coordination of Frequency Control and Digital Protection. Int. J. Emerg. Electr. Power Syst. 2019, 20, 20180136. [Google Scholar] [CrossRef]
- Sedghi, L.; Fakharian, A. Voltage and Frequency Control of an Islanded Microgrid through Robust Control Method and Fuzzy Droop Technique. In Proceedings of the 2017 5th Iranian Joint Congress on Fuzzy and Intelligent Systems (CFIS), Qazvin, Iran, 7–9 March 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 110–115. [Google Scholar] [CrossRef]
- Shobug, M.A.; Hossain, M.A.; Yang, F.; Lu, J. Dynamic Control of Isolated Network Microgrids: A Resilient Backpropagation Neural Network-Based Virtual Inertia Control Approach. IEEE Access 2025, 13, 99939–99956. [Google Scholar] [CrossRef]
- Rakhshani, E.; Remon, D.; Cantarellas, A.M.; Garcia, J.M.; Rodriguez, P. Virtual Synchronous Power Strategy for Multiple HVDC Interconnections of Multi-Area AGC Power Systems. IEEE Trans. Power Syst. 2017, 32, 1665–1677. [Google Scholar] [CrossRef]
- Rakhshani, E.; Remon, D.; Cantarellas, A.M.; Rodriguez, P. Analysis of Derivative Control-Based Virtual Inertia in Multi-Area High-Voltage Direct Current Interconnected Power Systems. IET Gener. Transm. Distrib. 2016, 10, 1458–1469. [Google Scholar] [CrossRef]
- Shayeghi, H.; Jalili, A.; Shayanfar, H. Multi-Stage Fuzzy Load Frequency Control Using PSO. Energy Convers. Manag. 2008, 49, 2570–2580. [Google Scholar] [CrossRef]
- Anuradhika, K.; Dash, P. Genetic Algorithm-Based Load Frequency Control of a Grid-Connected Microgrid in the Presence of Electric Vehicles. In Sustainable Energy and Technological Advancements: Proceedings of IS-SETA 2021; Springer: Singapore, 2022; pp. 435–447. [Google Scholar] [CrossRef]
- Safari, A.; Babaei, F.; Farrokhifar, M. A load frequency control using a PSO-based ANN for micro-grids in the presence of electric vehicles. Int. J. Ambient. Energy 2019, 42, 688–700. [Google Scholar] [CrossRef]
- Dhillon, S.S.; Lather, J.S.; Marwaha, S. Multi Area Load Frequency Control Using Particle Swarm Optimization and Fuzzy Rules. Procedia Comput. Sci. 2015, 57, 460–472. [Google Scholar] [CrossRef]
- Lastomo, D.; Setiadi, H.; Djalal, M.R. Enabling PID and SSSC for Load Frequency Control Using Particle Swarm Optimization. In Proceedings of the 2017 3rd International Conference on Science in Information Technology (ICSITech), Bandung, Indonesia, 25–26 October 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 182–187. [Google Scholar] [CrossRef]
- Gupta, D.K.; Jha, A.V.; Appasani, B.; Srinivasulu, A.; Bizon, N.; Thounthong, P. Load Frequency Control Using Hybrid Intelligent Optimization Technique for Multi-Source Power Systems. Energies 2021, 14, 1581. [Google Scholar] [CrossRef]
- Sahoo, P.K.; Mohapatra, S.; Gupta, D.K.; Panda, S. Multi Verse Optimized Fractional Order PDPI Controller for Load Frequency Control. IETE J. Res. 2020, 68, 3302–3315. [Google Scholar] [CrossRef]
- Nguyen, V.T.; Truong, T.B.T.; Truong, Q.V.; Nguyen, H.V.P.; Duong, M.Q. Iterative Learning Control for Virtual Inertia: Improving Frequency Stability in Renewable Energy Microgrids. Sustainability 2025, 17, 6727. [Google Scholar] [CrossRef]
- Kom, C.H. Understanding Interphase Power Controller: A Description. J. Electr. Eng. Electron. Control Comput. Sci. 2020, 6, 19–24. [Google Scholar]
- Fan, W.; Hu, Z.; Veerasamy, V. PSO-Based Model Predictive Control for Load Frequency Regulation with Wind Turbines. Energies 2022, 15, 8219. [Google Scholar] [CrossRef]
- Kunya, A.B.; Argin, M.; Kucuksari, S. Optimal Load Frequency Control of Multi-Area Power System Considering Incremental Control Action. In Proceedings of the 2019 IEEE Texas Power and Energy Conference (TPEC), College Station, TX, USA, 7–8 February 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 1–6. [Google Scholar] [CrossRef]
- Gözde, H.; Taplamacıoğlu, M.; Kocaarslan, I.; Çam, E. Particle Swarm Optimization-Based Load Frequency Control in a Single-Area Power System. Univ. Pitesti Comput. Sci. Bull. 2008, 8, 25–32. [Google Scholar]
- Sarir, N.; Morsli, S.; Allaoui, T.; Denai, M. Optimal Fractional-Order PI Control Design for a Variable Speed PMSG-Based Wind Turbine. J. Eur. Syst. Autom. 2021, 54, 915–922. [Google Scholar] [CrossRef]
- Govindaraju, S.K.; Sivalingam, R.; Panda, S.; Sahu, P.R.; Padmanaban, S. Frequency Control of Power System with Distributed Sources by Adaptive Type 2 Fuzzy PID Controller. Electr. Power Compon. Syst. 2023, 52, 487–508. [Google Scholar] [CrossRef]
- Qin, Z.; Liu, D.; Hua, H.; Cao, J. Privacy Preserving Load Control of Residential Microgrid via Deep Reinforcement Learning. IEEE Trans. Smart Grid 2021, 12, 4079–4089. [Google Scholar] [CrossRef]
- Mishra, D.; Maharana, M.K.; Kar, M.K.; Nayak, A.; Islam, M.M.; Ustun, T.S. A Metaheuristic Algorithm for Regulating Virtual Inertia of a Standalone Microgrid Incorporating Electric Vehicles. J. Eng. 2024, 2024, e12383. [Google Scholar] [CrossRef]
- Khan, I.; Shah, M.A.; Ullah, F.; Rehman, A.U.; Javaid, N. Enhanced Load Frequency Regulation in Microgrids with Renewable Energy Sources and Electric Vehicles. Sci. Rep. 2025, 15, 10835. [Google Scholar] [CrossRef]
- Khosravi, N.; Çelik, D.; Bevrani, H.; Echalih, S. Microgrid stability: A comprehensive review of challenges, trends, and emerging solutions. Int. J. Electr. Power Energy Syst. 2025, 170, 110829. [Google Scholar] [CrossRef]
- Yegon, M.; Wekesa, C.; Gikunda, A. Frequency Stability Enhancement of Microgrid Using Optimization Techniques-Based Adaptive Virtual Inertia Control. Int. Trans. Electr. Energy Syst. 2023, 33, e2121721. [Google Scholar] [CrossRef]
- Tuan, T.T.; Lee, D. Improving Frequency Control of Multi-Area Interconnected Power Systems Using PSO-Tuned PID Controllers. Appl. Sci. 2025, 15, 2898. [Google Scholar] [CrossRef]
- Rohmingtluanga, R.; Vanlalsawma, C.; Lalduhawma, C. Enhanced Harris Hawks Optimization Based Load Frequency Control of Multi-Area Power Systems. Front. Energy Res. 2024, 12, 1387780. [Google Scholar] [CrossRef]
- Imtiaz, M.; Ahmad, S.; Rehman, H.U.; Ali, H. Improving Microgrid Frequency Stability through PI-PIDA Based Advanced Control Techniques. Energy Rep. 2025, 11, 1039–1052. [Google Scholar] [CrossRef]
- Saadati Toularoud, M.; Farhadi, M.; Hosseini, S.E. Enhancing Microgrid Voltage and Frequency Stability with Renewable Energy Integration Using Advanced Controllers. Math. Probl. Eng. 2024, 2024, 4933861. [Google Scholar] [CrossRef]
- Gupta, D.K.; Thounthong, P.; Bizon, N. Student Psychology-Based Optimization-Tuned Cascaded Controller for Frequency Regulation in Renewable Integrated Microgrids. Front. Energy Res. 2024, 12, 1355608. [Google Scholar] [CrossRef]
- Sanaei, M.; Akbari, H.; Beheshtipour, Z.; Mousavi, S. New PSO-GWO-Based Model for Enhancing Power Quality in Electrical Networks Interconnected with Photovoltaic Sources. Front. Energy Res. 2024, 12, 1476638. [Google Scholar] [CrossRef]
- Zhao, K.; Liu, Y.; Han, P.; Xu, J. Optimizing Load Frequency Control in Microgrids with Vehicle-to-Grid Integration Using ANN-PSO. Appl. Energy 2024, 361, 123317. [Google Scholar] [CrossRef]
- Alharbi, S.; Khan, M.; Alamri, B. State Estimation of Voltage and Frequency Stability in Solar-Storage Microgrids. Sci. Rep. 2025, 15, 10171. [Google Scholar] [CrossRef]
- Sharma, R.; Singh, J.; Verma, A. Frequency Stability Improvement of Isolated Microgrid Systems Using Optimal Fractional-Order Virtual Inertia Control Based on Whale Optimization. Int. J. Electr. Power Energy Syst. 2023, 155, 109567. [Google Scholar] [CrossRef]
- Nireekshana, N.; Ramachandran, R.; Narayana, G. A Novel Swarm Approach for Regulating Load Frequency in Two-Area Energy Systems. Int. J. Electr. Electron. Res. 2023, 11, 371–377. [Google Scholar] [CrossRef]
- Feleke, S.; Satish, R.; Salkuti, S.R.; Abdelaziz, A.Y. Load Frequency Control in Two-Area Interconnected Systems Using DE-PID and PSO-PID. In Power Quality in Microgrids: Issues, Challenges and Mitigation Techniques; Springer: Berlin/Heidelberg, Germany, 2023; pp. 391–407. [Google Scholar] [CrossRef]
- Raj, T.D.; Kumar, C.; Kotsampopoulos, P.; Fayek, H.H. Load Frequency Control in Two-Area Multi-Source Power System Using Bald Eagle–Sparrow Search Optimization Tuned PID Controller. Energies 2023, 16, 2014. [Google Scholar] [CrossRef]























| Parameter | Symbol | Value | Unit |
|---|---|---|---|
| Nominal system frequency | 50 | Hz | |
| Microgrid time constant | 0.4 | s | |
| Rated power | 250 | MW | |
| Governor time constant | 0.3 | s | |
| Speed regulation | 0.05 | p.u. | |
| Inertia constant | 6 | s | |
| Load variation | 0.7 | p.u. |
| Controller | Overshoot (%) | Undershoot (%) | Settling Time (s) |
|---|---|---|---|
| Conventional | 317.8 | 303.47 | 657.4 |
| IMC Turned PID | 128.71 | 122.5 | 668.8 |
| H∞ VIC | 18.52 | 17.627 | 668.4 |
| WaOA-PID | 15.205 | 14.473 | 668.9 |
| Controller | Settling Time (s) | Controller Error | Overshoot |
|---|---|---|---|
| WaOA-PID | ≈0 | 0.0005757 | ≈0 |
| PID | 1.2 | 0.0015 | 0.4 |
| Without PID | 3.4 | 0.0057 | 1.5 |
| Author | Controller | Setting Times (s) | Controller Error | Overshoot |
|---|---|---|---|---|
| [48] | PID-PSO Controller | 2.93 | 0.055% | 0.052 |
| [49] | DE-PID Controller | 11.1892 | - | 0.001 |
| [50] | BESSO-PID Controller | 10.4767 | - | 0.0001 |
| [21] | GA-PID | 5 | 0.50025% | 0.0 |
| Proposed Method | WaOA-PID | ≈0 | 0.000576% | ≈0 |
| Ref | Method/Algorithm | Test System | Key Results | Reported Limitations | Comparison with the Proposed Approach |
|---|---|---|---|---|---|
| [38] Yegon et al. (2023) | Optimization-based adaptive VIC | Islanded microgrid | Improved frequency stability with adaptive VIC | Narrow focus; limited comparative metrics | The method integrates VIC with advanced PID tuning for superior transient response and steady-state accuracy |
| [39] Tuan & Lee (2025) | PSO-tuned PID | Multi-area system | Enhanced frequency control with PSO-PID | Premature convergence; higher overshoot | The proposed technique achieves better convergence reliability, reduced overshoot, and lower RoCoF |
| [40] Rohmingtluanga et al. (2024) | Harris Hawks Optimization (HHO) for LFC | Multi-area power systems | Reduced frequency deviation using HHO | High computational demand; sensitive tuning | The approach balances search–exploitation with reduced complexity, ensuring faster convergence |
| [41] Imtiaz et al. (2025) | PI–PIDA advanced controllers | Microgrid system | Better dynamic response vs. PI | Complex tuning; weak under high uncertainty | This framework offers robust performance under uncertainty with minimized overshoot and improved settling time |
| [42] Saadati Toularoud et al. (2024) | Advanced RES integration controllers | Microgrid with PV & wind | Enhanced voltage and frequency stability | Limited validation; mostly simulation | The method is validated under broader disturbance and fault scenarios, ensuring realistic robustness |
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. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Akinwola, A.B.; Alkuhayli, A. Walrus Optimization-Based Adaptive Virtual Inertia Control for Frequency Regulation in Islanded Microgrids. Electronics 2025, 14, 3980. https://doi.org/10.3390/electronics14203980
Akinwola AB, Alkuhayli A. Walrus Optimization-Based Adaptive Virtual Inertia Control for Frequency Regulation in Islanded Microgrids. Electronics. 2025; 14(20):3980. https://doi.org/10.3390/electronics14203980
Chicago/Turabian StyleAkinwola, Akeem Babatunde, and Abdulaziz Alkuhayli. 2025. "Walrus Optimization-Based Adaptive Virtual Inertia Control for Frequency Regulation in Islanded Microgrids" Electronics 14, no. 20: 3980. https://doi.org/10.3390/electronics14203980
APA StyleAkinwola, A. B., & Alkuhayli, A. (2025). Walrus Optimization-Based Adaptive Virtual Inertia Control for Frequency Regulation in Islanded Microgrids. Electronics, 14(20), 3980. https://doi.org/10.3390/electronics14203980

