With the opening of the electricity retail market and the surge in the number of prosumers, distributed energy trading is playing an increasingly prominent role in the electricity market. To address the challenges posed by photovoltaic (PV) output uncertainty and to optimize resource allocation while reducing energy waste, this paper proposes a two-stage bi-level hybrid game model based on blockchain technology. In the first stage, leveraging blockchain technology, the microgrid operator (MGO) monitors the production and consumption of the prosumer cluster and establishes revenue models for both entities. The distributionally robust optimization (DRO) method based on the Wasserstein distance is employed to handle the uncertainty of PV output. Subsequently, the MGO and the shared energy storage operator (SESO) form a virtual power plant (VPP) alliance to enhance overall benefits and optimize system electricity consumption behavior, and based on the blockchain trading platform, a Stackelberg game is conducted between the upper-level alliance and the lower-level prosumer cluster to determine trading and dispatch strategies. In the second stage, internal benefits within the alliance are distributed via Nash bargaining. Numerical simulation results ultimately demonstrate that the proposed model can effectively maximize the benefits for all three parties and optimize system energy dispatch, verifying its correctness and effectiveness.
References
[1]
Zhou, W., Zhou, F. and Zhuang, G. (2024) Megacity Pathways in China under the Dual Carbon Goal: The Case of Shanghai. ChineseJournalofPopulation, ResourcesandEnvironment, 22, 241-249. https://doi.org/10.1016/j.cjpre.2024.09.003
[2]
Li, X., Zheng, Z., Luo, B., Shi, D. and Han, X. (2024) The Impact of Electricity Sales Side Reform on Energy Technology Innovation: An Analysis Based on SCP Paradigm. EnergyEconomics, 136, Article 107763. https://doi.org/10.1016/j.eneco.2024.107763
[3]
Beyea, J. (2010) The Smart Electricity Grid and Scientific Research. Science, 328, 979-980. https://doi.org/10.1126/science.1189229
[4]
Zare, A., Shafie-Khah, M., Siano, P. and Lazaroiu, G.C. (2026) A Systematic Review of Virtual Power Plant Configurations and Their Interaction with Electricity, Carbon, and Flexibility Markets. RenewableandSustainableEnergyReviews, 226, Article 116448. https://doi.org/10.1016/j.rser.2025.116448
[5]
Li, J., Fang, Z., Wang, Q., Zhang, M., Li, Y. and Zhang, W. (2024) Optimal Operation with Dynamic Partitioning Strategy for Centralized Shared Energy Storage Station with Integration of Large-Scale Renewable Energy. JournalofModernPowerSystemsandCleanEnergy, 12, 359-370. https://doi.org/10.35833/mpce.2023.000345
[6]
Wang, W., Kong, Z., He, Y., Li, C. and Jia, K. (2024) Research on the Collaborative Operation Strategy of Shared Energy Storage and Virtual Power Plant Based on Double Layer Optimization. JournalofEnergyStorage, 101, Article 113997. https://doi.org/10.1016/j.est.2024.113997
[7]
Lin, M., Liu, J., Tang, Z., Zhou, Y., Jiang, B., Zeng, P., et al. (2025) Coordinated DSO-VPP Operation Framework with Energy and Reserve Integrated from Shared Energy Storage: A Mixed Game Method. AppliedEnergy, 379, Article 125006. https://doi.org/10.1016/j.apenergy.2024.125006
[8]
Pan, Y., Ju, L., Yang, S., Guo, X. and Tan, Z. (2024) A Multi-Objective Robust Optimal Dispatch and Cost Allocation Model for Microgrids-Shared Hybrid Energy Storage System Considering Flexible Ramping Capacity. AppliedEnergy, 369, Article 123565. https://doi.org/10.1016/j.apenergy.2024.123565
[9]
Li, J., Xu, Z., Liu, H., Wang, C., Wang, L. and Gu, C. (2023) A Wasserstein Distributionally Robust Planning Model for Renewable Sources and Energy Storage Systems under Multiple Uncertainties. IEEETransactionsonSustainableEnergy, 14, 1346-1356. https://doi.org/10.1109/tste.2022.3173078
[10]
Li, W., Dong, F., Ji, Z. and Wang, P. (2025) Internal and External Coordinated Distributionally Robust Bidding Strategy of Virtual Power Plant Operator Participating in Day-Ahead Electricity Spot and Peaking Ancillary Services Markets. AppliedEnergy, 386, Article 125514. https://doi.org/10.1016/j.apenergy.2025.125514
[11]
Liu, H., Qiu, J. and Zhao, J. (2022) A Data-Driven Scheduling Model of Virtual Power Plant Using Wasserstein Distributionally Robust Optimization. InternationalJournalofElectricalPower&EnergySystems, 137, Article 107801. https://doi.org/10.1016/j.ijepes.2021.107801
[12]
Ming, Z., Zhang, H., Li, Y. and Liang, Y. (2024) Mixed H2/H∞ Control for Nonlinear Closed-Loop Stackelberg Games with Application to Power Systems. IEEETransactionsonAutomationScienceandEngineering, 21, 69-77. https://doi.org/10.1109/tase.2022.3216733
[13]
Chang, W. and Yang, Q. (2025) Game-Theoretic Risk-Averse Day-Ahead Optimal Bidding Strategy of Virtual Power Plant Aggregated with Heterogeneous Distributed Resources. Energy, 336, Article 138087. https://doi.org/10.1016/j.energy.2025.138087
[14]
Shang, Y., Li, X., Xu, T. and Cui, L. (2025) Uncertainty-Output Virtual Power Plant Participates in Multi-Electricity Market Considering the Improved Shapley Value Distribution Method. InternationalJournalofElectricalPower&EnergySystems, 165, Article 110462. https://doi.org/10.1016/j.ijepes.2025.110462
[15]
Li, N., Gao, Y. and Yin, Y. (2025) Joint Chance-Constrained Real-Time Pricing for Smart Grid with Multi-Energy Generation: A Stochastic Convex Hull-Based Approach. SustainableEnergy, GridsandNetworks, 43, Article 101809. https://doi.org/10.1016/j.segan.2025.101809
[16]
Li, N. and Gao, Y. (2023) Real-Time Pricing Based on Convex Hull Method for Smart Grid with Multiple Generating Units. Energy, 285, Article 129543. https://doi.org/10.1016/j.energy.2023.129543
[17]
Dai, Y., Gao, Y., Gao, H. and Zhu, H. (2017) Real-Time Pricing Scheme Based on Stackelberg Game in Smart Grid with Multiple Power Retailers. Neurocomputing, 260, 149-156. https://doi.org/10.1016/j.neucom.2017.04.027
[18]
Hosseini Dehshiri, S.J., Amiri, M., Mostafaeipour, A. and Le, T. (2024) Integrating Blockchain and Strategic Alliance in Renewable Energy Supply Chain toward Sustainability: A Comparative Decision Framework under Uncertainty. Energy, 304, Article 132136. https://doi.org/10.1016/j.energy.2024.132136
[19]
Leng, J. and Cheng, Y. (2025) Investing in a Zero-Carbon Future: Game-Theoretic Strategies for Clean Energy and Blockchain in Commercial Buildings. EnergyandBuildings, 347, Article 116323. https://doi.org/10.1016/j.enbuild.2025.116323
[20]
Ke, Y., Chen, Z., Feng, C., Xie, M., Zhu, K. and Su, J. (2025) A Blockchain-Based P2P Regional Energy Trading and Credit Mechanism. EnergyConversionandManagement: X, 28, Article 101193. https://doi.org/10.1016/j.ecmx.2025.101193
[21]
Sindi, H.F., Morgan, M., Shaaban, M., Zeineldin, H.H. and Lasheen, A. (2024) Blockchain-Based Energy Trading in Droop-Based Hybrid Microgrids. AinShamsEngineeringJournal, 15, Article 102848. https://doi.org/10.1016/j.asej.2024.102848
[22]
Chen, Y., Li, Y., Chen, Q., Wang, X., Li, T. and Tan, C. (2023) Energy Trading Scheme Based on Consortium Blockchain and Game Theory. ComputerStandards&Interfaces, 84, Article 103699. https://doi.org/10.1016/j.csi.2022.103699
[23]
Shen, W., Ding, H., Zeng, M. and Zhang, X. (2025) Optimal Bidding Strategy for Integrated Energy System Participating in Spot Power Market: A Wasserstein Metric Based DRO Method. Energy, 327, Article 136402. https://doi.org/10.1016/j.energy.2025.136402
[24]
Blanchet, J. and Si, N. (2019) Optimal Uncertainty Size in Distributionally Robust Inverse Covariance Estimation. OperationsResearchLetters, 47, 618-621. https://doi.org/10.1016/j.orl.2019.10.005
[25]
Mohajerin Esfahani, P. and Kuhn, D. (2017) Data-Driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations. MathematicalProgramming, 171, 115-166. https://doi.org/10.1007/s10107-017-1172-1
[26]
Huang, H., Miao, P., Wei, Q. and Geng, Y. (2026) Bilevel Optimization in Smart Grid Operations: A Review of Real-Time Electricity Pricing Strategies and Future Directions. ElectricPowerSystemsResearch, 251, Article 112253. https://doi.org/10.1016/j.epsr.2025.112253
[27]
Zheng, X., Li, Q., Bai, C., Nie, Y. and Huang, C. (2022) Energy Trading Management Based on Stackelberg Game Theory to Increase Independence of Microgrids. EnergyReports, 8, 771-779. https://doi.org/10.1016/j.egyr.2022.10.168
[28]
Hu, Z., Zhu, Z., Wei, X., Chan, K.W. and Bu, S. (2025) Mixed Strategy Nash Equilibrium Analysis in Real-Time Pricing and Demand Response for Future Smart Retail Market. AppliedEnergy, 391, Article 125815. https://doi.org/10.1016/j.apenergy.2025.125815
[29]
Samadi, P., Mohsenian-Rad, A., Schober, R., Wong, V.W.S. and Jatskevich, J. (2010) Optimal Real-Time Pricing Algorithm Based on Utility Maximization for Smart Grid. 2010 FirstIEEEInternationalConferenceonSmartGridCommunications, Gaithersburg, 4-6 October 2010, 415-420. https://doi.org/10.1109/smartgrid.2010.5622077
[30]
Habib, S., El-Ferik, S., Gulzar, M.M., Chauhdary, S.T., Ahmed, E.M. and Alnuman, H. (2025) A Tri-Level Hierarchical Optimization Framework for Smart Homes, Microgrids, and Distribution Networks with Hydrogen Integration Using a Distributed ADMM Approach. AppliedEnergy, 400, Article 126577. https://doi.org/10.1016/j.apenergy.2025.126577
[31]
Cao, J., Yang, D. and Dehghanian, P. (2024) Cooperative Operation for Multiple Virtual Power Plants Considering Energy-Carbon Trading: A Nash Bargaining Model. Energy, 307, Article 132813. https://doi.org/10.1016/j.energy.2024.132813