Two-Stage Virtual Power Plant Bi-Level Hybrid Game Model Considering Photovoltaic Uncertainty under Blockchain Technology ()
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
is determined based on a sample set of
. 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
is given by:
. This empirical distribution serves as an estimate of the true distribution
. Then, due to the limited data volume of
, which makes it difficult to fully approximate
, a Wasserstein ball is constructed with
as the center and
as the radius. The true distribution
lies within this ball and satisfies:
. Finally, the Wasserstein distance is used to measure the distance between
and
, this measurement is employed to construct the ambiguity set.
The Wasserstein distance is defined as follows [23]:
(1)
where
represents the Wasserstein distance,
and
represent the reference distribution and the true distribution of the total PV output during time period
, respectively.
denotes the probability that the joint sample distribution
attains the samples
.
represents the total number of time periods for electricity consumption, where
, and
.
is the total number of prosumers, where
, and
.
denotes the support set range.
is a joint distribution of
and
with
and
, respectively.
denotes the
norm, i.e., the Manhattan distance.
Furthermore, the ambiguity set
can be derived and is defined as follows:
(2)
where
is precisely this Wasserstein ball with
as its center and
as its radius.
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:
(3)
(4)
where
represents a certain confidence level and
is the radius of the Wasserstein ball, which strictly controls the robustness of the DRO model based on the Wasserstein distance and satisfies
.
Subsequently, based on [24], we can obtain an improved formula for calculating
:
(5)
where
is the adjustment factor.
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
is:
(6)
where
is the parameter to be optimized,
is the
-th sample value in the empirical distribution
and
is the sample mean of the data.
A single Wasserstein radius
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
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
in time period
be
, with
, where
and
are the minimum and maximum electricity consumption of prosumer
in period
, respectively. Let the electricity generation be
with
, where
and
are the minimum and maximum electricity generation of prosumer
in time period
, and
. If
, the prosumer purchases electricity from the MGO at the internal purchase price
. Conversely, if
, the prosumer sells electricity to the MGO at the internal selling price
. 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
,
,
for transactions with the main grid and higher than the PV feed-in tariff
. Specifically,
during peak periods,
during flat periods,
during valley periods. Consequently, the total electricity sold
and the total electricity purchased
in period
can be expressed as:
(7)
where
is the set of sellers among prosumers,
,
,
is the set of buyers among prosumers,
,
,
,
,
and
.
If
, the MGO needs to purchase electricity from the SESO to balance internal supply and demand, if
, the MGO can sell excess electricity to the SESO. Both the MGO and SESO conduct electricity buying and selling through the interactive electricity price
. Operating to maximize its own profit, the MGO can derive its two-stage distributed robust optimization model based on Wasserstein as:
1) If
(8)
2) If
(9)
where
represents the revenue of MGO in period
,
and
represent the cooperative game revenue between the MGO and SESO, i.e., the interaction cost.
is the revenue from the MGO selling electricity to prosumers.
denotes the expected value operation on random variables,
is the cost of real-time electricity purchasing due to the uncertainty of PV output. Its objective, within the ambiguity set
based on the Wasserstein distance, is to minimize the expected revenue under the worst-case scenario distribution.
and
are the interaction costs when the system is in a state of overall electricity selling and purchasing, respectively, and
is the MGO’s revenue from electricity sales, specifically expressed as:
(10)
(11)
(12)
where
is the interactive electricity price between the MGO and SESO within the VPP alliance,
and
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.
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:
(13)
where
is the blockchain technology impact factor and
,
is the on-chain rate,
.
The blockchain impact factor
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
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:
(14)
where
.
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:
(15)
where
is the Lagrange dual multiplier for the constraint that the electricity generation output in time period
is subject to
.
Finally, analyzing Equation (15), since the internal tariff satisfies the inequality
,
, and
, therefore, the minimum value of the inner inf problem in Equation (15) can be expressed as:
(16)
where
and
are the actual values of the
-th total PV output for the seller and buyer under the time period
.
Substituting Equation (16) back into Equation (15) gives:
(17)
To simplify the expression of the final DRO model of MGO, Equation (7) can be first transformed into:
(18)
Finally, by bringing Equation (18) back to the original Equations (8) and (9), we can obtain the final MGO DRO model as:
(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
and sold it at the peak real-time market price
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
and
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:
(20)
(21)
where
represents the revenue of SESO in period
,
and
represent the discharge and charge power of the energy storage system in time period
, respectively,
and
denotes the maximum charge and discharge power of the energy storage system in time period
,
is the operation and maintenance coefficient for the SESO’s charging and discharging, where
.
represents the state of charge (SOC) of the energy storage system in time period
, while
and
are the lower and upper limits of the SOC.
denotes the energy state of the energy storage system in time period
, with
and
being the lower and upper limits of the energy state.
is a Boolean variable introduced to prevent the energy storage system from simultaneously charging and discharging in any given time period.
and
represent the charging and discharging efficiencies of the energy storage system, where
and
.
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.,
(22)
where
represents the revenue of VPP in period
, the electricity exchange costs between the two parties offset each other, and the internal electricity supply meets the balance:
. By integrating Equations (19)-(22), we can derive the DRO model for the VPP as follows:
1)
:
(23)
(24)
2)
:
(25)
(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
to model demand-side electricity utility. This study, drawing on extensive literature and experimental analysis, adopts the inverse hyperbolic sine function
to model prosumer electricity utility. Compared to
, the core advantages of
: 1) When users face situations where the cost of electricity consumption exceeds the utility,
allows zero consumption to be an optimal solution of the model, which aligns better with real-world scenarios; 2) The second derivative of
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
, 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
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:
(27)
where
represents the utility of prosumers in time period
,
and
are the Lagrange dual multipliers for the electricity generation constraints of prosumers (buyers and sellers, respectively) under the
constraint during time period
,
and
represents the electricity preference coefficients of prosumers under blockchain technology in time period
, according to [19], the coefficient can be set as follows:
(28)
where
represents the initial electricity consumption preference of the prosumer
in time period
without considering blockchain;
is the impact factor of blockchain on the prosumer’s electricity consumption preference and
.
Similarly, the impact factor
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
; the lower-level prosumer alliance seeks
.
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:
; The lower-level prosumer alliance uses its electricity consumption and Lagrange dual multipliers as its strategy set:
, where,
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:
(29)
(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.
(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]:
(32)
where
and
represent the revenues of the two parties in time period
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
(33)
Q2) VPP alliance cooperative surplus distribution problem
1)
(34)
2)
(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
is reached. Specifically, the algorithm monitors two quantitative indicators at each iteration
: the primal residual
, which reflects the mismatch in the expected energy transaction quantities between the VPP and the prosumers, and the dual residual
, which measures the step-to-step variation in the consensus pricing variables. The iterations stop and the equilibrium is guaranteed when both
and
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 |
|
100 |
|
8 |
|
0.1 |
|
0.1 |
|
0.1 |
|
0.98 |
|
0.98 |
|
1.2/CNY/kWh |
|
0.8/CNY/kWh |
|
0.8/CNY/kWh |
|
0.3/CNY/kWh |
|
0.3/CNY/kWh |
|
0.879 |
|
300 |
|
10−3 |
|
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 |
(36)
(37)
where
represents the carbon emissions of the system during time period
,
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
and dual residual
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
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
. Setting the first-order derivative of Equation (27) to zero, we obtain the maximum point of the function as:
(A.1)
Subsequently, substituting
back into Equations (23) and (25), the leader model can be derived as:
(A.2)
From the above equation, it is evident that the leader model is a continuously differentiable function with respect to
, meaning there exists
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
and
can be derived as:
(A.3)
From the above matrix, it is clear that according to Equation (27), since
, the Hessian matrix of the leader model with respect to
and
is negative definite. Therefore, the leader model is a continuously differentiable strictly concave function, meaning there exists a unique optimal point
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,
. When no alliance is formed, the revenues of the SESO and MGO can be expressed respectively as:
(B.1)
where
and
represent the photovoltaic feed-in tariff and the commercial real-time electricity price, respectively.
(B.2)
Next, we obtain:
1) If
:
(B.3)
2) If
:
(B.4)
Moreover, since during overall system electricity sales
, and during overall electricity purchases
. Simplifying Equations (B.3) and (B.4) yields:
1) If
:
(B.5)
2) If
:
(B.6)
From Equation (B.5), it can be observed that since
, and
, Equation (B.5) is greater than or equal to 0. In Equation (B.6), since
, and
, 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.