Resource allocation method, device, equipment and medium

By calculating the response weight and target transaction cost, the target users are determined for resource allocation, which solves the problem of unfair resource allocation in virtual power plants and improves the stability and economy of the power grid.

CN118508434BActive Publication Date: 2024-10-25INSPUR ARTIFICIAL INTELLIGENCE RES INST CO LTD SHANDONG CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410955065.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-25
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

The existing virtual power plant resource allocation method has the problem of unfair resource allocation, resulting in low system operation stability and frequent malicious bidding behaviors, which affects the efficiency of power grid management.

Method used

By determining the target transaction power data of the virtual power plant and the user's transaction-related data, the response force weight is calculated based on the demand response information, and the target transaction cost is calculated based on the historical total energy loss and the data to be traded, thereby determining the target user for resource allocation and ensuring Equity in resource allocation and stability of virtual power plants.

Benefits of technology

It improves the response rate of users to power demand, enhances the fairness of resource allocation and the operational stability of virtual power plants, reduces malicious bidding behaviors, and promotes the economy and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118508434B_ABST
    Figure CN118508434B_ABST
Patent Text Reader

Abstract

The present invention discloses a resource allocation method, device, equipment and medium. The present invention relates to the technical field of virtual power plants. The method comprises: determining the target transaction power data of the virtual power plant and the transaction association data of at least two users in the virtual power plant; determining the response weight based on the demand response information of the current user; determining the target transaction cost of the current user based on the target transaction power data, the response weight of each user, the power data to be traded and the total historical energy loss; determining the target user from each user based on each target transaction cost, and allocating resources to the target user based on the power data to be traded of the target user. The technical solution of this embodiment ensures the fairness of resource allocation while improving the response rate of users to power demand, so as to ensure the stability and economy of the operation of the virtual power plant.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of virtual power plants, and in particular to a resource allocation method, device, equipment and medium. Background Art

[0002] Today, in the rapidly changing energy industry, the emergence of virtual power plants marks the transformation of energy systems to more intelligent and integrated energy management systems. In the process of resource allocation for internal equipment in the power grid, virtual power plants are usually used as aggregates of distributed resources and controllable loads to participate in resource allocation.

[0003] At present, the resource allocation method is usually to monitor the resource quotations of internal power grid equipment and market resource quotations through virtual power plants, and determine which device to allocate resources to based on price differences. This method may cause malicious bidding, resulting in unfair resource allocation and affecting the stability of system operation. Summary of the invention

[0004] The present invention provides a resource allocation method, device, equipment and medium to improve the user's response rate to electricity demand while ensuring the fairness of resource allocation, thereby achieving the technical effect of ensuring the stability and economy of virtual power plant operation.

[0005] According to one aspect of the present invention, a resource allocation method is provided, the method comprising:

[0006] Determine target transaction power data of a virtual power plant and transaction association data of at least two users in the virtual power plant; wherein the transaction association data includes data on the power to be traded, historical total energy losses, and demand response information for at least one power regulation request;

[0007] For each of the users, determining a responsiveness weight based on the demand response information of the current user;

[0008] Determine the target transaction cost of the current user based on the target transaction power data, the responsiveness weight of each user, the to-be-transacted power data, and the historical total energy loss;

[0009] Based on each of the target transaction costs, a target user is determined from each of the users, so as to allocate resources to the target user based on the to-be-traded electricity data of the target user.

[0010] According to another aspect of the present invention, a resource allocation device is provided, the device comprising:

[0011] A data determination module, used to determine target transaction power data of a virtual power plant and transaction association data of at least two users in the virtual power plant; wherein the transaction association data includes data on the power to be traded, historical total energy losses, and demand response information for at least one power regulation request;

[0012] A responsiveness weight determination module, configured to determine a responsiveness weight for each user based on the demand response information of the current user;

[0013] A target transaction cost determination module, configured to determine the target transaction cost of the current user based on the target transaction power data, the responsiveness weight of each user, the to-be-transacted power data, and the historical total energy loss;

[0014] The target user determination module is used to determine the target user from each of the users based on each of the target transaction costs, so as to allocate resources to the target user based on the target user's data on the amount of electricity to be traded.

[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0016] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the resource allocation method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the resource allocation method described in any embodiment of the present invention when executed.

[0018] The technical solution of the embodiment of the present invention is to determine the target transaction electricity data of the virtual power plant and the transaction association data of at least two users in the virtual power plant; the transaction association data includes the electricity data to be traded and the historical total energy loss and the demand response information for at least one power regulation request; based on the demand response information of the current user, determine the responsiveness weight; based on the target transaction electricity data, the responsiveness weight of each user and the electricity data to be traded and the historical total energy loss, determine the target transaction cost of the current user; based on each target transaction cost, determine the target user from each user, and allocate resources to the target user based on the electricity data to be traded of the target user, thereby solving the problem of allocating resources through the difference between the resource quotation of the equipment and the resource quotation of the market in the prior art, resulting in unfair resource allocation and low system operation stability, and realizing the determination of the responsiveness weight according to the demand response information of the current user, and then, combining the target transaction electricity data and the historical total energy loss, and considering the responsiveness weight of the user to the electricity demand, determining the target transaction cost of the current user, thereby improving the effectiveness of cost determination and improving the response rate of the user to the electricity demand. Furthermore, the target users are determined based on the target transaction cost of each user, and resources are allocated to the target users based on their electricity volume data to be traded, which improves the fairness of resource allocation and achieves the technical effect of ensuring the stability and economy of the virtual power plant operation.

[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 is a flow chart of a resource allocation method provided according to Embodiment 1 of the present invention;

[0022] Figure 2 is a flow chart of a resource allocation method provided according to Embodiment 2 of the present invention;

[0023] Figure 3 is a flow chart of a resource allocation method provided according to Embodiment 3 of the present invention;

[0024] Figure 4 is a flowchart of a resource allocation method provided in Embodiment 3 of the present invention;

[0025] Figure 5 is a structural diagram of a resource allocation device provided according to Embodiment 4 of the present invention;

[0026] Figure 6 It is a structural diagram of an electronic device for implementing the resource allocation method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Embodiment 1

[0030] Figure 1 1 is a flow chart of a resource allocation method provided according to Embodiment 1 of the present invention. This embodiment is applicable to resource allocation for multiple users in a virtual power plant. The method can be executed by a resource allocation device. The resource allocation device can be implemented in the form of hardware and / or software. The resource allocation device can be configured in a computing device. Figure 1 As shown, the method includes:

[0031] S110, determining the target transaction electricity data of the virtual power plant and the transaction association data of at least two users in the virtual power plant; the transaction association data includes the data of electricity to be traded, the historical total energy loss and the demand response information for at least one power regulation request.

[0032] Among them, the virtual power plant can be understood as a power coordination management system that participates in the power market and the operation of the power grid. The user can refer to the power generation and distribution system in the power grid, which is used to manage the load of the power grid equipment. For example, the power grid equipment can be an energy storage output system (such as a battery) and a distributed energy output system (such as a photovoltaic generator set, a wind turbine set, etc.). The target transaction power data can refer to the transaction power information of the virtual power plant in the power market and the operation of the power grid. The data on the power to be traded can include relevant information that the user wants to trade with the power market. For example, the data on the power to be traded includes the power sold and the power purchased. The total historical energy loss can refer to the loss of renewable energy. The power regulation request can refer to an instruction for requesting an adjustment of the power load, and the power regulation request is determined based on the demand for adjusting the power load. The demand response information can refer to the response of the user to the demand according to his actual situation after the system issues a demand notification to the user. For example, the demand response information can include load regulation values ​​and demand response rates.

[0033] In practical applications, when allocating resources to multiple users of a virtual power plant, the target transaction power data of the virtual power plant and transaction-related data of users in the virtual power plant with whom resources are allocated can be obtained.

[0034] In this embodiment, the method for determining the demand response information for at least one power regulation request in the transaction-related data may be: the virtual power plant may issue a request to regulate electricity to the user, and the user performs load management through its own internal power management device and responds to the power regulation request; then, the user's response information to the power regulation request is received as the demand response information. Alternatively, the method for determining the demand response information may also be to determine the response rate based on the demand information and response information in the power regulation request, and use the response rate as the demand response information. For example, the ratio of the response information to the demand information is calculated as the response rate. Alternatively, the method for determining the demand response information may also be to determine whether the response is qualified based on the response rate, count the number of qualified responses and the total number of responses of all historical users, and use the total number of responses and the number of qualified responses as the demand response information of the user.

[0035] For example, assuming that the power regulation request is to reduce 1000kw, and the user receives the request and reduces it by 500kw, the response information is to reduce 500kw, and the response rate is 500kw / 1000kw=50%. When the response rate is greater than the preset threshold, the response is determined to be qualified, otherwise the response is unqualified.

[0036] S120: For each user, determine a responsiveness weight based on the demand response information of the current user.

[0037] The responsiveness weight can be used to characterize the user's responsiveness to the system power demand. For example, the higher the responsiveness weight, the higher the responsiveness. Conversely, the lower the responsiveness weight, the worse the responsiveness. It should be noted that the method for determining the responsiveness weight of each user is the same. Any user can be taken as the current user to determine the responsiveness weight of the current user as an example for explanation.

[0038] In this embodiment, a mathematical model can be established to reflect the correspondence between demand response information and responsiveness weight, the demand response information of the current user is input into the mathematical model, and the responsiveness weight corresponding to the demand response information is output as the responsiveness weight of the current user. For example, the correspondence can be: the more qualified responses, the greater the responsiveness weight; or the higher the response rate, the greater the responsiveness weight. It is also possible to train a weight determination model based on training samples including demand response information and weight labels, so that the weight determination model has the ability to learn responsiveness weights, input the demand response information of the current user into the weight determination model, and output the responsiveness weight of the current user.

[0039] In this embodiment, the implementation method of determining the responsiveness weight based on the demand response information of the current user may be: determining the demand response attribute based on the demand response information of the current user; and determining the responsiveness weight based on the demand response attribute.

[0040] Among them, the demand response attribute can be used to characterize the user's response ability to the demand. For example, the demand response attribute can be a qualified response rate. The higher the qualified response rate, the higher the response ability. Conversely, the lower the qualified response rate, the worse the response ability.

[0041] In this embodiment, the demand response information may include the total number of responses and the number of historical qualified responses. The number of historical qualified responses and the total number of responses may be processed as a quotient to obtain a quotient value, and the quotient value may be used as the demand response attribute. Furthermore, the response attribute interval to which the demand response attribute belongs may be determined according to a pre-configured weight determination rule, and the response power weight corresponding to the response attribute interval may be used as the response power weight of the current user. Optionally, the weight determination rule includes response power weights corresponding to different response attribute intervals.

[0042] Exemplarily, the calculation formula for determining the demand response attribute can be expressed as:

[0043] ;in, Indicates the virtual power plant A one-dimensional array consisting of users, Indicates Users The demand response attributes of Indicates user The number of historical qualified responses, Indicates user The total number of responses.

[0044] The weight determination rule can be expressed as:

[0045] ;in, Indicates user The responsiveness weight of the demand response attribute When it is greater than or equal to 0.9, the response force weight is 1.1; When it is greater than or equal to 0.6 and less than 0.9, the response force weight is 1.0; When it is less than 0.6, the response force weight is 0.9.

[0046] S130: Determine the target transaction cost of the current user based on the target transaction power data, the responsiveness weight of each user, the power data to be traded, and the total historical energy loss.

[0047] In this embodiment, the cost determination model can be pre-trained based on the training samples including the target transaction power data, the user's responsiveness weight and the power data to be traded, the historical total energy loss and the transaction cost label, so that the cost determination model has the ability to learn the transaction cost. The target transaction power data, the current user's responsiveness weight and the power data to be traded and the historical total energy loss are input into the cost determination model, and the target transaction cost of the current user is output.

[0048] S140: Determine a target user from each user based on each target transaction cost, and allocate resources to the target user based on the target user's data on the amount of electricity to be traded.

[0049] In this embodiment, the maximum value can be selected from all target transaction costs, and the user corresponding to the maximum value is used as the final transaction user, and the final transaction user is the target user, and resources are allocated to the target user based on the target user's pending transaction electricity data. It should be noted that there may be multiple users corresponding to the maximum value, and in this case, the target user can be selected from the multiple users according to their credit attributes.

[0050] In this embodiment, a target user is determined from each user based on each target transaction cost, including: determining a maximum transaction cost from each target transaction cost; if the number of users corresponding to the maximum transaction cost reaches a preset number, the users reaching the preset number are used as users to be selected; for each user to be selected, a target credit attribute is determined based on the user attribute of the user to be selected; and based on each target credit attribute, a target user is determined from each user to be selected.

[0051] Among them, user attributes may refer to relevant information used to characterize user credibility. User attributes include at least historical credit scores and bidding attributes. Bidding attributes may be used to reflect the bidding behavior of users in market transactions. For example, bidding attributes include normal bidding attributes and abnormal bidding attributes. Normal bidding attributes may be represented by the number of normal bidding times, and abnormal bidding attributes may be represented by the number of abnormal bidding times. Target credit attributes may be used to reflect the credit status, behavioral characteristics, and potential risk assessment of users in market transactions. For example, the higher the target credit attribute, the higher the credibility of the user. The preset number may be 2.

[0052] Specifically, the maximum transaction cost can be determined from each target transaction cost. If the number of users corresponding to the maximum transaction cost reaches a preset number, the users reaching the preset number can be used as users to be selected. For example, if the target transaction costs of two users are both maximum values, the two users are used as users to be selected. The historical credit scores, normal bidding attributes, and abnormal bidding attributes of the users to be selected can be weighted respectively, and then the target credit attributes of the user can be determined based on the weighted historical credit scores and bidding attributes. The user with the largest target credit attribute value among the users to be selected can be used as the target user.

[0053] Exemplarily, the calculation formula for determining the target credit attribute can be expressed as:

[0054] ;in, Indicates The target credit attributes of the users to be selected, represents the user's historical credit score, Represents the number of abnormal bids by the user. Represents the normal number of bids for a user. , and is the proportionality coefficient.

[0055] The benefit of this setting is that by rationally formulating bidding and selecting target users based on multiple factors such as the user's response cost, quotation (i.e., bidding unit cost), historical loss performance, and response accuracy, it is possible to encourage target users to actively participate in stable power demand response. At the same time, when the target transaction costs of multiple users are the largest and the same, the target credit attributes are comprehensively evaluated in combination with the user's multiple user attributes, and the user with the highest target credit attribute is selected for priority trading. By considering fairness, transparency, and incentives, malicious bidding behavior is effectively avoided, fair competition among users is promoted, the stability and fairness of transactions are improved, and the overall benefits of virtual power plants are improved. It should be noted that the process of allocating resources to multiple users of a virtual power plant is a dynamic adjustment process, and the target users at different times will change according to the changes in the target transaction power data and transaction-related data.

[0056] The technical solution of this embodiment is to determine the target transaction electricity data of the virtual power plant and the transaction association data of at least two users in the virtual power plant; the transaction association data includes the electricity data to be traded and the historical total energy loss and the demand response information for at least one power regulation request; determine the responsiveness weight based on the demand response information of the current user; determine the target transaction cost of the current user based on the target transaction electricity data, the responsiveness weight of each user and the electricity data to be traded and the historical total energy loss; determine the target user from each user based on each target transaction cost, and allocate resources to the target user based on the electricity data to be traded of the target user, thereby solving the problem in the prior art of allocating resources through the difference between the resource quotation of the equipment and the resource quotation of the market, resulting in unfair resource allocation and low system operation stability, and realizes the determination of the responsiveness weight according to the demand response information of the current user, and then, combining the target transaction electricity data and the historical total energy loss, and considering the responsiveness weight of the user to the electricity demand, determining the target transaction cost of the current user, thereby improving the effectiveness of cost determination and improving the user's response rate to the electricity demand. Furthermore, the target users are determined based on the target transaction cost of each user, and resources are allocated to the target users based on their awaited-trading electricity data, thereby improving the fairness of resource allocation and achieving the technical effect of ensuring the stability and economy of the virtual power plant operation.

[0057] Embodiment 2

[0058] Figure 2 This is a flow chart of a resource allocation method provided according to Embodiment 2 of the present invention. Based on the above embodiment, S130 is further refined. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same as or corresponding to the above embodiment are not repeated here.

[0059] like Figure 2As shown, the method specifically comprises the following steps:

[0060] S210. Determine the target transaction electricity data of the virtual power plant and the transaction association data of at least two users in the virtual power plant; the transaction association data includes the data of electricity to be traded, the historical total energy loss, and the demand response information for at least one power regulation request.

[0061] S220: For each user, determine a responsiveness weight based on the demand response information of the current user.

[0062] S230: Determine the target total energy loss of the current user based on the target transaction power data, the pending transaction power data of the current user, and the historical total energy loss.

[0063] In this embodiment, the total loss of all energy of the current user can be calculated through the target transaction power data, the current user's pending transaction power data, and the historical total energy loss, as the target total energy loss. For example, the training samples can be determined through the target transaction power data, the user's pending transaction power data, the historical total energy loss, and the loss label, and the loss determination model can be obtained through training with the training samples, so that the loss determination model has the ability to learn the total energy loss. The target transaction power data, the current user's pending transaction power data, and the historical total energy loss are input into the loss determination model, and the target total energy loss of the current user is output.

[0064] In this embodiment, the target transaction power data includes the market power transaction cost and the market power unit cost, and the to-be-traded power data includes the bidding power unit cost, the power sold, and the power purchased. Based on the target transaction power data and the to-be-traded power data of the current user and the historical total energy loss, the target total energy loss of the current user is determined, including: determining the power selling loss value based on the market power unit cost, the bidding power unit cost, and the power sold; determining the power purchasing loss value based on the market power transaction cost, the bidding power unit cost, and the power purchased; determining the target total energy loss based on the historical total energy loss, the power selling loss value, and the power purchasing loss value of the current user.

[0065] Among them, the market electricity transaction cost may refer to the cost of the virtual power plant participating in the market transaction. The unit cost of the bidding electricity may refer to the unit price of the bidding electricity. The bidding electricity refers to the electricity declared by the user. The electricity sold refers to the electricity sold. The electricity purchased refers to the electricity purchased.

[0066] In this embodiment, the difference between the unit cost of market electricity and the unit cost of bidding electricity at the current moment can be calculated, the difference can be compared with a preset threshold (such as the preset threshold is 0), the maximum value of the two can be taken, and the maximum value can be multiplied by the electricity sold by the current user at the current moment to obtain the electricity selling loss at the current moment. In this way, the electricity selling loss at each moment can be obtained, and the electricity selling losses at all moments can be summed to obtain the electricity selling loss value. Determine the difference between the market electricity transaction cost and the unit cost of bidding electricity at the current moment, compare the difference with the preset threshold, take the maximum value of the two, and multiply the maximum value by the electricity purchased by the current user at the current moment to obtain the electricity purchasing loss at the current moment. In this way, the electricity purchasing loss at each moment can be obtained, and the electricity purchasing losses at all moments can be summed to obtain the electricity purchasing loss value. The target energy total loss is obtained by summing the historical total energy loss of the current user, the electricity selling loss value, and the electricity purchasing loss value.

[0067] For example, The user is taken as the current user, and the power selling loss value of the current user is determined The calculation formula can be expressed as: ;in, for Unit cost of electricity in the market at the moment, For current user The unit cost of bidding electricity at the moment, For current user The amount of electricity sold at a given moment. The multiple moments may be moments within the predicted duration (such as the next day). For example, every 15 minutes in the next day is recorded as a moment, or every 30 minutes is recorded as a moment.

[0068] Determine the current user's electricity purchase loss value The calculation formula can be expressed as: ;in, For current user The amount of electricity purchased at the time, Participate in market transactions for virtual power plants The market electricity transaction cost at the moment.

[0069] Determine the target total energy loss for current users The calculation formula can be expressed as: ; is the total historical energy loss of the current user.

[0070] S240: Determine the target transaction cost of the current user based on the target transaction power data, the target total energy loss, the responsiveness weight of each user and the power data to be traded.

[0071] In this embodiment, a cost determination model can be trained based on training samples including target transaction power data, target total energy loss, user's responsiveness weight, pending transaction power data and transaction cost labels, so that the cost determination model has the ability to learn transaction costs. The target transaction power data, target total energy loss, current user's responsiveness weight and pending transaction power data are input into the cost determination model, and the target transaction cost of the current user is output.

[0072] In this embodiment, the target transaction cost of the current user is determined based on the target transaction power data, the target total energy loss, the responsiveness weight of each user and the power data to be traded, including: determining the cost determination method based on the target total energy loss, the preset loss threshold, the responsiveness weight of the current user and the preset weight value; according to the cost determination method, determining the target transaction cost of the current user based on the target transaction power data, the responsiveness weight of each user and the power data to be traded.

[0073] Among them, cost determination methods include cost compensation method and basic determination method.

[0074] In this embodiment, if the total loss of the target energy does not reach the preset loss threshold, it can be explained that there is no need to provide cost compensation to the user, and the cost determination method is determined to be the basic determination method. Alternatively, if the responsiveness weight of the current user does not reach the preset weight value, it can also be explained that there is no need to provide cost compensation to the user, and the cost determination method is determined to be the basic determination method. When the total loss of the target energy reaches the preset loss threshold and the responsiveness weight is greater than the preset weight value, the cost determination method can be determined to be the cost compensation method. Furthermore, the target transaction cost of the current user can be determined by a specific cost determination method, combined with the target transaction power data, the responsiveness weight of each user, and the power data to be traded.

[0075] In this embodiment, the target transaction electricity data includes the total transaction electricity, and the to-be-traded electricity data includes the bid electricity and the unit cost of the bid electricity; according to the cost determination method, based on the target transaction electricity data, the responsiveness weight of each user and the to-be-traded electricity data, the target transaction cost of the current user is determined, including: when the cost determination method is the cost compensation method, based on the target energy total loss, the responsiveness weight of the current user and the preset loss compensation coefficient, the cost compensation value is determined; based on the total transaction electricity and the responsiveness weight and the bid electricity of each user, the actual transaction electricity of the current user is determined; based on the actual transaction electricity and the unit cost of the bid electricity, the cost to be compensated is determined; based on the cost compensation value and the cost to be compensated, the target transaction cost of the current user is determined.

[0076] In this embodiment, if the cost determination method is a cost compensation method, the cost compensation value can be determined by the total target energy loss, the current user's responsiveness weight and the preset loss compensation coefficient. The specific method for determining the cost compensation value can be: multiplying the total target energy loss, the current user's responsiveness weight and the preset loss compensation coefficient to obtain the product value as the cost compensation value. Further, the actual transaction power of the current user is determined by the total transaction power and the responsiveness weight and bidding power of each user, and then the transaction cost at the current moment is determined by the unit cost of the bidding power and the actual transaction power at the current moment. The sum of the transaction costs at all moments can be used as the cost to be compensated for the current user. The difference between the cost to be compensated and the cost compensation value is determined, and the difference can be used as the target transaction cost of the current user.

[0077] In this embodiment, when the cost determination method is the basic determination method, the transaction cost at the current moment can be determined by the unit cost of the bid electricity and the actual transaction electricity at the current moment. The sum of the transaction costs at all times can be used as the target transaction cost of the current user, and no cost compensation value is required for cost compensation.

[0078] For example, determine the target transaction cost The calculation formula can be expressed as: ;in, Expressed as The unit cost of the bidding electricity at the moment; It is expressed as the cost compensation value of the current user; , is the loss compensation coefficient, is the responsiveness weight of the current user, is the target total energy loss of the current user, is the preset loss threshold, For AND logic, It is OR logic.

[0079] In this embodiment, the actual trading power of the current user is determined based on the total trading power and the responsiveness weight and bidding power of each user, including: determining the first intermediate value of the user based on the bidding power and responsiveness weight of the same user; determining the second intermediate value based on the first intermediate value of each user; determining the actual trading power of the current user based on the total trading power, the second intermediate value and the first intermediate value of the current user.

[0080] Specifically, the bid power and response power weight of the same user can be summed up, and the sum value obtained is used as the first intermediate value of the user. Then, the first intermediate values ​​of all users are summed up, and the sum value obtained is used as the second intermediate value. The first intermediate value and the second intermediate value of the current user are divided, and the obtained quotient value is multiplied by the total transaction power, and the obtained product value can be used as the actual transaction power of the current user.

[0081] For example, determining the actual transaction volume The calculation formula can be expressed as: ;in, is the total transaction power of the virtual power plant, Bid for electricity for the current user.

[0082] It should be noted that the virtual power plant system is also equipped with corresponding processors and memories to support data processing, storage and call of data. For example, in the loss compensation mechanism, if the user is compensated for the cost once, the total loss of the user will be automatically cleared. The virtual power plant system is also equipped with a variety of adjustment methods such as intelligent adjustment and manual adjustment. For example, the weight coefficient of the renewable energy consumption rate can be manually adjusted, or the calculation method of the basic weight can be formulated, so that the weight coefficient can be automatically matched according to the self-defined weight coefficient. The advantage of this setting is that by using the virtual power plant as an integrated management mode, it can intelligently process data and information flows, optimize energy configuration and scheduling plans, improve the intelligent management level of the power grid, and provide technical support and guarantee for the construction of smart grids and renewable energy grid connection.

[0083] S250: Determine a target user from each user based on each target transaction cost, and allocate resources to the target user based on the target user's data on the amount of electricity to be traded.

[0084] The technical solution of this embodiment determines the target total energy loss of the current user based on the target transaction electricity data, the current user's pending transaction electricity data and the historical total energy loss, and then comprehensively determines the target transaction cost of the current user in combination with the target transaction electricity data, the target total energy loss, the responsiveness weight of each user and the pending transaction electricity data, so as to achieve demand response by considering user participation, improve user enthusiasm and response quality, reduce energy waste and supply and demand imbalance, improve the resource utilization efficiency of the power grid, and reduce electricity costs.

[0085] Embodiment 3

[0086] Figure 3It is a flowchart of a resource allocation method provided according to the third embodiment of the present invention. On the basis of the above-mentioned embodiment, before determining the power purchase loss value based on the market power transaction cost, the bidding power unit cost and the purchased power, the market power transaction cost in the target transaction power data can be determined by the resource scheduling of at least two users by the virtual power plant. The specific implementation method can refer to the technical solution of this embodiment. Among them, the technical terms that are the same as or corresponding to the above-mentioned embodiments are not repeated here.

[0087] like Figure 3 As shown, the method specifically comprises the following steps:

[0088] S310. Determine equipment control data for the virtual power plant to dispatch at least two users.

[0089] In this embodiment, the equipment control data includes control data of multiple scheduling cycles, and the control data includes but is not limited to the output of the power grid equipment, and the output can also be understood as output power.

[0090] For example, see Figure 4 , based on the data acquisition module in the virtual power plant, the grid demand data of the upper power grid can be collected through the TCP network protocol; then, based on the source-load prediction module, machine learning and timing analysis technology are used to predict the output of distributed power sources such as wind power and photovoltaics, as well as the demand for uncontrollable power loads; the edge gateway can also be used to collect equipment control data of service providers, users and equipment, such as controllable loads such as air conditioners, adjustable, energy storage, wind power, photovoltaics or other uncontrollable loads. Current regulation capabilities. Alternatively, output models and demand response models of various devices including wind turbine output models, photovoltaic output models, and energy storage output models can be pre-established. The equipment output model not only includes the performance parameters of the equipment, but also includes information such as the equipment's operating status and regulation capabilities, so as to determine the operating conditions of multiple users within the virtual power plant based on the equipment output model and demand response model, and obtain equipment regulation data.

[0091] Among them, the wind turbine output model is used to reflect the output power of the wind turbine set. The mathematical relationship between wind power output and wind speed. For example, the wind turbine output model can be expressed as: ; is the rated output power of the wind turbine, For the cut-in wind speed, is the rated wind speed, To cut out the wind speed, is the actual wind speed obtained by the wind turbine.

[0092] The photovoltaic output model can be expressed as:

[0093] ; Solar photovoltaic cells The actual output power at any moment, is the rated output power, for The actual light intensity at the moment, is the rated light intensity, is the power temperature coefficient, for Ambient temperature at all times, is the standard ambient temperature.

[0094] The energy storage output model is used to reflect the mathematical relationship between the energy storage battery charging and discharging output and the state of charge as well as the charging and discharging efficiency. The energy storage output model can be expressed as:

[0095] ; ;in, and Energy storage battery Moment and The state of charge at the moment, and Energy storage battery The charging power and discharging power at the moment, is the rated capacity of the energy storage battery, and are the charging efficiency and discharging efficiency of the energy storage battery, for Moment and The time interval between moments.

[0096] The demand response model is used to reflect the adjustable output of interruptible load devices and adjustable load devices. The demand response model can be expressed as: ; Expressed as the adjustable output of the device, Indicated as adjustable load and interruptible load The effort of the moment Indicated as adjustable load and interruptible load The effort of the moment.

[0097] The technical solution provided in this embodiment provides data support for building resource scheduling models and resource allocation models by establishing a model for monitoring and evaluating the operating status of virtual power plant equipment, so as to improve the accuracy and effectiveness of resource scheduling and allocation and ensure the stable operation of the virtual power plant.

[0098] S320: Determine data to be minimized based on the device control data.

[0099] Among them, the data to be minimized include at least the first cost, the power generation and distribution stability rate and the energy absorption rate; the first cost includes at least the market electricity transaction cost, the wind turbine cost, the energy storage cost and the demand response cost. The power generation and distribution stability rate can be used to characterize the system stability of the virtual power plant during electricity consumption and power generation. For example, the higher the power generation and distribution stability rate, the more stable the system power generation and distribution. The energy absorption rate can be used to represent the utilization rate of renewable energy. For example, the higher the absorption rate, the higher the utilization efficiency of the power grid for renewable energy, the lower the energy consumption, and the less environmental pollution.

[0100] In this embodiment, the market electricity transaction cost, wind turbine cost, energy storage cost and demand response cost at the same time can be summed to obtain the first cost at that time. Then, the first cost, power generation and distribution stability rate and energy consumption rate at that time are weighted, and the data to be minimized is determined based on the weighted first cost, power generation and distribution stability rate and energy consumption rate.

[0101] For example, determining the first cost The calculation method can be:

[0102] ;in, Participate in market transactions for virtual power plants The market electricity transaction cost at the moment, For fans The cost of time, Photovoltaic The cost of time, For energy storage The cost of time, for The demand response cost at each moment, For the entire scheduling cycle. , for The unit cost of electricity in the virtual power plant market at each moment, for The amount of electricity traded in the virtual power plant market at each moment. ; for The compensation coefficient of the momentary load demand response cost, Expressed as the adjustable output of the device.

[0103] Determine the stability of power generation and distribution The calculation method can be:

[0104] ;

[0105] in, for Total power consumption of the virtual power plant at any moment, for The total power generation of the virtual power plant at the moment (including the amount of electricity purchased or sold by the virtual power plant).

[0106] Determine the energy consumption rate The calculation method can be:

[0107] ;

[0108] in, for Total loss of renewable energy 'wind and solar abandonment' at any given moment, for Total output of renewable energy at all times. By introducing the renewable energy consumption rate, optimizing the energy configuration and dispatching plan of the virtual power plant, maximizing the consumption and utilization of renewable energy, increasing the proportion of green energy in the power grid, reducing dependence on traditional energy, and promoting the transformation and upgrading of the energy structure.

[0109] Continue to see Figure 4 , a multi-objective scheduling optimization model with minimum operating cost, optimal stability and maximum utilization rate of renewable energy for virtual power plants can be established, and the data to be minimized can be determined through the objective function in the multi-objective scheduling optimization model. , in order to solve the optimal scheduling plan of the system units and the final resource allocation plan by minimizing the data to be minimized.

[0110] Among them, the objective function can be expressed as: ; and and is the weight coefficient, which is adjusted by adjusting the renewable energy consumption rate The weight coefficient , the proportion of renewable energy consumption rate in the virtual power plant can be adjusted to avoid the phenomenon that the virtual power plant excessively abandons renewable energy in pursuit of profit during the scheduling process.

[0111] The technical solution provided in this embodiment takes the first cost as the economic target, the power generation and distribution stability rate as the stability target, and the energy consumption rate as the renewable energy utilization rate target, and uniformly designs the three targets as the minimum optimization value processing, and uses the weighted method to integrate them to obtain the objective function. Among them, the optimal economic target means that the operating cost of the virtual power plant is minimized, the optimal system stability target means that the deviation between the total power consumption and the total power generation of the virtual power plant is minimized, and the optimal renewable energy utilization rate target means that the loss of renewable energy is minimized. Ensure that when the algorithm is used to solve the optimal value of the objective function, the optimal scheduling strategy is generated, and at the same time, the market electricity transaction cost that achieves the target is obtained, so as to optimize the resource allocation strategy through the market electricity transaction cost, so as to achieve while improving the renewable energy consumption rate and enhancing the system adaptability, so that the virtual power plant can better adapt to the complex and changeable power demand, improve the response speed and accuracy, achieve the dynamic balance of power supply and demand, effectively deal with the volatility and uncertainty of the power system, and improve the stability and reliability of the power grid.

[0112] S330, with the goal of minimizing the data to be minimized, adjusting the equipment control data to obtain the market electricity transaction cost that achieves the target.

[0113] In this embodiment, the goal is to minimize the data to be minimized. When it is detected that the goal is not achieved, the equipment control data is adjusted, that is, the resource scheduling strategy is adjusted to obtain the market electricity transaction cost that achieves the goal, and the operating efficiency and economic benefits of the virtual power plant are improved by comprehensively utilizing resource scheduling strategies and resource allocation strategies, thereby achieving the technical effect of improving the operating stability of the virtual power plant.

[0114] In this embodiment, while minimizing the data to be minimized, the equipment control data can also be adjusted according to the constraints. Optionally, the constraints include but are not limited to the overall power balance constraints of the virtual power plant, the upper and lower limit constraints of the state of charge of the energy storage battery, the maximum charge and discharge power constraints of the energy storage battery, the consistency constraints of the initial and final state of charge of the energy storage battery scheduling, and the maximum climbing constraints of the adjustable load.

[0115] Exemplarily, the overall power balance constraint of the virtual power plant can be expressed as:

[0116] ;in, For load The power demand is always For energy storage Always contribute.

[0117] The upper and lower limit constraints of the energy storage battery state of charge can be expressed as: ;in, is the minimum state of charge for energy storage, It is the maximum charge state of energy storage.

[0118] The maximum charge and discharge power constraint of the energy storage battery can be expressed as: ;in, For energy storage Always make an effort, The minimum output of energy storage and Maximum output for energy storage.

[0119] The consistency constraint of the initial and final state of charge of energy storage battery scheduling can be expressed as: ,in, and They are the initial state of charge and final state of charge of the energy storage, respectively. Through this constraint, it can be effectively guaranteed that the energy storage battery can continue to operate in a cycle.

[0120] The maximum climbing constraint of the adjustable load can be expressed as: ;in, The maximum adjustable load capacity is Adjustable load minimum adjustment capability, for The ability to adjust after a certain time, is the standard adjustment interval, is the maximum climbing power percentage coefficient.

[0121] The technical solution provided in this embodiment uses the minimum operating cost of the virtual power plant, the optimal system stability and the highest renewable energy utilization rate as the objective function, uses the objective function to evaluate the availability of renewable energy and power demand, solves the power dispatching strategy of the virtual power plant by using an algorithm, and solves the optimal dispatching plan of the system units and the final resource allocation plan while considering the system constraints. This ensures that the system can consume and utilize renewable energy to the maximum extent while ensuring the economically stable operation of the system, dynamically adjusts the power distribution strategy according to the power demand, and maintains the balance and stability of power supply and demand.

[0122] Embodiment 4

[0123] Figure 5 Schematic diagram of a resource allocation device according to Embodiment 4 of the present invention. Figure 5 As shown, the device includes: a data determination module 410, a responsiveness weight determination module 420, a target transaction cost determination module 430 and a target user determination module 440.

[0124] Among them, the data determination module 410 is used to determine the target transaction electricity data of the virtual power plant and the transaction related data of at least two users in the virtual power plant; wherein the transaction related data includes the electricity data to be traded and the historical total energy loss and the demand response information for at least one power regulation request; the responsiveness weight determination module 420 is used to determine the responsiveness weight for each of the users based on the demand response information of the current user; the target transaction cost determination module 430 is used to determine the target transaction cost of the current user based on the target transaction electricity data, the responsiveness weight of each of the users, the electricity data to be traded and the historical total energy loss; the target user determination module 440 is used to determine the target user from each of the users based on each of the target transaction costs, so as to allocate resources to the target user based on the electricity data to be traded of the target user.

[0125] The technical solution of this embodiment is to determine the target transaction electricity data of the virtual power plant and the transaction association data of at least two users in the virtual power plant; the transaction association data includes the electricity data to be traded and the historical total energy loss and the demand response information for at least one power regulation request; determine the responsiveness weight based on the demand response information of the current user; determine the target transaction cost of the current user based on the target transaction electricity data, the responsiveness weight of each user and the electricity data to be traded and the historical total energy loss; determine the target user from each user based on each target transaction cost, and allocate resources to the target user based on the electricity data to be traded of the target user, thereby solving the problem in the prior art of allocating resources through the difference between the resource quotation of the equipment and the resource quotation of the market, resulting in unfair resource allocation and low system operation stability, and realizes the determination of the responsiveness weight according to the demand response information of the current user, and then, combining the target transaction electricity data and the historical total energy loss, and considering the responsiveness weight of the user to the electricity demand, determining the target transaction cost of the current user, thereby improving the effectiveness of cost determination and improving the user's response rate to the electricity demand. Furthermore, the target users are determined based on the target transaction cost of each user, and resources are allocated to the target users based on their awaited-trading electricity data, thereby improving the fairness of resource allocation and achieving the technical effect of ensuring the stability and economy of the virtual power plant operation.

[0126] Based on the above-mentioned device, optionally, the responsiveness weight determination module 420 includes: a demand response attribute determination unit, used to determine the demand response attribute based on the demand response information of the current user; and a responsiveness weight determination unit, used to determine the responsiveness weight based on the demand response attribute.

[0127] Based on the above-mentioned device, optionally, the target transaction cost determination module 430 includes: a target total energy loss determination unit, which is used to determine the target total energy loss of the current user based on the target transaction electricity data, the electricity data to be traded of the current user and the historical total energy loss; a target transaction cost determination unit, which is used to determine the target transaction cost of the current user based on the target transaction electricity data, the target total energy loss, the responsiveness weight of each of the users and the electricity data to be traded.

[0128] Based on the above device, optionally, the target transaction electricity data includes the market electricity transaction cost and the market electricity unit cost, and the to-be-traded electricity data includes the bidding electricity unit cost, the electricity sold and the electricity purchased; the target total energy loss determination unit includes: a sales electricity loss value determination subunit, used to determine the electricity sales loss value based on the market electricity unit cost, the bidding electricity unit cost and the electricity sold; a purchase electricity loss value determination subunit, used to determine the electricity purchase loss value based on the market electricity transaction cost, the bidding electricity unit cost and the electricity purchased; a target energy total loss determination subunit, used to determine the target total energy loss based on the current user's historical total energy loss, the sales electricity loss value and the purchase electricity loss value.

[0129] On the basis of the above-mentioned device, optionally, the target transaction cost determination unit includes: a cost determination method determination subunit, which is used to determine the cost determination method based on the target total energy loss, the preset loss threshold, the responsiveness weight of the current user and the preset weight value; wherein the cost determination method includes a cost compensation method and a basic determination method; a target transaction cost determination subunit, which is used to determine the target transaction cost of the current user based on the target transaction power data, the responsiveness weight of each user and the power data to be traded according to the cost determination method.

[0130] Based on the above-mentioned device, optionally, a cost determination method determination subunit is specifically used to determine that the cost determination method is a cost compensation method when the total loss of the target energy reaches a preset loss threshold and the responsiveness weight is greater than the preset weight value.

[0131] Based on the above-mentioned device, optionally, the target transaction electricity data includes the total transaction electricity, and the to-be-traded electricity data includes the bid electricity and the unit cost of the bid electricity; the target transaction cost determination subunit includes: a cost compensation value determination subunit, which is used to determine the cost compensation value based on the target energy total loss, the responsiveness weight of the current user and the preset loss compensation coefficient when the cost determination method is the cost compensation method; an actual transaction electricity determination subunit, which is used to determine the actual transaction electricity of the current user based on the total transaction electricity and the responsiveness weight and bid electricity of each of the users; a to-be-compensated cost determination subunit, which is used to determine the to-be-compensated cost based on the actual transaction electricity and the unit cost of the bid electricity; a target transaction cost determination subunit, which is used to determine the target transaction cost of the current user based on the cost compensation value and the to-be-compensated cost.

[0132] On the basis of the above-mentioned device, optionally, a small unit for determining actual transaction power includes: a first intermediate value determination unit, used to determine the first intermediate value of the user based on the bidding power and responsiveness weight of the same user; a second intermediate value determination unit, used to determine the second intermediate value based on the first intermediate value of each user; and an actual transaction power determination terminal unit, used to determine the actual transaction power of the current user based on the total transaction power, the second intermediate value and the first intermediate value of the current user.

[0133] Based on the above device, optionally, the target user determination module 440 includes: a maximum transaction cost determination unit, which is used to determine the maximum transaction cost from each of the target transaction costs; a to-be-selected user determination unit, which is used to, if the number of users corresponding to the maximum transaction cost reaches a preset number, then use the preset number of users as to-be-selected users; a target credit attribute determination unit, which is used to determine the target credit attribute for each of the to-be-selected users based on the user attributes of the to-be-selected users; the user attributes include at least a historical credit score and a bidding attribute; the target user determination unit is used to determine the target user from each of the to-be-selected users based on each of the target credit attributes.

[0134] On the basis of the above-mentioned device, optionally, the device also includes: an equipment control data determination unit, used to determine the equipment control data for the virtual power plant to dispatch at least two users; a data to be minimized determination unit, used to determine the data to be minimized based on the equipment control data; wherein the data to be minimized includes at least a first cost, a power generation and distribution stability rate, and an energy consumption rate; the first cost includes at least a market electricity transaction cost, a wind turbine cost, an energy storage cost, and a demand response cost; a minimization unit, used to adjust the equipment control data with the goal of minimizing the data to be minimized, so as to obtain the market electricity transaction cost that achieves the goal.

[0135] The resource allocation device provided in the embodiment of the present invention can execute the resource allocation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0136] Embodiment 5

[0137] Figure 6 1 is a schematic diagram of the structure of an electronic device that implements the resource allocation method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0138] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.

[0139] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0140] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a resource allocation method.

[0141] In some embodiments, the resource allocation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the resource allocation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the resource allocation method in any other appropriate manner (e.g., by means of firmware).

[0142] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0143] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0144] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0145] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0146] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0147] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0148] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the resource allocation method provided by any embodiment of the present invention.

[0149] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0150] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0151] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A resource allocation method, It is characterized in that include: Determine target transaction power data of a virtual power plant and transaction association data of at least two users in the virtual power plant; wherein the transaction association data includes data on the power to be traded, historical total energy losses, and demand response information for at least one power regulation request; For each of the users, determining a responsiveness weight based on the demand response information of the current user; Determine the target transaction cost of the current user based on the target transaction power data, the responsiveness weight of each user, the to-be-transacted power data, and the historical total energy loss; Based on each of the target transaction costs, a target user is determined from each of the users, so as to allocate resources to the target user based on the to-be-traded electricity data of the target user; Wherein, determining the responsiveness weight based on the demand response information of the current user includes: determining a demand response attribute based on the demand response information of the current user; determining the responsiveness weight based on the demand response attribute; the demand response attribute is a qualified response rate; Determining the target transaction cost of the current user includes: determining the target total energy loss of the current user based on the target transaction power data, the to-be-traded power data of the current user, and the historical total energy loss; wherein the target transaction power data includes the total transaction power; the to-be-traded power data includes the bid power and the bid power unit cost; determining the cost determination method based on the target total energy loss, the preset loss threshold, the responsiveness weight of the current user, and the preset weight value; when the cost determination method is the cost compensation method, determining the cost compensation value based on the target total energy loss, the responsiveness weight of the current user, and the preset loss compensation coefficient; determining the actual transaction power of the current user based on the total transaction power and the responsiveness weight and bid power of each user; determining the cost to be compensated based on the actual transaction power and the bid power unit cost; determining the target transaction cost of the current user based on the cost compensation value and the cost to be compensated; The specific method of determining the cost compensation value is: multiplying the target total energy loss, the response force weight of the current user and the preset loss compensation coefficient to obtain the product value as the cost compensation value.

2. The method according to claim 1, It is characterized in that The target transaction power data includes the market power transaction cost and the market power unit cost, the to-be-traded power data includes the bidding power unit cost, the sold power and the purchased power, and the target total energy loss of the current user is determined based on the target transaction power data, the to-be-traded power data of the current user and the historical total energy loss, including: Determine a power sales loss value based on the market power unit cost, the bidding power unit cost and the power sales volume; Determine the power purchase loss value based on the market power transaction cost, the bid power unit cost and the purchased power; A target total energy loss is determined based on the historical total energy loss of the current user, the electricity selling loss value, and the electricity purchasing loss value.

3. The method according to claim 1, It is characterized in that The method further comprises: The cost determination method includes a cost compensation method and a basic determination method.

4. The method according to claim 3, It is characterized in that The cost determination method is determined based on the target total energy loss, the preset loss threshold, the responsiveness weight of the current user and the preset weight value, including: When the total loss of the target energy reaches a preset loss threshold and the responsiveness weight is greater than the preset weight value, the cost determination method is determined to be a cost compensation method.

5. The method according to claim 1, It is characterized in that The determining the actual transaction power of the current user based on the total transaction power and the responsiveness weight and the bid power of each user includes: Determining a first intermediate value of the user based on the bid power and responsiveness weight of the same user; determining a second median value based on the first median value of each of the users; Based on the total transaction power, the second intermediate value and the first intermediate value of the current user, the actual transaction power of the current user is determined.

6. The method according to claim 1, It is characterized in that The determining a target user from each of the users based on each of the target transaction costs includes: determining a maximum transaction cost from each of said target transaction costs; If the number of users corresponding to the maximum transaction cost reaches a preset number, the users reaching the preset number are selected as users to be selected; For each of the to-be-selected users, a target credit attribute is determined based on the user attributes of the to-be-selected user; the user attributes at least include a historical credit score and a bidding attribute; Based on each of the target credit attributes, a target user is determined from each of the users to be selected.

7. The method according to claim 2, It is characterized in that Before determining the power purchase loss value based on the market power transaction cost, the bid power unit cost and the purchased power, the method further includes: Determine equipment control data for the virtual power plant to dispatch at least two users; Determine the data to be minimized based on the equipment control data; wherein the data to be minimized includes at least a first cost, a power generation and distribution stability rate, and an energy consumption rate; the first cost includes at least a market electricity transaction cost, a wind turbine cost, an energy storage cost, and a demand response cost; With the goal of minimizing the data to be minimized, the device control data is adjusted to obtain a market electricity transaction cost that achieves the goal.

8. A resource allocation device, It is characterized in that include: A data determination module, used to determine target transaction power data of a virtual power plant and transaction association data of at least two users in the virtual power plant; wherein the transaction association data includes data on the power to be traded, historical total energy losses, and demand response information for at least one power regulation request; A responsiveness weight determination module, configured to determine a responsiveness weight for each user based on the demand response information of the current user; A target transaction cost determination module, configured to determine the target transaction cost of the current user based on the target transaction power data, the responsiveness weight of each user, the to-be-transacted power data, and the historical total energy loss; A target user determination module, configured to determine a target user from each of the users based on each of the target transaction costs, so as to allocate resources to the target user based on the to-be-traded electricity data of the target user; The responsiveness weight determination module includes: a demand response attribute determination unit, used to determine the demand response attribute based on the demand response information of the current user; a responsiveness weight determination unit, used to determine the responsiveness weight based on the demand response attribute; the demand response attribute is a qualified response rate; The target transaction cost determination module includes: a target energy total loss determination unit, which is used to determine the target energy total loss of the current user based on the target transaction power data, the to-be-traded power data of the current user and the historical energy total loss; the target transaction power data includes the total transaction power, and the to-be-traded power data includes the bid power and the bid power unit cost; a cost determination method determination subunit, which is used to determine the cost determination method based on the target energy total loss, the preset loss threshold, the responsiveness weight of the current user and the preset weight value; a cost compensation value determination subunit, which is used to determine the cost compensation value based on the target energy total loss, the responsiveness weight of the current user and the preset loss compensation coefficient when the cost determination method is the cost compensation method; an actual transaction power determination subunit, which is used to determine the actual transaction power of the current user based on the total transaction power and the responsiveness weight and bid power of each user; a to-be-compensated cost determination subunit, which is used to determine the to-be-compensated cost based on the actual transaction power and the bid power unit cost; a target transaction cost determination subunit, which is used to determine the target transaction cost of the current user based on the cost compensation value and the to-be-compensated cost; The subunit for determining the cost to be compensated is specifically used to multiply the total target energy loss, the responsiveness weight of the current user and a preset loss compensation coefficient to obtain the product value as the cost compensation value.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the resource allocation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the resource allocation method according to any one of claims 1 to 7 when executed.