Journal of Applied Research in Electrical Engineering

Journal of Applied Research in Electrical Engineering

A Three-level Hierarchical Coordination Strategy for Optimal Peer-to-Peer Energy Transaction Among Multi-Microgrids

Document Type : Research article

Authors
1 Dept. of Elec. Eng., Bu-Ali Sina University, Mahdieh Street, Hamedan 65178-38695, Iran Hamedan, IR 65178-38695
2 Mahdieh St.,
10.22055/jaree.2026.50561.1260
Abstract
Abstract: Peer-to-peer (P2P) energy transactions offer significant benefits for grid resilience and cost reduction. This paper proposes a deterministic three-level hierarchical structure for optimizing P2P energy transactions among interconnected microgrids. The architecture coordinates individual agents, microgrid controllers, and a central coordinator using a transparent double-auction mechanism. Validated with real-world data and Monte Carlo simulations, the proposed strategy demonstrates exceptional performance. It transformed a baseline operating cost of €32.37 into a net profit of €21.97, corresponding to a total economic turnaround of €54.34 (i.e., 167.9% improvement). Furthermore, the community attained 100% self-sufficiency by facilitating 385.51 kWh of P2P energy exchange and completely eliminating grid imports. Monte Carlo uncertainty analysis under forecast errors up to 20% (five runs) confirmed the robustness of the proposed framework, with the mean operational cost remaining profitable at €−21.68 (standard deviation €2.27), demonstrating its suitability for scalable, real-time local energy markets.

Highlights

  • Optimizing P2P energy transactions among multi-microgrids
  • Proposing a three-level hierarchical structure for P2P energy trading
  • Using double-auction mechanism for price determination
  • Applying Monte Carlo to manage uncertainties parameters
  • Validating the proposed method through simulations

Keywords
Subjects

[1] Y. Han, K. Zhang, H. Li, E. A. A. Coelho, and J. M. Guerrero, "MAS-based distributed coordinated control and optimization in microgrid and microgrid clusters: A comprehensive overview," IEEE Transactions on Power Electronics, vol. 33, no. 8, pp. 6488-6508, Aug. 2018. DOI: doi.org/10.1109/TPEL.2017.2761438.
[2] H. V. V. Priyadarshana, M. A. K. Sandaru, K. T. M. U. Hemapala, and W. D. A. S. Wijayapala, "A review on Multi-Agent system based energy management systems for micro grids," AIMS Energy, vol. 7, no. 6, pp. 924-943, 2019. DOI: doi.org/10.3934/energy.2019.6.924.
[3] P. Arévalo, D. Ochoa-Correa, E. Villa-Ávila, V. Iñiguez-Morán, and P. Astudillo-Salinas, "Systematic review of hierarchical and multi-agent optimization strategies for P2P energy management and electric machines in microgrids," Applied Sciences, vol. 15, no. 9, Art. no. 4817, 2025. DOI: doi.org/10.3390/app15094817.
[4] Y. Wu, Y. Wu, H. Cimen, J. C. Vasquez, and J. M. Guerrero, "Towards collective energy Community: Potential roles of microgrid and blockchain to go beyond P2P energy trading," Applied Energy, vol. 314, Art. no. 119003, 2022. DOI: doi.org/10.1016/j.apenergy.2022.119003.
[5] M. R. B. Khan, R. Jidin, and J. Pasupuleti, "Multi-agent based distributed control architecture for microgrid energy management and optimization," Energy Conversion and Management, vol. 112, pp. 288-307, 2016. DOI: doi.org/10.1016/j.enconman.2016.01.011.
[6] A. Paudel and G. H. Beng, "A hierarchical peer-to-peer energy trading in community microgrid distribution systems," in 2018 IEEE Power & Energy Society General Meeting (PESGM), 2018, pp. 1-5. DOI: doi.org/10.1109/PESGM.2018.8586168.
[7] E. Fernandez, M. J. Hossain, K. Mahmud, M. S. H. Nizami, and M. Kashif, "A bi-level optimization-based community energy management system for optimal energy sharing and trading among peers," Journal of Cleaner Production, vol. 279, Art. no. 123254, 2021. DOI: doi.org/10.1016/j.jclepro.2020.123254.
[8] H. Helmi, T. Abedinzadeh, J. Beiza, S. Shahmohammadi, and A. Daghigh, "Peer-to-peer electricity trading via a bi-level optimization approach for renewable energy-driven microgrids connected to the distribution grid," IET Generation, Transmission & Distribution, vol. 18, no. 16, pp. 2705-2718, 2024. DOI: doi.org/10.1049/gtd2.13235.
[9] T. Gokcek, I. Sengor, and O. Erdinc, "A novel multi-hierarchical bidding strategy for peer-to-peer energy trading among communities," IEEE Access, vol. 10, pp. 23798-23807, 2022. DOI: doi.org/10.1109/ACCESS.2022.3154393.
[10] Z. Song, Z. Lv, B. Jia, H. Li, and F. Yang, "A hierarchical game framework for peer-to-peer energy trading in distribution networks considering the participation of prosumers," Frontiers in Energy Research, vol. 12, Art. no. 1420039, 2024. DOI: doi.org/10.3389/fenrg.2024.1420039.
[11] G. Ferro, M. Robba, R. Sacile, and M. T. Vespucci, "A distributed-optimization-based architecture for management of interconnected energy hubs," IEEE Transactions on Control of Network Systems, vol. 9, no. 4, pp. 1704-1716, 2022. DOI: doi.org/10.1109/TCNS.2022.3165022.
[12] M. Khorasany, Y. Mishra, and G. Ledwich, "Design of auction-based approach for market clearing in peer-to-peer market platform," The Journal of Engineering, vol. 2019, no. 18, pp. 4813-4818, 2019. DOI: doi.org/10.1049/joe.2018.9313.
[13] E. Heydarian-Forushani, H. Golshan, and M. E. H. Golshan, "An auction-based local market clearing for energy management in a virtual power plant," IEEE Transactions on Industry Applications, vol. 58, no. 5, pp. 5724-5733, 2022. DOI: doi.org/10.1109/TIA.2022.3188226.
[14] K. K. G. H. Liyanage and S. N. Islam, "Comparative analysis of market clearing mechanisms for peer-to-peer energy market based on double auction," Energies, vol. 17, no. 22, Art. no. 5708, 2024. DOI: doi.org/10.3390/en17225708.
[15] H. Karimi, S. Jadid, and A. Kazemi, "Stochastic energy scheduling of multi-microgrid systems considering independence performance index and energy storage systems," Journal of Energy Storage, vol. 33, Art. no. 102083, 2021. DOI: doi.org/10.1016/j.est.2020.102083.
[16] M. M. Bidgoli and F. Dehghani, "Optimizing stochastic energy management in multi-microgrid systems considering energy efficiency improvement strategies: A multi-objective approach," in 2025 12th Iranian Conference on Renewable Energies and Distributed Generation (ICREDG), 2025, pp. 1-7. DOI: doi.org/10.1109/ICREDG66184.2025.10966134.
[17] L. Wang, Y. Zhang, Z. Zhang, and J. Wang, "Distributed optimization for network-constrained peer-to-peer energy trading among multiple microgrids under uncertainty," International Journal of Electrical Power & Energy Systems, vol. 149, Art. no. 109065, 2023. DOI: doi.org/10.1016/j.ijepes.2023.109065.
[18] H. Li, Y. Zhang, and X. Wang, "Hierarchical collaborative optimization of shared energy storage with co-generation based on deep reinforcement learning and P2P network game theory," IEEE Access, vol. 12, pp. 97726-97738, 2024. DOI: doi.org/10.1109/ACCESS.2024.3362676.
[19] E. Nazemorroaya, M. Shafieirad, M. Majidi, and M. Adeli, "Consensus-based algorithm for distributed continuous-time convex optimization over undirected and directed networks," Journal of Applied Research in Electrical Engineering, vol. 3, no. 1, pp. 74-82, 2024. DOI: doi.org/10.22055/jaree.2024.46401.1113.
[20] P. Sakolkiatkajorn and K. Chayakulkheeree, "Bi-level optimization algorithm for trading quantity and surplus maximization in P2P electricity market," ECTI Transactions on Electrical Engineering, Electronics, and Communications, vol. 23, no. 1, 2025. DOI: doi.org/10.37936/ecti-eec.2025231.255889.
[21] J. Li, Y. Liu, and L. Wu, "Data-driven distributionally robust co-optimization of P2P energy trading and network operation for interconnected microgrids," IEEE Transactions on Smart Grid, vol. 12, no. 6, pp. 5172-5184, 2021. DOI: doi.org/10.1109/TSG.2021.3095509.
[22] M. J. Khan, R. M. Singh, M. N. Akhtar, and A. Afthanorhan, "Comparative analysis of various optimization techniques for battery management systems in electrical vehicles," Journal of Applied Research in Electrical Engineering, vol. 4, no. 1, pp. 122-136, 2025. DOI: doi.org/10.22055/jaree.2025.49094.1209.
 
Volume 5, Issue 1
January 2026
Pages 38-48

  • Receive Date 12 September 2025
  • Revise Date 13 July 2026
  • Accept Date 30 July 2026