Multi-object multi-center collaborative clearing method based on a delegated proof-of-stake mechanism
By adopting a multi-object, multi-center collaborative clearing method based on a delegated proof-of-stake mechanism, the problem of low system solution efficiency under a large-scale power resource interaction object group is solved, achieving efficient power resource interaction and data privacy protection.
Patent Information
- Application Number
- CN202311533929.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2043-11-16
AI Technical Summary
When the number of power resource interaction objects is large, the optimization problem of the central agency under the centralized dispatch mode increases in scale, resulting in low system solution efficiency and difficulty in effectively managing power resource interaction.
A multi-object, multi-center collaborative clearing method based on a delegated proof-of-stake mechanism is adopted. By selecting target power resource interaction objects from the target power grid system, obtaining initial power interaction information, calculating the power resource interaction volume, and clearing under the condition of supply and demand balance, distributed power resource interaction is realized.
This improves the system's solution efficiency when dealing with large-scale power resource interaction objects, reduces the risk of computational dimensionality explosion, takes into account data privacy issues, and achieves efficient collaborative scheduling of power resources.
Smart Images

Figure CN117522448B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a multi-object multi-centralized collaborative clearing method and device based on a delegated proof of stake mechanism, a computer device, a storage medium and a computer program product. BACKGROUND
[0002] With the development of computer technology, the delegated proof of stake mechanism (DPoS) technology of the blockchain has emerged, which is a kind of blockchain consensus algorithm. In this mechanism, resource holders can participate in the consensus process by delegating their resources to specific nodes in the network. These selected nodes are responsible for creating new blocks and verifying transactions. One of the benefits of DPoS is that it improves transaction speed and network scalability, because only a few selected nodes need to reach consensus, rather than all nodes participating. This helps to reduce the energy consumption and computational complexity that exists in traditional PoW (Proof of Work) algorithms.
[0003] In the traditional technology, the scheme adopting the centralized scheduling mode can realize the overall scheduling of planning. However, in the centralized scheduling mode, the device state and running state information of each power resource interaction object need to be collected to the central institution for optimization decision. In the case of large number of power resource interaction objects, the optimization problem scale required by the central institution increases, causing the problem of computational dimension explosion, which leads to low solving efficiency of the system when facing a large group of power resource interaction objects. SUMMARY
[0004] Therefore, it is necessary to provide a multi-object multi-centralized collaborative clearing method and device based on a delegated proof of stake mechanism, a computer device, a computer readable storage medium and a computer program product, which can improve the solving efficiency of the system when facing a large group of power resource interaction objects.
[0005] In a first aspect, the application provides a multi-object multi-centralized collaborative clearing method based on a delegated proof-of-stake mechanism. The method comprises: selecting at least one target power resource interaction object from each power resource interaction object of a target power grid system; obtaining initial power interaction information corresponding to the target power grid system; in a case where the initial power interaction information meets a preset power interaction information interval corresponding to each power resource interaction object, calculating a power resource interaction amount corresponding to each power resource interaction object according to the initial power interaction information; calculating target power interaction information of the target power grid system according to each target power resource interaction object and each power resource interaction amount; in a case where each target power resource interaction object judges that the target power interaction information reaches supply-demand balance in the target power grid system, performing clearing according to the target power interaction information to obtain power clearing data of the target power grid system.
[0006] In a second aspect, the application also provides a multi-object multi-centralized collaborative clearing device based on a delegated proof-of-stake mechanism. The device comprises: an interaction object selection module configured to select at least one target power resource interaction object from each power resource interaction object of a target power grid system; an interaction information acquisition module configured to obtain initial power interaction information corresponding to the target power grid system; a resource interaction amount calculation module configured to, in a case where the initial power interaction information meets a preset power interaction information interval corresponding to each power resource interaction object, calculate a power resource interaction amount corresponding to each power resource interaction object according to the initial power interaction information; an interaction information calculation module configured to calculate target power interaction information of the target power grid system according to each target power resource interaction object and each power resource interaction amount; and a clearing data obtaining module configured to, in a case where each target power resource interaction object judges that the target power interaction information reaches supply-demand balance in the target power grid system, perform clearing according to the target power interaction information to obtain power clearing data of the target power grid system.
[0007] In a third aspect, the present application provides a computer device. The computer device comprises a memory and a processor. The memory stores a computer program. The processor executes the computer program to implement the following steps: selecting at least one target power resource interaction object from each power resource interaction object of a target power grid system; obtaining initial power interaction information corresponding to the target power grid system; calculating power resource interaction amounts corresponding to each power resource interaction object according to the initial power interaction information, in a case that the initial power interaction information meets preset power interaction information intervals corresponding to each power resource interaction object; calculating target power interaction information of the target power grid system according to each target power resource interaction object and each power resource interaction amount; and performing power clearing according to the target power interaction information to obtain power clearing data of the target power grid system, in a case that each target power resource interaction object judges that the target power interaction information reaches supply-demand balance in the target power grid system.
[0008] In a fourth aspect, the present application provides a computer readable storage medium. The computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the following steps: selecting at least one target power resource interaction object from each power resource interaction object of a target power grid system; obtaining initial power interaction information corresponding to the target power grid system; calculating power resource interaction amounts corresponding to each power resource interaction object according to the initial power interaction information, in a case that the initial power interaction information meets preset power interaction information intervals corresponding to each power resource interaction object; calculating target power interaction information of the target power grid system according to each target power resource interaction object and each power resource interaction amount; and performing power clearing according to the target power interaction information to obtain power clearing data of the target power grid system, in a case that each target power resource interaction object judges that the target power interaction information reaches supply-demand balance in the target power grid system.
[0009] In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the following steps: selecting at least one target power resource interaction object from each power resource interaction object of a target power grid system; obtaining initial power interaction information corresponding to the target power grid system; in a case where the initial power interaction information meets a preset power interaction information interval corresponding to each power resource interaction object, calculating a power resource interaction amount corresponding to each power resource interaction object according to the initial power interaction information; calculating target power interaction information of the target power grid system according to each target power resource interaction object and each power resource interaction amount; and in a case where each target power resource interaction object judges that the target power interaction information reaches supply-demand balance in the target power grid system, performing clearing according to the target power interaction information to obtain power clearing data of the target power grid system.
[0010] The above-mentioned multi-object multi-centralized collaborative clearing method, device, computer equipment, storage medium and computer program product based on the delegated proof-of-stake mechanism, by selecting at least one target power resource interaction object from each power resource interaction object of a target power grid system; obtaining initial power interaction information corresponding to the target power grid system; in a case where the initial power interaction information meets a preset power interaction information interval corresponding to each power resource interaction object, calculating a power resource interaction amount corresponding to each power resource interaction object according to the initial power interaction information; calculating target power interaction information of the target power grid system according to each target power resource interaction object and each power resource interaction amount; and in a case where each target power resource interaction object judges that the target power interaction information reaches supply-demand balance in the target power grid system, performing clearing according to the target power interaction information to obtain power clearing data of the target power grid system.
[0011] By combining the delegated proof-of-stake mechanism in the blockchain underlying technology with the actual collaborative scheduling problem of each power resource interaction object in the power market, a general system electricity price iteration mechanism of multi-centralized multi-power resource interaction objects is obtained, distributed power resource interaction in the general system of multi-power resource interaction objects is realized, the solving efficiency of the system is improved when facing a larger group of power resource interaction objects, and the calculation dimension explosion and the data privacy problem are considered. BRIEF DESCRIPTION OF DRAWINGS
[0012] Figure 1 An application environment diagram of a multi-object multi-centralized collaborative clearing method based on the delegated proof-of-stake mechanism in one embodiment;
[0013] Figure 2This is a flowchart illustrating a multi-object, multi-centralized collaborative clearing method based on a delegated proof-of-stake mechanism in one embodiment.
[0014] Figure 3 This is a flowchart illustrating a method for calculating target power interaction information in one embodiment;
[0015] Figure 4 This is a flowchart illustrating the target power interaction information calculation method in another embodiment;
[0016] Figure 5 This is a flowchart illustrating the first preset condition judgment method in one embodiment;
[0017] Figure 6 This is a flowchart illustrating the second preset condition judgment method in one embodiment;
[0018] Figure 7 This is a flowchart illustrating a data uploading method in one embodiment;
[0019] Figure 8 This is a schematic diagram of the convergence curve of the transaction electricity price at various times in one embodiment;
[0020] Figure 9 This is a schematic diagram illustrating the changes in electricity price iterations in one embodiment;
[0021] Figure 10 This is a structural block diagram of a multi-object, multi-centralized collaborative clearing device based on a delegated proof-of-stake mechanism in one embodiment.
[0022] Figure 11 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0024] This application provides a multi-object, multi-centralized collaborative clearing method based on a delegated proof-of-stake mechanism, which can be applied to, for example... Figure 1The application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data required by the server 104 to process. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers. When the server 104 receives the instruction from the terminal 102 about the clearing of the target power grid system, the server 104 selects at least one target power resource interaction object from each power resource interaction object of the target power grid system; obtain the initial power interaction information corresponding to the target power grid system; in the case that the initial power interaction information meets the preset power interaction information interval corresponding to each power resource interaction object, calculate the power resource interaction amount corresponding to each power resource interaction object according to the initial power interaction information; according to each target power resource interaction object and each power resource interaction amount, calculate the target power interaction information of the target power grid system; in the case that each target power resource interaction object judges that the target power interaction information reaches the balance between supply and demand in the target power grid system, the clearing is carried out according to the target power interaction information, and the power clearing data of the target power grid system is obtained. Among them, the terminal 102 can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices, Internet of Things devices can be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be realized by an independent server or a server cluster composed of multiple servers.
[0025] In one embodiment, as shown in Figure 2 , a multi-object multi-centralized collaborative clearing method based on a delegation proof-of-stake mechanism is provided. Taking the server in Figure 1 as an example, the method includes the following steps:
[0026] Step 202, selecting at least one target power resource interaction object from each power resource interaction object of the target power grid system.
[0027] Among them, the target power grid system can be a power grid that needs to be cleared of power resources.
[0028] Among them, the power resource interaction object can be an object that interacts with power resources and other resources in the target power grid system. For example: producers and consumers of the power grid system, etc.
[0029] Among them, the target power resource interaction object can be a power resource interaction object selected as a witness node by each power resource interaction object to realize the operation of the delegation proof-of-stake mechanism.
[0030] Specifically, in the environment where the server 104 has built the delegated proof-of-stake mechanism, all power resource interactive objects of the target power grid system can participate in the selection and selection process. The weight of the vote is proportional to the size of the interest held by the power resource interactive object. After the voting is over, at least one power resource interactive object with the most votes becomes the target power resource interactive object, i.e. the witness in the delegated proof-of-stake mechanism, and the target power resource interactive object exercises the right to record in turn according to the time sequence.
[0031] Step 204, obtaining the initial power interaction information corresponding to the target power grid system.
[0032] Among them, the initial power interaction information can be the initial information of the target power grid system for resource interaction, wherein the value range of the initial power interaction information must meet the preset power interaction information interval of the power interaction information in each power resource interactive object. For example: the initial electricity price of the target power grid system, and the initial electricity price must be within the value range of the electricity price of the target power grid system.
[0033] Specifically, the server 104 receives the instruction from the terminal 102 about clearing the target power grid system, the initial power interaction information corresponding to the target power grid system from the server 104, and stores the obtained initial power interaction information into the storage unit. When the server 104 needs to process the initial power interaction information, it is called from the storage unit to the volatile storage resource for the central processor to calculate. Among them, the initial power interaction information can be input to the central processor for calculation by single thread, or input to the central processor for calculation by multi-thread.
[0034] Step 206, in the case where the initial power interaction information meets the preset power interaction information interval corresponding to each power resource interactive object, the power resource interaction amount corresponding to each power resource interactive object is calculated according to the initial power interaction information.
[0035] Among them, the preset power interaction information interval can be the allowed value range of the initial power interaction information.
[0036] Among them, the power resource interaction amount can be the power amount of the power resource interactive object in the target power grid system for interaction. For example: the dispatching decision transaction power amount published by the producer and consumer to the target power grid system.
[0037] Specifically, server 104 determines the relationship between the initial power interaction information and the preset power interaction information range corresponding to each power resource interaction object. If the data of the initial power interaction information falls within the preset power interaction information range, that is, the initial electricity price of the target power grid system is within the range of electricity prices jointly recognized by each producer and consumer, then each power resource interaction object calculates its own power resource interaction amount for clearing in the target power grid system based on the initial power interaction information.
[0038] The power resource interaction object is an aggregation of various internal resources, exhibiting dual source and load characteristics. These internal resources include distributed generators (DG), photovoltaic (PV) units, wind turbines (WT), energy storage systems (ESS), and demand response (DR).
[0039] As a controllable distributed resource, DG can provide the system with flexible adjustment capabilities. Its operating costs and constraints are as follows:
[0040]
[0041]
[0042]
[0043] In the formula, This represents the operating cost and actual output of the DG during time period t; ai and bi represent the cost coefficients of the unit. Indicates the upper and lower limits of the unit's output; This indicates the unit's hill-climbing capability.
[0044] Due to production requirements, industrial power resource interaction objects typically have high requirements for power quality. Therefore, to ensure the stability and reliability of power supply, an ESS (Electrical Energy Storage System) is often included. The operating costs and constraints of the ESS are as follows:
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052] wherein, respectively represent the ESS charging and discharging cost and power at time t; c ESS,i represents the ESS charging and discharging cost coefficient, which depends on the charging and discharging depth, energy storage life, energy storage capacity and other factors; respectively represent the ESS charging and discharging efficiency; respectively represent the ESS charging and discharging state, which is a Boolean variable; respectively represent the upper and lower bounds of the ESS charging and discharging; represents the capacity state of the ESS at time t; respectively represent the upper and lower bounds of the ESS capacity; T represents the duration of the ESS participating in the dispatch, and the ESS capacity at the last time of participating in the dispatch should be guaranteed to be the same as that at the initial time.
[0053] Flexible load can participate in demand response under the condition of guaranteeing the normal life and production needs of users. According to the response characteristics, it can be divided into interruptible load (IL) and translational load (TL), and the calling cost and constraint conditions are as follows:
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060] wherein, respectively represent the calling cost of IL users and TL users at time t; c IL,i (t), c TL,i respectively represent the unit compensation cost of IL users and TL users for load interruption and transfer at time t; represents the load interruption amount of IL users; represents the load up-regulation and down-regulation amount of TL users, which should satisfy that the up-regulation amount is the same as the down-regulation amount in the whole dispatching period; respectively represent the maximum interruption upper limit and transfer upper limit of load.
[0061] Due to the volatility and uncertainty of load demand and new energy output, different power transaction demands of the power resource interaction object may be generated at different times of a day. In a dispatch period, the transaction scheduling model of the power resource interaction object i can be expressed as:
[0062]
[0063]
[0064]
[0065] In the formula, S represents a load demand and new energy output scenario; represents the output level of DG, IL, and TL in a certain scenario; respectively represent the benefits of power resource interaction object and multi-power resource interaction object system transaction, power resource interaction object and system transaction power, and system price; represents the output of PV and WT in a certain scenario. In order to avoid the cost of abandoned wind and light, wind power and photovoltaic are considered as non-schedulable full consumption resources.
[0066] In step 208, the target power interaction information of the target power grid system is calculated according to each target power resource interaction object and each power resource interaction quantity.
[0067] The target power interaction information can be the consensus reached by each target power resource interaction object in the power resource interaction.
[0068] Specifically, the power resource interaction quantity corresponding to each target power resource interaction object is counted to obtain the resources that can be interacted in the entire target power grid system. For any target power resource interaction object, the supply and demand power information of each target power resource interaction object is calculated according to the resources that can be interacted in the entire target power grid system.
[0069] Before calculating the target power interaction information of the final target power grid system, each target power resource interaction object needs to witness the supply and demand power information of each target power resource interaction object, so as to represent the consensus of each target power resource interaction object on the supply and demand power information before the target. Therefore, the supply and demand power information of each target power resource interaction object needs to be compared with the remaining target power resource interaction objects. If the comparison result is always the same, the target power interaction information of the final target power grid system is calculated according to the supply and demand power information.
[0070] In step 210, when each target power resource interaction object judges that the target power interaction information reaches the supply and demand balance in the target power grid system, the target power grid system is cleared according to the target power interaction information, and the power clearing data of the target power grid system is obtained.
[0071] The power clearing data can be data exchanged between power supply and power demand.
[0072] Specifically, if each target power resource interaction object respectively or jointly determines that the target power interaction information has reached a supply-demand balance state in the current situation of the target power grid system, i.e., the resource amount of the object requiring power and the object pushing out power is equal, then the power resources of the target power grid system are cleared according to the target power interaction information, and power clearing data is obtained. For example, if the power amount of the object requiring power and the object pushing out power is equal, then the power amount of the target power grid system is cleared according to the target power interaction information, and power clearing data is obtained.
[0073] In an embodiment, under a certain transaction price, each producer and consumer solves the transaction power with the external multi-producer and consumer system according to the actual internal situation. When the supply is equal to the demand in the market, the transaction power of each producer and consumer reaches balance at this time, the transaction price tends to be stable, the excess power producer can consume the excess power at a price higher than the on-grid price, the power shortage producer can purchase the power shortage at a price lower than the sales price, and a win-win situation of the transaction buyers and sellers is realized.
[0074] In the above multi-object multi-centralized collaborative clearing method based on the delegation proof-of-stake mechanism, at least one target power resource interaction object is selected from each power resource interaction object of the target power grid system; initial power interaction information corresponding to the target power grid system is obtained; in the case that the initial power interaction information meets the preset power interaction information interval corresponding to each power resource interaction object, the power resource interaction amount corresponding to each power resource interaction object is calculated according to the initial power interaction information; the target power interaction information of the target power grid system is calculated according to each target power resource interaction object and each power resource interaction amount; in the case that each target power resource interaction object determines that the target power interaction information reaches a supply-demand balance in the target power grid system, the clearing is performed according to the target power interaction information, and power clearing data of the target power grid system is obtained.
[0075] By combining the delegation proof-of-stake mechanism in the blockchain underlying technology with the actual collaborative scheduling problem of each power resource interaction object in the power market, a general system price iteration mechanism of multi-centralized multi-power resource interaction objects is obtained, distributed power resource interaction in the general system of multi-power resource interaction objects is realized, the solving efficiency of the system is improved when facing a larger group of power resource interaction objects, and the calculation dimension explosion and the data privacy problem are considered.
[0076] In an embodiment, as Figure 3As shown, the target power interaction information of the target power grid system is calculated according to each target power resource interaction object and each power resource interaction quantity, including:
[0077] In step 302, for any target power resource interaction object, the supply-demand power quantity information of the target power grid system is calculated according to each power resource interaction quantity.
[0078] The power supply quantity information can be the supply and demand power quantity information of the entire target power grid system.
[0079] Specifically, for any target power resource interaction object, the supply-demand power quantity information of the target power grid system corresponding to the target power resource interaction object is calculated according to the power resource interaction quantity corresponding to each different target power resource interaction object and input into the power supply quantity information calculation model corresponding to the target power resource interaction object. The supply-demand power quantity information of each target power grid system can be obtained by calculating the model.
[0080] In step 304, the target power interaction information of the target power grid system is calculated according to each supply-demand power quantity information.
[0081] Specifically, the server 104 compares each supply-demand power quantity information to obtain interaction object comparison information. If the interaction object comparison information indicates that all supply-demand power quantity information is the same and any supply-demand power quantity information satisfies the supply-demand power quantity preset condition of the target power grid system, the target power interaction information of the target power grid system is calculated according to any supply-demand power quantity information.
[0082] In most cases in the iteration process, the balance of the supply-demand relationship is not easily achieved, and the imbalance of the supply-demand relationship in the market is the norm. When the market is oversupplied, it means that the set power interaction information is too high, and the power resource interaction object has the willingness to improve its power generation level / reduce its power demand to increase the power sales / reduce the power purchase. When the market is undersupplied, it means that the power interaction information is set too low, and the microgrid has the willingness to reduce its power generation level / increase its power demand to reduce the power sales / increase the power purchase. The two supply-demand relationships imply the change rule of the power interaction information. When the power supply is oversupplied, the power interaction information should be appropriately reduced; when the power supply is undersupplied, the power interaction information should be appropriately increased.
[0083]
[0084] In the formula, λ k (t) represents the power interaction information of the transaction at time t in the kth iteration; represents the quantity of the willingness to buy and the willingness to sell in the market at time t in the kth iteration; and p is an adjustment coefficient of the power interaction information, satisfying p≥0.
[0085] When the target power grid system as a whole presents a situation of power shortage or power surplus, the power interaction information of the transaction driven by the supply and demand relationship of the market can exceed the power interaction information of the sale or be lower than the power interaction information of the on-grid. At this time, the party in the disadvantage in the transaction buyer-seller pair tends to carry out the transaction with the power grid. Therefore, it is provided that when the power interaction information interval formed by the power interaction information of the transaction exceeding the power interaction information of the power grid, the power interaction information of the power grid is taken as the power interaction information of the transaction at the time. For example, when the target power grid system as a whole presents a situation of power shortage, if the power interaction information is still allowed to iterate according to the supply and demand relationship, the power interaction information will be higher than the power interaction information of the sale of the power grid. At this time, the power resource interaction object with power shortage is more inclined to directly purchase power from the power grid than to participate in the power transaction of the target power grid system. Therefore, it can be assumed that the power resource interaction object with power shortage purchases power from the power resource interaction object with power surplus at the power interaction information of the sale, and the remaining power is purchased from the power grid. From the perspective of economic benefits, in this case, the power resource interaction object with power shortage is equivalent to not participating in the transaction of the target power grid system, and the power is purchased from the outside at the power interaction information of the sale. However, for the power resource interaction object with power surplus, the economic benefits are significantly improved, and the excess power can be consumed at the power interaction information of the sale, and the improved economic benefits are the difference between the excess power and the power interaction information of the sale and the power interaction information of the on-grid. Similarly, in the case of power surplus of the target power grid system as a whole, the power resource interaction object with power surplus sells power to the outside at the power interaction information of the on-grid; the power resource interaction object with power shortage as the beneficiary can purchase the power at the power interaction information of the on-grid. Therefore, the division of the boundary of the power interaction information of the transaction has positive practical significance, and fairly encourages the buyer-seller pair under different market supply and demand conditions.
[0086] In the embodiment, the supply and demand power information of the target power grid system is determined through a calculation model and an iteration process. The server obtains the comparison information of the interaction objects by comparing the supply and demand power information of each power resource interaction object, and calculates the target power interaction information of the target power grid system according to a preset condition. Further, the imbalance of the supply and demand relationship in the target power grid system is the norm, and the power interaction information is adjusted to adapt to the market changes. The adjustment strategy of the power interaction information is particularly emphasized when the power supply exceeds the demand or the demand exceeds the supply, so as to promote the fairness of the transaction and the improvement of the economic benefits. It is beneficial to realize the effective interaction in the power market, and ensure the rational use of power resources and the maximization of economic benefits.
[0087] In one embodiment, as Figure 4As shown, according to each supply and demand power information, the target power interaction information of the target power grid system is calculated, including:
[0088] In step 402, each supply and demand power information is compared to obtain interaction object comparison information.
[0089] The interaction object comparison information can be data indicating whether any one supply and demand power information is the same as other supply and demand power information.
[0090] Specifically, any one supply and demand power information is selected and compared with the remaining other supply and demand power information to obtain supply and demand power comparison information. According to the principle of equal substitution, if the supply and demand power comparison information indicates that the selected supply and demand power information is equal to the remaining other supply and demand power information, it indicates that all supply and demand power information is equal, and the interaction object comparison information is output. If the supply and demand power comparison information indicates that the selected supply and demand power information is not equal to any one of the remaining supply and demand power information, it indicates that all supply and demand power information is equal, and the interaction object comparison information is output.
[0091] In step 404, when the interaction object comparison information indicates that each supply and demand power information is the same, and any supply and demand power information satisfies the supply and demand power preset condition of the target power grid system, the target power interaction information of the target power grid system is calculated according to any supply and demand power information.
[0092] The supply and demand power preset condition can be that the specific value of the supply and demand power information is within the range of the supply and demand power preset condition of the target power grid system. For example, the supply and demand power information is 10 yuan / degree, and the supply and demand power preset condition is 5-15 yuan / degree, which meets the condition.
[0093] Specifically, if the interaction object comparison information indicates that each supply and demand power information is the same, and any one supply and demand power information satisfies the supply and demand power preset condition of the target power grid system, that is, each identical supply and demand power information satisfies the supply and demand power preset condition of the target power grid system, then the target power interaction information of the entire target power grid system is calculated according to any one supply and demand power information.
[0094] In this embodiment, by selecting any one of the supply and demand power information and comparing with other information, and applying the principle of equal substitution, the effective comparison and screening process is realized. If the comparison information shows that all the supply and demand power information is equal, the comparison information of the interactive object is output, otherwise, if there is inequality, it means that all the information is equal, and the comparison information is also output. The most important thing is that when the comparison information shows that each supply and demand power information is the same, and meets the preset condition of the target power grid system, the system will calculate the target power interaction information of the entire target power grid system according to any one of the supply and demand power information. The consistency of the supply and demand power and the preset condition are ensured, which provides a reliable basis for the power interaction of the target power grid system.
[0095] In one embodiment, as shown in Figure 5 the method further comprises:
[0096] Step 502, in the case that the interactive object comparison information indicates that any supply and demand power information is not the same, but any supply and demand power information meets the supply and demand power preset condition of the target power grid system, return to execute the step of selecting at least one target power resource interactive object from each power resource interactive object of the target power grid system until each interactive object comparison information indicates that each supply and demand power information is the same, and the supply and demand power information meets the supply and demand power preset condition of the target power grid system.
[0097] Specifically, if the interactive object comparison information indicates that any supply and demand power information is not the same, and any one of the supply and demand power information meets the supply and demand power preset condition of the target power grid system, that is, the remaining each identical supply and demand power information and the different supply and demand power information meet the supply and demand power preset condition of the target power grid system at the same time, return to execute the step of selecting at least one target power resource interactive object from each power resource interactive object of the target power grid system until each interactive object comparison information indicates that each supply and demand power information is the same, and any one of the supply and demand power information meets the supply and demand power preset condition of the target power grid system, that is, each identical supply and demand power information meets the supply and demand power preset condition of the target power grid system at the same time.
[0098] Alternatively, step 504, in the case that the interactive object comparison information indicates that each supply and demand power information is the same, but any supply and demand power information does not meet the supply and demand power preset condition of the target power grid system, return to execute the step of selecting at least one target power resource interactive object from each power resource interactive object of the target power grid system until each interactive object comparison information indicates that each supply and demand power information is the same, and the supply and demand power information meets the supply and demand power preset condition of the target power grid system.
[0099] Specifically, if the interaction object comparison information indicates that each supply-demand power information is the same, but any one of the supply-demand power information does not meet the supply-demand power preset condition of the target power grid system, i.e., each of the same supply-demand power information does not meet the supply-demand power preset condition of the target power grid system (because each of the supply-demand power information is the same, and one of the supply-demand power information is not the same, which means that each of the supply-demand power information does not meet the supply-demand power preset condition of the target power grid system), the step of selecting at least one target power resource interaction object from each power resource interaction object of the target power grid system is returned to execute until each interaction object comparison information indicates that each supply-demand power information is the same, and any one of the supply-demand power information meets the supply-demand power preset condition of the target power grid system, i.e., each of the same supply-demand power information meets the supply-demand power preset condition of the target power grid system.
[0100] In this embodiment, a complex and rigorous logic flow is used to ensure that the supply-demand power information meeting the preset condition is selected in the target power grid system. The system compares the interaction object information to determine whether there is different supply-demand power information, and in the case of difference, the iteration process is used for continuous screening until a group of same supply-demand power information meeting the condition is found. At the same time, the system also considers whether the supply-demand power information meets the preset condition in the case of same supply-demand power information, and if not, the iteration screening is also performed. The whole design ensures that the supply-demand power information of the target power grid system is determined under the double conditions of consistency and meeting the preset condition, which provides a reliable guarantee for the robustness and effectiveness of the system.
[0101] In one embodiment, as shown in FIG. 6, Figure 6 the method further includes:
[0102] Step 602, in the case that each target power resource interaction object judges that the target power interaction information fails to achieve supply-demand balance in the target power grid system, the target power interaction information is taken as the initial power interaction information.
[0103] Specifically, each target power resource interaction object judges whether the calculation result of the target power interaction information meets the supply-demand balance according to the calculation result of the target power interaction information. If the calculation result indicates that the current target power interaction information fails to achieve the supply-demand balance in the target power grid system, the current target power interaction information is taken as the initial power interaction information.
[0104] Step 604, the step of calculating the power resource interaction amount corresponding to each power resource interaction object according to the initial power interaction information is returned to execute until each target power resource interaction object judges that the target power interaction information can achieve the supply-demand balance in the target power grid system.
[0105] Specifically, in the case of using the target power interaction information corresponding to the last iteration for the initial power interaction information, the step of calculating the power resource interaction amount corresponding to each power resource interaction object according to the initial power interaction information is returned to be executed until the calculation of the clearing result of each target power resource interaction object according to the target power interaction information is completed. It is judged whether the clearing result reaches the balance of supply and demand. If the clearing result indicates that the target power grid system has reached the balance of supply and demand with the current target power interaction information, the target power interaction information is output.
[0106] In this embodiment, the balance of supply and demand is judged according to the calculation of the clearing result of the target power resource interaction object through the iteration process. If the clearing result indicates that the target power grid system has not reached the balance, the current target power interaction information is taken as the initial power interaction information, and the iteration calculation is performed on the basis of the initial information until the system reaches the balance of supply and demand. If the clearing result indicates that the balance has been reached, the final target power interaction information is output. Through repeated iteration and dynamic adjustment, it is ensured that the target power grid system can effectively realize the balance of supply and demand under the condition of continuous change, and reliable technical support is provided for the robustness and adaptability of the system.
[0107] In one embodiment, as shown in Figure 7 After the step of performing the clearing according to the target power interaction information to obtain the power clearing data of the target power grid system, the method further includes:
[0108] In step 702, the power clearing data corresponding to the balance of supply and demand data is obtained.
[0109] The balance of supply and demand data can be data about the balance of supply and demand of the target power grid system in the clearing of the balance of supply and demand.
[0110] Specifically, in the case of obtaining the power clearing data through the clearing, the database in the clearing process is traversed according to the power clearing data, and the balance of supply and demand data related to the power clearing data is selected from the database. The balance of supply and demand data is stored in the storage unit, and when the server 104 needs to process the balance of supply and demand data, the balance of supply and demand data is called from the storage unit to the volatile storage resource for calculation by the central processor. The balance of supply and demand data can be input to the central processor for calculation in single thread or in multiple threads.
[0111] In step 704, the balance of supply and demand data, the power clearing data and the target power interaction information are used to generate a power data hash value.
[0112] The power data hash value can be a hash value of the blockchain in the target power grid system which needs to record the clearing result of the current time.
[0113] Specifically, according to the supply-demand balance data, the power out-clear data and the target power interaction information, a target hash algorithm is selected from a hash algorithm database; the supply-demand balance data, the power out-clear data and the target power interaction information are input into the target hash algorithm, and a power data hash value is generated through calculation of the target hash algorithm.
[0114] In step 706, according to the power data hash value, the supply-demand balance data, the power out-clear data and the target power interaction information are stored in the target block.
[0115] Specifically, due to the identification of the power data hash value target block, the supply-demand balance data, the power out-clear data and the target power interaction information are stored in the target block according to the guidance of the power data hash value.
[0116] In this embodiment, the supply-demand balance data related to the power out-clear data is selected by traversing the database, and efficient data management and storage are realized by using the hash algorithm. By selecting the target hash algorithm, the supply-demand balance data, the power out-clear data and the target power interaction information are input into the hash algorithm to generate a power data hash value as the identification of the target block. It is beneficial to store the related supply-demand balance data, power out-clear data and target power interaction information in the target block through the guidance of the hash value. Such a data structure can not only ensure the security and integrity of the data, but also improve the efficiency of data retrieval and processing. By adopting this technical scheme, the system realizes the traceability and efficient management of the power data, and provides stable and reliable technical support for the power interaction process.
[0117] In one embodiment, one example analysis is provided:
[0118] 1. Example data
[0119] The multi-generator and consumer system constructed in this example includes four generators and consumers, and the device parameters and electricity price information are shown in Tables 1, 2, 3 and 4. The calling cost of IL in demand response is 0.5 times the transaction electricity price in the period, and the calling cost of TL is 0.4 times the transaction electricity price in the period.
[0120] Table 1 DG device parameters
[0121]
[0122] Table 2 ESS device parameters
[0123]
[0124] Table 3 Demand response parameters
[0125]
[0126] Table 4 Electricity price information
[0127]
[0128] 2. Multi-scenario analysis
[0129] Scenario 1: Prosumers directly trade with the grid;
[0130] Scenario 2: Prosumers participate in multi-prosumer system trading;
[0131] In scenario 1, prosumers do not participate in multi-prosumer system trading, and the surplus power at each time is directly traded with the grid, with the trading price being the grid sales price and the on-grid price. In scenario 2, the prosumer system participates in multi-prosumer system trading, and the market supply and demand information is collected through the witness node to iterate the trading price at each time, and finally converges. The convergence curve is shown in Figure 8
[0132] Electricity price iteration Figure 9 The trading electricity price reaches the sales price in the 1st-3rd, 5th-6th, and 23rd periods, and the system as a whole is in a state of supply not meeting demand; reaches the on-grid price in the 8th, 9th-15th, and 21st-22nd periods, and the system as a whole is in a state of supply exceeding demand; and in other periods, the trading electricity of each prosumer is balanced under the internal trading electricity price, and the trading electricity price is also within the interval of the grid electricity price. In scenario 3, the electricity price reaches the sales price in the 1st-6th periods and the 23rd period, and the system as a whole is in a state of supply not meeting demand; reaches the on-grid price in the 12th-16th periods, and the system as a whole is in a state of supply exceeding demand; and in other periods, the internal electricity price of the system reaches balance.
[0133] Table 5 compares the trading scheduling costs of each prosumer considering day-ahead and real-time scheduling in the above two situations. It is assumed that the real-time market purchase price is 1.5 times the day-ahead market sales price, and the real-time market sales price is 0.5 times the day-ahead market on-grid price.
[0134] In scenario 1, each prosumer only trades with the grid, and the grid price is relatively higher than the trading electricity price in the multi-prosumer system, so the prosumer needs to pay a much higher trading scheduling cost than in the prosumer system collaborative governance mode. From the data in the table, in scenario 2, the prosumer trading through the multi-prosumer system reduces the cost by 19.3% compared to directly trading with the grid in scenario 1.
[0135] Table 5 Day-ahead and intra-day scheduling costs in each scenario
[0136]
[0137] It should be understood that although each step in the flowchart involved in the above embodiments is shown in sequence according to the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately executed with at least part of other steps or steps or stages in other steps.
[0138] Based on the same inventive concept, the embodiments of the present application also provide a multi-object multi-centralized collaborative clearing device based on a delegated proof-of-stake mechanism. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more multi-object multi-centralized collaborative clearing device embodiments based on a delegated proof-of-stake mechanism can be referred to the limitations of a multi-object multi-centralized collaborative clearing method based on a delegated proof-of-stake mechanism in the above, which will not be repeated here.
[0139] In one embodiment, as shown in Figure 10 A multi-object multi-centralized collaborative clearing device based on a delegated proof-of-stake mechanism is provided, including: an interactive object selection module 1002, an interactive information acquisition module 1004, a resource interaction quantity calculation module 1006, an interactive information calculation module 1008, and a clearing data obtaining module 1010, wherein:
[0140] The interactive object selection module 1002 is configured to select at least one target power resource interactive object from each power resource interactive object of the target power grid system;
[0141] The interactive information acquisition module 1004 is configured to acquire initial power interaction information corresponding to the target power grid system;
[0142] The resource interaction quantity calculation module 1006 is configured to calculate the power resource interaction quantity corresponding to each power resource interactive object according to the initial power interaction information, in a case where the initial power interaction information meets the preset power interaction information interval corresponding to each power resource interactive object;
[0143] The interactive information calculation module 1008 is configured to calculate the target power interaction information of the target power grid system according to each target power resource interactive object and each power resource interaction quantity;
[0144] The clearing data obtaining module 1010 is configured to, in a case where each target power resource interaction object judges that the target power interaction information reaches the supply-demand balance in the target power grid system, perform clearing according to the target power interaction information, and obtain power clearing data of the target power grid system.
[0145] In one embodiment, the interaction information calculation module 1008 is further configured to, for any target power resource interaction object, calculate supply-demand power information of the target power grid system according to each power resource interaction amount; and calculate the target power interaction information of the target power grid system according to each supply-demand power information.
[0146] In one embodiment, the interaction information calculation module 1008 is further configured to compare each supply-demand power information to obtain interaction object comparison information; in a case where the interaction object comparison information indicates that each supply-demand power information is the same and any supply-demand power information meets a supply-demand power preset condition of the target power grid system, calculate the target power interaction information of the target power grid system according to any supply-demand power information.
[0147] In one embodiment, the interaction information calculation module 1008 is further configured to, in a case where the interaction object comparison information indicates that any supply-demand power information is not the same but any supply-demand power information meets the supply-demand power preset condition of the target power grid system, return to perform the step of selecting at least one target power resource interaction object from each power resource interaction object of the target power grid system until each interaction object comparison information indicates that each supply-demand power information is the same and the supply-demand power information meets the supply-demand power preset condition of the target power grid system; or, in a case where the interaction object comparison information indicates that each supply-demand power information is the same but any supply-demand power information does not meet the supply-demand power preset condition of the target power grid system, return to perform the step of selecting at least one target power resource interaction object from each power resource interaction object of the target power grid system until each interaction object comparison information indicates that each supply-demand power information is the same and the supply-demand power information meets the supply-demand power preset condition of the target power grid system.
[0148] In one embodiment, the clearing data obtaining module 1010 is further configured to, in a case where each target power resource interaction object judges that the target power interaction information fails to reach the supply-demand balance in the target power grid system, take the target power interaction information as initial power interaction information; and return to perform the step of calculating the power resource interaction amount corresponding to each power resource interaction object according to the initial power interaction information until each target power resource interaction object judges that the target power interaction information can reach the supply-demand balance in the target power grid system.
[0149] In an embodiment, the clearing data obtaining module 1010 is further configured to obtain supply-demand balance data corresponding to the power clearing data; generate a power data hash value based on the supply-demand balance data, the power clearing data, and the target power interaction information; and store the supply-demand balance data, the power clearing data, and the target power interaction information into the target block based on the power data hash value.
[0150] The modules in the above multi-object multi-centralized collaborative clearing device based on the commissioned proof-of-stake mechanism can be implemented wholly or partially by software, hardware, or a combination thereof. The modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a memory in the computer device in software form, so as to be called and executed by the processor to perform operations corresponding to the modules.
[0151] In an embodiment, a computer device, which can be a server, is provided, and an internal structure diagram of the computer device can be as shown in FIG. 10. Figure 11 The computer device includes a processor, a memory, and a network interface connected by a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store server data. The network interface of the computer device is configured to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a multi-object multi-centralized collaborative clearing method based on a commissioned proof-of-stake mechanism.
[0152] Those skilled in the art can understand that Figure 11 The structure shown in FIG. 10 is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. Specifically, the computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0153] In an embodiment, a computer device is also provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.
[0154] In an embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to implement the steps in the above method embodiments.
[0155] In an embodiment, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in each of the above method embodiments.
[0156] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties.
[0157] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. Any reference to memory, database or other medium used in the embodiments provided by the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided by the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided by the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0158] Any technical features in the above embodiments can be combined, and for the sake of brevity, not all possible combinations are described above, however, as long as the combinations of technical features do not have contradictions, they shall be considered within the scope of the present disclosure.
[0159] The above embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it shall not be understood as a limitation on the patent scope of the present application. It shall be pointed out that, for ordinary skilled persons in the art, several modifications and improvements can be made without departing from the concept of the present application, and these shall be within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A multi-object multi-centralized collaborative clearing method based on a delegated proof-of-stake mechanism, characterized in that, The method comprises: selecting at least one target power resource interaction object from each power resource interaction object of a target power grid system; acquiring initial power interaction information corresponding to the target power grid system; in a case where the initial power interaction information meets a preset power interaction information interval corresponding to each power resource interaction object, calculating a power resource interaction amount corresponding to each power resource interaction object according to the initial power interaction information; for any target power resource interaction object, calculating supply-demand power information of the target power grid system according to each power resource interaction amount; comparing each supply-demand power information to obtain interaction object comparison information; in a case where the interaction object comparison information indicates that each supply-demand power information is the same and any supply-demand power information meets a supply-demand power preset condition of the target power grid system, calculating target power interaction information of the target power grid system according to any supply-demand power information; the target power interaction information is consensus-reaching interaction information for power resource interaction of each target power resource interaction object; in a case where each target power resource interaction object judges that the target power interaction information reaches supply-demand balance in the target power grid system, clearing according to the target power interaction information to obtain power clearing data of the target power grid system.
2. The method of claim 1, wherein, The method further comprises: in a case where the interaction object comparison information indicates that any supply-demand power information is not the same, but any supply-demand power information meets the supply-demand power preset condition of the target power grid system, returning to execute the step of selecting at least one target power resource interaction object from each power resource interaction object of a target power grid system until each interaction object comparison information indicates that each supply-demand power information is the same and the supply-demand power information meets the supply-demand power preset condition of the target power grid system; or, in a case where the interaction object comparison information indicates that each supply-demand power information is the same, but any supply-demand power information does not meet the supply-demand power preset condition of the target power grid system, returning to execute the step of selecting at least one target power resource interaction object from each power resource interaction object of a target power grid system until each interaction object comparison information indicates that each supply-demand power information is the same and the supply-demand power information meets the supply-demand power preset condition of the target power grid system.
3. The method according to any one of claims 1 to 2, characterized in that, The method further comprises: in a case where each target power resource interaction object judges that the target power interaction information fails to reach supply-demand balance in the target power grid system, taking the target power interaction information as the initial power interaction information; returning to execute the step of calculating a power resource interaction amount corresponding to each power resource interaction object according to the initial power interaction information until each target power resource interaction object judges that the target power interaction information can reach supply-demand balance in the target power grid system.
4. The method of claim 1, wherein, After the power balance data of the target power grid system is obtained according to the target power interaction information, the method further comprises: obtaining supply-demand balance data corresponding to the power balance data; generating a power data hash value from the supply-demand balance data, the power balance data, and the target power interaction information; storing the supply-demand balance data, the power balance data, and the target power interaction information into a target block according to the power data hash value.
5. A multi-object multi-central collaborative clearing device based on a delegated proof-of-stake mechanism, characterized in that, The device comprises: an interaction object selection module for selecting at least one target power resource interaction object from each power resource interaction object of a target power grid system; an interaction information acquisition module for acquiring initial power interaction information corresponding to the target power grid system; a resource interaction amount calculation module for calculating power resource interaction amounts corresponding to each power resource interaction object according to the initial power interaction information when the initial power interaction information meets preset power interaction information intervals corresponding to each power resource interaction object; an interaction information calculation module for calculating supply-demand power information of the target power grid system according to each power resource interaction amount for any target power resource interaction object; comparing each supply-demand power information to obtain interaction object comparison information; calculating target power interaction information of the target power grid system according to any supply-demand power information when the interaction object comparison information indicates that each supply-demand power information is the same and any supply-demand power information meets supply-demand power preset conditions of the target power grid system; the target power interaction information is the consensus interaction information for power resource interaction of each target power resource interaction object; a balance data obtaining module for obtaining power balance data of the target power grid system according to the target power interaction information when each target power resource interaction object determines that the target power interaction information reaches supply-demand balance in the target power grid system. 6.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-5 when the computer program is executed by the processor. The processor executes the computer program to realize the steps of the method of any one of claims 1 to 4.
7. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method of any one of claims 1 to 4.
8. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method of any one of claims 1 to 4.
Citation Information
Patent Citations
Power transaction and carbon emission monitoring system and method based on energy block chain
CN115660835A
KR20200114073A