Decision-making method and system for participation of virtual power plant in demand response

By using the master-slave game theory and the electricity-carbon coupling model in the virtual power plant, combined with the characteristics of peak and valley periods, the electricity-carbon coupling price strategy is formulated, and the carbon emission reward and punishment mechanism is transmitted, which solves the problem of virtual power plant operators failing to effectively consider the impact of the carbon trading market. problem, improving the efficiency and carbon emission reduction effect of the electricity market.

CN118710148APending Publication Date: 2024-09-27STATE GRID JIANGSU ELECTRIC POWER CO LTD MARKETING SERVICE CENT +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410859913.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, virtual power plant operators fail to fully consider the impact of the carbon trading market on their energy pricing strategies when publishing energy prices. As a result, they fail to effectively guide flexible interaction and collaborative carbon reduction among multiple entities, and it is difficult to balance user costs and operations. business income.

Method used

The master-slave game theory is used to establish a multi-agent demand response optimization architecture. By taking into account the day-ahead dynamic electricity prices and carbon emission factors in the spot market, an electricity-carbon coupling model is constructed. Combined with the characteristics of peak and valley periods, an electricity-carbon coupling price strategy is formulated to deliver carbon emission rewards and punishments. mechanism to optimize virtual power plants’ participation in demand response.

Benefits of technology

It improves the overall utilization efficiency of distributed resources and the operating efficiency of the power market, reduces carbon emissions and carbon transaction costs, promotes the green and low-carbon transformation of the power industry, and achieves synergy between virtual power plant operators and users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710148A
    Figure CN118710148A
Patent Text Reader

Abstract

The invention discloses a decision-making method and system for participation of a virtual power plant in demand response. The method comprises the following steps: establishing a multi-subject demand response optimization architecture based on a master-slave game theory; according to the day-ahead dynamic electricity price and the day-ahead dynamic carbon emission factor of the electric power spot market, establishing an electricity-carbon coupling model considering peak-valley time period characteristics; based on the power-carbon coupling model, constructing an upper-layer master model with maximization of economic benefits of the virtual power plant operator as a target and a lower-layer slave model with minimization of the energy purchase cost of each user as a target, and obtaining a master-slave game model of participation in demand response of the virtual power plant; and solving the master-slave game model in combination with a set constraint condition to obtain an optimization strategy of the virtual power plant participating in the demand response. According to the method, the carbon emission reward and punishment mechanism in the virtual power plant range can be effectively transmitted to each user main body to stimulate the carbon reduction behavior of the user main body, the consumption level of new energy is improved, and energy low-carbon transformation 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 power systems, and in particular to a decision-making method and system for a virtual power plant to participate in demand response. Background Art

[0002] As the severity of global climate change becomes increasingly prominent, achieving the goal of "carbon peak and carbon neutrality" has evolved into a global common mission; how to improve the utilization efficiency and absorption capacity of renewable energy is particularly important, and the emergence of virtual power plant technology provides an effective solution to this challenge. Virtual power plants achieve energy complementarity and optimal utilization by aggregating decentralized power resources, and flexibly dispatch and optimize configuration according to actual needs, which is conducive to improving energy utilization efficiency, adapting to the volatility and uncertainty of renewable energy, and improving the absorption capacity of renewable energy. However, virtual power plants include multiple entities such as operators, commercial building users, residential users, and electric vehicle charging stations. The pricing strategies of operators and user energy strategies are highly coupled and influence each other, and the decision-making of the interests of multiple entities tends to be complex. Therefore, the common strategy optimization method that only performs strategy optimization on a single entity is prone to the problem of difficulty in balancing the interests of multiple entities.

[0003] In response to this problem, many scholars have applied game theory to the decision-making method of virtual power plants participating in demand response. For example, in some related technologies, based on the consideration of the market risk cost model of virtual power plants, a master-slave game model of maximizing virtual power plant profits and minimizing user electricity purchase costs is established to optimize the scheme, so as to ensure the economic benefits of multiple subjects while reducing user energy costs and improving overall economic performance. In other related technologies, considering multi-dimensional factors such as risk, benefit and carbon emissions, a virtual power plant profit distribution strategy based on Nash negotiation is established, which improves the benefits of virtual power plants and realizes the coordinated carbon reduction between virtual power plants and users. However, current research is mainly carried out in the form of considering carbon trading in economic costs. Under this mechanism, virtual power plant operators, as leaders, fail to consider the impact of participating in the carbon trading market on their energy pricing strategies when issuing energy prices. From the linkage level, there is little research on the impact of electricity-carbon coupling prices on virtual power plant operations, which is not conducive to guiding flexible interaction and coordinated carbon reduction among multiple subjects. Therefore, in order to fill this research gap and further enhance the synergistic effect of electricity and carbon markets on virtual power plant optimization, it is urgent to propose a new method for virtual power plants to participate in demand response decision-making to promote the green and low-carbon transformation of the power industry. Summary of the invention

[0004] In order to address the deficiencies in the prior art, the present invention provides a decision-making method and system for a virtual power plant to participate in demand response. This method takes into account the transaction costs of the carbon market and effectively delivers the carbon emission reward and punishment mechanism within the virtual power plant to each user entity to incentivize their carbon reduction behavior, thereby promoting the level of new energy consumption and contributing to the realization of the dual carbon goals.

[0005] The present invention adopts the following technical solution.

[0006] In a first aspect, the present invention provides a decision-making method for a virtual power plant to participate in demand response, the method comprising:

[0007] A multi-agent demand response optimization framework is established based on the master-slave game theory. The game leader in the multi-agent demand response optimization framework is the virtual power plant operator used to aggregate distributed resources to participate in the power market, and the followers are the users.

[0008] According to the day-ahead dynamic electricity price and day-ahead dynamic carbon emission factor in the electricity spot market, an electricity-carbon coupling model taking into account the characteristics of peak and valley periods is established;

[0009] Based on the electricity-carbon coupling model, an upper master model is constructed with the goal of maximizing the economic benefits of the virtual power plant operator, and a lower slave model is constructed with the goal of minimizing the energy purchase cost of each user, thereby obtaining a master-slave game model of the virtual power plant participating in demand response;

[0010] The master-slave game model is solved in combination with the set constraints to obtain an optimization strategy for the virtual power plant to participate in demand response.

[0011] Optionally, the game process of the master-slave game model includes:

[0012] The upper-layer main model adjusts the energy purchase strategy from the spot market and the distributed resource operation strategy based on the real-time electricity price signal released by the spot market and the energy purchase strategy fed back by the lower-layer slave model, with the goal of maximizing profits, and decides on the energy price strategy sold to the lower-layer slave model users;

[0013] The lower-level slave model adjusts the controllable load to participate in demand response based on the energy price strategy fed back by the upper-level master model, with the goal of minimizing cost, and decides on the user's energy purchasing strategy and feeds it back to the upper-level master model.

[0014] Optionally, the distributed resources include a combined heat and power (CHP) unit, a gas turbine, a photovoltaic power station, a wind power station, a heat pump unit and an energy storage device.

[0015] Optionally, the step of establishing an electric-carbon coupling model taking into account the peak-valley period characteristics comprises:

[0016] Obtain the day-ahead dynamic electricity price and day-ahead dynamic carbon emission factor in the spot market;

[0017] Multiply the day-ahead dynamic carbon emission factor by the unit carbon emission transaction price to obtain the day-ahead dynamic carbon price;

[0018] The K-means++ clustering algorithm is used to cluster the day-ahead dynamic electricity price and the day-ahead dynamic carbon price into prices in three time periods: peak, flat, and valley, and the corresponding peak and valley time period characteristic identifiers are generated respectively;

[0019] Based on the electricity prices of the three time periods obtained by clustering and their peak and valley period characteristic identification, combined with the set peak and valley electricity price increment constraints, a peak and valley electricity price model is established;

[0020] Based on the carbon prices of the three time periods obtained by clustering and their peak and valley period characteristics, combined with the set peak and valley carbon price increment constraints, a peak and valley carbon price model is established;

[0021] The peak-valley electricity price model and the peak-valley carbon price model are coupled to obtain an electricity-carbon coupling model.

[0022] Optionally, the step of establishing a peak-valley electricity price model includes:

[0023] According to the carbon price of the three periods of the day-ahead dynamic electricity price and the peak and valley period characteristics, the initial model of the peak and valley electricity price is established as follows:

[0024]

[0025] In the formula, is the electricity price at time t; c p,f 、c p,p and c p,g are the electricity prices during peak hours, normal hours and valley hours respectively; μ p,f , μ p,p and μ p,g are the electricity price identifiers for peak time, normal time and valley time respectively. If time t is in peak time, normal time or valley time, the corresponding μ p,f (t), μ p,p (t) or μ p,g (t) takes 1, otherwise μ p,f (t), μ p,p (t) or μ p,g (t) takes 0;

[0026] Set the peak-valley electricity price increment constraint and set the peak period electricity price c p,f The off-peak electricity price p,g Assume that the electricity price during normal period is c p,p Multiple value of:

[0027]

[0028] In the formula, β p,fand β p,g are the incremental coefficients of the peak-period electricity price and the valley-period electricity price relative to the normal-period electricity price, respectively; among which, the normal-period electricity price c p,p Set as a fixed value, and the average electricity price for the entire period c p,p Equal to the normal electricity price:

[0029]

[0030] In the formula, T represents the duration of the full-time electricity price;

[0031] According to the peak-valley electricity price increment constraint, the relationship between the peak period and valley period electricity price increment coefficient is derived as follows:

[0032] β p,g =-T p,f / T p,g β p,f

[0033] Where, T P,g T is the duration of the off-peak electricity price; P,f The duration of the peak electricity price;

[0034] Substituting the above relationship into the initial model of peak-valley electricity price, the expression of the peak-valley electricity price model is finally obtained as follows:

[0035]

[0036] Optionally, the same principle as in each step of establishing the peak-valley electricity price model is used to establish the expression of the peak-valley carbon price model as follows:

[0037]

[0038] In the formula, is the carbon price at time t; c c,p is the carbon price in normal period; c,f T is the incremental coefficient of carbon price during peak period relative to carbon price during normal period; c,f T is the duration of peak electricity price; c,g μ is the duration of the off-peak electricity price; c,f and μ c,g are the carbon price identifiers for the peak period and valley period, respectively. If time t is in the peak period or valley period, the corresponding μ c,f (t) or μ c,g (t) takes 1, otherwise μ c,f (t) or μ c,g (t) takes 0.

[0039] Optionally, the expression of the electric-carbon coupling model is as follows:

[0040]

[0041] In the formula, is the time-sharing electricity-carbon coupling price at time t.

[0042] Optionally, the objective function of the upper main model is expressed as follows:

[0043]

[0044] In the formula, f VPO Benefits for virtual power plant operators; is the energy sales revenue of the virtual power plant operator at time t; is the energy purchase cost of the virtual power plant operator at time t; is the equipment maintenance cost of the virtual power plant operator at time t; is the carbon trading cost of the virtual power plant operator at time t; The time-of-use electricity-carbon coupling price set for the virtual power plant operator at time t; is the heat price published by the virtual power plant operator at time t; and are the electricity and heat purchased by user i at time t respectively; is the real-time electricity price published in the spot market at time t; is the price of natural gas; and are the electricity and gas purchases of the virtual power plant operator at time t; c om,l is the operation and maintenance cost coefficient of device l in distributed resources; P l (t) is the power of device l at time t; c ct is the carbon trading cost coefficient; η p is the carbon emission factor of electricity purchase; η gas is the carbon emission factor for purchased gas.

[0045] Optionally, the constraints of the upper main model include energy pricing constraints, virtual power plant operator energy purchasing constraints, power balance constraints and equipment operation constraints of distributed resources.

[0046] Optionally, the objective function of the lower layer slave model is expressed as follows:

[0047]

[0048] In the formula, f user,i is the energy purchase cost of user i; The time-of-use electricity-carbon coupling price set for the virtual power plant operator at time t; is the heat price published by the virtual power plant operator at time t; and are the electricity and heat purchased by user i at time t respectively.

[0049] Optionally, the constraints of the lower slave model include demand response constraints;

[0050] In the demand response constraint, the user regulates the load to participate in the demand response based on the electricity price elasticity matrix mechanism. The steps of constructing the electricity price elasticity matrix include:

[0051] The ratio of the electricity quantity change rate to the price change rate is determined by the following definition formula as the electricity quantity price elasticity parameter:

[0052]

[0053] Where P is the power consumption, represents the electricity-carbon coupling price issued by the upper main model; α and β are the first fitting parameter and the second fitting parameter respectively; ΔP and P0 are the change in electricity and the original electricity respectively; It represents the electricity-carbon coupling price in normal times; is the price change; ε is the electricity price elasticity parameter;

[0054] According to the definition formula, the self-elasticity coefficient ε of the price elasticity matrix under the peak-valley electricity price mechanism is derived a,a and the cross elastic coefficient ε a,b :

[0055]

[0056]

[0057] Where a, b∈{ff,fp,fg,pf,pp,pg,gf,gp,gg}; ff, fp, fg, pf, pp, pg, gf, gp, gg represent the nine time period identifiers of the electricity-carbon coupling price respectively; α a represents the first fitting parameter with the price characteristics of period a, α b represents the first fitting parameter with the price characteristics of period b, β a Indicates the second fitting parameter with the price characteristics of period a; represents the electricity-carbon coupling price in period a; represents the coupling price in period b;

[0058] Based on the elastic matrix self-elastic coefficient ε a,a and the cross elastic coefficient ε a,b The price elasticity matrix M is constructed as follows:

[0059]

[0060] After users regulate loads based on the electricity price elasticity matrix M mechanism to participate in demand response, the changes in electricity consumption in each period are expressed as follows:

[0061]

[0062] Optionally, the lower layer constraints from the model also include electric vehicle charging constraints:

[0063]

[0064] In the formula, represents the charging power of electric vehicle k at time t; Indicates the maximum charging power; and Respectively represent the battery SOC state of charge of electric vehicle k at time t and time t-1; η ev Indicates the charging efficiency of electric vehicles; represents the battery capacity of electric vehicle k; and They respectively represent the maximum and minimum SOC state of charge of the electric vehicle k battery.

[0065] Optionally, the master-slave game model of the virtual power plant participating in demand response includes participants, strategy sets and benefits;

[0066] The participants include virtual power plant operators VPO, residential community users RS, commercial building users BL and charging station users EV;

[0067] The strategy set includes the electricity selling price c of the virtual power plant operator VPO 、The amount of electricity purchased by users in residential communities P RS 、The amount of electricity purchased by commercial building users P BL and the amount of electricity purchased by charging station users P EV ;

[0068] The benefits include the virtual power plant operator's benefits VPO , Residential community user benefits-f RS , Commercial building user income -f BL and charging station user benefits-f EV ;

[0069] The expression of the master-slave game model of the virtual power plant participating in demand response is as follows:

[0070]

[0071] The master-slave game model G of the virtual power plant participating in demand response meets the following constraints after reaching equilibrium:

[0072]

[0073] In the formula, and They respectively represent the optimal strategies for the power selling price of the virtual power plant operator, the power purchase amount of residential community users, the power purchase amount of commercial building users and the power purchase amount of charging station users after the master-slave game model G reaches the Nash equilibrium.

[0074] Optionally, the master-slave game model is solved by using a frost-ice algorithm;

[0075] The algorithm includes: using the frost agent B under the positive greedy selection mechanism u represents the different peak and valley prices of electricity-carbon coupling released by the virtual power plant operator, and sets the frost agent B u The fitness function feeds back the benefits of the virtual power plant operator under the purchased electricity volume to the lower-level user transaction decision model. It constructs a search strategy by simulating the movement behavior of soft frost crystal particles and a crossover mechanism by simulating the breakdown behavior of hard frost crystal particles. It gradually iterates and updates the fitness of the intelligent agent and finally outputs the optimal strategy for the virtual power plant to participate in demand response.

[0076] In a second aspect, the present invention provides a decision-making system for a virtual power plant to participate in demand response, which runs the steps of any method described in the first aspect of the present invention; the system comprises:

[0077] An optimization architecture model is established to establish a multi-agent demand response optimization architecture based on the master-slave game theory; the game leader in the multi-agent demand response optimization architecture is the virtual power plant operator used to aggregate distributed resources to participate in the power market, and the followers are the users;

[0078] The electricity-carbon coupling module is used to establish an electricity-carbon coupling model that takes into account the characteristics of peak and valley periods based on the day-ahead dynamic electricity price and day-ahead dynamic carbon emission factor in the electricity spot market;

[0079] A master-slave game module is used to construct an upper master model with the goal of maximizing the economic benefits of the virtual power plant operator and a lower slave model with the goal of minimizing the energy purchase cost of each user based on the electricity-carbon coupling model, so as to obtain a master-slave game model of the virtual power plant participating in demand response;

[0080] The optimization strategy solving module is used to solve the master-slave game model in combination with the set constraints to obtain the optimization strategy for the virtual power plant to participate in demand response.

[0081] In a third aspect, the present invention provides a terminal, including a processor and a storage medium;

[0082] The storage medium is used to store instructions;

[0083] The processor is used to operate according to the instructions to execute the steps of any one of the methods described in the first aspect of the present invention.

[0084] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect of the present invention.

[0085] The beneficial effects of the present invention are as follows:

[0086] 1. The present invention establishes a multi-agent demand response optimization framework based on the master-slave game theory, and constructs a master-slave game model of virtual power plants participating in demand response with the goal of maximizing the economic benefits of power plant operators and minimizing the energy purchase costs of each user; by taking into account the real-time electricity price signals of the spot market, the decision-making behavior of each subject is optimized step by step, and reasonable electricity sales pricing can be formulated to guide the energy consumption plans of virtual power plant users, taking into account user costs and operator benefits, reducing energy waste, and improving the overall utilization efficiency of distributed resources and the operation efficiency of the power market.

[0087] 2. In response to the problem in current research that virtual power plant operators, as leaders, fail to consider the impact of participating in the carbon trading market on their energy pricing strategies when publishing energy prices, the present invention proposes an electricity-carbon coupling model that takes into account the characteristics of peak and valley periods. By coupling the influence of the electricity and carbon markets in the operator's pricing mechanism, the carbon emission reward and punishment mechanism is effectively transmitted to each user entity to incentivize their carbon reduction behavior, prompting users to reduce energy consumption during periods of high carbon emission factors, reducing carbon emissions and carbon trading costs, and further improving the level of new energy consumption. It is of great significance to guide flexible interaction and coordinated carbon reduction among multiple entities, and is conducive to promoting the green and low-carbon transformation of the power industry.

[0088] 3. The present invention adopts the frost algorithm to solve the master-slave game model of virtual power plants participating in demand response. By formulating a positive greedy selection mechanism, it effectively improves population diversity and avoids falling into local optimality. It has the advantages of stronger optimization ability, higher accuracy and better adaptability.

[0089] 4. Based on the master-slave game theory, the present invention provides a one-master-multiple-slave game pricing decision-making method, formulates a demand response strategy that takes into account the interests of all parties, better realizes the overall maximum benefit and minimum carbon emissions, further helps achieve the dual carbon goals, and has good application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0090] Figure 1 is a flow chart of a decision-making method for a virtual power plant to participate in demand response in the present invention;

[0091] Figure 2 It is a schematic diagram of the multi-agent demand response optimization architecture in the present invention;

[0092] Figure 3 It is a principle block diagram of the master-slave game model of the virtual power plant participating in the demand response in the present invention;

[0093] Figure 4 It is a schematic diagram of user loads of residential communities, commercial buildings, and charging stations in the present invention;

[0094] Figure 5 is a schematic diagram of wind turbine output and photovoltaic output in a virtual power plant operator in the present invention;

[0095] Figure 6 It is a schematic diagram of the real-time electricity price and peak and valley time characteristics of the spot market in the present invention;

[0096] Figure 7 It is a schematic diagram of the optimal electricity selling pricing for the virtual power plant operator in the present invention;

[0097] Figure 8 is the power supply and demand balance diagram of the proposed power plant operator in the present invention;

[0098] Fig. 9 It is a schematic diagram comparing user electric load curves when demand response is adopted and when demand response is not adopted in the present invention;

[0099] Fig.10 This is a structural principle block diagram of the decision-making system for the virtual power plant participating in demand response in the present invention. DETAILED DESCRIPTION

[0100] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in the present invention are only part of the embodiments of the present invention, not all of the embodiments. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the scope of protection of the present invention.

[0101] Embodiment 1:

[0102] Reference Figure 1 The embodiment of the present invention provides a decision-making method for a virtual power plant to participate in demand response, which specifically includes the following steps:

[0103] Step S1: Establish a multi-agent demand response optimization framework based on the master-slave game theory; wherein the game leader in the multi-agent demand response optimization framework is a virtual power plant operator for aggregating distributed resources to participate in the power market in a unified manner, and the followers are the users;

[0104] like Figure 2As shown in the figure, the multi-agent demand response optimization architecture includes virtual power plant operators, residential communities, commercial buildings, and charging station users; the virtual power plant operator purchases electricity and natural gas from the spot market and the natural gas market, aggregates distributed resources including cogeneration CHP units, gas turbines, photovoltaic power stations, wind power stations, heat pump units and energy storage devices, and coordinates equipment operation with market purchases to supply residential communities, commercial buildings and charging station users to meet the electricity and heat needs of each user.

[0105] Step S2: Based on the day-ahead dynamic electricity price and the day-ahead dynamic carbon emission factor of the electricity spot market, an electricity-carbon coupling model taking into account the characteristics of peak and valley periods is established;

[0106] It is further explained that in terms of peak and valley period characteristics, the power market takes into account the regional demand side load forecast and renewable energy output forecast, and formulates regional day-ahead dynamic electricity prices and day-ahead dynamic carbon emission factors respectively; the day-ahead dynamic carbon emission factor is further multiplied by the unit carbon emissions trading price to convert it into a day-ahead dynamic carbon price (unit electricity carbon trading price), which still has its dynamic characteristics; through cluster analysis of the day-ahead dynamic electricity prices and carbon prices, the virtual power plant operators read their peak and valley characteristics respectively, and thus realize the peak and valley period division of electricity and carbon prices.

[0107] Step S3: Based on the electricity-carbon coupling model, an upper master model with the goal of maximizing the economic benefits of the virtual power plant operator and a lower slave model with the goal of minimizing the energy purchase cost of each user are constructed to obtain a master-slave game model of the virtual power plant participating in demand response;

[0108] In this embodiment, the upper master model adjusts the energy purchase strategy from the spot market and the distributed resource operation strategy based on the real-time electricity price signal released by the spot market and the energy purchase strategy fed back by the lower slave model, with the goal of maximizing profits, and decides on the energy price strategy for selling to the users of the lower slave model; the lower slave model regulates the controllable load to participate in demand response based on the energy price strategy fed back by the upper master model, with the goal of minimizing costs, decides on the user's energy purchase strategy and feeds it back to the upper master model.

[0109] Specifically, refer to Figure 3On the one hand, the virtual power plant operator is the controller of energy supply equipment, and on the other hand, it is the intermediary between the external market and the user entity. By coordinating external energy purchases and equipment operation strategies, it formulates energy prices for users and earns the difference to maximize its own profits; users adjust the controllable load energy use strategy to participate in demand response based on the energy prices released by the virtual power plant operator to minimize operating costs. At the same time, users feed back their response purchase energy to the virtual power plant operator, and the virtual power plant operator further adjusts the energy price based on its purchase energy; virtual power plant operators and users have independent interest goals, and there is a game relationship between the two, and the virtual power plant operator has priority decision-making power; therefore, this embodiment uses a master-slave game to describe the demand response process of market transactions between the two, in which the virtual power plant operator is the leader of the game and the user is the follower.

[0110] Step S4: Solve the master-slave game model in combination with the set constraints to obtain an optimization strategy for the virtual power plant to participate in demand response.

[0111] As an embodiment of the present invention, the process of establishing the electric-carbon coupling model taking into account the peak-valley period characteristics in step S2 specifically includes:

[0112] S2.1: Obtain the day-ahead dynamic electricity price and day-ahead dynamic carbon emission factor in the spot market;

[0113] S2.2: using the K-means++ clustering algorithm to cluster the day-ahead dynamic electricity price and the day-ahead dynamic carbon price into prices in three time periods: peak, flat and valley, and generating their corresponding peak and valley time characteristic identifiers respectively;

[0114] It should be noted that the specific clustering process of this K-means++ is an existing technology and will not be repeated here.

[0115] S2.3: Based on the electricity prices of the three time periods obtained by clustering and their peak and valley period characteristic identifiers, combined with the set peak and valley electricity price increment constraints, a peak and valley electricity price model is established; the specific process is as follows:

[0116] S2.3.1: Based on the carbon price of the three periods of the day-ahead dynamic electricity price and the peak and valley period characteristics, the initial model of the peak and valley electricity price is established as follows:

[0117]

[0118] In the formula, is the electricity price at time t; c p,f 、c p,p and c p,g are the electricity prices during peak hours, normal hours and valley hours respectively; μ p,f , μ p,p and μ p,gare the electricity price identifiers for peak time, normal time and valley time respectively. If time t is in peak time, normal time or valley time, the corresponding μ p,f (t), μ p,p (t) or μ p,g (t) takes 1, otherwise μ p,f (t), μ p,p (t) or μ p,g (t) takes 0;

[0119] S2.3.2: Set the peak-valley electricity price increment constraint and set the peak period electricity price c p,f The off-peak electricity price p,g Assume that the electricity price during normal period is c p,p Multiple value of:

[0120]

[0121] In the formula, β p,f and β p,g are the incremental coefficients of the peak-period electricity price and the valley-period electricity price relative to the normal-period electricity price, respectively; among which, the normal-period electricity price c p,p Set as a fixed value, and the average electricity price for the entire period c p,p Equal to the normal electricity price:

[0122]

[0123] In the formula, T represents the duration of the full-time electricity price;

[0124] S2.3.3: Based on the peak-valley electricity price increment constraint, the relationship between the peak-period and valley-period electricity price increment coefficients is derived (i.e., the peak-period electricity price increment coefficient can be represented by the valley-period electricity price increment coefficient and the peak-valley period characteristics):

[0125]

[0126] Where, T P,g T is the duration of the off-peak electricity price; P,f The duration of the peak electricity price;

[0127] Substituting the above relationship into the initial model of peak-valley electricity price, the expression of the peak-valley electricity price model is finally obtained as follows:

[0128]

[0129] S2.4: Based on the carbon prices of the three time periods obtained by clustering and their peak and valley period characteristic identifiers, combined with the set peak and valley carbon price increment constraints, a peak and valley carbon price model is established;

[0130] In this embodiment, the principle of the steps for establishing the peak-valley carbon price model in S2.4 is the same as the principle of the steps for establishing the peak-valley electricity price model in S2.3. The specific process is as follows:

[0131] S2.4.1: Combined with the peak and valley characteristics of the carbon emission factors read, the unit carbon emission trading price is introduced to form the peak and valley carbon price initial model:

[0132]

[0133] In the formula, is the carbon price at time t; c c,f 、c c,p and c c,g are the carbon prices during peak, normal and valley periods respectively; μ c,f , μ c,p and μ c,g are carbon price labels for normal, peak and valley periods respectively. If time t is in peak, normal or valley period, the corresponding μ c,f (t), μ c,p (t) or μ c,g (t) takes 1, otherwise μ c,f (t), μ c,p (t) or μ c,g (t) takes 0.

[0134] S2.4.2: Set the peak-valley carbon price increment constraint and set the peak-period carbon price c c,f The carbon price during the valley period c,g Assume that the electricity price during normal period is c p,p Multiple value of:

[0135]

[0136] In the formula, β c,f and β c,g are the incremental coefficients of the peak and valley electricity prices relative to the normal electricity prices, respectively; among which, the carbon price in the normal period c c,p is set to a fixed value, and the average carbon price c c,p Equal to the carbon price during normal times:

[0137]

[0138] In the formula, T represents the duration of the full-time electricity price;

[0139] S2.4.3: Based on the peak-valley carbon price increment constraint, the relationship between the carbon price increment coefficients during the peak period and the valley period is derived. The derivation process is the same as the derivation process of the peak-valley electricity price in S2.3.3, which will not be repeated here;

[0140] S2.4.4: Based on the derived relationship, the expression of the peak-valley carbon price model is as follows:

[0141]

[0142] In the formula, is the carbon price at time t; c c,p is the carbon price in normal period; c,f T is the incremental coefficient of carbon price during peak period relative to carbon price during normal period; c,f T is the duration of peak electricity price; c,g μ is the duration of the off-peak electricity price; c,f and μ c,g are the carbon price identifiers for the peak period and valley period, respectively. If time t is in the peak period or valley period, the corresponding μ c,f (t) or μ c,g (t) takes 1, otherwise μ c,f (t) or μ c,g (t) takes 0.

[0143] S2.5: The peak-valley electricity price model and the peak-valley carbon price model are coupled to obtain an electricity-carbon coupling model:

[0144]

[0145] In the formula, is the time-sharing electricity-carbon coupling price at time t.

[0146] It is further explained that the electricity-carbon coupling price has the peak, flat and valley characteristics of both electricity and carbon prices, with f, g and p representing the peak period, flat period and valley period respectively; the electricity-carbon coupling price contains nine forms {ff, fp, fg, pf, pp, pg, gf, gp, gg}; namely:

[0147] Electricity-carbon coupling price with peak-period electricity price and peak-period carbon price characteristics

[0148] Electricity-carbon coupling price with characteristics of peak-time electricity price and normal-time carbon price

[0149] Electricity-carbon coupling price with peak electricity price and valley carbon price characteristics

[0150] Electricity-carbon coupling price with the characteristics of normal-time electricity price and peak-time carbon price

[0151] Electricity-carbon coupling price with characteristics of normal-time electricity price and normal-time carbon price

[0152] Electricity-carbon coupling price with the characteristics of normal-time electricity price and off-time carbon price

[0153] With off-peak electricity prices and peak carbon prices Characteristic electric-carbon coupling price;

[0154] Electricity-carbon coupling price with characteristics of off-peak electricity price and normal carbon price

[0155] Electricity-carbon coupling price with characteristics of off-peak electricity price and off-peak carbon price

[0156] In addition, the time-sharing electricity-carbon coupling price at any time does not exceed its maximum and minimum limits:

[0157]

[0158] In the formula, and Minimum and maximum energy prices set for virtual power plant operators, respectively.

[0159] It is particularly noted that the present invention aims at the problem that in the master-slave game pricing model of the current prior art, the operator participates in the carbon market as a leader and is the sole entity responsible for bearing the carbon trading costs, which makes it impossible for the lower-level follower user entities to make reasonable real-time perception of the dynamic carbon emission factors on the grid side; the present invention designs a time-sharing electricity-carbon coupling model that couples the peak and valley characteristics of electricity and carbon prices to achieve reasonable transmission of transaction costs in the electricity-carbon market; considering that the operator is the electricity-carbon coupling peak and valley price maker and the user entities are price receivers, a one-master-multiple-slave game pricing decision-making method is proposed, and an energy pricing strategy that takes into account the interests of all entities is formulated, which achieves effective transmission and distribution of electricity-carbon transaction costs while ensuring the benefits of all parties, thereby prompting each user to reduce energy consumption during periods of high carbon emission factors, thereby reducing carbon emissions and carbon trading costs.

[0160] As an embodiment of the present invention, the objective function of the upper main model in step S3 is expressed as follows:

[0161]

[0162]

[0163] In the formula, f VPO Benefits for virtual power plant operators; is the energy sales revenue of the virtual power plant operator at time t; is the energy purchase cost of the virtual power plant operator at time t; is the equipment maintenance cost of the virtual power plant operator at time t; is the carbon trading cost of the virtual power plant operator at time t; The time-of-use electricity-carbon coupling price set for the virtual power plant operator at time t; is the heat price published by the virtual power plant operator at time t; and are the electricity and heat purchased by user i at time t respectively; is the real-time electricity price published in the spot market at time t; is the price of natural gas; and are the electricity and gas purchases of the virtual power plant operator at time t; c om,l is the operation and maintenance cost coefficient of device l in distributed resources; P l (t) is the power of device l at time t; c ct is the carbon trading cost coefficient; η p is the carbon emission factor of electricity purchase; η gas is the carbon emission factor for purchased gas.

[0164] The constraints of the upper master model include:

[0165] Energy pricing constraints:

[0166]

[0167] In the formula, represents the heat price released by the virtual power plant operator at time t; λ represents the heat price floating ratio.

[0168] Energy purchase constraints for virtual power plant operators:

[0169]

[0170] In the formula, It represents the maximum amount of electricity purchased by the virtual power plant operator; Represents the maximum gas purchase volume of the virtual power plant operator.

[0171] Power balance constraints:

[0172]

[0173] In the formula, P is the amount of electricity purchased by the virtual power plant at time t; PV (t) is the photovoltaic power generation at time t; P WT (t) is the wind power generation at time t; P CHP (t) is the CHP power generation at time t; P is the amount of electricity purchased by user i at time t; BES (t) is the amount of energy storage charge and discharge at time t; P HP (t) is the power consumption of the heat pump at time t; H CHP (t) is the heat supply of CHP at time t; H GB (t) is the heat supply of GB at time t; H HP (t) is the heat supply of HP at time t; H is the amount of heat purchased by user i at time t; TES(t) is the heat storage charge and release quantity at time t; G is the gas purchase volume of the virtual power plant operator at time t; CHP (t) is the CHP intake volume at time t; G GB (t) is the air intake volume of GB at time t.

[0174] Distributed resource device operation constraints:

[0175]

[0176] Where, l∈{GB,CHP}; P l (t) and P l (t-1) are the power generation of equipment 1 at time t and time t-1 respectively; η l is the conversion efficiency of the device; G l (t) is the air intake volume of equipment 1 at time t; P l,max is the rated power generation of the equipment; ΔP l,max is the maximum climbing power of the device.

[0177] As an embodiment of the present invention, the expression of the objective function of the lower layer slave model in step S3 is as follows:

[0178]

[0179] In the formula, f user,i is the energy purchase cost of user i; The time-of-use electricity-carbon coupling price set for the virtual power plant operator at time t; is the heat price published by the virtual power plant operator at time t; and are the electricity and heat purchased by user i at time t respectively.

[0180] The constraints of the lower-level slave model include:

[0181] Constraints on purchasing energy:

[0182]

[0183] In the formula, and are the maximum amount of electricity and heat purchased by user i respectively.

[0184] Demand response constraints:

[0185] In the demand response constraint, the user regulates the load to participate in the demand response based on the electricity price elasticity matrix mechanism. The steps of constructing the electricity price elasticity matrix include:

[0186] 1) The ratio of the electricity quantity change rate to the price change rate is determined as the electricity quantity price elasticity parameter by the following definition formula:

[0187]

[0188] Where P is the power consumption, represents the electricity-carbon coupling price issued by the upper main model; α and β are the first fitting parameter and the second fitting parameter respectively; ΔP and P0 are the change in electricity and the original electricity respectively; It represents the electricity-carbon coupling price in normal times; is the price change; ε is the electricity price elasticity parameter;

[0189] 2) According to the definition formula, the self-elasticity coefficient ε of the price elasticity matrix under the peak-valley electricity price mechanism is derived a,a and the cross elastic coefficient ε a,b :

[0190]

[0191] Where a, b∈{ff,fp,fg,pf,pp,pg,gf,gp,gg}; ff, fp, fg, pf, pp, pg, gf, gp, gg represent the nine time period identifiers of the electricity-carbon coupling price respectively; α a represents the first fitting parameter with the price characteristics of period a, α b represents the first fitting parameter with the price characteristics of period b, β a Indicates the second fitting parameter with the price characteristics of period a; represents the electricity-carbon coupling price in period a; represents the coupling price in period b;

[0192] 3) Based on the elastic matrix self-elastic coefficient ε a,a and the cross elastic coefficient ε a,b The price elasticity matrix M is constructed as follows:

[0193]

[0194] 4) After the user regulates the load to participate in demand response based on the electricity price elasticity matrix M mechanism, the change in electricity consumption in each period is expressed as follows:

[0195]

[0196] Electric vehicle charging constraints:

[0197]

[0198] In the formula, represents the charging power of electric vehicle k at time t; Indicates the maximum charging power; and Respectively represent the battery SOC state of charge of electric vehicle k at time t and time t-1; η ev Indicates the charging efficiency of electric vehicles; represents the battery capacity of electric vehicle k; and They respectively represent the maximum and minimum SOC state of charge of the electric vehicle k battery.

[0199] In this embodiment, the expression of the master-slave game model of the virtual power plant participating in demand response is as follows:

[0200]

[0201] The master-slave game model includes participants, strategy sets and benefits; the participants include the virtual power plant operator VPO, residential community users RS, commercial building users BL and charging station users EV; the strategy set includes the virtual power plant operator's electricity sales price c VPO 、The amount of electricity purchased by users in residential communities P RS 、The amount of electricity purchased by commercial building users P BL and the amount of electricity purchased by charging station users P EV ; The revenue includes the revenue of the virtual power plant operator VPO , Residential community user benefits-f RS , Commercial building user income -f BL and charging station user benefits-f EV ;

[0202] The master-slave game model G of virtual power plants participating in demand response meets the following constraints after reaching equilibrium:

[0203]

[0204] In the formula, and They respectively represent the optimal strategies for the power selling price of the virtual power plant operator, the power purchase amount of residential community users, the power purchase amount of commercial building users and the power purchase amount of charging station users after the master-slave game model G reaches the Nash equilibrium.

[0205] As an embodiment of the present invention, in step S4, the master-slave game model is solved by using the frost ice algorithm; the frost ice agent B under the positive greedy selection mechanism u represents the different peak and valley prices of electricity-carbon coupling released by the virtual power plant operator, and sets the frost agent B u The fitness function feeds back the benefits of the virtual power plant operator under the purchased electricity volume to the lower-level user transaction decision model. It constructs a search strategy by simulating the movement behavior of soft frost crystal particles and a crossover mechanism by simulating the breakdown behavior of hard frost crystal particles. It gradually iterates and updates the fitness of the intelligent agent and finally outputs the optimal strategy for the virtual power plant to participate in demand response.

[0206] It is further explained that the frost algorithm refers to the growth process of frost phenomenon, simulates the movement behavior of soft frost crystal particles to build a search strategy, simulates the breakdown behavior of hard frost crystal particles to build a crossover mechanism, and formulates a positive greedy selection mechanism to effectively improve population diversity and avoid falling into local optimality; each frost agent B u =[x u1 ,x u2 ,…,x uv ] represent a carbon-electricity coupling price issued by a virtual power plant operator, where frost particles x uv Representing Agent B u The vth decision variable of , the frost population S is composed of all frost agents, that is, the device configuration strategy set, S = [B1, B2, ..., B u ] T .

[0207] The specific solution of the frost ice algorithm includes the following steps:

[0208] S01. Initialize the population, randomly generate the first generation population, set the initial number of iterations iter and the maximum number of iterations iter max ;

[0209] S02, set the soft frost crystal threshold parameter r2 to a random number in the range of (0,1), and determine whether each particle in the population satisfies: If satisfied, the particle position is updated according to the soft frost crystal search strategy;

[0210] S03, set the hard frost crystal threshold parameter r3 to a random number in the range of [-1,1], and determine for each particle in the population whether r3 < the normalized value of the intelligent agent to which the particle belongs. If so, use the hard frost crystal breakdown mechanism to cross-update and replace the particle with the particle corresponding to the optimal intelligent agent;

[0211] S04, the user receives the current population, calculates the optimal power purchasing strategy for each intelligent agent based on the lower-level slave model, and feeds it back to the virtual power plant operator of the upper-level master model;

[0212] S05, operator fitness evaluation, calculate the fitness of the virtual power plant operator of each intelligent body; that is, the virtual power plant operator receives the power purchase strategy decided by each user entity, solves the equipment operation strategy and purchases energy from the spot market based on the virtual power plant operator transaction decision model, and calculates the current optimal profit;

[0213] S06, compare the fitness functions of the agents before and after the update, and take the best one as the updated agent;

[0214] S07, compare the fitness function value of the updated agent with the historical best agent, and take the best one as the historical best agent;

[0215] S08, repeating the above steps S02-S07 until the specified number of iterations is reached or the fitness function converges to a stable solution;

[0216] S09. Output the best agent in history as the optimal solution.

[0217] Among them, the soft frost crystal search strategy is:

[0218]

[0219] The breakdown mechanism of hard frost crystal is:

[0220]

[0221] In the formula, For particle x uv The updated position of x best,v is the vth particle of the best agent; r1 is a random number between (-1,1); h is a random number between (0,1); UB uv , LB uv The particles x uv The upper and lower bounds of ; θ increases with the number of iterations, and together with r1, controls the direction of particle movement; β is the environmental factor, which decreases with the number of iterations to ensure the final convergence of the algorithm.

[0222] The method provided in this embodiment takes into account the real-time electricity price signals of the spot market, optimizes the decision-making behavior of each subject in steps, and can formulate reasonable electricity sales pricing to guide the energy consumption plans of virtual power plant users, taking into account both user costs and operator benefits. The following experiments are used to verify the effectiveness of the decision-making method for virtual power plants participating in demand response provided by the present invention.

[0223] The experimental sample data includes: 1,500 electric vehicles aggregated by charging station users, the battery capacity of each vehicle is 40kWh, the charging power is 7kW, the SOC range is [0.2, 0.9], the start time of charging satisfies the normal distribution of N(9.47, 5.8), and the mileage satisfies the normal distribution of N(3.8, 0.88). The total charging load is calculated by Monte Carlo sampling. Among them, the user loads of residential communities, commercial buildings, and charging stations are as follows: Figure 4 The wind power output and photovoltaic output of the virtual power plant operator are shown in the attached Figure 5 As shown; the real-time dynamic electricity price and peak and valley time characteristics of the spot market are as follows Figure 6 In this experiment, the carbon emission factor of electricity is 0.53kg / kWh and the price of natural gas is 2.42 yuan / m 3 The carbon emission factor of natural gas is 1.4kg / m 3The carbon trading price is 60 yuan / tCO2; the demand response electricity price fitting parameters (α, β) during peak, flat and valley periods are (6.3, 61), (4.7, 58) and (3.9, 56) respectively.

[0224] In this embodiment, the frost algorithm is used to solve the decision problem of the proposed virtual power plant participating in demand response, and the optimal electricity sales pricing is obtained as shown in the attached figure. Figure 7 As shown in the figure; the load trend of users in residential communities, commercial buildings and charging stations is coupled with the peak and valley periods of peak and valley electricity prices, which leads to the virtual power plant operator's desire to increase the peak and valley increment coefficient of electricity prices to obtain higher energy sales revenue; at the same time, users respond to demand based on the price elasticity matrix and optimize energy purchasing strategies to reduce users' electricity purchasing costs; finally, in the virtual power plant operator's electricity sales pricing, the normal period electricity price is set at 0.79 yuan / kWh, the peak period electricity price is 1.403 yuan / kWh, the increment coefficient is 0.7759, the valley period electricity price is 0.39 yuan / kWh, and the increment coefficient is -0.5064; the normal period carbon price is set at 0.09 yuan / kWh, the peak period carbon price is 0.132 yuan / kWh, and the increment coefficient is 0.467; the valley period electricity price is 0.042 yuan / kWh, and the increment coefficient is -0.534.

[0225] Furthermore, the virtual power plant operator coordinates the purchase of electricity from the spot market, the purchase of gas from the natural gas market and the equipment operation strategy, purchases electricity when the real-time electricity price in the spot market is low, and increases the energy supply of CHP units, gas turbines and other equipment when the real-time electricity price is high, and sells energy to users to obtain profits. After using the decision-making method of virtual power plants participating in demand response in this embodiment, the power supply and demand balance diagram of the virtual power plant operator is shown in the attached figure. Figure 8 As shown, the benefits and costs of the virtual power plant are shown in Table 1:

[0226] Table 1

[0227]

[0228]

[0229] From the data analysis in Table 1, it can be seen that after the demand response strategy is optimized by the method of the present invention, the virtual power plant operator's electricity purchase cost is 84,650 yuan, the gas purchase cost is 14,940 yuan, and the total cost is 104,580 yuan; the electricity sales revenue is 111,730 yuan, the heat sales revenue is 50,050 yuan, and the total revenue is 161,780 yuan; finally, the virtual power plant operator obtains a net profit of 57,190 yuan.

[0230] The decision-making method for the virtual power plant to participate in demand response provided by this embodiment is different from the electric load curve when demand response is not adopted as shown in the attached figure. Fig. 9 The costs of each entity with and without demand response are shown in Table 2:

[0231] Table 2

[0232]

[0233] From the data analysis in Table 2, we can see that based on the price elasticity matrix, residential communities, commercial buildings and charging station users transfer loads from peak periods to valley periods to respond to demand, thereby reducing energy purchase costs; the cost of residential communities adopting demand response is 62,000 yuan, which is 6,000 yuan less than the cost without demand response; the cost of commercial buildings adopting demand response is 69,500 yuan, which is 5,700 yuan less; the cost of charging stations adopting demand response is 30,300 yuan, which is 3,300 yuan less.

[0234] The beneficial effects of the present invention are as follows:

[0235] 1. The present invention establishes a multi-agent demand response optimization framework based on the master-slave game theory, and constructs a master-slave game model of virtual power plants participating in demand response with the goal of maximizing the economic benefits of power plant operators and minimizing the energy purchase costs of each user; by taking into account the real-time electricity price signals of the spot market, the decision-making behavior of each subject is optimized step by step, and reasonable electricity sales pricing can be formulated to guide the energy consumption plans of virtual power plant users, taking into account user costs and operator benefits, reducing energy waste, and improving the overall utilization efficiency of distributed resources and the operation efficiency of the power market.

[0236] 2. In response to the problem in current research that virtual power plant operators, as leaders, fail to consider the impact of participating in the carbon trading market on their energy pricing strategies when publishing energy prices, the present invention proposes an electricity-carbon coupling model that takes into account the characteristics of peak and valley periods. By coupling the influence of the electricity and carbon markets in the operator's pricing mechanism, the carbon emission reward and punishment mechanism is effectively transmitted to each user entity to incentivize their carbon reduction behavior, prompting users to reduce energy consumption during periods of high carbon emission factors, reducing carbon emissions and carbon trading costs, and further improving the level of new energy consumption. It is of great significance to guide flexible interaction and coordinated carbon reduction among multiple entities, and is conducive to promoting the green and low-carbon transformation of the power industry.

[0237] 3. The present invention adopts the frost algorithm to solve the master-slave game model of virtual power plants participating in demand response. By formulating a positive greedy selection mechanism, it effectively improves population diversity and avoids falling into local optimality. It has the advantages of stronger optimization ability, higher accuracy and better adaptability.

[0238] 4. Based on the master-slave game theory, the present invention provides a one-master-multiple-slave game pricing decision-making method, formulates a demand response strategy that takes into account the interests of all parties, better realizes the overall maximum benefit and minimum carbon emissions, further helps achieve the dual carbon goals, and has good application prospects.

[0239] Embodiment 2:

[0240] like Fig.10 As shown, the present invention provides a decision-making system for a virtual power plant to participate in demand response, the system is used to implement the steps of the method in the above embodiment 1, and the system specifically includes:

[0241] An optimization architecture model is established to establish a multi-agent demand response optimization architecture based on the master-slave game theory; the game leader in the multi-agent demand response optimization architecture is the virtual power plant operator used to aggregate distributed resources to participate in the power market, and the followers are the users;

[0242] The electricity-carbon coupling module is used to establish an electricity-carbon coupling model that takes into account the characteristics of peak and valley periods based on the day-ahead dynamic electricity price and day-ahead dynamic carbon emission factor in the electricity spot market;

[0243] A master-slave game module is used to construct an upper master model with the goal of maximizing the economic benefits of the virtual power plant operator and a lower slave model with the goal of minimizing the energy purchase cost of each user based on the electricity-carbon coupling model, so as to obtain a master-slave game model of the virtual power plant participating in demand response;

[0244] The optimization strategy solving module is used to solve the master-slave game model in combination with the set constraints to obtain the optimization strategy for the virtual power plant to participate in demand response.

[0245] The decision-making system for virtual power plants to participate in demand response provided in the embodiment of the present invention and the decision-making method for virtual power plants to participate in demand response provided in Example 1 are based on the same technical concept, and can produce the beneficial effects as described in Example 1. For contents not described in detail in this embodiment, please refer to Example 1.

[0246] Embodiment three:

[0247] A terminal provided by an embodiment of the present invention includes a processor and a storage medium;

[0248] The storage medium is used to store instructions;

[0249] The processor is used to operate according to the instruction to execute the steps of the method according to any one of the first embodiments.

[0250] Embodiment 4:

[0251] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the steps of any method described in Embodiment 1 are implemented.

[0252] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.

[0253] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0254] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0255] The computer program instructions for performing the operation of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.

[0256] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A decision-making method for a virtual power plant to participate in demand response, characterized in that the method include: A multi-agent demand response optimization framework is established based on the master-slave game theory. The game leader in the multi-agent demand response optimization framework is the virtual power plant operator used to aggregate distributed resources to participate in the power market, and the followers are the users. According to the day-ahead dynamic electricity price and day-ahead dynamic carbon emission factor in the electricity spot market, an electricity-carbon coupling model taking into account the characteristics of peak and valley periods is established; Based on the electricity-carbon coupling model, an upper master model with the goal of maximizing the economic benefits of the virtual power plant operator and a lower slave model with the goal of minimizing the energy purchase cost of each user are constructed, thereby obtaining a master-slave game model of the virtual power plant participating in demand response; The master-slave game model is solved in combination with the set constraints to obtain an optimization strategy for the virtual power plant to participate in demand response.

2. The decision-making method for virtual power plant participation in demand response according to claim 1, characterized in that: The game process of the master-slave game model includes: The upper-layer main model adjusts the energy purchase strategy from the spot market and the distributed resource operation strategy based on the real-time electricity price signal released by the spot market and the energy purchase strategy fed back by the lower-layer slave model, with the goal of maximizing profits, and decides on the energy price strategy sold to the users of the lower-layer slave model; The lower-level slave model adjusts the controllable load to participate in demand response based on the energy price strategy fed back by the upper-level master model, with the goal of minimizing cost, and decides on the user's energy purchasing strategy and feeds it back to the upper-level master model.

3. The decision-making method for virtual power plant participation in demand response according to claim 1, characterized in that: The distributed resources include cogeneration CHP units, gas turbines, photovoltaic power stations, wind power stations, heat pump units and energy storage devices.

4. The decision-making method for virtual power plant participation in demand response according to claim 1, characterized in that: The steps of establishing the electric-carbon coupling model taking into account the peak-valley period characteristics include: Obtain the day-ahead dynamic electricity price and day-ahead dynamic carbon emission factor in the spot market; Multiply the day-ahead dynamic carbon emission factor by the unit carbon emission transaction price to obtain the day-ahead dynamic carbon price; The K-means++ clustering algorithm is used to cluster the day-ahead dynamic electricity price and the day-ahead dynamic carbon price into prices in three time periods: peak, flat, and valley, and the corresponding peak and valley time period characteristic identifiers are generated respectively; Based on the electricity prices of the three time periods obtained by clustering and their peak and valley period characteristic identification, combined with the set peak and valley electricity price increment constraints, a peak and valley electricity price model is established; Based on the carbon prices of the three time periods obtained by clustering and their peak and valley period characteristics, combined with the set peak and valley carbon price increment constraints, a peak and valley carbon price model is established; The peak-valley electricity price model and the peak-valley carbon price model are coupled to obtain an electricity-carbon coupling model.

5. The decision-making method for virtual power plant participation in demand response according to claim 4 is characterized in that: The steps of establishing the peak-valley electricity price model include: According to the carbon price of the three periods of the day-ahead dynamic electricity price and the peak and valley period characteristics, the initial model of the peak and valley electricity price is established as follows: In the formula, is the electricity price at time t; c p,f 、c p,p and c p,g are the electricity prices during peak hours, normal hours and valley hours respectively; μ p,f , μ p,p and μ p,g are the electricity price identifiers for peak time, normal time and valley time respectively. If time t is in peak time, normal time or valley time, the corresponding μ p,f (t), μ p,p (t) or μ p,g (t) takes 1, otherwise μ p,f (t), μ p,p (t) or μ p,g (t) takes 0; Set the peak-valley electricity price increment constraint and set the peak period electricity price c p,f The off-peak electricity price p,g Assume that the electricity price during normal period is c p,p Multiple value of: In the formula, β p,f and β p,g are the incremental coefficients of the peak-period electricity price and the valley-period electricity price relative to the normal-period electricity price, respectively; among which, the normal-period electricity price c p,p Set as a fixed value, and the average electricity price for the entire period c p,p Equal to the normal electricity price: In the formula, T represents the duration of the full-time electricity price; According to the peak-valley electricity price increment constraint, the relationship between the peak period and valley period electricity price increment coefficient is derived as follows: b p,g =-T p,f / T p,g b p,f Where, T P,g T is the duration of the off-peak electricity price; P,f The duration of the peak electricity price; Substituting the above relationship into the initial model of peak-valley electricity price, the expression of the peak-valley electricity price model is finally obtained as follows:

6. The decision-making method for virtual power plant participation in demand response according to claim 5, characterized in that: Using the same principles as the steps in establishing the peak-valley electricity price model, the expression of the peak-valley carbon price model is established as follows: In the formula, is the carbon price at time t; c c,p is the carbon price in normal period; β c,f T is the incremental coefficient of carbon price during peak period relative to carbon price during normal period; c,f T is the duration of peak electricity price; c,g μ is the duration of the off-peak electricity price; c,f and μ c,g are the carbon price identifiers for the peak period and valley period, respectively. If time t is in the peak period or valley period, the corresponding μ c,f (t) or μ c,g (t) takes 1, otherwise μ c,f (t) or μ c,g (t) takes 0.

7. The decision-making method for virtual power plant participation in demand response according to claim 6, characterized in that: The expression of the electric-carbon coupling model is as follows: In the formula, is the time-sharing electricity-carbon coupling price at time t.

8. The decision-making method for virtual power plant participation in demand response according to claim 7, characterized in that: The objective function of the upper main model is expressed as follows: In the formula, f VPO Benefits for virtual power plant operators; is the energy sales revenue of the virtual power plant operator at time t; is the energy purchase cost of the virtual power plant operator at time t; is the equipment maintenance cost of the virtual power plant operator at time t; is the carbon trading cost of the virtual power plant operator at time t; The time-of-use electricity-carbon coupling price set for the virtual power plant operator at time t; is the heat price published by the virtual power plant operator at time t; and are the electricity and heat purchased by user i at time t respectively; is the real-time electricity price published in the spot market at time t; is the price of natural gas; and are the electricity and gas purchases of the virtual power plant operator at time t; c om,l is the operation and maintenance cost coefficient of device l in distributed resources; P l (t) is the power of device l at time t; c ct is the carbon trading cost coefficient; η p is the carbon emission factor of electricity purchase; η gas is the carbon emission factor for purchased gas.

9. The decision-making method for virtual power plant participation in demand response according to claim 8, characterized in that: The constraints of the upper main model include energy pricing constraints, virtual power plant operator energy purchase constraints, power balance constraints and equipment operation constraints of distributed resources.

10. The decision-making method for virtual power plant participation in demand response according to claim 8, characterized in that: The expression of the objective function of the lower layer slave model is as follows: In the formula, f user,i is the energy purchase cost of user i; The time-of-use electricity-carbon coupling price set for the virtual power plant operator at time t; is the heat price published by the virtual power plant operator at time t; and are the electricity and heat purchased by user i at time t respectively.

11. The decision-making method for virtual power plant participation in demand response according to claim 10, characterized in that: The constraints of the lower slave model include demand response constraints; In the demand response constraint, the user regulates the load to participate in the demand response based on the electricity price elasticity matrix mechanism. The steps of constructing the electricity price elasticity matrix include: The ratio of the electricity quantity change rate to the price change rate is determined by the following definition formula as the electricity quantity price elasticity parameter: Where P is the power consumption, represents the electricity-carbon coupling price issued by the upper main model; α and β are the first fitting parameter and the second fitting parameter respectively; ΔP and P0 are the change in electricity and the original electricity respectively; It represents the electricity-carbon coupling price in normal times; is the price change; ε is the electricity price elasticity parameter; According to the definition formula, the self-elasticity coefficient ε of the price elasticity matrix under the peak-valley electricity price mechanism is derived a,a and the cross elastic coefficient ε a,b : Where a, b∈{ff,fp,fg,pf,pp,pg,gf,gp,gg}; ff, fp, fg, pf, pp, pg, gf, gp, gg represent the nine time period identifiers of the electricity-carbon coupling price respectively; α a represents the first fitting parameter with the price characteristics of period a, α b represents the first fitting parameter with the price characteristics of period b, β a Indicates the second fitting parameter with the price characteristics of period a; represents the electricity-carbon coupling price in period a; represents the coupling price in period b; Based on the elastic matrix self-elastic coefficient ε a,a and the cross elastic coefficient ε a,b The price elasticity matrix M is constructed as follows: After users regulate loads based on the electricity price elasticity matrix M mechanism to participate in demand response, the changes in electricity consumption in each period are expressed as follows:

12. The decision-making method for virtual power plant participation in demand response according to claim 10, characterized in that: The lower layer constraints from the model also include electric vehicle charging constraints: In the formula, represents the charging power of electric vehicle k at time t; Indicates the maximum charging power; and Respectively represent the battery SOC state of charge of electric vehicle k at time t and time t-1; η ev Indicates the charging efficiency of electric vehicles; represents the battery capacity of electric vehicle k; and They respectively represent the maximum and minimum SOC state of charge of the electric vehicle k battery.

13. The decision-making method for virtual power plant participation in demand response according to claim 1 or 10, characterized in that: The master-slave game model of the virtual power plant participating in demand response includes participants, strategy sets and benefits; The participants include virtual power plant operators VPO, residential community users RS, commercial building users BL and charging station users EV; The strategy set includes the electricity selling price c of the virtual power plant operator VPO 、The amount of electricity purchased by users in residential communities P RS 、The amount of electricity purchased by commercial building users P BL and the amount of electricity purchased by charging station users P EV ; The benefits include the virtual power plant operator's benefits VPO , Residential community user benefits-f RS , Commercial building user income -f BL and charging station user benefits-f EV ; The expression of the master-slave game model of the virtual power plant participating in demand response is as follows: The master-slave game model G of the virtual power plant participating in demand response meets the following constraints after reaching equilibrium: In the formula, and They respectively represent the optimal strategies for the power selling price of the virtual power plant operator, the power purchase amount of residential community users, the power purchase amount of commercial building users and the power purchase amount of charging station users after the master-slave game model G reaches the Nash equilibrium.

14. The decision-making method for virtual power plant participation in demand response according to claim 1, characterized in that: The master-slave game model is solved by using the frost-ice algorithm; The algorithm includes: using the frost agent B under the positive greedy selection mechanism u represents the different peak and valley prices of electricity-carbon coupling released by the virtual power plant operator, and sets the frost agent B u The fitness function feeds back the benefits of the virtual power plant operator under the purchased electricity volume to the lower-level user transaction decision model. It constructs a search strategy by simulating the movement behavior of soft frost crystal particles and a crossover mechanism by simulating the breakdown behavior of hard frost crystal particles. It gradually iterates and updates the fitness of the intelligent agent and finally outputs the optimal strategy for the virtual power plant to participate in demand response.

15. A decision-making system for a virtual power plant to participate in demand response, running the decision-making method for a virtual power plant to participate in demand response as claimed in any one of claims 1 to 14, characterized in that the system include: Establish an optimization architecture model for establishing a multi-agent demand response optimization architecture based on the master-slave game theory; the game leader in the multi-agent demand response optimization architecture is the virtual power plant operator used to aggregate distributed resources to participate in the power market, and the followers are the users; The electricity-carbon coupling module is used to establish an electricity-carbon coupling model that takes into account the characteristics of peak and valley periods based on the day-ahead dynamic electricity price and day-ahead dynamic carbon emission factor in the electricity spot market; A master-slave game module is used to construct an upper master model with the goal of maximizing the economic benefits of the virtual power plant operator and a lower slave model with the goal of minimizing the energy purchase cost of each user based on the electricity-carbon coupling model, so as to obtain a master-slave game model of the virtual power plant participating in demand response; The optimization strategy solving module is used to solve the master-slave game model in combination with the set constraints to obtain the optimization strategy for the virtual power plant to participate in demand response.

16. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-14.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.

Citation Information

Cited By

  • Virtual power plant optimal scheduling method and device, electronic equipment and storage medium

    CN119168323A

  • Virtual power plant electric power-steam collaborative optimization method and system for textile industrial park

    CN119539163A

  • Virtual power plant scheduling method considering source-load coupling and multi-agent game

    CN120638519A