Shared energy storage participation method in P2P energy transaction mechanism

By introducing a two-layer Stackelberg game model into P2P energy transactions, shared energy storage operators and prosumers interact efficiently in the power market to optimize power resource allocation, solving the problem that the traditional power market model cannot effectively motivate producers to participate and optimize energy. The problem of utilization rate has achieved the improvement of the stability of the power grid and the improvement of economic benefits.

CN118863884AInactive Publication Date: 2024-10-29STATE GRID ZHEJIANG ELECTRIC POWER CO LTD QUZHOU POWER SUPPLY CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411339549.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The traditional electricity market model is difficult to effectively motivate producers to participate in the market and optimize energy utilization. As a result, the intermittency and volatility of renewable energy pose challenges to the stable operation of the power grid, and the high investment and maintenance costs of shared energy storage limit its widespread application.

Method used

Using the two-layer Stackelberg game model in the P2P energy trading mechanism, shared energy storage operators as upper-level participants maximize profits by adjusting charging and discharging strategies, and prosumers as lower-level participants respond to market changes and reach an equilibrium state through multiple rounds of games. Optimize power trading strategies.

Benefits of technology

It improves market efficiency and power resource allocation, balances grid load, reduces operating costs, supports the large-scale application of renewable energy and the development of green energy, and improves grid stability and operating efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118863884A_ABST
    Figure CN118863884A_ABST
Patent Text Reader

Abstract

In order to solve the problem that the utilization rate of renewable energy cannot be maximized in the prior art, the invention provides a shared energy storage participation method in a P2P energy transaction mechanism, and the method comprises the steps: constructing a market framework comprising producers and diasters, shared energy storage operators and a power distribution network; a double-layer Stackelberg game model is established; the shared energy storage operator determines an initial charging and discharging strategy according to the market condition and the system state, and the producer makes a power purchase and transaction strategy according to the strategy of the shared energy storage operator; and the shared energy storage operator and the producer carry out multiple rounds of games until the games are balanced. Through introduction of the shared energy storage system, renewable energy sources can be better stored and utilized, the utilization rate of the renewable energy sources is increased, waste is reduced, and development of green energy sources is promoted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of demand response in power demand side management, and in particular to a method for participating in shared energy storage in a P2P energy trading mechanism. Background Art

[0002] As the proportion of renewable energy in energy supply continues to increase, the intermittency and volatility of renewable energy pose challenges to the stable operation of the power grid. Traditional electricity market models have difficulty in effectively incentivizing producers to participate in the market and optimize energy utilization. Shared energy storage is a key technology for smoothing power fluctuations and improving the ability to absorb renewable energy, but its high investment and maintenance costs limit its widespread application. The current market mechanism lacks an effective coordination mechanism and cannot maximize the utilization of renewable energy, resulting in serious stability problems and reduced economic efficiency of the power grid when facing large-scale renewable energy grid connection.

[0003] In order to solve the above problems, the Chinese invention patent with patent number CN118300071A proposes an energy distribution method and related equipment for a multi-subject shared energy storage system, including respectively constructing an energy distribution demand model corresponding to each subject in the multi-subject shared energy storage system; constructing an energy distribution sharing model for generating an energy distribution strategy based on the energy distribution demand model; using the energy distribution sharing model to obtain an energy distribution strategy, and realizing energy distribution between the subjects in the multi-subject shared energy storage system based on the energy distribution strategy. However, the invention only considers reducing the demand for energy exchange and saving energy consumption, and does not have technical features that can maximize the interests of the distributees. Summary of the invention

[0004] The present invention mainly solves the problem that the utilization rate of renewable energy cannot be maximized in the prior art, and provides a method for participating in shared energy storage in a P2P energy trading mechanism.

[0005] The above technical problems of the present invention are mainly solved by the following technical solutions: A method for participating in shared energy storage in a P2P energy trading mechanism comprises the following steps: S1. Build a market framework that includes prosumers, shared energy storage operators and distribution networks; S2. Establish a two-layer Stackelberg game model; S3. The shared energy storage operator determines the initial charging and discharging strategy based on market conditions and system status, and the prosumer formulates the electricity purchase and trading strategy based on the strategy of the shared energy storage operator; S4. Shared energy storage operators and prosumers conduct multiple rounds of games until a game equilibrium is reached.

[0006] As a preferred solution, in step S3, the shared energy storage operator acts as an upper-level participant, aiming to maximize its profits, and the prosumers act as lower-level participants and respond to the actions of the upper-level shared energy storage operator.

[0007] As a preferred solution, the specific variables include: Upper model: the charging and discharging power of the shared energy storage system and the amount of electricity that the shared energy storage operator participates in P2P transactions; Lower-level model: the amount of electricity traded by prosumers in P2P transactions, the amount of electricity sold by prosumers to the grid, and the amount of electricity purchased by prosumers from the grid.

[0008] As a preferred option, shared energy storage operators maximize profits by adjusting the charging and discharging strategies of the energy storage system.

[0009] As a preferred option, shared energy storage operators optimize their position and revenue in the market by determining charging and discharging strategies.

[0010] As a preferred option, prosumers, as lower-level participants, respond to the actions of upper-level shared energy storage operators. Prosumers make decisions based on electricity prices and demand response to maximize individual utility or economic benefits.

[0011] As a preferred solution, in step S4, the shared energy storage operator updates the bidding strategy in each round of the game, including the following calculations:

[0012] Where: represents the shared energy storage bid in the next round of game, represents the shared energy storage bid in this round of game, To adjust the parameters, represents the total energy storage of all prosumers, Indicates the maximum capacity of shared energy storage.

[0013] As a preferred solution, in step S4, the prosumer updates the electricity purchasing strategy in each round of the game, including the following calculations:

[0014] Where: It represents the P2P transaction power of producers and consumers in the next round of game. It represents the P2P transaction power of producers and consumers in this round of game. is the adjustment factor, represents the electricity demand of prosumers, Represents excess electricity from prosumers.

[0015] As a preferred solution, in step S4, the prosumer adjusts its electricity trading plan according to the game results and conducts final settlement with other market participants.

[0016] Therefore, the advantages of the present invention are: Improve market efficiency: By introducing a two-layer game model, the present invention allows shared energy storage operators and prosumers to interact more efficiently in the market. As a leader, shared energy storage operators can optimize charging and discharging strategies based on market demand and their own capabilities, thereby improving overall market efficiency.

[0017] Optimize the allocation of power resources: Shared energy storage systems can release power when demand is high and store power when demand is low, thereby balancing the load on the power grid and reducing peak-to-valley differences. This optimized allocation helps reduce the operating cost of the power system and improve the utilization of power resources.

[0018] Supporting renewable energy consumption: The present invention can help absorb and utilize highly volatile renewable energy, such as wind and solar energy. Through the regulation of the shared energy storage system, the output of renewable energy can be smoothed, the impact on the power grid can be reduced, and the large-scale application of renewable energy can be promoted.

[0019] Increase economic benefits: Through the introduction of the game model, shared energy storage operators and prosumers can formulate better trading strategies in the market to maximize their own economic benefits. For example, operators can increase profits by dynamically adjusting pricing strategies, while prosumers can reduce costs by optimizing electricity purchases and energy storage strategies.

[0020] The present invention can better store and utilize renewable energy through the introduction of a shared energy storage system, improve the utilization rate of renewable energy, reduce waste, and promote the development of green energy. The shared energy storage system can smooth power fluctuations, absorb excess power, and release it during peak power demand periods, thereby improving the stability and operating efficiency of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flow chart of the method of the present invention.

[0022] Figure 2 It is a method framework diagram of the present invention. DETAILED DESCRIPTION

[0023] The technical solution of the present invention is further specifically described below through embodiments and in conjunction with the accompanying drawings.

[0024] Embodiment 1: As the world pays more and more attention to the goals of carbon peak and carbon neutrality, the proportion of renewable energy in energy supply continues to increase. However, the intermittent and volatile nature of renewable energy poses challenges to the stable operation of the power grid. Traditional electricity market models make it difficult to effectively incentivize producers to participate in the market and optimize energy utilization. Shared energy storage is a key technology for smoothing power fluctuations and improving the ability to absorb renewable energy, but its high investment and maintenance costs limit its widespread application. The current market mechanism lacks an effective coordination mechanism and cannot maximize the utilization of renewable energy, resulting in serious stability problems and reduced economic efficiency of the power grid when facing large-scale renewable energy grid connection.

[0025] In order to solve the above-mentioned deficiencies in the prior art, the present invention provides a method for participating in shared energy storage in a P2P energy trading mechanism, which optimizes the decisions of market participants through a two-layer Stackelberg game model to maximize system benefits. In the upper-level game, the shared energy storage operator, as the leader, formulates the pricing strategy, and in the lower-level game, the producer responds to market changes by optimizing the charging and discharging strategy. This mechanism effectively reduces the impact of renewable energy generation on the power grid and improves the operating efficiency and economy of the system. It includes the following steps: S1. Build a market framework that includes prosumers, shared energy storage operators and distribution networks.

[0026] S2. Establish a two-layer Stackelberg game model.

[0027] S3. The shared energy storage operator determines the initial charging and discharging strategy based on market conditions and system status, and the prosumers formulate electricity purchasing and trading strategies based on the shared energy storage operator's strategy.

[0028] S4. Shared energy storage operators and prosumers conduct multiple rounds of games until a game equilibrium is reached.

[0029] As the world pays more and more attention to the goals of carbon peak and carbon neutrality, the proportion of renewable energy in energy supply continues to increase. However, its intermittent and volatile nature poses a challenge to the stable operation of the power grid. The traditional electricity market model faces the problem of being unable to effectively incentivize producer participation and optimize energy utilization, especially when facing large-scale renewable energy grid connection. These challenges are more significant. In order to address these deficiencies in the prior art, the present invention proposes a method for participating in shared energy storage in a P2P energy trading mechanism, and in particular introduces a shared energy storage operator as a key role. In the present invention, the shared energy storage operator, as an upper-level participant, aims to maximize its profits. This role is achieved by controlling the charging and discharging power of the shared energy storage system and the amount of electricity involved in P2P transactions. Producers, consumers and possible other market participants respond to the actions of the upper-level shared energy storage operator as lower-level participants. Specific variables include: Upper-level model: the charging and discharging power of the shared energy storage system, and the amount of electricity that the shared energy storage operator participates in P2P transactions.

[0030] Lower-level model: the amount of electricity traded by prosumers in P2P transactions, the amount of electricity sold by prosumers to the grid, and the amount of electricity purchased by prosumers from the grid.

[0031] In the upper model, the charging and discharging power of the shared energy storage system determines the energy storage state of the system in different time periods, thus affecting its behavior in the market. The amount of electricity that the shared energy storage operator participates in P2P transactions directly affects its revenue in the market and the power supply in the market.

[0032] In the lower-level model, the amount of electricity that consumers participate in P2P transactions is a response to the strategy of the shared energy storage operator. They formulate their own electricity purchase and sales strategies based on market conditions and the actions of the shared energy storage operator. The amount of electricity sold to and purchased from the grid by consumers reflects their behavior in the energy market, which is directly affected by the strategy of the shared energy storage operator.

[0033] In this mechanism based on the Stackelberg game, the upper and lower players gradually reach an equilibrium state through multiple rounds of games, in which the strategies of each party cannot be unilaterally changed to obtain a better result. This equilibrium state not only helps to optimize the utilization rate of renewable energy in the power system, but also effectively coordinates the behavior of market participants, thereby improving the stability and economic efficiency of the power grid.

[0034] As an upper-level participant, the shared energy storage operator aims to maximize its profit and achieves this by adjusting the charging and discharging strategy of the energy storage system. The shared energy storage operator determines the charging and discharging strategy to optimize its position and revenue in the market. With the goal of maximizing the profit of the shared energy storage operator, the following function is established:

[0035] Where: represents the amount of shared energy storage, represents the charging price of shared energy storage, The amount of electricity sold by the seller to the grid. It represents the price at which the seller sells electricity to the grid. is the amount of electricity purchased by the seller from the grid, It represents the price at which the seller buys electricity from the grid. represents the discharge capacity of the shared energy storage, represents the discharge price of shared energy storage, Indicates the amount of electricity sold by the seller in the P2P transaction. Indicates the price of electricity in P2P transactions.

[0036] The role of shared energy storage operators in the power market is becoming increasingly prominent, especially with the increase in the proportion of renewable energy and the transformation of the power system. As upper-level participants, their main goal is to maximize profits by precisely regulating the charging and discharging strategies of energy storage systems. This strategy not only directly affects their competitive position in the market, but also profoundly affects the stability and economic benefits of the entire power system.

[0037] The widespread use of energy storage technology enables shared energy storage operators to flexibly respond to market demands and changes. During peak periods, they can release energy storage to meet the high demand for electricity in the market, thereby obtaining higher electricity sales revenue. During off-peak periods or when energy is abundant, they can optimize their cost structure and increase their profit margins by purchasing or storing electricity at low cost. This flexibility not only gives them a competitive advantage in the electricity market, but also effectively balances electricity supply and demand and reduces the operating costs of the overall system.

[0038] In the lower-level game, prosumers, as lower-level participants, respond to the actions of the upper-level shared energy storage operator. Prosumers make decisions based on electricity prices and demand response to maximize their individual utility or economic benefits. With the goal of maximizing the economic benefits of prosumers, the following function is established:

[0039] Where: represents the amount of shared energy storage, represents the charging price of shared energy storage, is the amount of electricity purchased by the buyer from the grid, The price at which the buyer purchases electricity from the grid. is the price at which the buyer sells to the grid, It represents the price at which the buyer sells electricity to the grid. Indicates the amount of electricity purchased by the buyer in the P2P transaction, Indicates the price of electricity in P2P transactions.

[0040] In the game of lower-level participants, prosumers, as the most direct market participants, play the role of responding to and adapting to the strategies of shared energy storage operators. Their decisions are often based on individual electricity demand and maximization of economic benefits. For example, in the face of the behavior of shared energy storage operators releasing electricity during peak hours, prosumers may decide whether to actively sell electricity or increase electricity purchases based on current electricity prices and individual needs. This market response not only affects the formation mechanism of electricity prices, but also promotes the efficiency of the overall electricity market through the effective operation of market mechanisms.

[0041] In addition, the charging and discharging strategies of shared energy storage operators also directly affect the utilization efficiency of renewable energy and the stability of the power system. Through reasonable charging and discharging strategies, they can smooth the volatility of renewable energy and reduce the peak-to-valley differences in the power system, thereby reducing the volatility of short-term electricity market prices and improving the reliability and stability of the power grid. This technical optimization not only helps achieve the sustainable development goals of the power system, but also effectively supports the industry's commitment to carbon reduction.

[0042] The charging and discharging power of the shared energy storage system in the two-layer game model meets the following constraints:

[0043] Where: represents the charging and discharging power of the shared energy storage, Indicates the upper limit of the charging and discharging power of the shared energy storage.

[0044] The energy state (SOC) of the shared energy storage system in the established two-layer game model satisfies the following constraints:

[0045] Where: Indicates the minimum state of charge of the energy storage system, Indicates the maximum charging state of the energy storage system, Indicates the energy state of the energy storage system.

[0046] The electricity trading volume of prosumers in P2P transactions meets the following constraints:

[0047] Where: Represents the amount of electricity traded.

[0048] The shared energy storage operator updates its bidding strategy in each round of the game, including the following calculations:

[0049] Where: represents the shared energy storage bid in the next round of game, represents the shared energy storage bid in this round of game, To adjust the parameters, represents the total energy storage of all prosumers, Indicates the maximum capacity of shared energy storage.

[0050] The prosumer updates its electricity purchasing strategy in each round of the game, including the following calculations:

[0051] Where: It represents the P2P transaction power of producers and consumers in the next round of game. It represents the P2P transaction power of producers and consumers in this round of game. is the adjustment coefficient, represents the electricity demand of prosumers, Represents excess electricity from prosumers.

[0052] The convergence condition of the game equilibrium is:

[0053] Where: represents the shared energy storage bid for the k+1th round of game, represents the shared energy storage bid for the kth round of game, Represents a small positive number used to determine the convergence condition.

[0054] Prosumers adjust their electricity trading plans based on the game results and make final settlements with other market participants.

[0055] The present invention also provides an electricity trading market framework, including a distribution network, a plurality of producers and consumers, a shared energy storage operator and a control unit for the above-mentioned double-layer Stackelberg game model.

[0056] The power trading market framework provided by the present invention involves multiple key participants and innovative game models, aiming to optimize the operating efficiency of the power system and the economic benefits of the market. The core components of the framework include the distribution network, multiple prosumers, a shared energy storage operator, and a control unit dedicated to the double-layer Stackelberg game model.

[0057] In this framework, the distribution network acts as the infrastructure for power flow, connecting various power market participants. These participants include multiple prosumers with different power demands and production capabilities, as well as shared energy storage operators specializing in energy storage operations. Shared energy storage operators, through their advanced energy storage technologies, are able to flexibly adjust the storage and release of electricity to respond to market demand and optimize their revenue.

[0058] The control unit of the double-layer Stackelberg game model is the innovation of this framework. This game model allows shared energy storage operators to play a strategic leadership role in the electricity market to maximize their profits. In this model, shared energy storage operators act as leaders and guide prosumers to respond accordingly in the market by optimizing the charging and discharging strategies of their energy storage systems. Prosumers play the role of responders in this framework. They adjust their electricity consumption or production behavior according to the current electricity price, individual demand and the behavior of shared energy storage operators to maximize their individual interests.

[0059] The advantage of this framework is that it can effectively balance electricity supply and demand, reduce system operating costs, and improve the overall efficiency of the electricity market. Through the introduction of shared energy storage operators' advanced technology and the double-layer Stackelberg game model, the stability of the power system is enhanced, the integration of renewable energy is improved, and competition and transparency in the electricity market are promoted.

[0060] Embodiment 2: The intermittent and volatile nature of renewable energy poses a challenge to the stable operation of the power grid. Traditional electricity market models have difficulty in effectively incentivizing producers to participate in the market and optimize energy utilization. Shared energy storage is a key technology for smoothing power fluctuations and improving the ability to absorb renewable energy, but its high investment and maintenance costs limit its widespread application. The current market mechanism lacks an effective coordination mechanism and cannot maximize the utilization of renewable energy, resulting in serious stability problems and reduced economic efficiency of the power grid when facing large-scale renewable energy grid connection.

[0061] like Figure 1 In view of the above problems, the present invention provides a method for participating in shared energy storage in a P2P energy trading mechanism, including: A two-layer Stackelberg game model is established, in which the shared energy storage operator is the upper-layer participant, aiming to maximize its profit, and the prosumers and possible other market participants are the lower-layer participants who respond to the actions of the upper-layer shared energy storage operator.

[0062] The specific implementation steps are as follows: Step 1: Build a market framework, including: Market participant identification and role definition: Producers: Responsible for the production and supply of electricity, generating electricity through renewable or traditional energy.

[0063] Shared Energy Storage Operator: manages and operates the shared energy storage system, including battery storage and dispatch control.

[0064] Distribution Network: Responsible for the transmission and distribution of electricity, connecting producers, consumers and energy storage systems.

[0065] Market Structure Definition: Determine the rules for electricity flow and trading between various participants.

[0066] Ensure market transparency and fairness, and optimize participants' trading strategies through game theory models.

[0067] Step 2: Establish a two-layer Stackelberg game model: Upper game model: A. The goal of a shared energy storage operator: to optimize its electricity trading strategy and energy storage dispatch strategy by maximizing profits.

[0068] B. Objective function:

[0069] Where: represents the amount of shared energy storage, represents the charging price of shared energy storage, The amount of electricity sold by the seller to the grid. It represents the price at which the seller sells electricity to the grid. is the amount of electricity purchased by the seller from the grid, The price at which the seller buys electricity from the grid. represents the discharge capacity of the shared energy storage, represents the discharge price of shared energy storage, Indicates the amount of electricity sold by the seller in the P2P transaction. Indicates the price of electricity in P2P transactions.

[0070] C. Constraints:

[0071] Where: represents the charging and discharging power of the shared energy storage, Indicates the upper limit of the charging and discharging power of the shared energy storage. Indicates the minimum state of charge of the energy storage system, Indicates the maximum charging state of the energy storage system, Indicates the energy state of the energy storage system.

[0072] Lower level game model: The goal of prosumers: to maximize their individual economic benefits based on market prices and demand response strategies.

[0073] Objective function:

[0074] Where: represents the amount of shared energy storage, represents the charging price of shared energy storage, is the amount of electricity purchased by the buyer from the grid, The price at which the buyer purchases electricity from the grid. is the price at which the buyer sells to the grid, It represents the price at which the buyer sells electricity to the grid. Indicates the amount of electricity purchased by the buyer in the P2P transaction, Indicates the price of electricity in P2P transactions.

[0075] Constraints:

[0076] Where: Represents the amount of electricity traded.

[0077] Step 3: Multiple rounds of game play, including: Initial game preparation: Shared energy storage operators determine the initial charging and discharging strategy and bidding strategy based on current market conditions and system status.

[0078] Prosumers develop their initial electricity purchasing and trading strategies based on the initial bid from the shared energy storage operator.

[0079] Strategy updates and game adjustments: Shared energy storage operators update their strategies: Based on the results of each round of game and the responses of producers and consumers, they adjust their bids and charging and discharging strategies to optimize their competitive position and profits in the market.

[0080] Prosumers respond by adjusting their electricity purchasing and trading strategies based on the shared energy storage operator’s new strategy and market prices to maximize their individual economic benefits.

[0081] Step 4: Game equilibrium and convergence: Convergence judgment: After each round of game, the strategy difference between the current round and the previous round is calculated to determine whether the game has reached equilibrium.

[0082] The convergence condition is that the absolute value of the strategy change is less than the preset threshold , Final strategy confirmation: When the game reaches a convergence state, the final electricity trading strategy of the shared energy storage operator and the prosumer is determined, and the final electricity settlement and liquidation process is carried out.

[0083] Step 5: Final Settlement and Execution Trading plan adjustments: Based on the final game results and trading strategies, producers and consumers adjust their electricity trading plans.

[0084] Shared energy storage operators conduct final electricity transaction settlement and execution with other market participants, ensuring that all transactions and settlements comply with market rules and laws and regulations.

[0085] Settlement and Clearing: Prosumers conduct final electricity settlement with shared energy storage operators and other market participants based on the game results, ensuring the transparency and fairness of all transaction processes and complying with market and regulatory requirements.

[0086] The present invention can better store and utilize renewable energy through the introduction of a shared energy storage system, improve the utilization rate of renewable energy, reduce waste, and promote the development of green energy. The shared energy storage system can smooth power fluctuations, absorb excess power, and release it during peak power demand periods, thereby improving the stability and operating efficiency of the power grid. The benefits brought by the present invention are also reflected in the following aspects: Improve market efficiency: By introducing a two-layer game model, the present invention allows shared energy storage operators and prosumers to interact more efficiently in the market. As a leader, shared energy storage operators can optimize charging and discharging strategies based on market demand and their own capabilities, thereby improving overall market efficiency.

[0087] Optimize the allocation of power resources: Shared energy storage systems can release power when demand is high and store power when demand is low, thereby balancing the load on the power grid and reducing peak-to-valley differences. This optimized allocation helps reduce the operating cost of the power system and improve the utilization of power resources.

[0088] Supporting renewable energy consumption: The present invention can help absorb and utilize highly volatile renewable energy, such as wind and solar energy. Through the regulation of the shared energy storage system, the output of renewable energy can be smoothed, the impact on the power grid can be reduced, and the large-scale application of renewable energy can be promoted.

[0089] Increase economic benefits: Through the introduction of the game model, shared energy storage operators and prosumers can formulate better trading strategies in the market to maximize their own economic benefits. For example, operators can increase profits by dynamically adjusting pricing strategies, while prosumers can reduce costs by optimizing electricity purchases and energy storage strategies.

[0090] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

Claims

1. A method for participating in shared energy storage in a P2P energy trading mechanism, characterized in that: The following steps are involved: S1. Build a market framework that includes prosumers, shared energy storage operators and distribution networks; S2. Establish a two-layer Stackelberg game model; S3. The shared energy storage operator determines the initial charging and discharging strategy based on market conditions and system status, and the prosumer formulates the electricity purchase and trading strategy based on the strategy of the shared energy storage operator; S4. The shared energy storage operator and the prosumer conduct multiple rounds of games until the game equilibrium is reached. The shared energy storage operator updates its bidding strategy in each round of games. The following calculations are included: Where: represents the shared energy storage bid in the next round of game, represents the shared energy storage bid in this round of game, To adjust the parameters, represents the total energy storage of all prosumers, represents the maximum capacity of shared energy storage, The prosumer updates its electricity purchasing strategy in each round of the game, including the following calculations: Where: It represents the P2P transaction power of producers and consumers in the next round of game. It represents the P2P transaction power of producers and consumers in this round of game. is the adjustment coefficient, represents the electricity demand of prosumers, Represents excess electricity from prosumers.

2. The method for participating in shared energy storage in a P2P energy trading mechanism according to claim 1, characterized in that: As the upper-level participant, the shared energy storage operator aims to maximize its profits, and the prosumers, as the lower-level participants, respond to the actions of the upper-level shared energy storage operator.

3. The method for participating in shared energy storage in a P2P energy trading mechanism according to claim 2, characterized in that: The specific variables of the double-layer Stackelberg game model include the upper-layer model: the charging and discharging power of the shared energy storage system and the amount of electricity that the shared energy storage operator participates in P2P transactions.

4. The method for participating in shared energy storage in a P2P energy trading mechanism according to claim 3, characterized in that: The specific variables of the two-layer Stackelberg game model also include the lower-layer model: the amount of electricity traded by prosumers in P2P transactions, the amount of electricity sold by prosumers to the power grid, and the amount of electricity purchased by prosumers from the power grid.

5. The method for participating in shared energy storage in a P2P energy trading mechanism according to claim 4, characterized in that: Shared energy storage operators maximize profits by adjusting the charging and discharging strategies of the energy storage system.

6. The method for participating in shared energy storage in a P2P energy trading mechanism according to claim 4, characterized in that: Shared energy storage operators optimize their position and revenue in the market by determining charging and discharging strategies.

7. The method for participating in shared energy storage in a P2P energy trading mechanism according to claim 4, characterized in that: As lower-level participants, prosumers respond to the actions of upper-level shared energy storage operators. Prosumers make decisions based on electricity prices and demand response to maximize individual utility or economic benefits.

8. The method for participating in shared energy storage in a P2P energy trading mechanism according to claim 1, characterized in that: In step S4, the prosumer adjusts its electricity trading plan according to the game results and conducts final settlement with other market participants.