Electric power flexibility resource clearing result calculation method and related device

Through the collaborative work of virtual power plants, distribution network companies and aggregator terminals, the power consumption risks are identified and the power flexibility resource clearance results are calculated, and the problem of power consumption risks in the power market is solved and operating efficiency and benefits are improved.

CN120387630APending Publication Date: 2025-07-29SHENZHEN POWER SUPPLY BUREAU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510461177.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-11
Publication Date
2025-07-29

AI Technical Summary

Technical Problem

The existing power market clearance mechanism cannot effectively solve the power consumption risks arising from the operation of the power system, especially the problems of network blockage and voltage deviation after the expansion of distributed energy coverage.

Method used

Through the collaborative work of virtual power plant terminals, distribution network company terminals and aggregator terminals, power data is generated and analyzed, electricity consumption risks are identified, and the quotation mechanism of purchasing and selling flexible power resources is calculated to solve power consumption risks and ensure the maximum profit and system stability of all parties in the power market.

Benefits of technology

It improves the operating efficiency of the power trading market, reduces the computing burden of virtual power plant terminals, reduces manual intervention, and ensures the stable operation of the distribution network and the maximum benefits of all parties in the power market.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120387630A_ABST
    Figure CN120387630A_ABST
Patent Text Reader

Abstract

The invention discloses an electric power flexibility resource clearing result calculation method and a related device, and the method comprises the steps: a distribution network company terminal receives first electric quantity data sent by a corresponding aggregator terminal, analyzing whether a power distribution network managed by the distribution network company terminal has a power utilization risk in a target time period according to the first electric quantity data; if the first distribution network company terminal determines that the corresponding power distribution network has the power utilization risk in the target time period, generating a first purchase request by the first distribution network company terminal; and the virtual power plant terminal receives a plurality of first purchase requests sent by the plurality of first distribution network company terminals and a plurality of selling quotations sent by the at least one aggregator terminal, and determines a power flexibility resource clearing result in a target time period according to the plurality of first purchase requests and the plurality of selling quotations. By implementing the method provided by the invention, the problem of electricity utilization risk which cannot be solved by a traditional electricity market clearing mechanism can be solved.
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 market clearing, and in particular, to a method for calculating the clearing result of power flexibility resources and related devices. Background Art

[0002] The existing power market clearing method is based on auctions and power markets to achieve market clearing, which can basically meet the purchase or sale needs of various power-related resources of market users under the premise of a limited power market scale, and meet the power supply and demand balance. However, with the continuous expansion of the coverage of distributed energy, the number of users participating in the market is also increasing, and the operating pressure of the power system in the power market has increased significantly. As a result, the probability of occurrence of power consumption risks such as network congestion and voltage deviation during the operation of the power system has also increased.

[0003] Therefore, the existing market clearing mechanism based on power markets and auctions cannot solve the power consumption risks generated during the operation of the power system through the power market and auction mechanisms. Summary of the Invention

[0004] In view of the above problems, the embodiments of the present application provide a method for calculating the clearing result of power flexibility resources and related devices. Adopting the solution of the present application is beneficial to solving the power consumption risk problem that cannot be solved by the traditional power market clearing mechanism.

[0005] In a first aspect, an embodiment of the present application provides a method for calculating the clearing result of power flexibility resources, which is applied to a power market clearing system. The power market clearing system includes a virtual power plant terminal, a distribution network company terminal, and at least one aggregator terminal; among them, the first distribution network company terminal among the multiple distribution network company terminals corresponds to the first aggregator terminal. The method includes: the aggregator terminal generates first electricity quantity data and sends the first electricity quantity data to the distribution network company terminal. The first electricity quantity data includes the electricity consumption situations of multiple users managed by the aggregator terminal during the target period; the distribution network company terminal receives the first electricity quantity data sent by the corresponding aggregator terminal and analyzes whether there is an electricity consumption risk in the distribution network managed by the distribution network company terminal during the target period according to the first electricity quantity data; if the first distribution network company terminal determines that there is an electricity consumption risk in the corresponding distribution network during the target period, the first distribution network company terminal generates a first purchase request and sends the first purchase request to the virtual power plant terminal. The first purchase request is used to request the purchase of the first power flexibility resource to increase or decrease the electricity consumption of the distribution network managed by the distribution network company terminal, or increase or decrease the power generation; the aggregator terminal generates a selling offer according to the first electricity quantity data and sends the selling offer to the virtual power plant terminal. The selling offer includes the second power flexibility resource that multiple users managed by the aggregator terminal can provide during the target period and the price of the second power flexibility resource; the virtual power plant terminal receives multiple first purchase requests sent by multiple first distribution network company terminals and multiple selling offers sent by at least one aggregator terminal; the virtual power plant terminal determines the clearing result of power flexibility resources during the target period according to the multiple first purchase requests and the multiple selling offers.

[0006] It can be seen that in the embodiment of the present application, by analyzing whether there is an electricity consumption risk through the distribution network company terminal, and on the premise of the existence of the electricity consumption risk, sending the first purchase request corresponding to the electricity consumption risk to the virtual power plant terminal, and the virtual power plant terminal calculates the corresponding clearing result according to the first purchase request, so that all parties in the power trading market can operate according to the clearing result, without manual participation, improving the operation efficiency and solving the electricity consumption risk problem in the system at the same time.

[0007] Combined with the first aspect, in a possible embodiment, if the current moment is in the first period, determining the clearing result of power flexibility resources according to the multiple first purchase requests and the multiple selling offers includes: the virtual power plant terminal calculates multiple first clearing results on the premise of the maximum total net profit according to the multiple first purchase requests and the multiple selling offers. The multiple first clearing results correspond to the multiple first purchase requests. The first period is before the target period; the virtual power plant terminal determines the multiple first clearing results as the clearing result of power flexibility resources during the target period.

[0008] It can be seen that in the embodiments of the present application, by determining the clearing result of power flexibility resources within the target period on the premise of maximizing the total net profit, while ensuring the stable operation of the distribution network, the maximum benefits of all parties participating in the power market are also guaranteed.

[0009] Combined with the first aspect, in a possible embodiment, if the first distribution network company terminal determines that there is an electricity consumption risk in the corresponding distribution network within the target period, the method further includes: the first distribution network company terminal generates risk information corresponding to the electricity consumption risk, and the risk information includes the risk type of the electricity consumption risk; the first distribution network company terminal sends the risk information to at least one aggregator terminal; the aggregator terminal receives the risk information; generating a selling offer according to the first electricity quantity data, including: the aggregator terminal determines the third power flexibility resources that can be provided by multiple users managed by the aggregator terminal within the target period according to the first electricity quantity data; the aggregator terminal determines the second power flexibility resources from the third flexibility resources according to the risk type, and generates a selling offer according to the second power flexibility resources.

[0010] It can be seen that in the embodiments of the present application, by directionally screening flexibility resources through the risk type, the type of the second power flexibility resources in the selling offer provided by the aggregator terminal corresponds to the type of the current existing electricity consumption risk, reducing the amount of data that the virtual power plant terminal needs to process and improving the computing speed of the virtual power plant terminal.

[0011] Combined with the first aspect, in a possible embodiment, analyzing whether there is an electricity consumption risk in the distribution network managed by the distribution network company terminal within the target period according to the first electricity quantity data includes: the distribution network company terminal generates a load flow curve of the distribution network managed by the distribution network company terminal within the target period according to the first electricity quantity data; the distribution network company terminal judges whether there is an electricity consumption risk in the distribution network within the target period according to the load flow curve.

[0012] It can be seen that in the embodiments of the present application, by generating the corresponding load flow curve by the distribution network company terminal for electricity consumption risk analysis, only relying on data superposition and threshold comparison, there is no need to deploy a model on the distribution network company terminal, reducing the computing power requirement and improving the computing efficiency.

[0013] Combined with the first aspect, in a possible embodiment, the method further includes: the virtual power plant terminal respectively generates first transaction information of multiple first clearing results, and sends the first transaction information to the corresponding aggregator terminal and the corresponding distribution network company terminal; the aggregator terminal receives the first transaction information and generates at least one second transaction information according to the first transaction information, and the second transaction information corresponds to the users managed by the distribution network company terminal one by one; the aggregator terminal sends the second transaction information to the corresponding user terminal so that the user terminal and the corresponding distribution network company terminal reach a transaction reservation.

[0014] It can be seen that in the embodiments of the present application, by separately generating the first transaction information and the second transaction information of multiple first clearing results, the realization is from market clearing to user-level transaction reservation, reducing manual intervention and improving processing efficiency.

[0015] Combined with the first aspect, in a possible embodiment, the electricity market clearing system further includes multiple power selling company terminals. If the current moment is in the second time period, and the second time period is between the first time period and the target time period, the method further includes: the first power selling company terminal generates a second purchase request and sends the second purchase request to the virtual power plant terminal. The second purchase request is used to request the purchase of the fourth power flexibility resource to increase or decrease the power consumption of the distribution network corresponding to the power selling company terminal, or increase or decrease the power generation; the virtual power plant terminal receives the multiple second purchase requests sent by the first power selling company terminal; and determines the clearing result of the power flexibility resource in the target time period according to the multiple first purchase requests and multiple selling quotes, including: the virtual power plant terminal calculates multiple first clearing results and multiple second clearing results on the premise of the maximum total net profit according to the multiple first purchase requests, multiple selling quotes and multiple second purchase requests. The multiple first clearing results correspond to the multiple first purchase requests, and the multiple second clearing results correspond to the multiple second purchase requests; the virtual power plant terminal determines the multiple first clearing results and the multiple second clearing results as the clearing result of the power flexibility resource in the target time period.

[0016] It can be seen that in the embodiments of the present application, by determining the clearing result of the power flexibility resource in the target time period on the premise of the maximum total net profit, while ensuring the stable operation of the distribution network and the flexibility resource requirements of the power selling company, it also guarantees the maximum benefits of all parties participating in the electricity market.

[0017] Combined with the first aspect, in a possible embodiment, if the current moment is in the second time period, and the second time period is between the first time period and the target time period, the method further includes: the first aggregator terminal generates a third purchase request and sends the third purchase request to the virtual power plant terminal. The third purchase request is used to request the purchase of the fifth power flexibility resource to increase or decrease the power consumption of the distribution network corresponding to the first aggregator terminal, or increase or decrease the power generation; the virtual power plant terminal receives the multiple third purchase requests sent by the first aggregator terminal; and determines the clearing result of the power flexibility resource in the target time period according to the multiple first purchase requests and multiple selling quotes, including: the virtual power plant terminal calculates multiple first clearing results and multiple third clearing results on the premise of the maximum total net profit according to the multiple first purchase requests, multiple selling quotes and multiple third purchase requests. The multiple first clearing results correspond to the multiple first purchase requests, and the multiple third clearing results correspond to the multiple third purchase requests; the virtual power plant terminal determines the multiple first clearing results and the multiple third clearing results as the clearing result of the power flexibility resource in the target time period.

[0018] It can be seen that in the embodiments of the present application, by determining the clearing result of power flexibility resources within the target period on the premise of maximizing the total net profit, while ensuring the stable operation of the distribution network and the flexibility resource requirements of the aggregator terminal, the maximum benefits of all parties participating in the power market are also guaranteed.

[0019] In a second aspect, an embodiment of the present application provides a power flexibility resource clearing result calculation device for executing the power flexibility resource clearing result calculation method. The device belongs to the power flexibility resource clearing result calculation system, and the device includes:

[0020] A generating unit, configured to generate first power quantity data and send the first power quantity data to the distribution network company terminal. The first power quantity data includes the electricity consumption situations of multiple users managed by the aggregator terminal within the target period.

[0021] A receiving unit, configured to receive the first power quantity data sent by the corresponding aggregator terminal and analyze whether there is an electricity consumption risk in the distribution network managed by the distribution network company terminal within the target period according to the first power quantity data.

[0022] A generating unit, configured to, if the terminal determines that there is an electricity consumption risk in the corresponding distribution network within the target period, generate a first purchase request and send the first purchase request to the virtual power plant terminal. The first purchase request is used to request the purchase of the first power flexibility resource to increase or decrease the electricity consumption of the distribution network managed by the distribution network company terminal, or increase or decrease the power generation.

[0023] A generating unit, configured to generate a selling offer according to the first power quantity data and send the selling offer to the virtual power plant terminal. The selling offer includes the second power flexibility resources that multiple users managed by the aggregator terminal can provide within the target period and the offers of the second power flexibility resources.

[0024] A receiving unit, configured to receive multiple first purchase requests sent by multiple first distribution network company terminals and multiple selling offers sent by at least one aggregator terminal from the virtual power plant terminal.

[0025] A determining unit, configured to determine the clearing result of power flexibility resources within the target period according to the multiple first purchase requests and the multiple selling offers.

[0026] In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and are configured to be executed by the processor. One or more instructions are suitable for being loaded and executed by the processor to perform part or all of the methods in the first aspect and / or the second aspect.

[0027] Fourthly, an embodiment of the present application provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute part or all of the methods of the first aspect and / or the second aspect.

[0028] Fifthly, the present application provides a computer program product, which when read and executed by a computer, causes the computer to execute part or all of the methods of the first aspect and / or the second aspect.

[0029] It can be understood that the beneficial effects of the embodiments of the second aspect to the fifth aspect can refer to the beneficial effects in the method of the first aspect, which will not be elaborated here. Description of the Drawings

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0031] Figure 1 Schematic diagram of an application scenario of a method for calculating the clearing result of power flexibility resources provided by an embodiment of the present application;

[0032] Figure 2 Schematic flow chart of a method for calculating the clearing result of power flexibility resources provided by an embodiment of the present application;

[0033] Figure 3 Schematic diagram of the corresponding relationship of each terminal provided by an embodiment of the present application;

[0034] Figure 4 Schematic diagram of the management structure of an aggregator terminal provided by an embodiment of the present application;

[0035] Figure 5 Schematic flow chart of a second method for calculating the clearing result of power flexibility resources provided by an embodiment of the present application;

[0036] Figure 6 Schematic diagram of the structure of a power market clearing system including a power selling company terminal provided by an embodiment of the present application;

[0037] Figure 7 Schematic flow chart of a third method for calculating the clearing result of power flexibility resources provided by an embodiment of the present application;

[0038] Figure 8 Schematic diagram of the structure of a device for calculating the clearing result of power flexibility resources provided by an embodiment of the present application;

[0039] Figure 9 This is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0040] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0041] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally further include steps or units not listed, or may optionally further include other steps or units inherent to these processes, methods, products, or devices.

[0042] Referring to "embodiment" herein means that a specific feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.

[0043] The embodiments of the present application will be described below with reference to the accompanying drawings.

[0044] Embodiment 1:

[0045] Please refer to Figure 1 , Figure 1 This is a schematic diagram of an application scenario for calculating the clearing result of power flexibility resources provided by an embodiment of the present application. As shown in the figure, in this application scenario 100, it includes a virtual power plant terminal 101, a first distribution network company terminal 102, and an aggregator terminal 103.

[0046] Among them, the virtual power plant terminal 101 is used to coordinate the distribution network company, the aggregator, and distributed energy resources, and is a central control platform (i.e., the virtual power plant) that optimizes the allocation of flexibility resources through a market clearing mechanism and supervises the execution of transactions.

[0047] The first distribution network company terminal 102 is a power grid management system (i.e., the distribution network company) that receives and analyzes the information provided by the aggregator terminal 103, analyzes and judges the operation risks of the distribution network, and formulates flexible procurement requirements.

[0048] The aggregator terminal 103 is an integrated platform (i.e., the aggregator) that aggregates users with purchasing and selling capabilities in the electricity market.

[0049] In the application scenario 100, only the situation of one virtual power plant terminal 101, one first distribution network company terminal 102, and one aggregator terminal 103 is shown. In actual applications, there will be multiple first distribution network company terminals 102, and each first distribution network company terminal 102 will correspond to multiple aggregator terminals 103. This is only an example for easy explanation.

[0050] The following describes this method in combination with the application scenario 100. In the embodiments of this application, the virtual power plant terminal 101, the first distribution network company terminal 102, and the aggregator terminal 103 all belong to the electricity market clearing system.

[0051] The aggregator terminal 103 generates first electricity quantity data and sends the first electricity quantity data to the first distribution network company terminal 102. The first electricity quantity data includes the electricity consumption situations of multiple users managed by the aggregator terminal during the target period.

[0052] It should be noted that the aggregator terminal 103 here is one of at least one aggregator terminal in the electricity market clearing system. The first electricity quantity data is specifically an energy curve, which characterizes the electricity consumption situations of multiple users managed by the aggregator terminal during the target period (for example, within the next 24 hours). For example, the electricity consumption of the aggregator terminal 103 from 8:00 am to 9:00 am during the target period, the power generation of the aggregator terminal 103 from 10:00 am to 11:00 am during the target period, etc.).

[0053] The first distribution network company terminal 102 receives the first electricity quantity data sent by the corresponding aggregator terminal 103 and analyzes whether there is an electricity consumption risk in the corresponding distribution network during the target period according to the first electricity quantity data.

[0054] The electricity consumption risk here specifically includes at least one of network congestion risk, voltage deviation risk, and system overload risk.

[0055] If the first distribution network company terminal 102 determines that there is an electricity consumption risk in the corresponding distribution network during the target period, the first distribution network company terminal 102 generates a first purchase request and sends the first purchase request to the virtual power plant terminal 101. The first purchase request is used to request the purchase of the first power flexibility resource to increase or decrease the electricity consumption of the distribution network managed by the distribution network company terminal, or increase or decrease the power generation.

[0056] It should be noted that the power flexibility resources here specifically refer to the resources for the system to cope with uncertainties. Power flexibility resources can be divided into "up-regulation resources" and "down-regulation resources". "Up-regulation resources" are the resources that provide additional power to the power grid, and the realization of this resource specifically requires methods such as increasing the output of generating units or reducing the power grid load; "down-regulation resources" are the resources that reduce the excess power in the system, and the realization of this resource specifically requires methods such as reducing the output of generating units or increasing the power grid load.

[0057] The first purchase request here is specifically used to purchase the first power flexibility resources from the aggregator corresponding to an aggregator terminal (possibly the aggregator terminal 103 in the application scenario) in the market clearing system, so that the aggregator increases or decreases power consumption, or increases or decreases power generation, so as to increase or decrease the power consumption of the distribution network managed by the first distribution network company terminal 102, or increase or decrease the power generation of the distribution network managed by the first distribution network company terminal 102. The ultimate goal is to solve the power consumption risk existing in the corresponding distribution network of the first distribution network company terminal 102 during the target period.

[0058] The aggregator terminal 103 generates a selling offer according to the first power quantity data and sends the selling offer to the virtual power plant terminal 101. The selling offer includes the second power flexibility resources that multiple users managed by the aggregator terminal can provide during the target period and the offer price of the second power flexibility resources.

[0059] The virtual power plant terminal 101 receives multiple first purchase requests sent by multiple first distribution network company terminals 102 and multiple selling offers sent by at least one aggregator terminal 103.

[0060] It should be noted that in actual applications, the virtual power plant terminal 101 needs to manage multiple distribution network company terminals, and there are situations where the corresponding distribution networks have no power consumption risks.

[0061] Exemplarily, if the second distribution network company terminal determines that the corresponding managed distribution network has no power consumption risk, it will not send a purchase request to the virtual power plant terminal 101.

[0062] The virtual power plant terminal 101 determines the clearing result of power flexibility resources during the target period according to multiple first purchase requests and multiple selling offers. To achieve the power flexibility resource transaction between one or more of the first distribution network company terminal 102 and the aggregator terminal 103, so as to solve the distribution network risk corresponding to the first purchase request.

[0063] It can be seen that in the embodiment of the present application, the distribution network company terminal analyzes whether there is an electricity consumption risk. On the premise that there is an electricity consumption risk, a first purchase request corresponding to the electricity consumption risk is sent to the virtual power plant terminal. The virtual power plant terminal calculates the corresponding clearing result according to the first purchase request, enabling all parties in the electricity trading market to operate according to the clearing result, without manual participation, improving the operation efficiency and solving the electricity consumption risk problem in the system.

[0064] Please refer to Figure 2 , Figure 2 which is a schematic flow chart of a method for calculating the clearing result of power flexibility resources provided by the embodiment of the present application.

[0065] First of all, it should be noted that the method for calculating the clearing result of power flexibility resources is applied to the electricity market clearing system, which includes a virtual power plant terminal, a distribution network company terminal, and at least one aggregator terminal; among them, the first distribution network company terminal among multiple distribution network company terminals corresponds to the first aggregator terminal.

[0066] Exemplarily, please refer to Figure 3 , Figure 3 which is a schematic diagram of the corresponding relationship of each terminal provided by the embodiment of the present application. Among them, the electricity market clearing system includes one virtual power plant terminal, one virtual power plant terminal manages two distribution network company terminals (there may be more distribution network company terminals), and each distribution network company terminal manages different three aggregator terminals respectively.

[0067] Furthermore, please refer to Figure 4 , Figure 4 which is a schematic diagram of the management structure of the aggregator terminal provided by the embodiment of the present application. It can be seen that each aggregator terminal manages multiple (only three are taken as examples here) users. It should be noted that the users managed by the aggregator terminal are users who have both power generation capacity and electricity consumption capacity.

[0068] In the embodiment of the present application, the method for calculating the clearing result of power flexibility resources includes steps S201 - S206:

[0069] S201: The aggregator terminal generates first electricity quantity data and sends the first electricity quantity data to the distribution network company terminal.

[0070] Specifically, the aggregator terminal here is Figure 3 any one of the aggregator terminals shown. The first electricity quantity data includes the electricity consumption conditions of multiple users managed by the aggregator terminal during the target period. The first electricity quantity data is specifically an energy baseline.

[0071] S202: The distribution network company terminal receives the first power consumption data sent by the corresponding aggregator terminal, and analyzes whether there is an electricity consumption risk in the distribution network managed by the distribution network company terminal during the target period based on the first power consumption data.

[0072] Specifically, the distribution network company terminal is Figure 3 any one of the distribution network company terminals shown, and the corresponding aggregator terminal mentioned here is Figure 3 the aggregator terminal directly managed by the distribution network company terminal mentioned.

[0073] After obtaining the first power consumption data sent by the corresponding aggregator terminal, the distribution network company terminal can specifically determine whether there is an electricity consumption risk in the managed distribution network by means of threshold comparison (comparing the current total power consumption with the preset grid security capacity threshold, and determining that there is an electricity consumption risk if it exceeds the threshold), volatility calculation (evaluating the electricity consumption volatility based on the sliding window algorithm, and determining that there is an electricity consumption risk if the calculated volatility exceeds 10%), etc. The electricity consumption risks here specifically include network congestion risks, voltage deviation risks, system overload risks, etc.

[0074] Optionally, analyzing whether there is an electricity consumption risk in the distribution network managed by the distribution network company terminal based on the first power consumption data includes: the distribution network company terminal generates a load flow curve of the distribution network managed by the distribution network company terminal during the target period according to the first power consumption data; the distribution network company terminal determines whether there is an electricity consumption risk in the distribution network during the target period according to the load flow curve.

[0075] Specifically, after the distribution network company terminal receives the first power consumption data sent by the aggregator terminal (which may specifically include the power consumption of each user node, the output of distributed energy, and the state of energy storage equipment during the target period), it generates a load flow curve, and the load flow curve is used to characterize the load rate of the lines, the voltage amplitude of the nodes, and the power supply and demand relationship in the corresponding distribution network.

[0076] Based on the load flow curve of the distribution network managed by the distribution network company terminal, the distribution network company terminal makes an electricity consumption risk judgment. For example, if it is analyzed from the load flow curve that the power peak value of the distribution network exceeds 95% of the rated capacity, it is marked as an overload risk; if the voltage change curve of a certain node exceeds the range of ±5% of the rated voltage, it is marked as a voltage instability risk, etc.

[0077] It can be seen that in the embodiments of this application, by generating the corresponding load flow curve through the distribution network company terminal for electricity consumption risk analysis, only relying on data superposition and threshold comparison, there is no need to deploy a model on the distribution network company terminal, reducing the computing power requirement and improving the computing efficiency.

[0078] S203: If the terminal of the first distribution network company determines that there is a power consumption risk in the corresponding distribution network during the target period, the terminal of the first distribution network company generates a first purchase request and sends the first purchase request to the virtual power plant terminal.

[0079] Specifically, it should be noted that the terminal of the first distribution network company here belongs to Figure 3 the terminal of the distribution network company among the multiple distribution network companies described above that determines that there is a power consumption risk in the corresponding distribution network during the target period.

[0080] The first purchase request is used to request the purchase of the first power flexibility resource to increase or decrease the power consumption of the distribution network managed by the terminal of the distribution network company, or increase or decrease the power generation, so as to solve the power consumption risk problem here.

[0081] S204: The aggregator terminal generates a selling offer according to the first power quantity data and sends the selling offer to the virtual power plant terminal.

[0082] Specifically, the selling offer includes the second power flexibility resource that multiple users managed by the aggregator terminal can provide during the target period and the offer price of the second power flexibility resource.

[0083] Optionally, if the terminal of the first distribution network company determines that there is a power consumption risk in the corresponding distribution network during the target period, the method further includes: the terminal of the first distribution network company generates risk information corresponding to the power consumption risk, and the risk information includes the risk type of the power consumption risk; the terminal of the first distribution network company sends the risk information to at least one aggregator terminal; the aggregator terminal receives the risk information; generating a selling offer according to the first power quantity data includes: the aggregator terminal determines the third power flexibility resource that multiple users managed by the aggregator terminal can provide during the target period according to the first power quantity data; the aggregator terminal determines the second power flexibility resource from the third flexibility resource according to the risk type and generates a selling offer according to the second power flexibility resource.

[0084] Specifically, in the embodiment of the present application, when the terminal of the first distribution network company determines that there is a power consumption risk in the corresponding distribution network during the target period, it generates risk information corresponding to the power consumption risk, and the risk information includes the risk type of the power consumption risk. In addition, the risk information also includes information such as the risk location (such as line ID, node number) and the risk time window (such as 14:00 - 15:00).

[0085] The aggregator terminal receives the risk information, first extracts information such as the risk type, location, and time period, and matches the geographical distribution of the user resources managed by itself (such as screening 100 household users covered by line L - 102).

[0086] Based on the first electricity data (such as user baseline load and energy storage SOC status), the aggregator terminal calculates the third electricity flexibility resources that each user can provide during the target period (for example, household users can reduce air conditioning load by 0.5kW, and factories can delay starting 2kW equipment for 1 hour).

[0087] Finally, the aggregator terminal determines the second power flexibility resource and generates a quotation. For example, if the risk type is "overload risk", it screens the user resources that can reduce the power consumption of line L-102 and generates a corresponding quotation.

[0088] It can be seen that in the embodiment of the present application, flexibility resources are targeted and screened by risk type, so that the type of the second power flexibility resource in the sales quotation provided by the aggregator terminal corresponds to the type of current electricity consumption risk, which reduces the amount of data that the virtual power plant terminal needs to process and improves the calculation rate of the virtual power plant terminal.

[0089] S205: The virtual power plant terminal receives a plurality of first purchase requests sent by a plurality of first distribution network company terminals and a plurality of selling quotations sent by at least one aggregator terminal.

[0090] Specifically, the virtual power plant terminal here will accept multiple first purchase requests sent by multiple first distribution network company terminals, where each first distribution network company terminal is a distribution network company terminal whose corresponding distribution network has electricity consumption risks among the multiple distribution network company terminals in the power market clearing system.

[0091] The at least one aggregator terminal here is an aggregator terminal that can improve flexibility resources among multiple aggregator terminals in the electricity market clearing system.

[0092] S206: The virtual power plant terminal determines the result of clearing the power flexibility resources within the target period according to the multiple first purchase requests and the multiple selling quotations.

[0093] Specifically, after receiving multiple first purchase requests and multiple selling quotations, the virtual power plant terminal facilitates transactions between the providers of multiple first purchase requests and multiple selling quotations based on the principles of lowest cost and closest distance between the two parties to the transaction, thereby obtaining the result of clearing electricity flexibility resources within the target period.

[0094] Optionally, if the current moment is in the first time period, the power flexibility resource clearing result is determined based on multiple first purchase requests and multiple sales quotations, including: a virtual power plant terminal, calculating multiple first clearing results based on the multiple first purchase requests and multiple sales quotations under the premise of maximizing the total net profit, the multiple first clearing results correspond to the multiple first purchase requests, and the first time period is before the target time period; the virtual power plant terminal, determining the multiple first clearing results as the power flexibility resource clearing result within the target time period.

[0095] Specifically, the current moment is in the first time period, specifically referring to that the clearing of power flexibility resources within the current target time period belongs to day-ahead scheduling.

[0096] In the embodiment of the present application, market clearing is carried out on the premise of maximizing the total net profit. Specifically, the clearing result of power flexibility resources within the target time period is calculated by the following formulas (1), (2), and (3):

[0097]

[0098] Where: LFM operator corresponds to the virtual power plant, DSO is the distribution network company, and Aggregator is the aggregator; S t is the total net profit of the LFM in the power market; P t is the cost of the distribution network company purchasing flexibility resources, which is determined by the first purchase request sent by the distribution network company; V t is the economic value of clearing flexibility in the LFM, that is, the actual income of the aggregator providing the cleared flexibility in the LFM, and the actual cost of the distribution network company obtaining the cleared flexibility in the LFM; D t is the total cost of the aggregator providing flexibility supply, which is determined by the selling offer sent by the aggregator; a is used as an index to refer to the aggregator. If a distribution network company purchases flexibility from a group of aggregators Ω A then a ∈ Ω A .

[0099] After equation cancellation, the following formula (2) can be obtained:

[0100] S t = P t - D t (2)

[0101] It should be noted that the virtual power plant operator is an independent non-profit entity in the local flexibility market. Therefore, its income is recorded as 0, and the day-ahead scheduling is based on the maximization of social welfare. Therefore, the objective function is the following formula (3):

[0102]

[0103] Where: refers to the cost of the day-ahead distribution network purchasing flexibility demand at time node t; refers to the cost of the day-ahead aggregator providing flexibility supply at time node t; t is used as an index to refer to the time node. Considering that the time range of the day-ahead scheduling covering 24 hours, then t ∈ Ω t ; S da refers to the total social welfare of the day-ahead scheduling in the local flexible market; β d is defined as a binary variable (0, 1) related to whether the purchase request of the distribution network company is accepted or rejected; Defined as aggregator \(a\in\Omega\) A (where ) the flexibility curve of the quadratic variable \((0, 1)\) that is accepted or rejected.

[0104] The optimization objective of this optimization function is to determine the combination of all flexibility curves provided by the aggregator in order to maximize the social welfare within the scheduling time range. Where is not a function of time, which means that the curve provided by each aggregator needs to include the amount of flexibility and price at each time point. By solving the problem of maximizing the overall social welfare at all time nodes, the final complete flexibility curve (i.e., the clearing result of power flexibility resources within the target period) is determined.

[0105] The constraint conditions are as follows in equations (4)-(5):

[0106]

[0107] Wherein: is defined as the amount of flexibility provided by the \(a\)-th aggregator to the virtual power plant operator at the \(t\)-th time node in the \(p\)-th flexibility curve provided in the day-ahead market, and a is defined as the price corresponding to the provided flexibility; is defined as the price corresponding to the provided flexibility; and \(\rho\) d,da respectively represent the amount of flexibility and the corresponding price corresponding to different time nodes \(t\) in the single flexibility demand curve of the distribution network company \(d\).

[0108]

[0109] The inequality constraint condition enforces that the net flexibility obtained from the aggregator needs to be greater than or equal to the flexibility requested by the distribution network company for each time node.

[0110] It can be seen that in the embodiment of the present application, by determining the clearing result of power flexibility resources within the target period on the premise of maximizing the total net profit, while ensuring the stable operation of the distribution network, the maximum benefits of all parties participating in the power market are also guaranteed.

[0111] Optionally, the method further includes: the virtual power plant terminal generates first transaction information of multiple first clearing results respectively, and sends the first transaction information to the corresponding aggregator terminal and the corresponding distribution network company terminal; the aggregator terminal receives the first transaction information and generates at least one second transaction information according to the first transaction information, and the second transaction information corresponds to the users managed by the distribution network company terminal one by one; the aggregator terminal sends the second transaction information to the corresponding user terminal so that the user terminal reaches a transaction reservation with the corresponding distribution network company terminal.

[0112] Specifically, after obtaining the clearing result of power flexibility resources within the target period, the virtual power plant terminal also needs to inform the relevant trading parties of the corresponding clearing result.

[0113] The virtual power plant terminal encapsulates the first clearing result (such as calling for 30 kW of energy storage discharge and reducing 20 kW of adjustable load, etc.) into an independent first trading information, which includes resource type, calling period, trading price, and responsible party identification, and then pushes the first trading information to the corresponding aggregator terminal and distribution network company terminal.

[0114] After receiving the first trading information, the aggregator terminal analyzes the resource type and period in the first trading information, and according to the user's geographical location (such as node N-05 managed by the distribution network company) and flexibility agreement (such as the maximum adjustment amount allowed by the user contract), splits the first trading information into second trading information corresponding to each user one by one, thus achieving a trading reservation.

[0115] It can be seen that in the embodiment of the present application, by separately generating the first trading information and the second trading information of multiple first clearing results, the realization from market clearing to user-level trading reservation is achieved, reducing manual intervention and improving processing efficiency.

[0116] Embodiment 2:

[0117] The above application embodiment describes a calculation method for the clearing result of power flexibility resources involving aggregator terminals and distribution network company terminals. On the premise that the power selling company terminal participates, the embodiment of the present application also provides a more detailed calculation method for the clearing result of power flexibility resources. Please refer to Figure 5 , Figure 5 which is a schematic flowchart of the second calculation method for the clearing result of power flexibility resources provided by the embodiment of the present application, including steps S501 - S508:

[0118] S501: The aggregator terminal generates first power data and sends the first power data to the distribution network company terminal.

[0119] S502: The distribution network company terminal receives the first power data sent by the corresponding aggregator terminal and analyzes whether there is a power consumption risk in the distribution network managed by the distribution network company terminal during the target period according to the first power data.

[0120] S503: If the first distribution network company terminal determines that there is a power consumption risk in the corresponding distribution network during the target period, the first distribution network company terminal generates a first purchase request and sends the first purchase request to the virtual power plant terminal.

[0121] S504: The aggregator terminal generates a selling offer according to the first power data and sends the selling offer to the virtual power plant terminal.

[0122] For the detailed description of steps S501 - S504, please refer to the relevant description of steps S201 - S204, which will not be elaborated here.

[0123] S505: The first power selling company terminal generates a second purchase request and sends the second purchase request to the virtual power plant terminal.

[0124] Specifically, please refer to Figure 6 , Figure 6 FIG. 0 is a schematic structural diagram of a power market clearing system including a power selling company terminal provided by an embodiment of the present application. Among them, the power selling company terminal is directly connected to the virtual power plant terminal. The power selling company terminal manages users without the ability to generate flexible resources. That is to say, the power selling company and the users managed by the power selling company do not provide flexible resources.

[0125] If the users managed by the power selling company terminal (i.e., the first power selling company terminal) have flexible resource requirements, the power selling company terminal will generate a second purchase request during the intraday scheduling phase (i.e., the second time period, and the second time period is between the first time period and the target time period).

[0126] The second purchase request here is used to request the purchase of the fourth power flexibility resource to increase or decrease the power consumption of the distribution network corresponding to the power selling company terminal, or increase or decrease the power generation. Thus, the flexible resource requirements of the users managed by the first power selling company terminal are solved.

[0127] In addition, it should be noted that the first power selling company terminal here is the power selling company terminal that generates the second purchase request among the multiple power selling company terminals of the power market clearing system.

[0128] S506: The virtual power plant terminal receives multiple first purchase requests sent by multiple first distribution network company terminals, multiple selling offers sent by at least one aggregator terminal, and multiple second purchase requests sent by the first power selling company terminal.

[0129] S507: The virtual power plant terminal calculates multiple first clearing results and multiple second clearing results on the premise of maximizing the total net profit according to the multiple first purchase requests, multiple selling offers, and multiple second purchase requests.

[0130] Specifically, the multiple first clearing results correspond to the multiple first purchase requests, and the multiple second clearing results correspond to the multiple second purchase requests. In the embodiment of the present application, the power flexibility resource clearing results within the target time period include the first clearing results and the second clearing results that meet the first purchase requests. Similar to Embodiment 1, the virtual power plant terminal here will calculate multiple first clearing results corresponding to the multiple first purchase requests and multiple second clearing results corresponding to the multiple second purchase requests on the premise of maximizing the total net profit to simultaneously solve the power consumption risk in the system and the power flexibility resource requirements of the power selling company.

[0131] S508: The virtual power plant terminal uses multiple first clearing results and multiple second clearing results as the clearing results of power flexibility resources within the target period.

[0132] It can be seen that in the embodiment of the present application, by determining the clearing results of power flexibility resources within the target period on the premise of maximizing the total net profit, while ensuring the stable operation of the distribution network and the flexibility resource requirements of the electricity selling company, it also guarantees the maximum benefits of all parties participating in the power market.

[0133] Embodiment Three:

[0134] The above application embodiment describes a calculation method for the clearing results of power flexibility resources based on the purchase requests proposed by the distribution network company terminal and the electricity selling company terminal. Based on this, on the premise that the aggregator terminal can also propose purchase requests, the embodiment of the present application also provides a more detailed calculation method for the clearing results of power flexibility resources. Please refer to Figure 7 , Figure 7 which is a schematic flowchart of the third calculation method for the clearing results of power flexibility resources provided by the embodiment of the present application, including steps S701 - S708:

[0135] S701: The aggregator terminal generates first electricity quantity data and sends the first electricity quantity data to the distribution network company terminal.

[0136] S702: The distribution network company terminal receives the first electricity quantity data sent by the corresponding aggregator terminal and analyzes whether there is an electricity consumption risk in the distribution network managed by the distribution network company terminal within the target period according to the first electricity quantity data.

[0137] S703: If the first distribution network company terminal determines that there is an electricity consumption risk in the corresponding distribution network within the target period, the first distribution network company terminal generates a first purchase request and sends the first purchase request to the virtual power plant terminal.

[0138] S704: The aggregator terminal generates a selling offer according to the first electricity quantity data and sends the selling offer to the virtual power plant terminal.

[0139] For the detailed description of steps S701 - S704, please refer to the relevant description of steps S201 - S204, which will not be repeated here.

[0140] S705: The first aggregator terminal generates a third purchase request and sends the third purchase request to the virtual power plant terminal.

[0141] Specifically, the third purchase request is used to request the purchase of the fifth power flexibility resource to increase or decrease the electricity consumption of the distribution network corresponding to the first aggregator terminal, or increase or decrease the power generation.

[0142] In addition, it should be noted that since this stage belongs to intraday scheduling, the first aggregator terminal first serves the aggregator terminals that have reached transaction reservations with the corresponding distribution network company terminals during the day-ahead scheduling stage. And after the end of the first time period, for the first aggregator that cannot fully fulfill the transaction reservations reached during the first time period, the first aggregator here generates a third purchase request to purchase the fifth power flexibility resource from other first aggregators. The fifth power flexibility resource is used to fulfill the transaction reservations that the first aggregator terminal cannot fully fulfill during the first time period.

[0143] S706: The virtual power plant terminal receives multiple first purchase requests sent by multiple first distribution network company terminals, multiple selling offers sent by at least one aggregator terminal, and multiple third purchase requests sent by the first aggregator terminal.

[0144] S707: The virtual power plant terminal calculates multiple first clearing results and multiple third clearing results on the premise of maximizing the total net profit according to the multiple first purchase requests, multiple selling offers, and multiple third purchase requests.

[0145] Specifically, the multiple first clearing results correspond to the multiple first purchase requests, and the multiple third clearing results correspond to the multiple third purchase requests. In the embodiments of the present application, the clearing results of power flexibility resources within the target time period include the first clearing results and the third clearing results that meet the first purchase requests. Similar to Embodiment 1 and Embodiment 2, the virtual power plant terminal here will calculate multiple first clearing results corresponding to the multiple first purchase requests and multiple third clearing results corresponding to the multiple third purchase requests on the premise of maximizing the total net profit, so as to simultaneously solve the electricity consumption risk in the system and the power flexibility resource requirements of the first aggregator terminal.

[0146] S708: The virtual power plant terminal determines the multiple first clearing results and the multiple third clearing results as the clearing results of power flexibility resources within the target time period.

[0147] It can be seen that in the embodiments of the present application, by determining the clearing results of power flexibility resources within the target time period on the premise of maximizing the total net profit, while ensuring the stable operation of the distribution network and the flexibility resource requirements of the aggregator terminal, it also guarantees the maximum benefits of all parties participating in the power market.

[0148] Embodiment 4:

[0149] The above application embodiments describe a method for calculating the clearing results of power flexibility resources based on purchase requests proposed by distribution network company terminals, electricity selling company terminals, or first aggregator terminals. Based on this, on the premise that both the electricity selling company terminal and the first aggregator terminal propose purchase requests, the embodiments of the present application further provide a more detailed method for calculating the clearing results of power flexibility resources, including the following steps S1 - S9:

[0150] S1: The aggregator terminal generates first electricity quantity data and sends the first electricity quantity data to the distribution network company terminal.

[0151] S2: The distribution network company terminal receives the first electricity quantity data sent by the corresponding aggregator terminal and analyzes whether there is an electricity consumption risk in the distribution network managed by the distribution network company terminal during the target period according to the first electricity quantity data.

[0152] S3: If the first distribution network company terminal determines that there is an electricity consumption risk in the corresponding distribution network during the target period, the first distribution network company terminal generates a first purchase request and sends the first purchase request to the virtual power plant terminal.

[0153] S4: The aggregator terminal generates a selling offer according to the first electricity quantity data and sends the selling offer to the virtual power plant terminal.

[0154] S5: The first electricity sales company terminal generates a second purchase request and sends the second purchase request to the virtual power plant terminal.

[0155] S6: The first aggregator terminal generates a third purchase request and sends the third purchase request to the virtual power plant terminal.

[0156] S7: The virtual power plant terminal receives multiple first purchase requests sent by multiple first distribution network company terminals, multiple selling offers sent by at least one aggregator terminal, multiple second purchase requests sent by the first electricity sales company terminal, and multiple third purchase requests sent by the first aggregator terminal.

[0157] For the detailed descriptions of steps S1 - S7, please refer to the relevant content in Embodiment 1, Embodiment 2, and Embodiment 3, which will not be elaborated here.

[0158] S8: The virtual power plant terminal calculates multiple first clearing results, multiple second clearing results, and multiple third clearing results on the premise of maximizing the total net profit according to multiple first purchase requests, multiple selling offers, multiple second purchase requests, and multiple third purchase requests.

[0159] Specifically, in the embodiment of the present application, it mainly describes the clearing result calculation method when there are first purchase requests, second purchase requests, and third purchase requests simultaneously during the internal day scheduling stage (that is, the current moment is within the second period), and the calculation process satisfies the following formulas (6) - (15):

[0160]

[0161] Where: and It is defined as the set of aggregators that have flexibility in opposite and same directions for the distribution network company (where the opposite direction is that the aggregator or electricity retailer purchases flexibility resources from the aggregator, and the same direction is that the distribution network company purchases flexibility resources from the aggregator). In addition, electricity retailers can also participate in intraday scheduling. It is defined as the index set of all electricity retailers participating in the market and is split into where and are respectively defined as the index sets of electricity retailers with flexibility resource demands in opposite or similar directions to the distribution network company. S id represents the total net profit of intraday scheduling in the local flexible market, including the net profits in the same direction S id,s and the opposite direction S id,o .

[0162]

[0163] Where: and respectively represent the costs of the distribution network purchasing reverse and same-direction flexibility demands at time node t in the intraday market (specifically determined through the first purchase request, the second purchase request, and the third purchase request); and respectively represent the costs of the aggregator providing reverse and same-direction flexibility supplies to the distribution network at time node t in the intraday market (specifically determined through the selling quotes).

[0164]

[0165] Where: and (where ) are respectively defined as the binary variables (0, 1) indicating whether the reverse and forward flexibility resources of the electricity retailer are accepted or rejected; is defined as the cost corresponding to the pth flexibility curve of different market entities k in different directions r. This cost is calculated by multiplying the flexibility price of the corresponding curve and the flexibility quantity . Among them, market entity k includes aggregators, electricity retailers, and distribution network companies, which are represented by a, b, and d respectively. The flexibility trading directions r include reverse and forward, which are represented by o and s respectively. Therefore can respectively represent the and of the electricity retailer and as well as the of the distribution network company (the distribution network company has only one flexibility demand curve). These five costs.

[0166] The inequality constraint stipulates that if any requests in the opposite direction are made or accepted, the total amount of flexibility purchased from the aggregator must be greater than or equal to the total amount of flexibility requested by the electricity selling company, because the direct impact of the reverse clearing market is that the amount of flexibility provided by the aggregator cleared and executed in the market will further exacerbate the system problems of the distribution network company.

[0167] Therefore, the total flexibility constraint between the aggregator and the electricity selling company is expressed as:

[0168]

[0169] In addition, to ensure meeting the flexibility requirements of the distribution network system, the inequality constraint needs to enforce that the flexibility purchased from the aggregator in the positive direction needs to be equal to or greater than the flexibility initially required by the distribution network company, plus the additional flexibility superimposed to compensate for reverse transactions. The specific constraint is expressed as:

[0170]

[0171] S9: The virtual power plant terminal determines multiple first clearing results, multiple second clearing results, and multiple third clearing results as the clearing results of power flexibility resources within the target time period.

[0172] It can be seen that by implementing the method in the above application embodiments of the present application, the virtual power plant terminal conducts market clearing through the first purchase request, the second purchase request, and the third purchase request. While facilitating power-related resource transactions among market participants, it solves the power consumption risks generated during the operation of the power system, meets the flexibility resource requirements of the electricity selling company terminal and the aggregator terminal, and also ensures the maximum benefits of all parties participating in the power market. By screening flexibility resources according to risk types, the computing speed of the virtual power plant terminal is improved. By generating the corresponding load flow curve through the distribution network company terminal for power consumption risk analysis, the computing power requirement is reduced and the computing efficiency is improved. It realizes from market clearing to user-level transaction reservation, reduces manual intervention, and improves the processing efficiency.

[0173] Based on the description of the above configuration method embodiments, the present application further provides a power flexibility resource clearing result calculation device 800. The power flexibility resource clearing result calculation device 800 can be a computer program (including program code) running in Figure 1 the application scenario shown. The power flexibility resource clearing result calculation device 800 can be applied to Figure 1 the application scenario shown and execute Figure 2 、 Figure 5 or Figure 7 the methods shown. Please refer to Figure 8 , Figure 8The figure is a schematic structural diagram of a power flexibility resource clearing result calculation device provided by an embodiment of the present application. The device includes:

[0174] A generating unit 801, configured to generate first power consumption data and send the first power consumption data to a distribution network company terminal. The first power consumption data includes the power consumption conditions of multiple users managed by an aggregator terminal during a target period.

[0175] A receiving unit 802, configured to receive the first power consumption data sent by the corresponding aggregator terminal, and analyze whether there is a power consumption risk in the distribution network managed by the distribution network company terminal during the target period according to the first power consumption data.

[0176] The generating unit 801, if the terminal determines that there is a power consumption risk in the corresponding distribution network during the target period, is configured to generate a first purchase request and send the first purchase request to a virtual power plant terminal. The first purchase request is used to request to purchase first power flexibility resources to increase or decrease the power consumption of the distribution network managed by the distribution network company terminal, or increase or decrease the power generation.

[0177] The generating unit 801, configured to generate a selling offer according to the first power consumption data and send the selling offer to the virtual power plant terminal. The selling offer includes the second power flexibility resources that multiple users managed by the aggregator terminal can provide during the target period and the offer price of the second power flexibility resources.

[0178] The receiving unit 802, for the virtual power plant terminal, receives multiple first purchase requests sent by multiple first distribution network company terminals and multiple selling offers sent by at least one aggregator terminal.

[0179] A determining unit 803, configured to determine the clearing result of power flexibility resources during the target period according to the multiple first purchase requests and the multiple selling offers.

[0180] In a possible embodiment, if the current moment is in the first period, in terms of determining the clearing result of power flexibility resources according to the multiple first purchase requests and the multiple selling offers, the determining unit 803 is further specifically configured to: calculate multiple first clearing results on the premise of the maximum total net profit according to the multiple first purchase requests and the multiple selling offers. The multiple first clearing results correspond to the multiple first purchase requests. The first period is before the target period; determine the multiple first clearing results as the clearing result of power flexibility resources during the target period.

[0181] In a possible embodiment, if the first distribution network company terminal determines that there is an electricity consumption risk in the corresponding distribution network during the target period, the generating unit 801 is further specifically configured to: generate risk information corresponding to the electricity consumption risk, where the risk information includes the risk type of the electricity consumption risk; send the risk information to at least one aggregator terminal; the aggregator terminal receives the risk information; generate a selling offer according to the first electricity quantity data, including: determining the third power flexibility resources that can be provided by multiple users managed by the aggregator terminal during the target period according to the first electricity quantity data; determining the second power flexibility resources from the third flexibility resources according to the risk type, and generating a selling offer according to the second power flexibility resources.

[0182] In a possible embodiment, in terms of analyzing whether there is an electricity consumption risk in the distribution network managed by the distribution network company terminal according to the first electricity quantity data, the generating unit 801 is further specifically configured to: generate a load flow curve of the distribution network managed by the distribution network company terminal during the target period according to the first electricity quantity data; determine whether there is an electricity consumption risk in the distribution network during the target period according to the load flow curve.

[0183] In a possible embodiment, the generating unit 801 is further specifically configured to: respectively generate first transaction information of multiple first clearing results, and send the first transaction information to the corresponding aggregator terminal and the corresponding distribution network company terminal; receive the first transaction information and generate at least one second transaction information according to the first transaction information, where the second transaction information corresponds to the users managed by the distribution network company terminal one by one; send the second transaction information to the corresponding user terminal so that the user terminal and the corresponding distribution network company terminal reach a transaction reservation.

[0184] In a possible embodiment, the electricity market clearing system further includes multiple electricity sales company terminals. If the current moment is in the second period, and the second period is between the first period and the target period, the generating unit 801 is further specifically configured to: generate a second purchase request and send the second purchase request to the virtual power plant terminal, where the second purchase request is used to request to purchase the fourth power flexibility resources to increase or decrease the electricity consumption of the distribution network corresponding to the electricity sales company terminal, or increase or decrease the power generation; receive multiple second purchase requests sent by the first electricity sales company terminal; determine the clearing result of the power flexibility resources during the target period according to the multiple first purchase requests and the multiple selling offers, including: calculating multiple first clearing results and multiple second clearing results on the premise of maximizing the total net profit according to the multiple first purchase requests, the multiple selling offers and the multiple second purchase requests, where the multiple first clearing results correspond to the multiple first purchase requests, and the multiple second clearing results correspond to the multiple second purchase requests; use the multiple first clearing results and the multiple second clearing results as the clearing result of the power flexibility resources during the target period.

[0185] In a possible embodiment, if the current time is in the second period, where the second period is between the first period and the target period, the generating unit 801 is further specifically configured to: generate a third purchase request and send the third purchase request to the virtual power plant terminal, where the third purchase request is used to request the purchase of the fifth power flexibility resource to increase or decrease the power consumption of the distribution network corresponding to the first aggregator terminal or increase or decrease the power generation amount; the virtual power plant terminal receives a plurality of third purchase requests sent by the first aggregator terminal; and determines the clearing result of the power flexibility resource within the target period according to the plurality of first purchase requests and the plurality of selling quotes, including: calculating a plurality of first clearing results and a plurality of third clearing results on the premise of maximizing the total net profit according to the plurality of first purchase requests, the plurality of selling quotes, and the plurality of third purchase requests, where the plurality of first clearing results correspond to the plurality of first purchase requests, and the plurality of third clearing results correspond to the plurality of third purchase requests; and determining the plurality of first clearing results and the plurality of third clearing results as the clearing result of the power flexibility resource within the target period.

[0186] Based on the description of the above method embodiments and apparatus embodiments, please refer to Figure 9 , Figure 9 which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Figure 9 The shown electronic device 900 (the electronic device 900 may specifically be a computer device) includes a memory 901, a processor 902, a communication interface 903, and a bus 904. Among them, the memory 901, the processor 902, and the communication interface 903 are communicatively connected to each other through the bus 904.

[0187] The memory 901 may be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).

[0188] The memory 901 may store a program. When the program code stored in the memory 901 is executed by the processor 902, the processor 902 and the communication interface 903 are used to execute each step of the power flexibility resource clearing result calculation method of the embodiment of the present application.

[0189] The processor 902 may be a general-purpose central processing unit (CPU), a microcontroller, an application specific integrated circuit (ASIC), a graphics processing unit (GPU), or one or more integrated circuits, which is used to execute relevant programs to implement the functions required by the units in the electronic device 900 in the embodiments of the present application, or to execute the power flexibility resource clearing result calculation method in the method embodiments of the present application.

[0190] The processor 902 may also be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the power flexibility resource clearing result calculation method of the present application may be completed by the integrated logic circuit in the hardware of the processor 902 or the instructions in the form of software. The above-mentioned processor 902 may also be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microcontroller or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as being executed and completed by the hardware decoding processor, or executed and completed by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 901, and the processor 902 reads the information in the memory 901 and combines its hardware to complete the functions required by the units included in the electronic device 900 in the embodiments of the present application, or to execute the power flexibility resource clearing result calculation method in the method embodiments of the present application.

[0191] The communication interface 903 uses a transceiver device such as, but not limited to, a transceiver to implement the communication between the electronic device 900 and other devices or communication networks. For example, data may be obtained through the communication interface 903.

[0192] The bus 904 may include a path for transmitting information between various components of the electronic device 900 (for example, the memory 901, the processor 902, the communication interface 903).

[0193] It should be noted that although Figure 9The illustrated electronic device 900 only shows a memory 901, a processor 902, and a communication interface 903. However, in the specific implementation process, those skilled in the art should understand that the electronic device 900 also includes other devices necessary for normal operation. At the same time, according to specific needs, those skilled in the art should understand that the electronic device 900 may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the electronic device 900 may also only include the devices necessary for implementing the embodiments of the present application, and do not have to include Figure 9 all the devices shown in

[0194] An embodiment of the present application also provides a chip, which includes a processor and a data interface. The processor reads instructions stored on a memory through the data interface to implement the above-mentioned power flexibility resource clearing result calculation method.

[0195] Optionally, as an implementation manner, the chip may further include a memory, and instructions are stored in the memory. The processor is configured to execute the instructions stored on the memory. When the instructions are executed, the processor is configured to execute the above-mentioned power flexibility resource clearing result calculation method.

[0196] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When it runs on a computer or a processor, it causes the computer or the processor to execute one or more steps in any of the above methods.

[0197] An embodiment of the present application also provides a computer program product containing instructions. When the computer program product runs on a computer or a processor, it causes the computer or the processor to execute one or more steps in any of the above methods.

[0198] Those skilled in the art will appreciate that the functions described in connection with the various illustrative logical blocks, modules, and algorithm steps disclosed herein can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions described in the various illustrative logical blocks, modules, and steps can be stored or transmitted as one or more instructions or code on a computer-readable medium and executed by a hardware-based processing unit. The computer-readable medium can include a computer-readable storage medium corresponding to a tangible medium such as a data storage medium, or a communication medium that includes any medium that facilitates transfer of a computer program from one place to another (e.g., based on a communication protocol). In this way, the computer-readable medium generally can correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. The data storage medium can be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, code, and / or data structures for implementing the techniques described in this application. A computer program product can include a computer-readable medium.

[0199] By way of example, and not limitation, such computer-readable storage media can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed a computer-readable medium. For example, if instructions are transmitted using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. However, it should be understood that the computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transient media, but rather are directed to non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), and Blu-ray disc, where disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0200] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microcontrollers, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Thus, as used herein, the term “processor” may refer to any one of the foregoing structures or any other structure suitable for implementing the techniques described herein. Additionally, in some aspects, the functions described for the various illustrative logical blocks, modules, and steps described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. Moreover, the techniques may be implemented entirely in one or more circuits or logic elements.

[0201] The techniques of this application may be implemented in a variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or a group of ICs (e.g., a chipset). The various components, modules, or units described in this application are described to emphasize functional aspects of the devices for performing the disclosed techniques, but need not be implemented by different hardware units. In fact, as described above, the various units may be combined in an encoding hardware unit with suitable software and / or firmware, or provided by interoperating hardware units, including one or more processors as described above.

[0202] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding step processes in the foregoing method embodiments, and will not be elaborated herein.

[0203] It should be understood that in the description of this application, unless otherwise specified, " / " means that the objects associated before and after are in an "or" relationship. For example, A / B can represent A or B; where A and B can be singular or plural. Also, in the description of this application, unless otherwise specified, "a plurality of" means two or more than two. "At least one (item)" or its similar expression refers to any combination of these items, including any combination of single item (s) or plural items (s). For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, and c can be single or multiple. Additionally, for the convenience of clearly describing the technical solutions of the embodiments of this application, in the embodiments of this application, terms such as "first" and "second" are used to distinguish identical items or similar items with basically the same functions and roles. Those skilled in the art can understand that terms such as "first" and "second" do not limit the quantity and execution order, and terms such as "first" and "second" do not necessarily mean different. At the same time, in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner for easy understanding.

[0204] In several embodiments provided by this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the division of the unit is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The displayed or discussed couplings, direct couplings, or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.

[0205] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0206] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that the computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a read-only memory (ROM), a random access memory (RAM), a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape, a magnetic disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state disk (SSD), etc.

[0207] As described above, this is only the specific implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be subject to the protection scope of the claims.

[0208] The device embodiments described above are merely illustrative. The units and modules described as separate components may or may not be physically separated. Additionally, some or all of the units and modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative efforts.

[0209] The above description is only the specific implementation manner of the present application. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A method for calculating the clearing result of power flexibility resources, characterized in that Applied to the power market clearing system, the power market clearing system includes a virtual power plant terminal, a distribution network company terminal, and at least one aggregator terminal; wherein, the first distribution network company terminal among the multiple distribution network company terminals corresponds to the first aggregator terminal, and the method includes: The aggregator terminal generates first electricity quantity data and sends the first electricity quantity data to the distribution network company terminal. The first electricity quantity data includes the electricity consumption situations of multiple users managed by the aggregator terminal during the target period. The distribution network company terminal receives the first electricity quantity data sent by the corresponding aggregator terminal and analyzes whether there is an electricity consumption risk in the distribution network managed by the distribution network company terminal during the target period according to the first electricity quantity data. If the first distribution network company terminal determines that there is an electricity consumption risk in the corresponding distribution network during the target period, the first distribution network company terminal generates a first purchase request and sends the first purchase request to the virtual power plant terminal. The first purchase request is used to request the purchase of the first power flexibility resource to increase or decrease the electricity consumption of the distribution network managed by the distribution network company terminal, or increase or decrease the power generation. The aggregator terminal generates a selling offer according to the first electricity quantity data and sends the selling offer to the virtual power plant terminal. The selling offer includes the second power flexibility resources that multiple users managed by the aggregator terminal can provide during the target period and the quotes of the second power flexibility resources. The virtual power plant terminal receives multiple first purchase requests sent by the multiple first distribution network company terminals and multiple selling offers sent by the at least one aggregator terminal. The virtual power plant terminal determines the clearing result of the power flexibility resources during the target period according to the multiple first purchase requests and the multiple selling offers.

2. The method according to claim 1, wherein If the current moment is in the first period, the determining the clearing result of the power flexibility resources according to the multiple first purchase requests and the multiple selling offers includes: The virtual power plant terminal calculates multiple first clearing results on the premise of the maximum total net profit according to the multiple first purchase requests and the multiple selling offers. The multiple first clearing results correspond to the multiple first purchase requests, and the first period is before the target period. The virtual power plant terminal determines the multiple first clearing results as the clearing result of the power flexibility resources during the target period.

3. The method according to claim 1, wherein If the first distribution network company terminal determines that there is an electricity consumption risk in the corresponding distribution network during the target period, the method further includes: The first distribution network company terminal generates risk information corresponding to the electricity consumption risk. The risk information includes the risk type of the electricity consumption risk. The first distribution network company terminal sends the risk information to the at least one aggregator terminal. The aggregator terminal receives the risk information. The generating the selling offer according to the first electricity quantity data includes: The aggregator terminal determines the third power flexibility resources that multiple users managed by the aggregator terminal can provide during the target period according to the first electricity quantity data. The aggregator terminal determines the second power flexibility resource from the third flexibility resource according to the risk type, and generates the selling offer according to the second power flexibility resource.

4. The method according to claim 1, characterized in that, The determination of whether there is an electricity consumption risk in the distribution network managed by the distribution network company terminal according to the first electricity quantity data includes: The distribution network company terminal generates a load flow curve of the distribution network managed by the distribution network company terminal in the target period according to the first electricity quantity data; The distribution network company terminal determines whether there is an electricity consumption risk in the distribution network in the target period according to the load flow curve.

5. The method according to claim 1, wherein The method further includes: The virtual power plant terminal respectively generates first transaction information of the plurality of first clearing results, and sends the first transaction information to the corresponding aggregator terminal and the corresponding distribution network company terminal; The aggregator terminal receives the first transaction information and generates at least one second transaction information according to the first transaction information, and the second transaction information corresponds to the users managed by the distribution network company terminal one by one; The aggregator terminal sends the second transaction information to the corresponding user terminal, so that the user terminal reaches a transaction reservation with the corresponding distribution network company terminal.

6. The method according to any one of claims 2-5, characterized in that, The electricity market clearing system further includes a plurality of electricity sales company terminals. If the current time is in the second period, and the second period is between the first period and the target period, the method further includes: The first electricity sales company terminal generates a second purchase request and sends the second purchase request to the virtual power plant terminal, and the second purchase request is used to request to purchase the fourth power flexibility resource to increase or decrease the electricity consumption of the distribution network corresponding to the electricity sales company terminal, or increase or decrease the power generation; The virtual power plant terminal receives the plurality of second purchase requests sent by the first electricity sales company terminal; The determination of the clearing result of the power flexibility resource in the target period according to the plurality of first purchase requests and the plurality of selling offers includes: The virtual power plant terminal calculates a plurality of first clearing results and a plurality of second clearing results on the premise of maximizing the total net profit according to the plurality of first purchase requests, the plurality of selling offers and the plurality of second purchase requests. The plurality of first clearing results correspond to the plurality of first purchase requests, and the plurality of second clearing results correspond to the plurality of second purchase requests; The virtual power plant terminal takes the plurality of first clearing results and the plurality of second clearing results as the clearing result of the power flexibility resource in the target period.

7. The method according to any one of claims 2-5, characterized in that, If the current time is in the second period, and the second period is between the first period and the target period, the method further includes: The first aggregator terminal generates a third purchase request and sends the third purchase request to the virtual power plant terminal, and the third purchase request is used to request to purchase the fifth power flexibility resource to increase or decrease the electricity consumption of the distribution network corresponding to the first aggregator terminal, or increase or decrease the power generation; The virtual power plant terminal receives the plurality of third purchase requests sent by the first aggregator terminal; Determining the clearing result of power flexibility resources within a target period according to the multiple first purchase requests and the multiple selling offers includes: The virtual power plant terminal calculates multiple first clearing results and multiple third clearing results on the premise of maximizing the total net profit according to the multiple first purchase requests, the multiple selling offers and the multiple third purchase requests. The multiple first clearing results correspond to the multiple first purchase requests, and the multiple third clearing results correspond to the multiple third purchase requests; The virtual power plant terminal determines the multiple first clearing results and the multiple third clearing results as the clearing result of power flexibility resources within the target period.

8. A calculation device for the clearing result of power flexibility resources, characterized in that, For executing the method for calculating the clearing result of power flexibility resources, the device belongs to the system for calculating the clearing result of power flexibility resources, and the device includes: A generating unit, configured to generate first power data and send the first power data to the distribution network company terminal. The first power data includes the power consumption conditions of multiple users managed by the aggregator terminal within a target period; A receiving unit, configured to receive the first power data sent by the corresponding aggregator terminal and analyze whether there is a power consumption risk in the distribution network managed by the distribution network company terminal within the target period according to the first power data; A generating unit, configured to generate a first purchase request and send the first purchase request to the virtual power plant terminal if it is determined that there is a power consumption risk in the corresponding distribution network within the target period. The first purchase request is used to request the purchase of first power flexibility resources to increase or decrease the power consumption of the distribution network managed by the distribution network company terminal, or increase or decrease the power generation; A generating unit, configured to generate a selling offer according to the first power data and send the selling offer to the virtual power plant terminal. The selling offer includes the second power flexibility resources that multiple users managed by the aggregator terminal can provide within a target period and the offer price of the second power flexibility resources; A receiving unit, for the virtual power plant terminal, to receive multiple first purchase requests sent by the multiple first distribution network company terminals and multiple selling offers sent by the at least one aggregator terminal; A determining unit, configured to determine the clearing result of power flexibility resources within a target period according to the multiple first purchase requests and the multiple selling offers.

9. An electronic device, characterized in that, It includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and are configured to be executed by the processor. The programs include instructions for executing the steps in the method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the method according to any one of claims 1-7.