Two-Stage Virtual Power Plant Bi-Level Hybrid Game Model Considering Photovoltaic Uncertainty under Blockchain Technology

Abstract

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.

Share and Cite:

Xu, J. , Li, J. and Li, Y. (2026) Two-Stage Virtual Power Plant Bi-Level Hybrid Game Model Considering Photovoltaic Uncertainty under Blockchain Technology. Journal of Power and Energy Engineering, 14, 53-83. doi: 10.4236/jpee.2026.143003.

1. Introduction

1.1. Motivation

Under the “dual-carbon” goal of “striving to achieve carbon peaking by 2030 and carbon neutrality by 2060” [1], the trading of renewable energy sources such as wind and light will bring unlimited opportunities for the development of new electricity markets. Although renewable energy is abundant, its intermittency and volatility bring new challenges for its management methods and scheduling strategies [2] [3]. VPP, through advanced technology platforms and developed network systems, aggregates thousands of distributed and uncontrollable renewable energy units for efficient development and utilization [4].

1.2. Literature Overview

Shared energy storage (SES) works with single or multiple independent storage stations and provides flexible energy storage services to users in the form of leasing and charging/discharging services with the characteristics of “cloud services” [5]. Existing literature and studies have demonstrated that the inclusion of SES in VPP not only enhances the revenue and environmental benefits for both parties but also optimizes the energy scheduling of the system as well as the energy use strategy. Wang W et al. [6] proposed a two-layer decision model, which is used for solving the problem of shared energy storage configuration and optimization of multi-VPP system operation.

Lin M et al. [7] optimize the energy scheduling and allocation of the DSO-VPP system, a Stackelberg cooperative hybrid game framework is proposed. Pan Y et al. [8] proposed a shared hybrid energy storage operation optimization and cost allocation strategy for microgrid groups considering flexible ramping capability.

Due to the high uncertainty of distributed energy output, both the economic efficiency and system operational effectiveness can incur certain losses for all parties involved in electricity trading and scheduling. In practice, the operation of the system will be affected by the uncertainty of the distributed energy output. Wasserstein distance, as a mathematical model describing the “distance” between the uncertainty and the actual quantity [9], provides an important theoretical support for the construction of DRO model, which provides a more stable and risk-resistant capability for the system. Li W et al. [10] used fuzzy sets based on the Wasserstein distance to determine the prediction error of wind and PV outputs to create a two-layer optimization model for coordinating DR bidding decisions internally and externally at the VPP. Liu H et al. [11] proposed a piecewise affine formulation combining VPP profit and CVaR to hedge the market price risk; then, a data-driven distributed robust mode optimization model is constructed using Wasserstein fuzzy sets due to the uncertainty in the market price and wind prediction errors.

The trading and scheduling of energy between VPP, shared energy storage operator (SESO), and groups of prosumers are often connected through a hybrid gaming approach [12]. The methods used to solve the Stackelberg game model are mature in the existing research, but the distribution of benefits in the cooperative game needs to be selected according to the different characteristics of the participants, such as the Nash bargaining method and the Shapley value method. Chang W et al. [13] proposed a day-ahead bidding strategy to target risk aversion in the wholesale electricity market, and the conditional value-at-risk is used as a risk criterion to quantify and hedge risks in the market and to categorize real-time electricity price situations. Electricity trading behavior within a virtual power plant is then described through Stackelberg game theory. Shang Y et al. [14] proposed a ladder Shapley value allocation method as a means of achieving a reasonable profit distribution based on the capacity of the market prior to the day of participation. Li N et al. [15] proposed a real-time pricing (RTP) framework that integrates stochastic unit commitment (UC) and carbon-aware generation scheduling within a multi-energy generation system, while incorporating an uncertain demand response (DR) program to incentivize user participation, and uses the Stackelberg game to realize electricity pricing. Gao Y et al. [16] designed a real-time pricing (RTP) mechanism for the smart grid that integrates multiple supply-side generating units with distributed renewables and energy storage on the demand side, where the strategic interactions are captured in a Stackelberg game framework. Dai Y et al. [17] proposed and analyzed a real-time pricing scheme for a smart grid with multiple retailers and residential users, where a Stackelberg game is employed to model the strategic interactions.

Combined with the above references, it is easy to know that the game model is the most effective research tool for portraying the interaction relationship between the participants, but in the actual situation of the game model with multiple participants, it is often faced with the problems of insufficient information, hesitant decision-making behaviors of the parties, and insufficient trust of the participating parties towards each other. As a decentralized P2P network, blockchain can provide a safer and more efficient information transmission path for the parties involved in the game due to its decentralization, non-tampering, transparency, and smart contract features [18]. Leng J et al. [19] developed a difference-in-differences game model to analyze whether the application of clean energy and blockchain will have a positive effect on the ultimate benefits for decision makers. Ke Y et al. [20] proposed a novel Regional Electricity Trading Framework (RETF) based on consortium blockchain technology. The framework leverages the organizational structure of the consortium blockchain to enable secure and transparent transactions within the microgrid architecture, thereby increasing order turnover.

1.3. Main Contributions

Analyzing the research gaps in the aforementioned literature, this study designs a two-stage bi-level hybrid game model for VPP based on blockchain technology, considering the uncertainty of PV output. The hybrid game structure consists of cooperative–Stackelberg games. First, considering the impact of blockchain technology application on the revenue and electricity consumption utility of the three parties—the MGO, the SESO, and the prosumer cluster—revenue models for all three are constructed. Subsequently, a DRO model based on the Wasserstein distance is developed and embedded into the revenue models of the MGO and the prosumers. Then, a bi-level hybrid game model for the VPP is established. The upper-level model is a distributed robust decision-making optimization model for the VPP and prosumers based on a Stackelberg game, while the lower-level model is a distributed robust operation optimization model for the VPP based on a cooperative game. As for the profit distribution within the VPP alliance, it is divided into two subproblems: the first is the problem of maximizing alliance profits, and the second is the problem of profit allocation, for which a symmetry-based Nash bargaining method is applied. Finally, numerical simulation experiments validate the effectiveness, scientific soundness, and rationality of the proposed method. Accordingly, the main contributions of this paper are summarized as follows:

1) The DRO model based on the Wasserstein metric effectively enhances the overall resilience of the system, i.e., its risk resistance capability. By constructing an ambiguity set for uncertain variables, DRO optimizes the objective by considering the expected cost under the worst-case probability distribution within this set. Compared to traditional methods, it maintains strong performance even when data availability is limited.

2) The integration of blockchain technology enhances the revenue and electricity utility for all participants in electricity trading. Benefiting from the unique features of blockchain, namely smart contracts and distributed ledger technology, the electricity trading environment becomes more equitable and transparent. This reduces the decision-making costs for participants, thereby improving the overall operational efficiency of the system.

The remaining sections of the paper are organized as follows: In Section 2, the framework for hybrid gaming between the VPP and prosumers under blockchain technology was constructed and analyzed, along with an examination of the network architecture enabled by blockchain. Section 3 presents the distributed robust optimization model for the operational decision-making of the MGO and the operational model for the SESO, leading to the derivation of a distributed robust optimization model for VPP operational decisions. In Section 4, a distributed robust optimization model for prosumer operational decision-making is developed. Section 5 elaborates on the process for solving the hybrid game between the VPP and prosumers in a blockchain environment. Finally, Section 6 conducts numerical simulations using a practical case study and draws conclusive findings.

2. Hybrid Game Framework for Blockchain-Based VPP and Prosumer Alliance

This section will delineate the overall framework of the proposed study. Since all electricity-related transactions and scheduling operations are conducted on a blockchain trading platform, the blockchain-based network architecture of the system will also be elaborated following the introduction of the general framework.

2.1. System Framework

The system framework of the bi-level optimization model is shown in Figure 1.

Figure 1. A system framework of virtual power plant based on blockchain technology counting and power trading.

As shown in Figure 1, the MGO monitors and manages the electricity production and consumption of the prosumer cluster through smart meters. To enhance the local consumption of PV power, increase system revenue, and balance internal electricity supply and demand, the MGO collaborates with the SESO to form a VPP alliance. This VPP alliance engages in electricity transactions with the lower-level prosumer alliance and the external bulk power system. When the electricity generated by prosumers is insufficient to meet their consumption demand during a specific period, the prosumers need to conduct electricity transactions with the VPP through the blockchain trading platform. To ensure that the prosumer alliance trades exclusively with the VPP, the internal purchase price must be lower than the price at which prosumers would directly purchase electricity from the bulk power system. Here, time-of-use (ToU) prices are used to describe the real-time market electricity prices, which are divided into peak, flat, and valley periods. Similarly, the internal selling price should be higher than the feed-in tariff for PV power. Within the VPP alliance, if the electricity generated by prosumers is less than the consumption during a certain period, the MGO needs to purchase electricity from the SESO; conversely, the MGO can also sell electricity to the SESO, resulting in interaction costs within the alliance.

2.2. Blockchain-Based System Network Architecture

The previous section described the operational mechanism of the model constructed in this study from a systemic perspective. This section will elucidate the role and advantages of the implemented blockchain trading platform. In traditional multi-participant hybrid game transaction models, it is challenging to ensure the security and fairness of information storage and interaction, the rationality of benefit distribution, and the efficiency of overall system management. Particularly in the electricity transaction model involving the VPP and the prosumer alliance established in this study, the MGO, SESO, and prosumers require a stable structured topology to operate more efficiently [21]. Blockchain technology, as a low-cost, high-efficiency, and highly reliable solution for information and data interaction, is highly compatible with the model developed in this study.

In the hybrid game model constructed in this paper, both the game equilibrium and the final operational mode of the system are achieved only after multiple decision-making iterations between the VPP and the prosumers. This process involves extensive distributed computations and requires such computations to be conducted under rules mutually agreed upon by all participating parties. Blockchain technology, through its distributed ledger operating under a consensus mechanism, leverages its immutability and security to efficiently store and process all electricity transaction data. Furthermore, it facilitates various transactions between the VPP and the prosumers via smart contracts, thereby optimizing system operation [22].

Based on the analysis of various game-theoretic models under blockchain technology in [18]-[22], it is evident that after participants in transactions or scheduling actively join the blockchain, their revenue or utility sees a certain degree of improvement compared to the pre-blockchain scenario. Combined with the earlier analysis, the application of blockchain technology in the model proposed in this study represents a proactive and justified endeavor. As illustrated in Figure 2, the VPP and the prosumer alliance, acting as physical layer in the blockchain, preprocess their fundamental data through basic equipment such as smart meters. This information is then transmitted to the infrastructure layer, data layer, network layer, consensus layer, and application layer of the blockchain’s hierarchical architecture, ultimately forming the toolchain, transaction chain, and information chain within the blockchain trading platform. Among these, the toolchain ensures stable network conditions and efficient data transmission; the information chain records electricity-related data, resource allocation, and operational schedules of the VPP and individual prosumers; and the transaction chain provides computational support for formulating prices and contracts in the transaction market.

3. DRO Model for VPP Operation in Blockchain Environments

3.1. Constraints of the DRO Model

The Wasserstein distance is used to measure the distance between two probability

Figure 2. Blockchain-based system network architecture.

distributions. Compared to traditional distance/divergence measurement methods, the Wasserstein distance not only reflects differences in distribution shapes but also accounts for the geometric structure of the underlying space. Furthermore, it is better suited for handling scenarios with non-overlapping distributions or those requiring robust optimization, thereby endowing the DRO model with lower conservatism, i.e., enhanced robustness.

First, the empirical distribution L e is determined based on a sample set of J=100 . The historical PV power output data is collected directly from the smart meters of the prosumers. Specifically, the data is sampled at a 1-hour resolution and aggregated across all prosumers for each time period. By using the aggregated total PV output rather than per-prosumer individual samples, the empirical distribution directly maps to the center of the Wasserstein ball, efficiently capturing the collective uncertainty of the prosumer cluster.

The set of total PV output values (the uncertain variable) for time period i is given by: { n χ n Q n,1 i,re , n χ n Q n,2 i,re , n χ n Q n,3 i,re ,, n χ n Q n,J i,re } . This empirical distribution serves as an estimate of the true distribution L . Then, due to the limited data volume of L e , which makes it difficult to fully approximate L , a Wasserstein ball is constructed with L e as the center and ε PV as the radius. The true distribution L lies within this ball and satisfies: lim J L e =L . Finally, the Wasserstein distance is used to measure the distance between L e and L , this measurement is employed to construct the ambiguity set.

The Wasserstein distance is defined as follows [23]:

d W ( L e ,L )= inf P rf Ξ×Ξ n χ n Q n i,ref n χ n Q n i,re 1 Π( d n χ n Q n i,ref ,d n χ n Q n i,re ) (1)

where d W represents the Wasserstein distance, L e and L represent the reference distribution and the true distribution of the total PV output during time period i , respectively. P rf denotes the probability that the joint sample distribution ( L e ,L ) attains the samples ( n χ n Q n i,ref , n χ n Q n i,re ) . I represents the total number of time periods for electricity consumption, where i χ i , and χ i ={ 1,2,3,,I } . N is the total number of prosumers, where n χ n , and χ n ={ 1,2,3,,N } . Ξ denotes the support set range. Π is a joint distribution of n χ n Q n i,ref and n χ n Q n i,re with L e and L , respectively. · 1 denotes the L 1 norm, i.e., the Manhattan distance.

Furthermore, the ambiguity set U ε can be derived and is defined as follows:

U ε ={ P: d W ( L e ,L ) ε PV } (2)

where U ε is precisely this Wasserstein ball with L e as its center and ε PV as its radius. P represents the probability distribution of all possible outcomes contained within a certain confidence level.

From Equation (1) and Equation (2), we can derive the ambiguity set constraint concerning PV output uncertainty:

d W ( L e ,L )= inf P rf Ξ×Ξ n χ n Q n i,ref n χ n Q n i,re 1 Π( d n χ n Q n i,ref ,d n χ n Q n i,re ) ε PV (3)

P( di s W ( L e ,L ) ε PV )ρ (4)

where ρ represents a certain confidence level and ε PV is the radius of the Wasserstein ball, which strictly controls the robustness of the DRO model based on the Wasserstein distance and satisfies lim J ε PV =0 .

Subsequently, based on [24], we can obtain an improved formula for calculating ε PV :

ε PV =K 1 J Φ 1 ( ρ ) (5)

where K is the adjustment factor. Φ 1 ( ρ ) is the ρ -th quantile of the standard normal distribution, compared to the traditional formula for calculating the Wasserstein ball radius, the above expression aligns more closely with the principles of the Central Limit Theorem and the Law of Large Numbers: 1) The distribution of the sample mean is asymptotically normal, 2) The estimation accuracy improves with the sample size.

The calculation formula for the adjustment factor K is:

K= inf σ>0 2 1 2σ ( 1+ln( 1 J j=1 J e σ n χ n Q n,j i,ref n χ n Q n i,re ^ 2 ) ) (6)

where σ>0 is the parameter to be optimized, n χ n Q n,j i,ref is the j -th sample value in the empirical distribution L e and n χ n Q n i,re ^ is the sample mean of the data.

A single Wasserstein radius ε PV is applied across the entire scheduling horizon to maintain computational tractability and ensure a consistent risk-aversion level for the VPP operator. Regarding the dependence structure, the model assumes that the PV output uncertainty is temporally independent across the operational hours. However, spatial correlation among the prosumers is implicitly captured by constructing the ambiguity set based on the aggregated PV output and employing the L 1 norm in the Wasserstein metric definition.

3.2. A DRO Model for the MGO in Blockchain Environments

Acting as the regulator of the production and consumption activities of the prosumer alliance, the MGO collects data on the electricity consumption and generation of the prosumer alliance via the blockchain platform and conducts electricity transactions with both the prosumer alliance and the SESO. Let the electricity consumption of prosumer n in time period i be x n i , with x n,min i x n i x n,max i , where x n,min i and x n,max i are the minimum and maximum electricity consumption of prosumer n in period i , respectively. Let the electricity generation be Q n i with Q n,min i Q n i Q n,max i , where Q n,min i and Q n,max i are the minimum and maximum electricity generation of prosumer n in time period i , and n χ n Q n i ={ n χ n Q n,1 i,re , n χ n Q n,2 i,re , n χ n Q n,3 i,re ,, n χ n Q n,J i,re }Ξ . If x n i > Q n i , the prosumer purchases electricity from the MGO at the internal purchase price p b i . Conversely, if x n i Q n i , the prosumer sells electricity to the MGO at the internal selling price p s i . To ensure that prosumers are incentivized to trade exclusively with the MGO, the internal purchase and selling prices are set, respectively, lower than the ToU commercial electricity prices p pk,bs , p nr,bs , p va,bs for transactions with the main grid and higher than the PV feed-in tariff p ol . Specifically, p ol p s i < p b i p pk,bs during peak periods, p ol p s i < p b i p nr,bs during flat periods, p ol p s i < p b i p va,bs during valley periods. Consequently, the total electricity sold T s i and the total electricity purchased T b i in period i can be expressed as:

T n i ={ n χ s ( Q n i x n i ) n χ b ( x n i Q n i ) (7)

where χ s is the set of sellers among prosumers, s χ s , χ s ={ 1,2,3,,S } , χ b is the set of buyers among prosumers, b χ b , χ b ={ 1,2,3,,B } , χ s χ n , χ b χ n , χ s χ b = χ n and χ s χ b = .

If T s i > T b i , the MGO needs to purchase electricity from the SESO to balance internal supply and demand, if T s i < T b i , the MGO can sell excess electricity to the SESO. Both the MGO and SESO conduct electricity buying and selling through the interactive electricity price p co i . Operating to maximize its own profit, the MGO can derive its two-stage distributed robust optimization model based on Wasserstein as:

1) If T s i > T b i

max p co i , p n i { R MGO i = c co,s + c s + inf P U ε E P [ ( p n i , n χ n Q n i ) ] } (8)

2) If T s i T b i

max p co i , p n i { R MGO i = c co,b + c s + inf P U ε E P [ ( p n i , n χ n Q n i ) ] } (9)

where R MGO i represents the revenue of MGO in period i , c co,s and c co,b represent the cooperative game revenue between the MGO and SESO, i.e., the interaction cost. c s is the revenue from the MGO selling electricity to prosumers. E P [ ] denotes the expected value operation on random variables, ( p n i , n χ n Q n i ) is the cost of real-time electricity purchasing due to the uncertainty of PV output. Its objective, within the ambiguity set U ε based on the Wasserstein distance, is to minimize the expected revenue under the worst-case scenario distribution.

c co,s and c co,b are the interaction costs when the system is in a state of overall electricity selling and purchasing, respectively, and c s is the MGO’s revenue from electricity sales, specifically expressed as:

c co,s =f( θ ) p co i P co,s i (10)

c co,b = f 1 ( θ ) p co i P co,b i (11)

c s = p b i n χ b x n i + p s i n χ s x n i (12)

where p co i is the interactive electricity price between the MGO and SESO within the VPP alliance, P co,s i and P co,b i are the electricity quantity sold by the MGO to the SESO and the electricity quantity purchased by the MGO from the SESO, respectively, i.e., the interactive electricity quantity between the two. f( θ ) is the revenue loss function during electricity interaction before the application of blockchain technology. Based on the analysis in [18]-[22] and Section 2.2., due to the application of blockchain technology, its characteristics such as fairness and transparency of information can reduce most of the decision-making costs for transaction participants. Therefore, we can set the blockchain impact factor as:

f( θ )= 1 e θ( 1q ) (13)

where θ is the blockchain technology impact factor and θ[ 0,1 ] , q is the on-chain rate, q[ 0,1 ] .

The blockchain impact factor f( θ ) makes the benefits of blockchain operational by quantifying the reduction in specific frictional costs, such as information asymmetry and transaction verification overhead. The parameters can be calibrated using measurable transaction metrics: the on-chain rate q can be estimated by the historical ratio of transactions automatically settled via smart contracts to total transaction requests.

The real-time electricity purchase cost function is specifically expressed as:

( p n i , n χ n Q n i )=( p b i n χ b Q n i + p s i n χ s Q n i ) (14)

where n χ n Q n i = n χ s Q n i + n χ b Q n i .

Using strong duality theory and incorporating the dual form of the Wasserstein distance [25], the inner-layer mathematical expectation inf model can be further transformed into a maximization model:

inf P U ε E P [ ( p n i , n χ n Q n i ) ] = max λ 1 i 0 { λ 1 i ε PV + 1 J j=1 J inf Q n i ,ξΞ ( ( p b i n χ b Q n i + p s i n χ s Q n i )+ λ 1 i n χ n Q n i,re n χ n Q n,j i,ref ) } (15)

where λ 1 i is the Lagrange dual multiplier for the constraint that the electricity generation output in time period i is subject to ε PV .

Finally, analyzing Equation (15), since the internal tariff satisfies the inequality p ol p n i p pk,bs , p s i < p b i , and Q n i 0 , therefore, the minimum value of the inner inf problem in Equation (15) can be expressed as:

inf Q n i ,ξΞ ( Q n i , p n i )={ ( p b i n χ b Q n,j i,re + p s i n χ s Q n,j i,re ), λ 1 i p b i , λ 1 i < p b i (16)

where n χ b Q n,j i,re and n χ s Q n,j i,re are the actual values of the j -th total PV output for the seller and buyer under the time period i .

Substituting Equation (16) back into Equation (15) gives:

inf P U ε E P [ ( p n i , n χ n Q n i ) ]= max λ 1 i 0 { λ 1 i ε PV + 1 J j=1 J ( p b i n χ b Q n,j i,re + p s i n χ s Q n,j i,re ) } (17)

To simplify the expression of the final DRO model of MGO, Equation (7) can be first transformed into:

T ¯ n i,re ={ 1 J j=1 J n χ s ( Q n,j i,re x n i ) 1 J j=1 J n χ b ( x n i Q n,j i,re ) (18)

Finally, by bringing Equation (18) back to the original Equations (8) and (9), we can obtain the final MGO DRO model as:

max p n i , λ 1 i , p co i { R MGO i ( λ 1 i , p n i , p co i )={ T ¯ b i,re p b i T ¯ s i,re p s i +f( θ ) p co i ( T ¯ s i,re T ¯ b i,re ) λ 1 i ε PV , T ¯ s i,re > T ¯ b i,re , λ 1 i p b i T ¯ b i,re p b i T ¯ s i,re p s i + f 1 ( θ ) p co i ( T ¯ s i,re T ¯ b i,re ) λ 1 i ε PV , T ¯ s i,re T ¯ b i,re , λ 1 i p b i } (19)

3.3. Revenue Optimization Model for SESO under Blockchain Technology

Before joining the VPP alliance, the SESO bought electricity at the off-peak real-time market price p val and sold it at the peak real-time market price p peek to profit from the price difference. However, the peak and off-peak prices in the real-time market are highly volatile and unstable. After forming a VPP alliance with the MGO, transactions with downstream prosumers become more stable and controllable. Additionally, we assume that the energy storage capacity of the SESO far exceeds the electricity demand of the prosumer group. And, the charging and discharging power P ch i and P dis i represent exclusively the electricity exchanged between the MGO and the SESO. Moreover, during electricity interaction with the MGO, the SESO has already stored a substantial amount of electricity. The operational revenue model of the SESO is as follows:

R SESO i =( f( θ ) p co i p val / η dis η ch ) P dis i +( p peek η dis η ch f 1 ( θ ) p co i ) P ch i ( P dis i + P ch i ) η om (20)

s.t.{ S min S i S max E min E i E max 0 P ch i u P ch,max i 0 P dis i ( 1u ) P dis,max i S i = ( E max S i1 + η ch P ch i P dis i / η dis )/ E max (21)

where R SESO i represents the revenue of SESO in period i , P dis i and P ch i represent the discharge and charge power of the energy storage system in time period i , respectively, P ch,max i and P dis,max i denotes the maximum charge and discharge power of the energy storage system in time period i , η om is the operation and maintenance coefficient for the SESO’s charging and discharging, where η om [ 0,1 ] . S i represents the state of charge (SOC) of the energy storage system in time period i , while S min and S max are the lower and upper limits of the SOC. E i denotes the energy state of the energy storage system in time period i , with E min and E max being the lower and upper limits of the energy state. u is a Boolean variable introduced to prevent the energy storage system from simultaneously charging and discharging in any given time period. η ch and η dis represent the charging and discharging efficiencies of the energy storage system, where η ch [ 0,1 ] and η dis [ 0,1 ] .

3.4. DRO Model for VPP Operation

After the MGO and SESO form an alliance, the VPP operates to maximize the alliance’s revenue i.e.,

max p n i , λ 1 i , p co i { R VPP i ( λ 1 i , p n i )= R MGO i ( λ 1 i , p n i , p co i )+ R SESO i ( p co i ) } (22)

where R VPP i represents the revenue of VPP in period i , the electricity exchange costs between the two parties offset each other, and the internal electricity supply meets the balance: T ¯ b i,re + P dis i + P co,s i = T ¯ s i,re + P ch i + P co,b i . By integrating Equations (19)-(22), we can derive the DRO model for the VPP as follows:

1) T ¯ s i,re > T ¯ b i,re :

max p n i , λ 1 i { R VPP i ( λ 1 i , p n i )= T ¯ b i,re p b i T ¯ s i,re p s i + p peek η dis η ch P ch i P ch i η om λ 1 i ε PV } (23)

s.t.{ T ¯ s i,re > T ¯ b i,re λ 1 i p b i p ol p s i < p b i p pk,bs x n,min i x n i x n,max i S min S i S max E min E i E max 0 P ch i P ch,max i S i = ( E max S i1 + η ch P ch i P dis i / η dis )/ E max (24)

2) T ¯ s i,re T ¯ b i,re :

max p n i , λ 1 i { R VPP i ( λ 1 i , p n i )= T ¯ b i,re p b i T ¯ s i,re p s i p val / η dis η ch P dis i P dis i η om λ 1 i ε PV } (25)

s.t.{ T ¯ s i,re T ¯ b i,re λ 1 i p b i p ol p s i < p b i p pk,bs x n,min i x n i x n,max i S min S i S max E min E i E max 0 P dis i P dis,max i S i = ( E max S i1 + η ch P ch i P dis i / η dis )/ E max (26)

4. DRO Model for Prosumer Operation under Blockchain Technology

Prosumers as the lower-level followers in the Stackelberg game, engage in a game with the upper-level VPP alliance to maximize their own electricity consumption utility. The goal is to determine the optimal electricity consumption that maximizes their utility under the optimized pricing strategy set by the VPP alliance. Based on [26]-[29] regarding electricity consumption utility on the demand side, most existing research uses quadratic functions or natural logarithmic functions αln( 1+x ) to model demand-side electricity utility. This study, drawing on extensive literature and experimental analysis, adopts the inverse hyperbolic sine function αarsinh( x ) to model prosumer electricity utility. Compared to αln( 1+x ) , the core advantages of αarsinh( x ) : 1) When users face situations where the cost of electricity consumption exceeds the utility, αarsinh( x ) allows zero consumption to be an optimal solution of the model, which aligns better with real-world scenarios; 2) The second derivative of αarsinh( x ) smoothly transitions to zero at the origin, which enhances the numerical stability and convergence speed of the algorithm. Based on this, and considering Equations (3) and (4) along with the analysis of the MGO’s distributed robust optimization model in Section 3.2., the detailed construction of the prosumer’s distributed robust model for electricity utility will not be elaborated further.

In the generic utility formulation αarsinh( x ) , the parameter α represents the general marginal utility coefficient, which dictates a prosumer’s sensitivity to electricity consumption increments. In our proposed DRO model for a prosumer electricity utility, this parameter is specifically denoted as k n,blo i to capture the time-varying, prosumer-specific preference under blockchain technology. These utility parameters are calibrated based on historical consumption elasticity, ensuring that the modeled utility curve reflects realistic comfort constraints—namely, that the marginal benefit of electricity consumption gradually diminishes as a prosumer’s basic comfort needs are satisfied.

The distributed robust optimization model for prosumer electricity utility under blockchain technology is as follows:

max λ 2 i , λ 3 i , x n i { n χ n U n i ( λ 2 i , λ 3 i , x n i ) ={ n χ b ( k n,blo i arsinh( x n i ) p b i ( x n i 1 J j=1 J Q n,j i,re ) λ 2 i ε PV ), n χ b , λ 2 i p b i n χ s ( k n,blo i arsinh( x n i ) p s i ( x n i 1 J j=1 J Q n,j i,re ) λ 3 i ε PV ), n χ s , λ 3 i p s i } (27)

where U n i represents the utility of prosumers in time period i , λ 2 i and λ 3 i are the Lagrange dual multipliers for the electricity generation constraints of prosumers (buyers and sellers, respectively) under the ε PV constraint during time period i , 1 J n χ s j=1 J Q n,j i,re + 1 J n χ b j=1 J Q n,j i,re = 1 J n χ n j=1 J Q n,j i,re and k n,blo i represents the electricity preference coefficients of prosumers under blockchain technology in time period i , according to [19], the coefficient can be set as follows:

k n,blo i ={ k n,0 i e Aq , n χ s e Aq k n,0 i , n χ b (28)

where k n,0 i represents the initial electricity consumption preference of the prosumer n in time period i without considering blockchain; A is the impact factor of blockchain on the prosumer’s electricity consumption preference and A[ 0,1 ] .

Similarly, the impact factor A can be calibrated based on the empirically observed increase in prosumer trading preferences following the reduction in settlement risks provided by the distributed ledger.

5. Solution for Hybrid Game Model

The model constructed in this study consists of an upper-level VPP DRO operation model and a lower-level prosumer alliance DRO model, forming a cooperative-Stackelberg-cooperative hybrid game model. The model involves multiple layers of internal and external nesting with numerous parameters to be optimized, making direct solution complex and challenging to directly identify the final optimal solution that fits all optimization models. Therefore, this paper adopts the ADMM algorithm [30]. First, the upper-level VPP DRO operation model is decomposed into two subproblems: (Q1) VPP alliance revenue maximization problem, and (Q2) VPP alliance revenue distribution problem based on symmetric Nash bargaining. Q1 engages in a Stackelberg game with the lower-level prosumer alliance, while Q2 simultaneously conducts internal cooperative bargaining with the lower-level prosumer alliance.

5.1. Solution for Stackelberg Game Model

The Stackelberg game, as an efficient method for resolving transaction and scheduling issues between two entities, serves as an ideal tool for achieving balanced coexistence between the VPP alliance and the prosumer alliance in this study. The Stackelberg game consists of three elements: game participants, game objectives, and game strategies. In this paper, these three elements can be specifically defined as:

1) Game participants: The upper-level VPP alliance and the lower-level prosumer alliance;

2) Game objectives: Both parties engage in the game with the goal of optimizing their respective DRO models. The upper-level VPP alliance aims for

max p n i , λ 1 i R VPP i ( λ 1 i , p n i ) ; the lower-level prosumer alliance seeks max λ 2 i , λ 3 i , x n i n χ n U n i ( λ 2 i , λ 3 i , x n i ) .

3) Game Strategies: The upper-level VPP alliance uses the formulation of internal electricity purchase/selling prices and Lagrange dual multipliers as its strategy set: s VPP ={ p b i , p s i , λ 1 i | p b i , p s i μ, λ 1 i p b i } ; The lower-level prosumer alliance uses its electricity consumption and Lagrange dual multipliers as its strategy set: s pro ={ x n i , λ 2 i , λ 3 i | x n i χ pro , λ 2 i p b i , λ 3 i p s i } , where, χ pro is the set of all possible electricity consumption scenarios for prosumers.

This Stackelberg game model is guaranteed to have an equilibrium solution. For the proof of solution existence, please refer to Appendix A. This study employs the backward induction method to solve the aforementioned model. The final game equilibrium solution must satisfy the following conditions:

R VPP i ( p b i* , p s i* , λ 1 i* ) R VPP i ( p b i , p s i , λ 1 i ) p n i μ\{ p b i* , p s i* }, λ 1 i p b i μ\{ p b i* } (29)

U n i ( x n i* , λ 2 i* , λ 3 i* ) U n i ( x n i , λ 2 i , λ 3 i ) x n i χ pro \{ x n i* }, λ 2 i p b i μ\{ p b i* }, λ 3 i p s i μ\{ p s i* } (30)

where μ represents the distribution of internal electricity prices.

5.2. Solution Method for Cooperative Game Model

VPP Alliance Cooperative Game Model Solution

A necessary condition for parties engaged in a game to form a coalition is that the benefits achieved through cooperation must exceed the sum of their individual benefits obtained independently. This principle is known as superadditivity, in this study, this property should be manifested as follows, which detailed proof is provided in Appendix B.

R VPP i ( λ 1 i , p n i ) R SESO,0 i + R MGO,0 i (31)

Nash bargaining, as a pivotal concept in game theory, is frequently employed to address the equitable distribution of cooperation benefits among multiple participants in cooperative games. This study adopts a cooperative game model based on symmetric Nash bargaining theory to allocate the cooperative surplus within the upper-level VPP alliance. The specific model is as follows [31]:

{ max p co i ( R SESO i R SESO,0 i )( R MGO i R MGO,0 i ) s.t. R SESO i R SESO,0 i , R MGO i R MGO,0 i (32)

where R SESO,0 i and R MGO,0 i represent the revenues of the two parties in time period i when they do not form an alliance.

To facilitate the solution of the model and based on the above analysis, this model is divided into two subproblems, Q1 and Q2, for solving. The specific forms are as follows:

Q1) VPP alliance revenue maximization problem

{ max p n i , λ 1 i R VPP i ( λ 1 i , p n i ) s.t.Eqs.(24),(26) (33)

Q2) VPP alliance cooperative surplus distribution problem

1) T ¯ s i,re > T ¯ b i,re

{ max p co i ln( ( η dis η ch p peek f 1 ( θ ) p co i ) P ch i* P ch i* η om R SESO,0 i ) +ln( ( T ¯ b i,re p b i* T ¯ s i,re p s i* +f( θ ) p co i ( T ¯ s i,re T ¯ b i,re ) λ 1 i* ε PV ) R MGO,0 i ) s.t.( η dis η ch p peek f 1 ( θ ) p co i ) P ch i* P ch i* η om R SESO,0 i T ¯ b i,re p b i* T ¯ s i,re p s i* +f( θ ) p co i ( T ¯ s i,re T ¯ b i,re ) λ 1 i* ε PV R MGO,0 i (34)

2) T ¯ s i,re T ¯ b i,re

{ max p co i ln( ( f( θ ) p co i p val / η dis η ch ) P dis i* P dis i* η om R SESO,0 i ) +ln( ( T ¯ b i,re p b i* T ¯ s i,re p s i* + f 1 ( θ ) p co i ( T ¯ s i,re T ¯ b i,re ) λ 1 i* ε PV ) R MGO,0 i ) s.t.( f( θ ) p co i p val / η dis η ch ) P dis i* P dis i* η om R SESO,0 i T ¯ b i,re p b i* T ¯ s i,re p s i* + f 1 ( θ ) p co i ( T ¯ s i,re T ¯ b i,re ) λ 1 i* ε PV R MGO,0 i (35)

where the values marked with “ ” are the optimal values obtained after the Stackelberg game between Equations (22) and (27).

5.3. Algorithm Design

Figure 3 illustrates the solution process of the two-stage bi-level ADMM model, with the specific steps as follows:

Figure 3. Two-stage two-layer virtual power plant optimization operation model solution process.

1) Input initial data, such as prosumers’ initial electricity consumption, initial generation output, the empirical distribution derived from PV reference output values, real-time market ToU electricity prices, and other initial parameters.

2) Determine the minimum radius of the Wasserstein ball based on the empirical distribution and use it to handle PV uncertainty.

3) Substitute the initial values into Equations (23) and (27), and conduct a Stackelberg game between Equation (23) (representing the VPP alliance’s robust optimization model) and Equation (27) (representing the prosumers’ robust optimization model). Iterate repeatedly until the game equilibrium point is found.

4) Substitute the optimal decision variables obtained from the Stackelberg game into Equations (34) and (35). Use the symmetry-based Nash bargaining method to allocate the cooperative surplus between the MGO and SESO in the VPP alliance. Iterate repeatedly until the optimal interactive electricity price and the optimal allocation scheme are determined.

5) The ADMM-based iterative process terminates when the monitored residuals fall below the predefined convergence tolerances, or when the maximum iteration limit k max is reached. Specifically, the algorithm monitors two quantitative indicators at each iteration k : the primal residual r k , which reflects the mismatch in the expected energy transaction quantities between the VPP and the prosumers, and the dual residual s k , which measures the step-to-step variation in the consensus pricing variables. The iterations stop and the equilibrium is guaranteed when both r k 2 ε pri and s k 2 ε dual are satisfied.

6. Numerical Simulation

The numerical simulation of the model constructed in this study was conducted on Matlab R2018a, using actual data from multiple commercial buildings in a certain region of China as a case study. The number of prosumers was set to 8, with 1 MGO and 1 SESO. Considering the effective time period of PV output, the daily hours from 7:00 to 19:00 were selected for the study. The value of parameters are shown in Table 1. The initial electricity consumption and generation output of prosumers on a typical day are shown in Figure 4 and Figure 5, respectively.

Figure 4. Initial electricity consumption by prosumers.

Figure 5. Initial electricity production by prosumers.

Table 1. The value of other parameters.

Parameter

Value

ρ

0.9

J

100

N

8

θ

0.1

A

0.1

η om

0.1

η ch

0.98

η dis

0.98

p bs,pk

1.2/CNY/kWh

p bs,nor

0.8/CNY/kWh

p peek

0.8/CNY/kWh

p val

0.3/CNY/kWh

p ol

0.3/CNY/kWh

σ car

0.879

k max

300

ε pri

10−3

ε dual

10−3

Based on the temporal variations of prosumers’ electricity consumption and generation shown in Figure 4 and Figure 5, this study defines the off-peak electricity consumption periods as 7:00-9:00 and 17:00-19:00, and the peak electricity consumption period as 10:00-16:00.

6.1. Analysis of System Optimization Decision Schemes

To verify the positive impact of the model constructed in this paper on system operation, the following four schemes are established for comparative analysis. Among them, “①”, “②”, “③”, and “④” respectively represent: ① whether the MGO and SESO engage in a cooperative game based on symmetric Nash bargaining; ② whether to join the blockchain trading platform; ③ whether to consider the uncertainty of PV output; ④ whether the VPP alliance/MGO conducts a Stackelberg game with the prosumers. The details are shown in Table 2.

Table 2. Schemes settings.

Scheme

1

2

3

4

5

It should be noted that when the MGO and SESO choose not to engage in a cooperative game, the revenue of the SESO comes from arbitrage in the real-time electricity market, and the electricity quantity traded with the main grid is the same as that traded between the MGO and the prosumers.

Through numerical experiments, we can obtain data such as the revenues of the MGO and SESO and the system carbon emissions under different schemes. We assume that during any time period when the total electricity consumption of prosumers exceeds their total generation, requiring the MGO to purchase electricity from the SESO to balance internal supply and demand, the electricity stored by the SESO is partially procured from the main grid and partially purchased from the MGO. The portion procured from the main grid originates exclusively from thermal power generation. For Schemes 1 - 3, carbon emissions are characterized using Equation (36), while for Schemes 4 and 5, Equation (37) is employed. The details are shown in Table 3.

Table 3. VPP alliance benefits and prosumers’ electricity utility.

Scheme

MGO revenue/CNY

SESO revenue/CNY

Local PV consumption rate

Prosumer electricity utility/CNY

Carbon emissions/Ton

1

1500.881

1937.293

100%

46858.331

2483.127

2

985.169

1291.138

100%

43144.273

2391.995

3

1699.277

2031.646

100%

47469.146

2313.601

4

1001.386

1750.74

50.3%

45961.562

3124.631

5

1293.729

1750.74

56.7%

46076.327

2858.299

O car i = σ car max{ max( n χ n ( x n i 1 J j=1 J Q n,j i,re ) ,0 ) max( η dis η ch t=1 i1 n χ n ( 1 J j=1 J Q n,j i1,re x n i1 ) ,0 ),0 } (36)

O car i = σ car max( n χ n ( x n i 1 J j=1 J Q n,j i,re ) ,0 ) (37)

where O car i represents the carbon emissions of the system during time period i , σ car is the carbon emission factor for thermal power generation.

As shown in Table 3, the operational status of the system under various decision schemes composed of different possibilities can be observed in detail. Scheme 1, which incorporates cooperative game + blockchain technology + uncertainty management + Stackelberg game, represents the most technologically comprehensive operational model. Scheme 2 lacks the application of blockchain technology and is used to evaluate the marginal contribution of blockchain. Scheme 3 reflects the upper limit of system performance under the most idealized conditions, demonstrating the cost of risk management. Scheme 4 lacks a cooperative mechanism and also does not consider the Stackelberg game mechanism between the VPP alliance and the prosumers, primarily reflecting the impact of the hybrid game mechanism on the system. Scheme 5 does not consider the cooperative mechanism, with the main purpose of evaluating the marginal contribution of the cooperative mechanism.

By comparing Schemes 1, 4, and 5, it can be observed that under the hybrid game mechanism, the revenues of the MGO and SESO in the VPP alliance increased by 499.495 CNY and 186.553 CNY, respectively. Additionally, the local PV consumption rate reached 100% in Scheme 1, while the electricity utility of prosumers improved by 896.769 CNY and 1982.004 CNY compared to Schemes 4 and 5. This demonstrates that the hybrid game mechanism effectively enhances alliance revenues, prosumers’ electricity utility, and promotes system operational efficiency and environmental benefits.

A comparison between Schemes 1 and 2 reveals that, under the consideration of blockchain technology, the revenues and electricity utility of the MGO, SESO, and prosumers increased by over 40%. This is attributed to the unique features of blockchain technology, such as distributed ledgers and smart contracts, which ensure transaction transparency and fairness, significantly reduce the costs of electricity interactions, and improve the efficiency of electricity trading and scheduling.

Comparing Schemes 1 and 3, after accounting for the uncertainty of PV output, the revenues and utility of decision-makers and prosumers decreased. This is because decision-makers, considering the uncertainty of risks, implemented risk management to enhance system resilience. Although this reduced revenues, it strengthened their risk resistance, mitigated potential future economic losses, and further improved the stability of system operation.

Comparing Schemes 1, 3, and 5, in Scheme 5, where no cooperative alliance was considered, the MGO still engaged in a Stackelberg game with prosumers to determine internal electricity prices. However, the MGO’s revenue was significantly lower than the results achieved in Schemes 1 and 3, which considered cooperative gaming. This confirms that cooperative gaming is key to maximizing benefits and achieving efficient allocation.

Based on the carbon emissions data in Table 3, the five schemes perform as follows, Scheme 4 has the highest carbon emissions (3124.631 tons), 25.8% higher than Scheme 1. Scheme 5 also shows significantly higher emissions (2858.299 tons). This underscores the essential role of cooperative mechanisms in low-carbon system dispatch. Scheme 2 exhibits slightly lower emissions (2391.995 tons) than Scheme 1, possibly due to short-term transaction complexity introduced by blockchain. In the long run, however, blockchain is expected to improve market efficiency and support emission reduction. Scheme 3 achieves the lowest emissions (2313.601 tons), though this may reflect over-optimistic scheduling that could pose operational risks in practice. Scheme 1, integrating all mechanisms, strikes a balance in emissions (2483.127 tons), demonstrating the synergistic value of combining cooperative gaming, blockchain, uncertainty management, and Stackelberg gaming.

In conclusion, Scheme 1, which represents the model constructed in this study, is the optimal solution.

6.2. Analysis of Upper-Level VPP Alliance Decision-Making

Based on Figure 6 and Table 4, it can be observed that after Nash bargaining, the final revenue of the VPP alliance increased by 686.048 CNY, with the MGO’s revenue rising by 499.495 CNY and the SESO’s revenue by 186.553 CNY. This indicates that the symmetric Nash bargaining method can enhance the alliance’s overall revenue. Furthermore, the Nash bargaining theory, when applied to the distribution of cooperative surplus within the alliance, adequately addresses fairness and participation incentives among members, thereby promoting equitable and rational distribution within the alliance.

Figure 6. MGO and SESO gains before and after Nash bargaining.

Table 4. VPP alliance benefits and prosumers’ electricity utility.

Scheme

VPP revenue/CNY

MGO revenue/CNY

SESO revenue/CNY

Before Nash bargaining

2752.126

1001.386

1750.74

after Nash bargaining

3438.174

1500.881

1937.293

From Figure 7, it can be observed that during 7:00-9:00 and 17:00-19:00, the internal electricity purchase price does not exceed 0.8 CNY/kWh, while during 10:00-16:00, it remains below 1.2 CNY/kWh. This reflects the protection of prosumers’ welfare in electricity procurement under ToU pricing constraints. During 12:00-15:00, when the system’s total electricity sales volume is lower than the purchase volume, the VPP alliance increases the internal selling price to encourage electricity consumption, aiming to incentivize more prosumers to sell electricity. Conversely, during 10:00-12:00 and 15:00-18:00, when electricity purchases are lower than sales, the VPP alliance reduces the internal purchase price to motivate prosumers to consume and purchase more electricity during these periods. By implementing such internal pricing strategies, the VPP alliance guides prosumers toward rational electricity consumption, thereby enhancing system operational efficiency and the local PV consumption rate.

Figure 7. Internal prices changes.

Figure 8 illustrates the variation of the internal interactive electricity price over time when the VPP alliance engages in cooperative gaming, i.e., during electricity interactions between the MGO and SESO. By analyzing the optimized electricity consumption patterns of prosumers, it can be concluded that the system operates in a net electricity selling mode during 12:00-14:00, and in a net purchasing mode during all other periods. During 7:00-12:00, the MGO purchases electricity from the SESO. Constrained by ToU pricing and the low overall system load during this period, the SESO sets a lower internal interactive price to encourage the MGO to increase its electricity purchases. Compared to purchasing electricity directly from the main grid at real-time prices, this approach reduces the MGO’s procurement costs while ensuring revenue for the SESO. During 12:00-14:00, the MGO sells electricity to the SESO, and the internal interactive price decreases as the sales volume increases. Compared to selling electricity directly to the main grid at feed-in tariffs, this strategy increases the MGO’s revenue while safeguarding the SESO’s earnings. During 15:00-19:00, when the system load peaks and gradually declines, the internal interactive price reaches it’s maximum to guide reasonable electricity consumption behavior and optimize power dispatch. As the load decreases, the price correspondingly drops, following a logic consistent with the low-load period in the early morning. Similarly, this approach reduces the MGO’s procurement costs while ensuring the SESO’s revenue. Furthermore, by combining Table 3 and Figure 8, it is evident that the MGO possesses stronger bargaining power compared to the SESO.

Figure 8. Internal interactive electricity price within VPP.

6.3. Uncertainty Analysis

A comparison of VPP alliance revenue and prosumer utility under different confidence levels is shown in the figure below.

As clearly shown in Figure 9, as the confidence level increases, the boundary of the probability distribution fuzzy set for power generation expands, leading to a decrease in both the revenue of the VPP alliance and the electricity utility of prosumers. This occurs because the VPP aims to mitigate uncertainty risks in operational decision-making, resulting in more robust decisions at the expense of economic benefits. Within the VPP alliance, as the confidence level decreases, the revenue growth of the MGO is significantly higher than that of the SESO. This is attributed to the MGO’s more critical role in this electricity trading model, where it acts as an energy hub by interacting with both prosumers and the SESO, thereby possessing stronger bargaining power. This uncertainty model is designed to ensure that the VPP alliance fully assesses potential risks during decision-making, balancing the relationship between risk and revenue through the constructed model, thereby enhancing the robustness and resilience of system operation.

Figure 9. VPP coalition revenues and utility of prosumers at different confidence levels.

6.4. Algorithm Convergence Validation

To verify the computational reliability of the proposed hybrid game model, the convergence performance of the ADMM algorithm is evaluated.

As shown in Figure 10, the primal residual r k 2 and dual residual s k 2 are tracked across the iterations. Both residuals exhibit a rapid descending trend during the initial iterations and gradually stabilize. After approximately 70 iterations, both the primal and dual residuals drop below the predefined convergence tolerance of 10−3. This quantitative indicator demonstrates that the internal pricing and energy trading strategies between the VPP alliance and the prosumer cluster have reached a stable equilibrium, confirming the algorithmic efficiency and solution feasibility of the developed mode.

Figure 10. Convergence curves of the ADMM algorithm.

7. Conclusions

Under the “dual carbon” policy framework, this study develops a twostage bilevel distributed robust optimization model for VPPs under blockchain technology, addressing local consumption of distributed energy, scheduling, and risk management. Key findings are summarized as follows:

1) Synergy between MGO and SESO: Shared energy storage improves local PV consumption, optimizes prosumer behavior, and boosts economic returns for both entities within a VPP alliance. The cooperation also reduces system carbon emissions, enhancing environmental performance alongside operational efficiency and prosumer utility.

2) Blockchain advantages: Distributed ledger and smart contract features increase transparency and fairness, lower transaction costs, and improve system efficiency.

3) Robust uncertainty handling: The Wasserstein-based model strengthens system resilience and supports riskinformed decision-making, balancing economic and reliability objectives.

While the model effectively optimizes upper-level VPP decisions, prosumer-level strategies remain relatively simplistic. Future work will focus on prosumercentric mechanisms to better align trading and scheduling behaviors, promote fairness, and advance the architecture of distributed energy markets.

Appendix A

By observing Equations (23)-(27), it is evident that in the follower model, since the electricity consumption x n i is naturally greater than or equal to 0, the DRO model of the prosumer’s electricity utility is a continuous and strictly concave function with respect to x n i . Setting the first-order derivative of Equation (27) to zero, we obtain the maximum point of the function as:

{ x n i* = k n,blo i 2 p b i 2 1 n χ b x n i* = k n,blo i 2 p s i 2 1 n χ s (A.1)

Subsequently, substituting x n i* back into Equations (23) and (25), the leader model can be derived as:

{ max p n i , λ 1 i ( n χ b ( k n,blo i 2 p b i 2 1 1 | J | jJ Q n,j i,re ) p b i n χ s ( 1 | J | jJ Q n,j i,re k n,blo i 2 p s i 2 1 ) p s i + p peek P ch i P ch i η om λ 1 i ε PV ) T ¯ s i,re > T ¯ b i,re , λ 1 i p b i max p n i , λ 1 i ( n χ b ( k n,blo i 2 p b i 2 1 1 | J | jJ Q n,j i,re ) p b i n χ s ( 1 | J | jJ Q n,j i,re k n,blo i 2 p s i 2 1 ) p s i p val P dis i P dis i η om λ 1 i ε PV ) T ¯ s i,re T ¯ b i,re , λ 1 i p b i (A.2)

From the above equation, it is evident that the leader model is a continuously differentiable function with respect to ( p b i , p s i ) , meaning there exists ( p b i* , p s i* ) that optimizes the leader model. Thus, the existence of the Stackelberg game equilibrium solution is proven.

Next, the Hessian matrix of Equation (A.2) with respect to p b i and p s i can be derived as:

[ n χ b ( k n,blo i 2 p b i 2 ) 1 2 ( 1+ p b i 2 ( k n,blo i 2 p b i 2 ) 1 ) 0 0 n χ s ( k n,blo i 2 p s i 2 ) 1 2 ( 1+ p s i 2 ( k n,blo i 2 p s i 2 ) 1 ) ] (A.3)

From the above matrix, it is clear that according to Equation (27), since k n i p n i , the Hessian matrix of the leader model with respect to p b i and p s i is negative definite. Therefore, the leader model is a continuously differentiable strictly concave function, meaning there exists a unique optimal point ( p b i* , p s i* ) that achieves the optimal value for the model.

Hence, the uniqueness of the Stackelberg game equilibrium solution is proven.

Appendix B

To prove that the cooperative game between the MGO and SESO is superadditive, it suffices to show that for any time period, R VPP i ( λ 1 i , p n i ) R SESO,0 i R MGO,0 i 0 . When no alliance is formed, the revenues of the SESO and MGO can be expressed respectively as:

R MGO,0 i ={ T ¯ b i,re p b i T ¯ s i,re p s i + p ol ( T ¯ s i,re T ¯ b i,re ) λ 1 i ε PV , T ¯ s i,re > T ¯ b i,re , λ 1 i p b i T ¯ b i,re p b i T ¯ s i,re p s i + p bs,r ( T ¯ s i,re T ¯ b i,re ) λ 1 i ε PV , T ¯ s i,re T ¯ b i,re , λ 1 i p b i (B.1)

where p ol and p bs,r represent the photovoltaic feed-in tariff and the commercial real-time electricity price, respectively.

R SESO,0 i =( p peek η dis η ch p val / η dis η ch )( T ¯ b i,re T ¯ s i,re ) η om ( T ¯ b i,re + T ¯ s i,re ) (B.2)

Next, we obtain:

1) If T ¯ s i,re > T ¯ b i,re :

R VPP i ( λ 1 i , p n i ) R SESO,0 i R MGO,0 i = T ¯ b i,re p b i T ¯ s i,re p s i + η dis η ch p peek P ch i P ch i η om λ 1 i ε PV ( p peek η dis η ch p val / η dis η ch )( T ¯ b i,re T ¯ s i,re )+ η om ( T ¯ b i,re + T ¯ s i,re ) T ¯ b i,re p b i + T ¯ s i,re p s i p ol ( T ¯ s i,re T ¯ b i,re )+ λ 1 i ε PV (B.3)

2) If T ¯ s i,re T ¯ b i,re :

R VPP i ( λ 1 i , p n i ) R SESO,0 i R MGO,0 i = T ¯ b i,re p b i T ¯ s i,re p s i p val / η dis η ch P dis i P dis i η om λ 1 i ε PV ( p peek η dis η ch p val / η dis η ch )( T ¯ b i,re T ¯ s i,re )+ η om ( T ¯ b i,re + T ¯ s i,re ) T ¯ b i,re p b i + T ¯ s i,re p s i p bs,r ( T ¯ s i,re T ¯ b i,re )+ λ 1 i ε PV (B.4)

Moreover, since during overall system electricity sales P ch i = T ¯ s i,re T ¯ b i,re , and during overall electricity purchases P dis i = T ¯ b i,re T ¯ s i,re . Simplifying Equations (B.3) and (B.4) yields:

1) If T ¯ s i,re > T ¯ b i,re :

( 2 η dis η ch p peek p val / η dis η ch p ol )( T ¯ s i,re T ¯ b i,re )+2 T ¯ b i,re η om (B.5)

2) If T ¯ s i,re T ¯ b i,re :

( p bs,r p peek η dis η ch )( T ¯ b i,re T ¯ s i,re )+2 T ¯ s i,re η om (B.6)

From Equation (B.5), it can be observed that since T ¯ s i,re > T ¯ b i,re , and 2 η dis η ch p peek p val / η dis η ch p ol >0 , Equation (B.5) is greater than or equal to 0. In Equation (B.6), since T ¯ s i,re T ¯ b i,re , and p bs,nr p peek η dis η ch >0 , Equation (B.6) is greater than or equal to 0.

In conclusion, the superadditivity between the MGO and SESO—i.e., Equation (31)—is thereby proved.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

References

[1] Zhou, W., Zhou, F. and Zhuang, G. (2024) Megacity Pathways in China under the Dual Carbon Goal: The Case of Shanghai. Chinese Journal of Population, Resources and Environment, 22, 241-249.[CrossRef]
[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. Energy Economics, 136, Article 107763.[CrossRef]
[3] Beyea, J. (2010) The Smart Electricity Grid and Scientific Research. Science, 328, 979-980.[CrossRef] [PubMed]
[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. Renewable and Sustainable Energy Reviews, 226, Article 116448.[CrossRef]
[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. Journal of Modern Power Systems and Clean Energy, 12, 359-370.[CrossRef]
[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. Journal of Energy Storage, 101, Article 113997.[CrossRef]
[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. Applied Energy, 379, Article 125006.[CrossRef]
[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. Applied Energy, 369, Article 123565.[CrossRef]
[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. IEEE Transactions on Sustainable Energy, 14, 1346-1356.[CrossRef]
[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. Applied Energy, 386, Article 125514.[CrossRef]
[11] Liu, H., Qiu, J. and Zhao, J. (2022) A Data-Driven Scheduling Model of Virtual Power Plant Using Wasserstein Distributionally Robust Optimization. International Journal of Electrical Power & Energy Systems, 137, Article 107801.[CrossRef]
[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. IEEE Transactions on Automation Science and Engineering, 21, 69-77.[CrossRef]
[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.[CrossRef]
[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. International Journal of Electrical Power & Energy Systems, 165, Article 110462.[CrossRef]
[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. Sustainable Energy, Grids and Networks, 43, Article 101809.[CrossRef]
[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.[CrossRef]
[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.[CrossRef]
[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.[CrossRef]
[19] Leng, J. and Cheng, Y. (2025) Investing in a Zero-Carbon Future: Game-Theoretic Strategies for Clean Energy and Blockchain in Commercial Buildings. Energy and Buildings, 347, Article 116323.[CrossRef]
[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. Energy Conversion and Management: X, 28, Article 101193.[CrossRef]
[21] Sindi, H.F., Morgan, M., Shaaban, M., Zeineldin, H.H. and Lasheen, A. (2024) Blockchain-Based Energy Trading in Droop-Based Hybrid Microgrids. Ain Shams Engineering Journal, 15, Article 102848.[CrossRef]
[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. Computer Standards & Interfaces, 84, Article 103699.[CrossRef]
[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.[CrossRef]
[24] Blanchet, J. and Si, N. (2019) Optimal Uncertainty Size in Distributionally Robust Inverse Covariance Estimation. Operations Research Letters, 47, 618-621.[CrossRef]
[25] Mohajerin Esfahani, P. and Kuhn, D. (2017) Data-Driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations. Mathematical Programming, 171, 115-166.[CrossRef]
[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. Electric Power Systems Research, 251, Article 112253.[CrossRef]
[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. Energy Reports, 8, 771-779.[CrossRef]
[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. Applied Energy, 391, Article 125815.[CrossRef]
[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 First IEEE International Conference on Smart Grid Communications, Gaithersburg, 4-6 October 2010, 415-420.[CrossRef]
[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. Applied Energy, 400, Article 126577.[CrossRef]
[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.[CrossRef]

Copyright © 2026 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.