Tri-Stage Optimization Framework for Optimal Clustering of Power Distribution Systems into Sustainable Microgrids
Abstract
1. Introduction
1.1. Motivation and Background
1.2. Literature Review
- Most studies model microgrids as single-bus or aggregated entities, neglecting their multi-bus electrical interactions within PDSs and limiting the accuracy of system-level representation;
- Existing clustering approaches often rely on arbitrary partitioning, topological metrics, or contingency-driven designs, rather than electrically informed and accurate clustering that reflects true network characteristics;
- Limited attention is given to the resource allocation within PDS buses, including both active and reactive power support, to enhance voltage regulation, loss minimization, and operational efficiency;
- Most approaches do not provide a unified operational structure that enables flexible modes, such as cooperative energy sharing among clustered microgrids, or islanded operation from the main grid.
1.3. Contribution and Paper Organization
- The development of an electrically grounded hierarchical clustering approach that accurately partitions PDSs into sustainable and collaborative microgrids;
- A comprehensive co-optimization of DER planning and microgrid clustering that supports both predefined and expandable resource capacities for long-term sustainability;
- An integrated resource allocation strategy within clustered microgrids, including both active and reactive power resources, to improve voltage regulation and reduce system losses;
- The provision of a flexible operational structure that enables cooperative, grid-connected, and fully islanded modes of operation among microgrids;
2. The Proposed Tri-Stage Optimization Framework
2.1. Stage I: PDS Clustering Algorithm
| Algorithm 1 Hierarchical Agglomerative Clustering for PDS Partitioning |
|
2.2. Stage II: Optimal Planning of Microgrids DERs
2.2.1. Objective Function
2.2.2. Constraints
2.3. Stage III: DERs and Reactive Power Resources Allocations
2.3.1. Objective Function
2.3.2. Constraints
3. Simulation Results
3.1. Microgrid Clustering
3.2. Optimal Planning of Clustered Microgrid DERs
3.3. Optimal Resources Allocation
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Pérez-Lombard, L.; Ortiz, J.; Pout, C. A review on buildings energy consumption information. Energy Build. 2008, 40, 394–398. [Google Scholar] [CrossRef]
- Dubey, A.; Santoso, S. Electric Vehicle Charging on Residential Distribution Systems: Impacts and Mitigations. IEEE Access 2015, 3, 1871–1893. [Google Scholar] [CrossRef]
- Wang, K.; Huang, Y.; Liu, Y.; Huang, T.; Zang, S. A Review of Optimization Scheduling for Active Distribution Networks with High-Penetration Distributed Generation Access. Energies 2025, 18, 4119. [Google Scholar] [CrossRef]
- Alhasnawi, B.N.; Jasim, B.H.; Sedhom, B.E.; Hossain, E.; Guerrero, J.M. A new decentralized control strategy of microgrids in the internet of energy paradigm. Energies 2021, 14, 2183. [Google Scholar] [CrossRef]
- Abbasi, M.; Abbasi, E.; Li, L.; Aguilera, R.P.; Lu, D.; Wang, F. Review on the microgrid concept, structures, components, communication systems, and control methods. Energies 2023, 16, 484. [Google Scholar] [CrossRef]
- Rathod, A.A.; Balaji, S. Modified Harris Hawks optimization for the 3E feasibility assessment of a hybrid renewable energy system. Sci. Rep. 2024, 14, 20127. [Google Scholar] [CrossRef] [PubMed]
- Das, T.K.; Kundu, D. Feasibility and sensitivity analysis of a self-sustainable hybrid system: A case study of a mountainous region in Bangladesh. Energy Convers. Manag. X 2023, 20, 100411. [Google Scholar] [CrossRef]
- Luo, X.; Shi, W. Optimal regulation of flexible loads in rural residential buildings considering mobile batteries: A case study in Shaanxi Province. Build. Simul. 2024, 17, 1065–1083. [Google Scholar] [CrossRef]
- Li, X.; Jones, G. Optimal sizing, location, and assignment of photovoltaic distributed generators with an energy storage system for islanded microgrids. Energies 2022, 15, 6630. [Google Scholar] [CrossRef]
- Maknouninejad, A.; Qu, Z. Realizing unified microgrid voltage profile and loss minimization: A cooperative distributed optimization and control approach. IEEE Trans. Smart Grid 2014, 5, 1621–1630. [Google Scholar] [CrossRef]
- Agha Kassab, F.; Rodriguez, R.; Celik, B.; Locment, F.; Sechilariu, M. A comprehensive review of sizing and energy management strategies for optimal planning of microgrids with PV and other renewable integration. Appl. Sci. 2024, 14, 10479. [Google Scholar] [CrossRef]
- Gu, C.; Liu, Y.; Wang, J.; Li, Q.; Wu, L. Carbon-oriented planning of distributed generation and energy storage assets in power distribution network with hydrogen-based microgrids. IEEE Trans. Sustain. Energy 2022, 14, 790–802. [Google Scholar] [CrossRef]
- Vera, E.G.; Cañizares, C.A.; Pirnia, M.; Guedes, T.P.; Trujillo, J.D.M. Two-stage stochastic optimization model for multi-microgrid planning. IEEE Trans. Smart Grid 2022, 14, 1723–1735. [Google Scholar] [CrossRef]
- Atazadegan, M.H.; Rokrok, E.; Doostizadeh, M. A cooperative generation expansion planning of microgrids to improve the resiliency of active distribution networks. IEEE Access 2024, 12, 192230–192249. [Google Scholar] [CrossRef]
- Qiao, J.; Mi, Y.; Shen, J.; Lu, C.; Cai, P.; Ma, S.; Wang, P. Optimization schedule strategy of active distribution network based on microgrid group and shared energy storage. Appl. Energy 2025, 377, 124681. [Google Scholar] [CrossRef]
- Cortes, C.A.; Contreras, S.F.; Shahidehpour, M. Microgrid topology planning for enhancing the reliability of active distribution networks. IEEE Trans. Smart Grid 2017, 9, 6369–6377. [Google Scholar] [CrossRef]
- Yuan, W.; Wang, J.; Qiu, F.; Chen, C.; Kang, C.; Zeng, B. Robust optimization-based resilient distribution network planning against natural disasters. IEEE Trans. Smart Grid 2016, 7, 2817–2826. [Google Scholar] [CrossRef]
- Habib, S.; Ahmarinejad, A.; Jia, Y. A stochastic model for microgrids planning considering smart prosumers, electric vehicles and energy storages. J. Energy Storage 2023, 70, 107962. [Google Scholar] [CrossRef]
- Zhao, Y.; Lin, J.; Song, Y.; Xu, Y. A robust microgrid formation strategy for resilience enhancement of hydrogen penetrated active distribution networks. IEEE Trans. Power Syst. 2023, 39, 2735–2748. [Google Scholar] [CrossRef]
- Pang, K.; Wang, C.; Hatziargyriou, N.D.; Wen, F. Microgrid formation and real-time scheduling of active distribution networks considering source-load stochasticity. IEEE Trans. Power Syst. 2023, 39, 2801–2813. [Google Scholar] [CrossRef]
- Zhang, H.; Liu, W.; Sun, S.; Yu, P.; Cui, C. Microgrid Cluster Division and Optimal Allocation Method Considering Cooperative Increment. In Proceedings of the 2023 International Conference on Power Energy Systems and Applications (ICoPESA), Nanjing, China, 24–26 February 2023; pp. 561–570. [Google Scholar] [CrossRef]
- Jayawardene, I.; Herath, P.; Venayagamoorthy, G.K. A Graph Theory-Based Clustering Method for Power System Networks. In Proceedings of the 2021 IEEE International Conference on Power Energy Systems and Applications (ICoPESA), Online, 30 October–2 November 2021; pp. 1–6. [Google Scholar]
- Chai, Y.; Guo, L.; Wang, C.; Zhao, Z.; Du, X.; Pan, J. Network Partition and Voltage Coordination Control for Distribution Networks with High Penetration of Distributed PV Units. IEEE Trans. Power Syst. 2018, 33, 3396–3407. [Google Scholar] [CrossRef]
- Sánchez-García, R.J.; Fennelly, M.; Norris, S.; Wright, N.; Niblo, G.; Brodzki, J.; Bialek, J.W. Hierarchical Spectral Clustering of Power Grids. IEEE Trans. Power Syst. 2014, 29, 2229–2237. [Google Scholar] [CrossRef]
- Ge, J.; Luo, Y.; Zhang, J.; Cao, Y.; Li, Z. A Clustering Algorithm Based on Intelligent Distribution Network. In Proceedings of the 2022 4th International Conference on Frontiers Technology of Information and Computer (ICFTIC), Qingdao, China, 2–4 December 2022; pp. 914–918. [Google Scholar] [CrossRef]
- Liang, Z.; Chung, C.; Wang, Q.; Chen, H.; Yang, H.; Wu, C. Fortifying Renewable-Dominant Hybrid Microgrids: A Bi-Directional Converter Based Interconnection Planning Approach. Engineering 2025, 51, 130–143. [Google Scholar] [CrossRef]
- Khan, A.A.; Minai, A.F.; Pachauri, R.K.; Malik, H. Optimal sizing, control, and management strategies for hybrid renewable energy systems: A comprehensive review. Energies 2022, 15, 6249. [Google Scholar] [CrossRef]
- Ahmed, Y.N.; Hany Farag, E.Z. Clustering-Based Stochastic Optimization of PV-Battery Sizing for Self-Sufficient Multi-Microgrid Systems. In Proceedings of the 2025 IEEE Electrical Power and Energy Conference (EPEC), Waterloo, ON, Canada, 15–17 October 2025; pp. 348–353. [Google Scholar] [CrossRef]
- Khani, H.; Elsayed, A.A.E.; Farag, H.E.Z.; Mohamed, M. Adaptive Feasibility Area Estimation to Enhance Cybersecurity of Electrolysis-Based Hydrogen Refueling Stations Integrated with Power Distribution Systems. IEEE Trans. Intell. Transp. Syst. 2025, 26, 18525–18541. [Google Scholar] [CrossRef]
- Yang, H.; Liang, Z.; Shi, X.; Cheng, J.; Liang, J.; Dong, H.; Chung, C.Y. Adversarial Data Anomaly Detection and Calibration for Nonintrusive Load Monitoring. IEEE Internet Things J. 2025, 12, 544–555. [Google Scholar] [CrossRef]
- Dong, H.; Zhu, J.; Chung, C.Y.; Chen, Y.; Yang, H.; Liang, Z. A Cross-Level Consistency-Aware Diffusion Model of Hierarchical Imputation for Energy Prosumers. IEEE Trans. Smart Grid 2026, 17, 870–873. [Google Scholar] [CrossRef]









| Refs. | Decentralization | Planning | Management | Op. Modes | Resource Allocation |
|---|---|---|---|---|---|
| [12,13,26] | ✕ | ✓ | ✓ | ✕ | ✕ |
| [14,15] | ✕ | ✓ | ✓ | ✓ | ✕ |
| [16] | ✓ | ✓ | ✕ | ✕ | ✕ |
| [17] | ✓ | ✓ | ✓ | ✕ | ✓ |
| [18] | ✕ | ✕ | ✓ | ✕ | ✕ |
| [21,28] | ✓ | ✓ | ✓ | ✕ | ✕ |
| [22,24,25] | ✓ | ✕ | ✕ | ✕ | ✕ |
| [19,20,23] | ✓ | ✕ | ✓ | ✕ | ✕ |
| Proposed Model | ✓ | ✓ | ✓ | ✓ | ✓ |
| PV | ||
| Wind | ||
| BSS | ||
| Objective Parameters | ||
| Microgrid | Case | Sizing | |||||
|---|---|---|---|---|---|---|---|
| (MW) | (MW) | (MW) | (MW) | (MWh) | (MW) | ||
| 1 | 1 | 1.3 | 0.65 | 8.9 | 1.74 | 93.58 | 1.32 |
| 2 | 1.67 | 0.81 | 7.89 | 1.74 | 103.66 | 1.85 | |
| 3 | - | - | 3.05 | 1.03 | - | - | |
| 2 | 1 | 0.6 | 0.35 | 15.1 | 2.19 | 72.89 | 1.37 |
| 2 | 0.77 | 0.43 | 13.39 | 2.19 | 80.74 | 1.92 | |
| 3 | - | - | 3.05 | 1.03 | 0.29 | 0.05 | |
| 3 | 1 | 0.44 | 0.22 | 4.18 | 0.81 | 36.75 | 0.52 |
| 2 | 0.56 | 0.27 | 3.7 | 0.81 | 40.7 | 0.72 | |
| 3 | - | - | 3.05 | 1.03 | 7.57 | 0.68 | |
| Aggregate | 1 | 2.34 | 1.22 | 28.18 | 4.74 | 203.22 | 3.21 |
| 2 | 3 | 1.51 | 24.98 | 4.74 | 225.1 | 4.49 | |
| 3 | - | - | 9.15 | 3.09 | 7.86 | 0.73 | |
| Resource Type | Microgrid | Buses | Size (MW/MWh/MVar) | PCS (MW) |
|---|---|---|---|---|
| PV | 1 | [22, 25] | [0.93, 0.74] | [0.74, 0.36] |
| 2 | [6] | [0.77] | [0.43] | |
| 3 | [12] | [0.56] | [0.27] | |
| Wind | 1 | [2, 5] | [5.3, 2.59] | [1.17, 0.57] |
| 2 | [8, 28] | [5.18, 8.21] | [0.85, 1.34] | |
| 3 | [15] | [3.7] | [0.81] | |
| BSS | 1 | [2, 5] | [69.7, 33.96] | [1.19, 0.66] |
| 2 | [9, 31] | [40, 40.74] | [0.95, 0.97] | |
| 3 | [12] | [40.7] | [0.72] | |
| 1 | [4] | [0.9] | – | |
| 2 | [29, 7] | [0.55, 0.45] | – | |
| 3 | [11] | [1.1] | – |
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. |
© 2026 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.
Share and Cite
Ahmed, Y.N.; Elsayed, A.A.E.; Farag, H.E.Z. Tri-Stage Optimization Framework for Optimal Clustering of Power Distribution Systems into Sustainable Microgrids. Energies 2026, 19, 2050. https://doi.org/10.3390/en19092050
Ahmed YN, Elsayed AAE, Farag HEZ. Tri-Stage Optimization Framework for Optimal Clustering of Power Distribution Systems into Sustainable Microgrids. Energies. 2026; 19(9):2050. https://doi.org/10.3390/en19092050
Chicago/Turabian StyleAhmed, Yahia N., Ahmed Abd Elaziz Elsayed, and Hany E. Z. Farag. 2026. "Tri-Stage Optimization Framework for Optimal Clustering of Power Distribution Systems into Sustainable Microgrids" Energies 19, no. 9: 2050. https://doi.org/10.3390/en19092050
APA StyleAhmed, Y. N., Elsayed, A. A. E., & Farag, H. E. Z. (2026). Tri-Stage Optimization Framework for Optimal Clustering of Power Distribution Systems into Sustainable Microgrids. Energies, 19(9), 2050. https://doi.org/10.3390/en19092050

