A Transferable DRL-Based Intelligent Secondary Frequency Control for Islanded Microgrids
Abstract
1. Introduction
- An intelligent two-layer distributed secondary frequency compensation structure is proposed, which preserves the PID controller differently from other ML-based secondary control. Building on the first layer of PID compensation, a second layer of DRL-based intelligent frequency controller is proposed to achieve precise frequency compensation.
- The DRL-based frequency controller employs the DQN algorithm to realize the improved accuracy of frequency compensation. Further, the fine-tuning model TL is used to reduce the DQN training time under multi-agent conditions.
2. Primary Control of AC Islanded Microgrids
3. Proposed Intelligent Secondary Control
3.1. Frequency Control Framework
3.2. Application Progress of Deep Q-Learning
3.2.1. Deep Q-Learning Principle
3.2.2. Application Process
3.3. Application Progress of Fine-Tuning Transfer Learning
4. Case Study
4.1. Offline Training Process
4.2. Simulation Results
4.3. Real-Time Test Result
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Khan, T.A.; Kahwash, F.; Ahmed, J.; Goh, K.; Papadopoulos, S. From Design to Deployment: A Comprehensive Review of Theoretical and Experimental Studies of Multi-Energy Systems for Residential Applications. Electronics 2025, 14, 2221. [Google Scholar] [CrossRef]
- Ma, Z.G.; Værbak, M.; Cong, L.; Billanes, J.D.; Jørgensen, B.N. Enhancing Island Energy Resilience: Optimized Networked Microgrids for Renewable Integration and Disaster Preparedness. Electronics 2025, 14, 2186. [Google Scholar] [CrossRef]
- Duan, H.; Shi, F.; Wang, S.; Cui, Q.; Zeng, M. A Time Synchronization Hop-Count-Control Algorithm Based on Synchronization Error Convergence Probability Estimation. Electronics 2025, 14, 2086. [Google Scholar] [CrossRef]
- Kuyumcu, A.; Karabacak, M.; Boz, A.F. High-Fidelity Modeling and Stability Analysis of Microgrids by Considering Time Delay. Electronics 2025, 14, 1625. [Google Scholar] [CrossRef]
- Han, Y.; Zhang, K.; Li, H.; Coelho, E.A.A.; Guerrero, J.M. MAS-Based Distributed Coordinated Control and Optimization in Microgrid and Microgrid Clusters: A Comprehensive Overview. IEEE Trans. Power Electron. 2018, 33, 6488–6508. [Google Scholar] [CrossRef]
- Chen, M.; Xiao, X.; Guerrero, J.M. Secondary Restoration Control of Islanded Microgrids with a Decentralized Event-Triggered Strategy. IEEE Trans. Ind. Inform. 2018, 14, 3870–3880. [Google Scholar] [CrossRef]
- Sahoo, S.; Yang, Y.; Blaabjerg, F. Resilient Synchronization Strategy for AC Microgrids Under Cyber Attacks. IEEE Trans. Power Electron. 2021, 36, 73–77. [Google Scholar] [CrossRef]
- Blaabjerg, F.; Teodorescu, R.; Liserre, M.; Timbus, A.V. Overview of Control and Grid Synchronization for Distributed Power Generation Systems. IEEE Trans. Ind. Electron. 2006, 53, 1398–1409. [Google Scholar] [CrossRef]
- Li, Z.; Cheng, Z.; Liang, J.; Si, J.; Dong, L.; Li, S. Distributed Event-Triggered Secondary Control for Economic Dispatch and Frequency Restoration Control of Droop-Controlled AC Microgrids. IEEE Trans. Sustain. Energy 2020, 11, 1938–1950. [Google Scholar] [CrossRef]
- Chen, X.; Qu, G.; Tang, Y.; Low, S.; Li, N. Reinforcement Learning for Selective Key Applications in Power Systems: Recent Advances and Future Challenges. IEEE Trans. Smart Grid 2022, 13, 2935–2958. [Google Scholar] [CrossRef]
- Guerrero, J.M.; Vasquez, J.C.; Matas, J.; de Vicuna, L.G.; Castilla, M. Hierarchical Control of Droop-Controlled AC and DC Microgrids—A General Approach Toward Standardization. IEEE Trans. Ind. Electron. 2011, 58, 158–172. [Google Scholar] [CrossRef]
- Das, D.C.; Roy, A.K.; Sinha, N. PSO based frequency controller for wind-solar-diesel hybrid energy generation/energy storage system. In Proceedings of the 2011 International Conference on Energy, Automation and Signal, Bhubaneswar, India, 28–30 December 2011. [Google Scholar]
- Singh, K.; Amir, M.; Ahmad, F.; Refaat, S.S. Enhancement of Frequency Control for Stand-Alone Multi-Microgrids. IEEE Access 2021, 9, 79128–79142. [Google Scholar] [CrossRef]
- Yi, Z.; Xu, Y.; Gu, W.; Fei, Z. Distributed Model Predictive Control Based Secondary Frequency Regulation for a Microgrid with Massive Distributed Resources. IEEE Trans. Sustain. Energy 2021, 12, 1078–1089. [Google Scholar] [CrossRef]
- Liu, B.; Wu, T.; Liu, Z.; Liu, J. A Small-AC-Signal Injection Based Decentralized Secondary Frequency Control for Droop-Controlled Islanded Microgrids. IEEE Trans. Power Electron. 2020, 35, 11634–11651. [Google Scholar] [CrossRef]
- Xu, Y.; Sun, H.; Gu, W.; Xu, Y.; Li, Z. Optimal Distributed Control for Secondary Frequency and Voltage Regulation in an Islanded Microgrid. IEEE Trans. Ind. Inform. 2019, 15, 225–235. [Google Scholar] [CrossRef]
- Du, Y.; Wu, D. Deep Reinforcement Learning From Demonstrations to Assist Service Restoration in Islanded Microgrids. IEEE Trans. Sustain. Energy 2022, 13, 1062–1072. [Google Scholar] [CrossRef]
- Trivedi, R.; Khadem, S. Implementation of Artificial Intelligence Techniques in Microgrid Control Environment: Current Progress and Future Scopes. Energy AI 2022, 8, 100147. [Google Scholar] [CrossRef]
- Liu, W.; Shen, J.; Zhang, S.; Li, N.; Zhu, Z.; Liang, L.; Wen, Z. Distributed Secondary Control Strategy Based on Q-learning and Pinning Control for Droop-Controlled Microgrids. J. Mod. Power Syst. Clean Energy 2022, 10, 1314–1325. [Google Scholar] [CrossRef]
- Adibi, M.; van der Woude, J. Secondary Frequency Control of Microgrids: An Online Reinforcement Learning Approach. IEEE Trans. Autom. Control 2022, 67, 4824–4831. [Google Scholar] [CrossRef]
- Yan, Z.; Xu, Y. Data-Driven Load Frequency Control for Stochastic Power Systems: A Deep Reinforcement Learning Method with Continuous Action Search. IEEE Trans. Power Syst. 2019, 34, 1653–1656. [Google Scholar] [CrossRef]
- Yan, Z.; Xu, Y. A Multi-Agent Deep Reinforcement Learning Method for Cooperative Load Frequency Control of a Multi-Area Power System. IEEE Trans. Power Syst. 2020, 35, 4599–4608. [Google Scholar] [CrossRef]
- Yan, R.; Wang, Y.; Xu, Y.; Dai, J. A Multiagent Quantum Deep Reinforcement Learning Method for Distributed Frequency Control of Islanded Microgrids. IEEE Trans. Control Netw. Syst. 2022, 9, 1622–1632. [Google Scholar] [CrossRef]
- Pan, S.J.; Yang, Q. A Survey on Transfer Learning. IEEE Trans. Knowl. Data Eng. 2010, 22, 1345–1359. [Google Scholar] [CrossRef]
- Zhu, Z.; Lin, K.; Jain, A.K.; Zhou, J. Transfer Learning in Deep Reinforcement Learning: A Survey. IEEE Trans. Pattern Anal. Mach. Intell. 2023, 45, 13344–13362. [Google Scholar] [CrossRef] [PubMed]
- Wang, W.; Wang, Z.; Zhou, Z.; Deng, H.; Zhao, W.; Wang, C.; Guo, Y. Anomaly Detection of Industrial Control Systems Based on Transfer Learning. Tsinghua Sci. Technol. 2021, 26, 821–832. [Google Scholar] [CrossRef]
- Xia, Y.; Xu, Y.; Mondal, S.; Gupta, A.K. A Transfer Learning-Based Method for Cyber-Attack Tolerance in Distributed Control of Microgrids. IEEE Trans. Smart Grid 2024, 15, 1258–1270. [Google Scholar] [CrossRef]
- Li, Y.; Wang, R.; Yang, Z. Optimal Scheduling of Isolated Microgrids Using Automated Reinforcement Learning-Based Multi-Period Forecasting. IEEE Trans. Sustain. Energy 2022, 13, 159–169. [Google Scholar] [CrossRef]
- Li, S.; Oshnoei, A.; Blaabjerg, F.; Anvari-Moghaddam, A. Hierarchical Control for Microgrids: A Survey on Classical and Machine Learning-Based Methods. Sustainability 2023, 15, 8952. [Google Scholar] [CrossRef]
- IEEE Std 1547-2018; IEEE Standard for Interconnection and Interoperability of Distributed Energy Resources with Associated Electric Power Systems Interfaces. IEEE: Piscataway, NJ, USA, 2018.
- Gao, H.; Jiang, S.; Li, Z.; Wang, R.; Liu, Y.; Liu, J. A Two-Stage Multi-Agent Deep Reinforcement Learning Method for Urban Distribution Network Reconfiguration Considering Switch Contribution. IEEE Trans. Power Syst. 2024, 39, 7064–7076. [Google Scholar] [CrossRef]
- Shang, Y.; Li, D.; Li, Y.; Li, S. Explainable Spatiotemporal Multi-Task Learning for Electric Vehicle Charging Demand Prediction. Appl. Energy 2025, 384, 125460. [Google Scholar] [CrossRef]
- Li, S.; Gao, X.; Blaabjerg, F.; Anvari-Moghaddam, A. A Distributed Two-Layer Frequency Compensation for Islanded Microgrids Based on Q-learning and PI Controllers. In Proceedings of the 8th IEEE Workshop on the Electronic Grid (eGRID), Karlsruhe, Germany, 16–18 October 2023; pp. 1–6. [Google Scholar]
Method | Model | Accuracy | Training Type | Advantages | Disadvantages |
---|---|---|---|---|---|
PID | No | Low | Offline | Simple, easy to implement | Poor dynamic performance, overshoot |
PSO-PID | No | Medium | Offline | Optimized tuning | Limited adaptability under dynamic conditions |
FOPID-ICA | No | Medium | Offline | Improved robustness | High tuning complexity |
MPC | Yes | High | Model-based | High accuracy under ideal model | Sensitive to modeling errors, complex |
Q-learning | No | Low | Online | Plug-and-play, no model required | Slow learning, Q-table dependent |
AC-RL | No | Medium | Online | Handles uncertainties | Limited accuracy under multi-DG settings |
DDPG | No | High | Online | Accurate continuous control | High training cost per agent |
Quantum DRL | No | High | Online | Enhanced accuracy via quantum design | Very high computation cost |
Proposed | No | High | Offline | Accurate and efficient with TL | Offline training still required |
Parameter | Value |
---|---|
Rated frequency | 50 Hz |
Rated voltage | 311 V |
Droop gain (P-w) | 2 |
Droop gain (Q-v) | 2 |
Sampling time | 1 s |
DC voltage | 700 V |
Capacitance of LC filter | 150 F |
Impedance of LC filter | 3 mH |
Line impedance 1 | 0.16 , 0.1 mH |
Line impedance 2 | 0.32 , 0.1 mH |
Line impedance 3 | 0.23 , 0.1 mH |
Line impedance 4 | 0.25 , 0.23 mH |
Line impedance 5 | 0.642 , 0.2 mH |
Layer | Input Size | Output Size | Bias Quantity | Activation Function |
---|---|---|---|---|
Input | 300 | 300 | 0 | None |
Hidden 1 | 300 | 32 | 32 | ReLU |
Hidden 2 | 32 | 32 | 32 | ReLU |
Output | 32 | 300 | 300 | ReLU |
DGj | DQN | Fine-Tuning TL DQN | Time Saved Proportion | Accuracy | Accuracy (5% Noise) |
---|---|---|---|---|---|
DG2 | 20.34 s | 14.48 s | 28.81% | 99.21% | 98.5% |
DG3 | 19.99 s | 14.21 s | 28.91% | 99.34% | 98.5% |
DG4 | 22.34 s | 15.34 s | 31.33% | 99.52% | 98.6% |
Method | PID | PID + Q-Learning | Proposed Method | ||
---|---|---|---|---|---|
Deviation | Value (Hz) | Value (Hz) | Improve | Value (Hz) | Improve |
DG1 | 0.62 | 0.41 | 33.87% | 0.11 | 82.26% |
DG2 | 0.64 | 0.42 | 31.25% | 0.12 | 81.25% |
Method | PID | PID + Q-Learning | PID + SAC | Proposed Method | |||
---|---|---|---|---|---|---|---|
Deviation | Value | Value | Improve | Value | Improve | Value | Improve |
DG1 | 0.99 | 0.59 | 40.4% | 0.28 | 71.72% | 0.21 | 78.79% |
DG2 | 0.48 | 0.29 | 39.58% | 0.16 | 66.67% | 0.09 | 81.25% |
DG3 | 0.92 | 0.56 | 39.13% | 0.27 | 76.51% | 0.18 | 89.13% |
DG4 | 0.49 | 0.26 | 46.94% | 0.21 | 57.14% | 0.08 | 83.67% |
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
Li, S.; Blaabjerg, F.; Anvari-Moghaddam, A. A Transferable DRL-Based Intelligent Secondary Frequency Control for Islanded Microgrids. Electronics 2025, 14, 2826. https://doi.org/10.3390/electronics14142826
Li S, Blaabjerg F, Anvari-Moghaddam A. A Transferable DRL-Based Intelligent Secondary Frequency Control for Islanded Microgrids. Electronics. 2025; 14(14):2826. https://doi.org/10.3390/electronics14142826
Chicago/Turabian StyleLi, Sijia, Frede Blaabjerg, and Amjad Anvari-Moghaddam. 2025. "A Transferable DRL-Based Intelligent Secondary Frequency Control for Islanded Microgrids" Electronics 14, no. 14: 2826. https://doi.org/10.3390/electronics14142826
APA StyleLi, S., Blaabjerg, F., & Anvari-Moghaddam, A. (2025). A Transferable DRL-Based Intelligent Secondary Frequency Control for Islanded Microgrids. Electronics, 14(14), 2826. https://doi.org/10.3390/electronics14142826