Incentive mechanism configuration method and related equipment for energy system based on blockchain
By designing an incentive mechanism in the blockchain energy system, assessing the effectiveness of producers and sellers participating in blockchain maintenance and optimizing rewards and compensation, the problem of low participation enthusiasm in existing technology is solved, and transaction processing speed and system development are improved.
Patent Information
- Application Number
- CN202211413379.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-11-11
AI Technical Summary
The energy system based on the blockchain ignores the positive externalities of producers and sellers participating in blockchain maintenance in the design of incentive mechanisms, resulting in low participation enthusiasm and limiting transaction processing speed and system development.
Design a blockchain-based energy system incentive mechanism configuration method. By calculating the energy income distributed by producers and sellers, blockchain maintenance income, compensation and the cost of waiting for transaction processing, the utility of producers and sellers participating in total system maintenance is evaluated and optimized. Blockchain maintenance rewards and compensation between producers and sellers to increase participation enthusiasm.
It increases the enthusiasm of producers and sellers to participate in blockchain maintenance, improves transaction processing speed, expands the support capacity of the energy system, and achieves greater energy network support.
Smart Images

Figure CN115660896B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of energy utilization, and specifically to an incentive mechanism configuration method and related equipment for an energy system based on blockchain. Background Art
[0002] With the vigorous development of new energy, blockchain-based energy systems have become an important part of the new energy network. Although many blockchain-based energy systems have adopted sharding and other means to improve the speed of blockchain system transaction processing, such systems often ignore the design of corresponding incentive mechanisms, resulting in energy producers and sellers often lacking the enthusiasm to actively participate in the blockchain system. Therefore, in actual deployment, the actual transaction processing speed of blockchain-based energy systems is very limited, which greatly limits the number of participants in the energy system and the development of the energy system.
[0003] The participation of producers and sellers in blockchain maintenance has positive externalities. On the one hand, it can improve the transaction processing speed of the system and reduce the waiting time of all producers and sellers. On the other hand, producers and sellers also have to bear the cost of participating in blockchain maintenance, that is, when a producer and seller participates in blockchain maintenance, it can reduce the waiting time of all other producers and sellers. However, the existing incentive mechanism ignores this positive externality, resulting in low enthusiasm of producers and sellers to participate in blockchain maintenance, which greatly limits the transaction processing speed. Summary of the invention
[0004] The embodiments of the present application provide a method and related equipment for configuring an incentive mechanism for an energy system based on blockchain, which are used to evaluate the benefits and rewards of energy producers and sellers participating in the maintenance of the overall system so as to enhance the enthusiasm of producers and sellers to participate in maintaining the operation of the overall system.
[0005] In a first aspect, an embodiment of the present application provides a method for configuring an incentive mechanism of an energy system based on blockchain, the method being applied to a computer device, the method comprising:
[0006] According to the energy allocation strategy of the target prosumer, determining a first energy source allocated by the target prosumer to the energy system and a second energy source allocated to the blockchain system;
[0007] Determining the energy system income of the target producer and seller based on the first energy;
[0008] Determine the blockchain maintenance income of the target producer and seller according to the second energy source;
[0009] Determine the compensation paid by all other producers and sellers in the blockchain system to the target producer and seller based on the second energy source;
[0010] Determine the net compensation received by the target producer and seller based on the compensation paid to the target producer and seller by all other producers and sellers in the blockchain system;
[0011] Determining the cost of energy distribution performed by the target prosumer according to the first energy and the second energy;
[0012] Determining the cost of the target prosumer waiting for the transaction processing in the blockchain system to be completed;
[0013] The utility of the target prosumer is determined according to the energy system income, the blockchain maintenance income, the net compensation obtained by the target prosumer, the cost of the target prosumer to perform energy allocation, and the cost of the target prosumer waiting for transaction processing to be completed.
[0014] A second aspect of an embodiment of the present application provides a computer device, the computer device comprising:
[0015] A strategy determination unit, configured to determine, according to the energy allocation strategy of the target prosumer, the first energy source allocated to the energy system and the second energy source allocated to the blockchain system by the target prosumer;
[0016] a revenue determination unit, configured to determine the energy system revenue of the target prosumer according to the first energy source, and determine the blockchain maintenance revenue of the target prosumer according to the second energy source;
[0017] a compensation determination unit, configured to determine the compensations of all other prosumers in the blockchain system to the target prosumer according to the second energy source, and determine the net compensation obtained by the target prosumer according to the compensations of all other prosumers in the blockchain system to the target prosumer;
[0018] A cost determination unit, configured to determine the cost of the target prosumer performing energy allocation according to the first energy and the second energy, and determine the cost of the target prosumer waiting for the completion of the transaction processing in the blockchain system;
[0019] A utility determination unit is used to determine the utility of the target prosumer based on the energy system income, the blockchain maintenance income, the net compensation obtained by the target prosumer, the cost of the target prosumer to perform energy allocation, and the cost of the target prosumer waiting for transaction processing to be completed.
[0020] A third aspect of an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method of the first aspect when executing the computer program.
[0021] A fourth aspect of an embodiment of the present application provides a computer storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the method of the first aspect.
[0022] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0023] In this embodiment, by designing an incentive mechanism, that is, optimizing blockchain maintenance rewards and compensation between producers and sellers, it is possible to estimate the benefits of producers and sellers participating in blockchain maintenance, improve transaction processing speed and reduce the waiting time of all other producers and sellers. It also explicitly considers the positive externalities of producers and sellers participating in blockchain maintenance, improves the enthusiasm of producers and sellers to participate in blockchain maintenance, and encourages producers and sellers to participate in blockchain maintenance and process transactions, thereby improving the transaction processing speed of the overall system, and enabling the overall system to support a larger energy network. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a schematic diagram of the system architecture of the overall system in the embodiment of the present application;
[0025] Figure 2 A flowchart of a method for configuring an incentive mechanism for an energy system based on blockchain in an embodiment of the present application;
[0026] Figure 3 This is another flowchart of the method for configuring the incentive mechanism of the energy system based on blockchain in an embodiment of the present application;
[0027] Figure 4 A schematic diagram of a function graph of a compensation function for the amount of compensation of a target producer and seller by each other producer and seller in the blockchain system in an embodiment of the present application;
[0028] Figure 5 This is a schematic diagram of the structure of a computer device in an embodiment of the present application;
[0029] Figure 6 This is another structural diagram of a computer device in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The embodiments of the present application provide a method and related equipment for configuring an incentive mechanism for an energy system based on blockchain, which are used to evaluate the benefits and rewards of energy producers and sellers participating in the maintenance of the overall system so as to enhance the enthusiasm of producers and sellers to participate in maintaining the operation of the overall system.
[0031] See also Figure 1 , the system architecture of the overall system in the embodiment of the present application includes:
[0032] System designers, energy producers and sellers, energy systems, and blockchain systems;
[0033] Among them, the system designer can design the operating rules of the overall system and the incentive mechanism for each member of the overall system, so that each member of the overall system operates according to the operating rules and interacts with other members, and can obtain corresponding rewards and benefits based on the incentive mechanism; energy producers and sellers can produce energy and use the corresponding energy for the maintenance of the blockchain system, or sell it to the energy system, and can also be energy users; the energy system integrates energy consumers and producers and sellers, and the energy produced by producers and sellers can be sold to users who need to use energy in the energy system; the blockchain system is composed of multiple producers and sellers, and producers and sellers can use energy to participate in the maintenance of the blockchain system, maintain the operation of the blockchain system and record energy transactions in the energy system.
[0034] Energy producers and sellers include, for example, all individuals in the power system, including power plants that produce electricity, such as wind power plants, thermal power plants, nuclear power plants, etc., as well as electricity users; of course, they can also be individuals in other energy systems, such as all individuals in the natural gas energy system.
[0035] Combine the following Figure 1 The system framework shown describes the incentive mechanism configuration method of the blockchain-based energy system in the embodiment of the present application:
[0036] See also Figure 2 In the embodiment of the present application, an incentive mechanism configuration method for an energy system based on blockchain includes:
[0037] 201. Determine, according to the energy allocation strategy of the target prosumer, a first energy source allocated to the energy system and a second energy source allocated to the blockchain system by the target prosumer;
[0038] The method of this embodiment can be applied to a computer device, which can be a server, terminal, or other computer device capable of performing data processing. When the computer device is a terminal, it can be a terminal device such as a personal computer (PC) or a desktop computer; when the computer device is a server, it can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud databases, cloud computing, and big data and artificial intelligence platforms.
[0039] Any target producer and seller of energy in the total system can formulate an energy allocation strategy that is beneficial to itself based on the incentive mechanism given by the system designer. This energy allocation strategy indicates how much energy is allocated to the energy system and the blockchain system. Therefore, the computer device can determine the first energy allocated to the energy system and the second energy allocated to the blockchain system by the target producer and seller based on this energy allocation strategy, so as to determine the reward and benefit given to the target producer and seller based on the first energy and the second energy.
[0040] 202. Determine the energy system income of the target producer and seller based on the first energy;
[0041] After determining the first energy allocated to the energy system, the energy system benefit of the target prosumer can be determined according to the first energy. The energy system benefit represents the benefit obtained by the target prosumer from participating in the maintenance and operation of the energy system.
[0042] 203. Determine the blockchain maintenance income of the target producer and seller according to the second energy source;
[0043] After determining the second energy allocated to the blockchain system, the blockchain maintenance income of the target prosumer can be determined according to the second energy. The blockchain maintenance income represents the income obtained by the target prosumer from participating in the maintenance and operation of the blockchain system.
[0044] 204. Determine the compensation of all other producers and sellers in the blockchain system to the target producer and seller based on the second energy source;
[0045] Other producers and sellers in the blockchain system can also compensate the target producer and seller for maintaining the operation of the blockchain system. Therefore, the computer device can determine the compensation of all other producers and sellers in the blockchain system to the target producer and seller based on the second energy source to reward the target producer and seller for allocating energy to the blockchain system to maintain the operation of the blockchain system.
[0046] 205. Determine the net compensation received by the target producer and seller based on the compensation paid to the target producer and seller by all other producers and sellers in the blockchain system;
[0047] After determining the compensation of all other producers and sellers in the blockchain system to the target producer and seller, the net compensation obtained by the target producer and seller is determined based on the compensation of all other producers and sellers in the blockchain system to the target producer and seller.
[0048] 206. Determine the cost of energy allocation for the target prosumer according to the first energy and the second energy;
[0049] The computer device also determines the cost of the target prosumer performing energy allocation based on the first energy source and the second energy source, so as to determine the actual benefit obtained by the target prosumer performing energy allocation.
[0050] 207. Determine the cost of the target producer and seller waiting for the transaction processing in the blockchain system to be completed;
[0051] At the same time, the target prosumer also needs to wait for the transaction processing in the blockchain system to be completed, which also requires waiting time. Therefore, the computer device further determines the cost of the target prosumer waiting for the transaction processing in the blockchain system to be completed, so as to determine a more accurate actual benefit obtained by the target prosumer from performing energy allocation.
[0052] 208. Determine the utility of the target prosumer according to the energy system revenue, the blockchain maintenance revenue, the net compensation obtained by the target prosumer, the cost of the target prosumer performing energy allocation, and the cost of the target prosumer waiting for transaction processing to be completed;
[0053] After obtaining the above-mentioned data, the utility of the target producer and seller can be determined based on the income of the energy system, the income from blockchain maintenance, the net compensation obtained by the target producer and seller, the expenses of the target producer and seller in executing energy allocation, and the expenses of the target producer and seller in waiting for the transaction processing to be completed. This utility can be used as a basis for rewarding the target producer and seller for maintaining the operation of the blockchain system and the energy system, and can also be used as a basis for compensating the target producer and seller for the expenses incurred in maintaining the operation of the blockchain system and the energy system. By rewarding and compensating the target producer and seller, the enthusiasm of the target producer and seller to participate in energy transactions and maintain the operation of the overall system can be increased, thereby achieving a virtuous cycle of development.
[0054] In this embodiment, by designing an incentive mechanism, that is, optimizing blockchain maintenance rewards and compensation between producers and sellers, it is possible to estimate the benefits of producers and sellers participating in blockchain maintenance, improve transaction processing speed and reduce the waiting time of all other producers and sellers. It also explicitly considers the positive externalities of producers and sellers participating in blockchain maintenance, improves the enthusiasm of producers and sellers to participate in blockchain maintenance, and encourages producers and sellers to participate in blockchain maintenance and process transactions, thereby improving the transaction processing speed of the overall system, and enabling the overall system to support a larger energy network.
[0055] The following will be Figure 2 Based on the embodiment shown, the embodiment of the present application is further described in detail. Figure 3 Another embodiment of the method for configuring the incentive mechanism of the energy system based on blockchain in the embodiment of the present application includes:
[0056] 301. Determine, according to the energy allocation strategy of the target prosumer, a first energy source allocated to the energy system and a second energy source allocated to the blockchain system by the target prosumer;
[0057] In this embodiment, the producers and sellers decide their own energy allocation. Define that there are N producers and sellers in the total system, and their set is For each target producer and marketer The target producer and seller n determines the energy allocated to the energy system and the blockchain system Refers to the first energy source, Refers to the second energy source. Since each producer and seller has limited energy, its energy allocation satisfies the following constraints (for ease of reference in the following text, the following constraints are referred to as energy allocation constraints):
[0058]
[0059] in, refers to the maximum energy value that can be allocated by producer and seller n, e Refers to the median value of energy available for distribution by producer and marketer n. This median value of energy is not zero.
[0060] The system designer designs the incentive mechanism, including the blockchain maintenance income r and the compensation a between producers and sellers. Specifically, when producer and seller n distributes energy When participating in blockchain maintenance, he can obtain blockchain maintenance benefits And the amount that each other producer and seller in the blockchain system compensates producer and seller n is The form of the compensation function is shown in the following formula, and its function graph is as follows: Figure 4 As shown:
[0061]
[0062] 302. Determine the energy system income of the target producer and seller based on the first energy;
[0063] 303. Determine the blockchain maintenance income of the target producer and seller according to the second energy source;
[0064] In determining the first energy Afterwards, according to Determine the energy system benefits of the target producers and sellers. Define the average price of the electricity market as p, then the energy system benefits obtained by the producers and sellers participating in the energy distribution of the energy system are:
[0065]
[0066] Further, determine the second energy After that, based on the following formula, Determine the benefits of blockchain maintenance for target producers and sellers:
[0067]
[0068] 304. Determine the compensation of all other producers and sellers in the blockchain system to the target producer and seller based on the second energy source;
[0069] In determining the second energy Afterwards, according to Calculate the compensation of all other producers and sellers in the blockchain system to the target producer and seller The calculation formula of has been listed above and will not be repeated here.
[0070] 305. Determine the net compensation received by the target producer and seller based on the compensation paid to the target producer and seller by all other producers and sellers in the blockchain system;
[0071] Determine the compensation of all other producers and sellers in the blockchain system to the target producer and seller Afterwards, according to Determine the net compensation received by the target producer and marketer. The calculation formula is as follows:
[0072]
[0073] In which, l is defined as the set of producers and sellers For any other producer and seller except the target producer and seller n, The compensation paid by target producer and marketer n to producer and marketer l.
[0074] Therefore, the net compensation received by the target producer and marketer can be calculated based on the above formula.
[0075] 306. Determine the cost of energy allocation for the target prosumer according to the first energy and the second energy;
[0076] 307. Determine the cost of the target producer and seller waiting for the transaction processing in the blockchain system to be completed;
[0077] In determining the first energy and the second energy Afterwards, the cost of energy allocation by the target producer and seller can be calculated based on the first energy and the second energy. The calculation formula is as follows:
[0078]
[0079] The time that the target producer and seller spends waiting for the transaction processing in the blockchain system to be completed is calculated as follows:
[0080]
[0081] where β nIt represents the patience of the producers and sellers. Specifically, two types of producers and sellers are defined according to their patience, namely, producers and sellers with high patience and and producers and marketers with low patience And preset the patience index β corresponding to each of them n , so the patience of producers and sellers satisfies the following relationship:
[0082] Refers to the waiting time for users to wait for transactions in the blockchain system to be completed. It is calculated as follows:
[0083] Determine the sum of the second energy allocated to the blockchain system by all producers and sellers in the blockchain system;
[0084] The number of shards in the blockchain system is determined based on the sum of the second energy allocated to the blockchain system by all producers and sellers in the blockchain system and the minimum energy required for each shard in the blockchain system to operate. The specific calculation formula is:
[0085]
[0086] Here, Δ refers to the minimum energy required for each shard in the blockchain system to run. This formula contains a rounding symbol, so the value of the number of shards obtained is an integer.
[0087] After determining the number of shards in the blockchain system, determine the waiting time for the user to wait for the transaction to complete based on the number of shards in the blockchain system, the rate at which users of the blockchain system generate transactions, and the rate at which each shard in the blockchain system processes transactions. Assuming that the rate at which each user generates transactions is λ, the rate at which each shard processes transactions is μ, and assuming that the process of each shard processing transactions is an M / M / 1 queue, the waiting time for the user to wait for the transaction to complete is:
[0088]
[0089] After determining the waiting time for the user to wait for the transaction to be completed, the cost of the target producer and seller waiting for the transaction processing in the blockchain system to be completed can be further determined based on the waiting time, the patience index of the target producer and seller, and the rate at which the users of the blockchain system generate transactions. The calculation formula of has been listed above and will not be repeated here.
[0090] 308. Determine the utility of the target prosumer according to the energy system revenue, the blockchain maintenance revenue, the net compensation obtained by the target prosumer, the cost of the target prosumer performing energy allocation, and the cost of the target prosumer waiting for transaction processing to be completed;
[0091] After obtaining the above data, the utility obtained by the target producer and seller based on the behavior of maintaining the operation of the overall system can be calculated according to the utility function. The utility function can be expressed as follows:
[0092]
[0093] Among them, the calculation method of each data item of the utility function has been explained in the previous article. The specific value of each data item can be obtained according to the method described in the previous article, and then the specific value of each data item is substituted into the utility function to calculate the utility of the target producer and seller.
[0094] 309. Determine the sum of the utilities of all prosumers in the blockchain system, and determine the security level value of the blockchain system according to the second energy allocated to each prosumer in the blockchain system;
[0095] In this embodiment, the system designer can design a non-cooperative game rule between producers and sellers in the blockchain system, that is, define the interaction between producers and sellers as a non-cooperative game.
[0096] Under this game rule, the set of game players is the set of producers and sellers.
[0097] The game strategy set is: each producer and seller Choose a strategy in Satisfy energy allocation constraints}. The strategy combination of all producers and sellers is Therefore, the set of all feasible strategy combinations is:
[0098]
[0099] The utility of the game strategy is, the vector represents the utility function of all producers and sellers, where u n The definition formula of has been described above and will not be repeated here.
[0100] Therefore, after formulating the game rules between producers and sellers, each producer and seller can determine an energy allocation strategy that is beneficial to itself based on the game rules, so as to maximize the utility obtained from energy allocation and enhance the enthusiasm for participating in the maintenance of the blockchain system.
[0101] In this embodiment, the decision variables of the system designer are the blockchain maintenance income r and the compensation a between producers and sellers. Therefore, the social welfare function of the system designer can be further determined. First, the sum of the utilities of all producers and sellers in the blockchain system is determined, and the security level value of the blockchain system is determined according to the second energy allocated to each producer and seller in the blockchain system. The calculation method is as follows:
[0102] The sum of utility functions of all producers and sellers in the blockchain system:
[0103]
[0104] Therefore, based on the sum of the utility functions of all producers and sellers in the above blockchain system, the sum of the utilities of all producers and sellers in the blockchain system can be calculated.
[0105] The calculation formula for the security level of the blockchain network is:
[0106]
[0107] Therefore, according to the calculation formula of the security level of the above blockchain network, the security level value of the blockchain system can be calculated.
[0108] 310. Determine the expenses of the system designer according to the second energy allocated to each prosumer in the blockchain system and the blockchain maintenance profit coefficient, and the expenses of the system designer are used to pay the profits of the target prosumer for participating in the maintenance of the blockchain system;
[0109] At the same time, since the system designer needs to provide capital injection for the blockchain system to pay the benefits of the producers and sellers participating in the blockchain maintenance, this embodiment also determines the expenses of the system designer based on the second energy allocated to each producer and seller in the blockchain system and the blockchain maintenance income coefficient, where the expenses of the system designer are used to pay the benefits of the target producers and sellers participating in the blockchain system maintenance. The calculation formula of the system designer's expenses is as follows:
[0110]
[0111] Here, r refers to the pre-set blockchain maintenance profit coefficient.
[0112] 311. Determine the social welfare function of the system designer according to the sum of the utilities of all producers and sellers in the blockchain system, the security level value, and the expenditure of the system designer;
[0113] Therefore, in summary, the social welfare function of the system designer can be determined based on the sum of the utilities of all producers and sellers in the blockchain system, the security level value, and the expenses of the system designer. The expression is as follows:
[0114] sw(e,r,a)=ψ Payoff (e,r,a)+ψ Security (e)-ψ Cost (e,r)
[0115] After obtaining the social welfare function of the system designer, the maximum social welfare value corresponding to the social welfare function can be solved according to the social welfare function of the system designer. The solution formula can be expressed as follows:
[0116] max&sw(e,r,a)
[0117] st&(1),
[0118] var.&r≥0,a=(a1,a2,a3)
[0119] Among them, social welfare refers to the total social value created by the incentive mechanism or operating rules designed by the system designer for the blockchain system and energy system. This total social value includes the rewards, benefits and expenses obtained by producers and sellers for performing energy distribution, and includes the security of the system, the expenses of the system designer, etc.
[0120] After obtaining the social welfare function of the system designer, the theoretical maximum social welfare corresponding to the social welfare function can be solved based on the social welfare function of the system designer, and the optimal energy allocation strategy for the target producers and sellers, the optimal blockchain maintenance reward set by the system designer, and the optimal compensation between producers and sellers set by the system designer can be determined based on the theoretical maximum social welfare.
[0121] For example, the solution to the maximum theoretical social welfare corresponding to the social welfare function can be expressed as follows:
[0122] max&sw(e,r,a)
[0123] st&(1),
[0124] var.&r≥0,a=(a1,a2,a3),e
[0125] Solving the above formula can obtain the theoretical maximum social welfare, and determine the optimal energy allocation strategy e for the target producer and seller based on the theoretical maximum social welfare. opt , the optimal blockchain maintenance reward r set by the system designer opt , the optimal compensation between producers and sellers set by the system designer opt .
[0126] Furthermore, the optimal coefficients in the compensation function of all other producers and sellers in the blockchain system to the target producer and seller can be determined based on the optimal blockchain maintenance reward set by the system designer. The solution formula for each optimal coefficient can be expressed as follows:
[0127]
[0128] in, That is, it is the optimal coefficient in the compensation function of all other producers and sellers in the blockchain system to the target producer and seller. The compensation functions of all other producers and sellers in the blockchain system to the target producer and seller have been listed in the previous article, and their function graphs are as follows: Figure 4 As shown, no further description is given here. * This is the optimal blockchain maintenance reward set by the system designer, which is equal to r opt .
[0129] Therefore, according to the optimal coefficient The optimal amount that each other producer and seller in the blockchain system should compensate producer and seller n can be calculated
[0130] In this embodiment, the incentive mechanism design is considered to encourage producers and sellers to participate in blockchain maintenance, which effectively improves the transaction processing speed of the system and can support a larger-scale energy system. Compared with the relevant blockchain incentive mechanism, this embodiment fully considers the positive externalities of producers and sellers participating in blockchain maintenance, that is, when a producer and seller participates in blockchain maintenance, it can reduce the waiting time of all other producers and sellers. Through a reasonable incentive mechanism, producers and sellers are encouraged to consider positive externalities, so the incentive mechanism can achieve optimal social welfare without the need for additional capital injection.
[0131] The above describes the incentive mechanism configuration method of the energy system based on blockchain in the embodiment of the present application. The following describes the computer device in the embodiment of the present application. Figure 5 In the embodiment of the present application, one embodiment of the computer device includes:
[0132] A strategy determination unit 501 is used to determine the first energy allocated to the energy system and the second energy allocated to the blockchain system by the target prosumer according to the energy allocation strategy of the target prosumer;
[0133] A revenue determining unit 502 is used to determine the energy system revenue of the target prosumer according to the first energy source, and to determine the blockchain maintenance revenue of the target prosumer according to the second energy source;
[0134] A compensation determination unit 503 is used to determine the compensation of all other prosumers in the blockchain system to the target prosumer according to the second energy source, and determine the net compensation obtained by the target prosumer according to the compensation of all other prosumers in the blockchain system to the target prosumer;
[0135] A cost determination unit 504 is used to determine the cost of the target prosumer performing energy allocation according to the first energy and the second energy, and determine the cost of the target prosumer waiting for the transaction processing in the blockchain system to be completed;
[0136] The utility determination unit 505 is used to determine the utility of the target prosumer based on the energy system income, the blockchain maintenance income, the net compensation obtained by the target prosumer, the cost of the target prosumer to perform energy allocation, and the cost of the target prosumer waiting for the transaction processing to be completed.
[0137] In a preferred implementation of this embodiment, the operation of the overall system including the energy system and the blockchain system is designed by a system designer; the computer device further includes:
[0138] The social welfare determination unit 506 is used to determine the sum of the utilities of all producers and sellers in the blockchain system, and determine the security level value of the blockchain system according to the second energy allocated to each producer and seller in the blockchain system; determine the cost of the system designer according to the second energy allocated to each producer and seller in the blockchain system and the blockchain maintenance profit coefficient, and the cost of the system designer is used to pay the profit of the target producer and seller participating in the maintenance of the blockchain system; determine the social welfare function of the system designer according to the sum of the utilities of all producers and sellers in the blockchain system, the security level value and the cost of the system designer.
[0139] In a preferred implementation of this embodiment, the social welfare determination unit 506 is further configured to solve the maximum social welfare value corresponding to the social welfare function according to the social welfare function of the system designer.
[0140] In a preferred implementation of this embodiment, the social welfare determination unit 506 is also used to solve the theoretical social welfare maximum value corresponding to the social welfare function according to the social welfare function of the system designer; determine the optimal energy allocation strategy of the target producer and seller, the optimal blockchain maintenance reward set by the system designer, and the optimal compensation between producers and sellers set by the system designer according to the theoretical social welfare maximum value.
[0141] In a preferred implementation of this embodiment, the social welfare determination unit 506 is further used to determine the optimal coefficient in the compensation function of all other producers and sellers in the blockchain system to the target producer and seller based on the optimal blockchain maintenance reward set by the system designer.
[0142] In a preferred implementation of this embodiment, the computer device further includes:
[0143] The shard quantity determination unit 507 is used to determine the sum of the second energy allocated to the blockchain system by all producers and sellers in the blockchain system; and determine the number of shards of the blockchain system according to the sum of the second energy allocated to the blockchain system by all producers and sellers in the blockchain system and the maximum energy obtained by each shard in the blockchain system.
[0144] In a preferred implementation of this embodiment, the cost determination unit 504 is specifically used to determine the waiting time for the user to wait for the transaction according to the number of shards of the blockchain system, the rate at which users of the blockchain system generate transactions, and the rate at which each shard in the blockchain system processes the transactions; and determine the cost of the target prosumer waiting for the transaction processing in the blockchain system to be completed according to the waiting time, the patience index of the target prosumer, and the rate at which users of the blockchain system generate transactions.
[0145] In this embodiment, the operations performed by each unit in the computer device are the same as those described above. Figures 2 to 3 The description in the illustrated embodiment is similar and will not be repeated here.
[0146] In this embodiment, by designing an incentive mechanism, that is, optimizing blockchain maintenance rewards and compensation between producers and sellers, it is possible to estimate the benefits of producers and sellers participating in blockchain maintenance, improve transaction processing speed and reduce the waiting time of all other producers and sellers. It also explicitly considers the positive externalities of producers and sellers participating in blockchain maintenance, improves the enthusiasm of producers and sellers to participate in blockchain maintenance, and encourages producers and sellers to participate in blockchain maintenance and process transactions, thereby improving the transaction processing speed of the overall system, and enabling the overall system to support a larger energy network.
[0147] The computer device in the embodiment of the present application is described below. Figure 6 In the embodiment of the present application, one embodiment of the computer device includes:
[0148] The computer device 600 may include one or more central processing units (CPU) 601 and a memory 605 , wherein the memory 605 stores one or more application programs or data.
[0149] The memory 605 may be a volatile storage or a persistent storage. The program stored in the memory 605 may include one or more modules, each of which may include a series of instruction operations in the computer device. Furthermore, the central processing unit 601 may be configured to communicate with the memory 605 and execute a series of instruction operations in the memory 605 on the computer device 600.
[0150] The computer device 600 may also include one or more power supplies 602, one or more wired or wireless network interfaces 603, one or more input and output interfaces 604, and / or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0151] The CPU 601 can execute the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment will not be described in detail here.
[0152] The present application also provides a computer storage medium, wherein one embodiment includes: the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment.
[0153] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0154] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0155] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0156] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0157] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A method for configuring an incentive mechanism for an energy system based on blockchain, characterized in that: The method is applied to a computer device, and the method comprises: According to the energy allocation strategy of the target prosumer, determining a first energy source allocated by the target prosumer to the energy system and a second energy source allocated to the blockchain system; Determining the energy system income of the target producer and seller based on the first energy; Determine the blockchain maintenance income of the target producer and seller according to the second energy source; Determine the compensation paid by all other producers and sellers in the blockchain system to the target producer and seller based on the second energy source; Determine the net compensation received by the target producer and seller based on the compensation paid to the target producer and seller by all other producers and sellers in the blockchain system; Determining the cost of energy distribution performed by the target prosumer according to the first energy and the second energy; Determining the cost of the target prosumer waiting for the transaction processing in the blockchain system to be completed; Determine the utility of the target prosumer according to the energy system revenue, the blockchain maintenance revenue, the net compensation obtained by the target prosumer, the cost of the target prosumer performing energy allocation, and the cost of the target prosumer waiting for the transaction processing to be completed; Wherein, the method further comprises: Determine the sum of the second energy allocated to the blockchain system by all prosumers in the blockchain system; Determine the number of shards of the blockchain system according to the sum of the second energy allocated to the blockchain system by all producers and sellers in the blockchain system and the maximum energy obtained by each shard in the blockchain system; The determining of the cost of the target producer and seller waiting for the transaction processing in the blockchain system to be completed includes: Determine a waiting time for the user to wait for the transaction according to the number of shards of the blockchain system, the rate at which users of the blockchain system generate transactions, and the rate at which each shard of the blockchain system processes the transactions; Determine the cost of the target prosumer waiting for the transaction processing in the blockchain system to be completed according to the waiting time, the patience index of the target prosumer, and the rate at which the users of the blockchain system generate transactions; The calculation formula of the number of shards k(e) of the blockchain system is expressed as: In this formula, is the set of producers and sellers of the overall system including the energy system and the blockchain system, n refers to each of the target producers and sellers of the overall system, refers to the second energy, Δ refers to the minimum energy required for each shard in the blockchain system to operate; The waiting time The calculation formula is expressed as: In this formula, λ refers to the rate at which users of the blockchain system generate transactions, μ refers to the rate at which each shard in the blockchain system processes the transactions, and N refers to the number of producers and sellers in the total system.
2. The method according to claim 1, characterized in that The operation of the overall system including the energy system and the blockchain system is designed by a system designer; the method further includes: Determining the sum of the utilities of all prosumers in the blockchain system, and determining a security level value of the blockchain system according to the second energy allocated to each prosumer in the blockchain system; Determine the expenses of the system designer according to the second energy allocated to each prosumer in the blockchain system and the blockchain maintenance profit coefficient, and the expenses of the system designer are used to pay the profit of the target prosumer participating in the maintenance of the blockchain system; The social welfare function of the system designer is determined according to the sum of the utilities of all producers and sellers in the blockchain system, the security level value, and the expenditure of the system designer.
3. The method according to claim 2, characterized in that The method further comprises: According to the social welfare function of the system designer, the maximum social welfare value corresponding to the social welfare function is solved.
4. The method according to claim 2, characterized in that: The method further comprises: According to the social welfare function of the system designer, solving the theoretical social welfare maximum value corresponding to the social welfare function; The optimal energy allocation strategy for the target producer and seller, the optimal blockchain maintenance reward set by the system designer, and the optimal compensation between producers and sellers set by the system designer are determined according to the theoretical social welfare maximum value.
5. The method according to claim 4, characterized in that The method further comprises: According to the optimal blockchain maintenance reward set by the system designer, the optimal coefficient in the compensation function of all other prosumers in the blockchain system to the target prosumer is determined.
6. A computer device, characterized in that: The computer device comprises: A strategy determination unit, configured to determine, according to the energy allocation strategy of the target prosumer, the first energy source allocated to the energy system and the second energy source allocated to the blockchain system by the target prosumer; a revenue determination unit, configured to determine the energy system revenue of the target prosumer according to the first energy source, and determine the blockchain maintenance revenue of the target prosumer according to the second energy source; a compensation determination unit, configured to determine the compensations of all other prosumers in the blockchain system to the target prosumer according to the second energy source, and determine the net compensation obtained by the target prosumer according to the compensations of all other prosumers in the blockchain system to the target prosumer; A cost determination unit, configured to determine the cost of the target prosumer performing energy allocation according to the first energy and the second energy, and determine the cost of the target prosumer waiting for the completion of the transaction processing in the blockchain system; A utility determination unit, configured to determine the utility of the target prosumer according to the energy system income, the blockchain maintenance income, the net compensation obtained by the target prosumer, the cost of the target prosumer performing energy allocation, and the cost of the target prosumer waiting for the completion of transaction processing; Wherein, the computer device further includes: A shard number determination unit, configured to determine the sum of the second energy allocated to the blockchain system by all prosumers in the blockchain system; and determine the number of shards of the blockchain system according to the sum of the second energy allocated to the blockchain system by all prosumers in the blockchain system and the maximum energy obtained by each shard in the blockchain system; The cost determination unit is specifically used to determine the waiting time of the user waiting for the transaction according to the number of shards of the blockchain system, the rate at which users of the blockchain system generate transactions, and the rate at which each shard of the blockchain system processes the transactions; and to determine the cost of the target prosumer waiting for the completion of the transaction processing in the blockchain system according to the waiting time, the patience index of the target prosumer, and the rate at which users of the blockchain system generate transactions; The calculation formula of the number of shards k(e) of the blockchain system is expressed as: In this formula, is the set of producers and sellers of the overall system including the energy system and the blockchain system, n refers to each of the target producers and sellers of the overall system, refers to the second energy, Δ refers to the minimum energy required for each shard in the blockchain system to operate; The waiting time The calculation formula is expressed as: In this formula, λ refers to the rate at which users of the blockchain system generate transactions, μ refers to the rate at which each shard in the blockchain system processes the transactions, and N refers to the number of producers and sellers in the total system.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.
8. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 5.
