CN116308445A - Virtual power plant multi-mode transaction method, equipment and medium based on energy block chain - Google Patents

Virtual power plant multi-mode transaction method, equipment and medium based on energy block chain Download PDF

Info

Publication number
CN116308445A
CN116308445A CN202211099891.1A CN202211099891A CN116308445A CN 116308445 A CN116308445 A CN 116308445A CN 202211099891 A CN202211099891 A CN 202211099891A CN 116308445 A CN116308445 A CN 116308445A
Authority
CN
China
Prior art keywords
electricity
transaction
user
power plant
energy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211099891.1A
Other languages
Chinese (zh)
Inventor
孔飘红
郑子淮
陈楠
闫敏
王玉柯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rongzhitong Technology Beijing Co ltd
State Grid Zhejiang Electric Power Co Ltd
Original Assignee
Rongzhitong Technology Beijing Co ltd
State Grid Zhejiang Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rongzhitong Technology Beijing Co ltd, State Grid Zhejiang Electric Power Co Ltd filed Critical Rongzhitong Technology Beijing Co ltd
Priority to CN202211099891.1A priority Critical patent/CN116308445A/en
Publication of CN116308445A publication Critical patent/CN116308445A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0206Price or cost determination based on market factors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Abstract

A virtual power plant multi-mode transaction method, equipment and medium based on energy block chain are provided, wherein a user of power generation resources in the virtual power plant performs point-to-point transaction with a user purchasing power through VPPTCP, electricity is sold to a power grid if the surplus electricity exists, and electricity is purchased to the power grid if the electricity is insufficient. The VPPTCP can inquire the generated energy of the power generation side, the power generation price and the user credibility, the electric quantity requirement of the power utilization side, the electricity purchase price and the user credibility, the real-time capacity of energy storage, the electricity selling price and the electricity purchase price of the power grid and other basic information, and the VPPTCP matches the user requirement through a physical constraint and distribution mechanism, so that an intelligent contract is signed, the actual situation is checked during settlement, a punishment mechanism is adopted for the offender, and the interests of both contracted parties are ensured. The multi-mode transaction method for the virtual power plant improves the security and the publicity of transaction information, optimizes the internal and external transaction modes of the virtual power plant, and improves the convenience of user interaction of each user of the virtual power plant.

Description

Virtual power plant multi-mode transaction method, equipment and medium based on energy block chain
Technical Field
The invention belongs to the technical field of virtual electric fields, and particularly relates to a virtual power plant multi-mode transaction method based on an energy block chain.
Background
The blockchain is essentially a decentralised database, and is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like, wherein the consensus mechanism is a mathematical algorithm for establishing trust and obtaining rights between different nodes in a blockchain system. Blockchains are typically composed of seven levels: the system comprises a target layer, a data layer, a network layer, a consensus layer, an incentive layer, a contract layer and an application layer, wherein each layer realizes respective functions based on computer technology, and the specific function is shown in figure 1.
The block chain is mainly divided into three modes of public chains, private chains and alliance chains according to the decentralization degree, public chain data are completely disclosed and transparent, all network nodes equally have audit and accounting rights, the block chain belongs to the complete decentralization, the information security degree is high, a POW algorithm and a POS algorithm are usually adopted, and as each node needs to carry out a consensus algorithm, the calculation efficiency is low, and the block chain is generally suitable for virtual currency, public-oriented electronic commerce and Internet financial scenes; the private chain data is non-public, high in privacy and high in centralized organization management, nodes can conduct transactions only through authorization, the decentralization degree is low, an authoritative certification mechanism is often adopted, the calculation times are reduced, the efficiency is high, and the method is generally suitable for application in enterprises, such as database management and audit; the alliance chain is initiated and participated in maintenance by a plurality of institutions or organizations with high credibility, is verified by a plurality of trusted nodes together, is incompletely decentralised, has high credibility, adopts a practical PBFT algorithm, has high calculation efficiency, and is generally suitable for B2B scenes such as transactions, settlement or clearing among institutions, such as a system for paying, settling and clearing among banks.
Blockchains have evolved in a number of fields, including auditing, logistics, finance and energy fields. Aiming at the energy field, the application of the blockchain technology in the comprehensive energy system effectively improves the efficiency of transaction among multiple energy sources, promotes energy consumption, optimizes energy utilization, and simultaneously provides a method for the safety of energy transaction information and the traceability and tamper resistance of the information. Yang Ke and the like analyze the applicability of the blockchain technology in the energy and power industry, describe in detail typical business application scenarios that have landed in the early 2020, and describe business architecture and application success based on the blockchain technology for each scenario ("research and business application review [ J ] of the blockchain technology in the energy and power industry, power construction, 2020, 41 (11): 1-15); she Wei aiming at the problems existing in the existing virtual power plant model, the blockchain technology is introduced into the virtual power plant, an energy blockchain network model is provided, an improved virtual power plant operation and scheduling model is provided, real-time information on a demand side is better reflected, stable scheduling with environment friendliness and transparent information is better carried out by VPP, and meanwhile, the data safety and storage safety of the system are improved ("virtual power plant operation and scheduling model based on an energy blockchain network [ J ]", chinese motor engineering journal, 2017, 37 (13): 3729-3736 ").
Compared with the traditional centralized energy, the distributed energy comprises various power generation energy sources and energy consumption demands, wherein the power generation energy sources comprise fans, photovoltaics, energy storage and the like, the energy consumption demands comprise cold, heat, gas and electricity demands, and the transaction amount is small but the transaction is frequent. The blockchain technology effectively reduces transaction cost in distributed energy transaction, diversifies transactions, improves transaction safety, realizes information traceability and is tamper-proof. The current application of the blockchain technology in distributed energy sources mainly comprises an electric power transaction mode, household intelligent electricity management and a comprehensive energy system. There are two main modes of power transaction under blockchain technology: centralizing the clearing and P2P transaction clearing [22], wherein the centralizing clearing is that a transaction platform collects quotation and demand of an electricity selling side and an electricity purchasing side, and the quotation and demand of the two parties are matched based on information transparency and sharing property of a blockchain technology; the P2P transaction is clear, a third party intermediate is not needed, the point-to-point transaction is directly carried out on the electricity selling side and the electricity purchasing side, the two sides sign an intelligent contract through a blockchain technology, the transaction is carried out in a specified time according to the contract, if the contract is violated, the responsibility is born, the transaction reliability of the two sides is guaranteed, and the transaction platform only records the transaction information and does not have the right to change the content of the intelligent contract.
The virtual power plant is used as a new form of interactive transaction of a plurality of distributed resources and flexible users and the power grid, the transaction amount is large and complex, the information security is more required to be ensured, and the combination of the blockchain technology and the virtual power plant is beneficial to optimizing the multi-mode transaction of the virtual power plant.
The prior art mostly introduces a blockchain technology for mechanism improvement aiming at internal resource scheduling optimization of a virtual power plant, less researches on electric power transaction of the virtual power plant and a power grid and information safety problems of the electric power transaction, and particularly, a publication for integrating the internal resource scheduling optimization of the virtual power plant and electric power transaction of an external power grid is not found.
Disclosure of Invention
Aiming at the problems, the invention provides a virtual power plant multi-mode transaction method based on an energy block chain, which can realize internal and external safe transaction of a virtual electric field and improve the safety and the openness of the transaction.
The specific scheme is as follows:
a virtual power plant multi-mode transaction method based on an energy block chain comprises the following steps: s1: registering an identity ID of a power purchasing user at the internal demand side of the virtual power plant, registering an identity ID of a generator at the internal of the virtual power plant as a unique identity authentication of a transaction node, and entering a blockchain to participate in power transaction if verification passes; the power grid registers the exclusive ID, and can purchase or sell electricity with the power generator; s2: the electricity demand side electricity purchasing user reports the electricity demand according to the historical typical load base line
Figure BDA0003839896770000031
Simultaneously submitting electricity purchase price P t D The method comprises the steps of carrying out a first treatment on the surface of the The generator predicts and reports the generated energy +.>
Figure BDA0003839896770000032
At the same time, providing the price of electricity P t E The method comprises the steps of carrying out a first treatment on the surface of the S3: screening and matching proper electricity generation suppliers and electricity purchasing users through intelligent contracts, comprehensively evaluating and sequencing electricity purchasing demands, transaction credibility, electricity purchasing prices, electricity generating capacity and electricity selling price indexes of the electricity purchasing users and electricity generating capacity, according to the highest-lowest evaluation sequence, namely preferentially matching the electricity purchasing users and the electricity purchasing users, and after successful matching, orderly signing intelligent contracts to generate a transaction order until the demand or the power supply reaches the upper limit;
s4: if the internal transaction of the virtual power plant cannot be completely met, external transaction is performed according to the energy supply and demand conditions, namely, the part larger than the demand is supplied to sell electricity to the power grid, the part smaller than the demand is supplied to buy electricity to the power grid, and the external transaction model is as follows:
Figure BDA0003839896770000033
Figure BDA0003839896770000034
the electricity is sold or purchased; s5: after the production orders are exchanged inside and outside the virtual power plant, the electric energy enters an electric quantity block chain, the electric energy is transmitted through physics, and the intelligent electric meter monitors and records the electric quantity of the node in real time;
s6: checking whether the electric energy transmission is completed according to the intelligent contract, and if the contract is completed, settling funds by both transaction parties; if not, punishing the offender and fund compensation daemon is carried out.
Furthermore, the electricity purchasing user and the electricity generator also provide basic information, including an address, a user type and a user name, the user identity ID at the demand side also comprises energy demand, electricity purchasing price and transaction credit, and the electricity generator identity ID also comprises electricity generating capacity, energy type, electricity selling price and electricity generating credit.
Further, the composite score value of the composite evaluation is calculated as follows,
H=0.6H 1 +0.4H 2
Figure BDA0003839896770000041
Figure BDA0003839896770000042
wherein H is a comprehensive grading value and consists of two parts, namely credit part H1 and price part H2; n is the number of credit classes, N a Credit rating for electricity purchasing users or electricity generators; n is the price sequencing number of all current electricity purchasing users or electricity generators, n Total (S) The total number of electricity purchasing users or electricity generators currently participating in the transaction.
Further, comprehensive evaluation ranking of the electricity purchasing users and the electricity generators is dynamically adjusted in real time, and if the electricity purchasing requirements of the current electricity purchasing users subjected to matching are met or the residual available electricity generation capacity of the current electricity generators is zero, the current ranking queue is exited.
Further, if the current electricity purchasing user electricity purchasing requirement is greater than the residual available generated energy of the generator with the highest current comprehensive grading value, the current electricity purchasing user is simultaneously matched with the generator with the next highest current comprehensive grading value, and the generator with the next highest current comprehensive grading value provides partial difference electric quantity.
Furthermore, according to the electricity purchasing requirement and the electricity generating capacity, one electricity purchasing user can be matched with a plurality of electricity generators at the same time, and one electricity generator can be matched with a plurality of users at the same time.
Further, in the step S6, the compensation cost for the electricity purchasing user is calculated
Figure BDA0003839896770000043
The calculation formula of (2) is as follows:
Figure BDA0003839896770000044
wherein M is penalty coefficient;
Figure BDA0003839896770000045
the absolute value of the deviation electric quantity between the transaction electric quantity and the actual transmission electric quantity on the transaction order is obtained; p (P) t j To trade electricity price.
A computer device, the computer device comprising: a processor and a memory storing a computer program loaded and executed by the processor to implement the energy blockchain-based virtual power plant multi-mode transaction method as described in any of the foregoing.
A computer storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions loaded and executed by a processor to implement the energy blockchain-based virtual power plant multimodal transaction method of any of the preceding claims.
The multi-mode transaction method for the virtual power plant improves the security and the publicity of transaction information, optimizes the internal and external transaction modes of the virtual power plant, and improves the convenience of user interaction of each user of the virtual power plant.
Drawings
FIG. 1 block chain universal block diagram
FIG. 2 is a diagram of a virtual power plant multi-mode transaction blockchain framework in accordance with the present invention
FIG. 3 is a schematic diagram of a multi-mode transaction process for a virtual power plant in accordance with the present invention
FIG. 4 is a diagram of the simulation scenario one of the present invention illustrating the power generation and purchase requirements of each user
FIG. 5 is a diagram of a user's electricity purchasing situation in a simulation scenario one according to an embodiment of the present invention
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The participation main body of the virtual power plant multi-mode transaction blockchain provided by the invention is provided with virtual power plant internal distributed energy sources, including fans, photovoltaics and energy storage; the virtual power plant internally consumes energy users, including residential buildings, commercial buildings and the like, and power grid enterprises. For purposes of this overview, the trade between internal resources of a virtual power plant is referred to as an internal trade, and the trade of the virtual power plant interacting with the grid is referred to as an external trade. The internal transaction of the virtual power plant is managed and controlled by the transaction center platform, so that a alliance chain is established for internal resources of the virtual power plant, partial centralization is reserved, but the transaction center platform only has recording rights and issuing rights, the rights of transaction price and transaction quantity are not changed, a public chain is established for external transaction of the virtual power plant, and the public chain is decentralised, so that both parties have rights to record transaction information, information transparency is improved, and malicious tampering of the information is prevented. The blockchain design includes a target layer, an application layer, a contract layer, a consensus layer, a network layer, and a data layer, as shown in particular in FIG. 2.
The blockchain can improve the efficiency of internal and external transactions of the virtual power plant, the user of internal power generation resources of the virtual power plant and the user of purchasing power firstly conduct point-to-point transactions through a virtual power plant transaction center platform (Virtual Power Plant Trading Center Platform, VPPTCP), electricity is sold to a power grid when the surplus electricity exists, and electricity is purchased to the power grid when the shortage of electricity exists. The VPPTCP can inquire the generated energy of the power generation side, the power generation price and the user credibility, the electric quantity requirement of the power utilization side, the electricity purchase price and the user credibility, the real-time capacity of energy storage, the electricity selling price and the electricity purchase price of the power grid and other basic information, and the VPPTCP matches the user requirement through a physical constraint and distribution mechanism, so that an intelligent contract is signed, the actual situation is checked during settlement, a punishment mechanism is adopted for the offender, and the interests of both contracted parties are ensured. The data layer records the identity, address, electricity purchase price, electric quantity and other information of the user, the network layer guarantees the point-to-point transaction safety of the user, the consensus layer improves the energy transaction consensus efficiency on the basis that all energy nodes are equal through the PBFT consensus algorithm, the contract layer screens safe and proper users to sign intelligent contracts and conduct transactions according to the transaction criteria and the process, the intelligent contracts reduce the threshold of user transactions, provide convenience for small-scale participants, increase the profit space for virtual power plants, promote energy consumption and reduce energy waste. Each layer of information of the blockchain is updated in real time and mutually disclosed according to actual feedback of the intelligent electric meter, and the participating main body has equal information release rights and acquisition rights, so that fairness and disclosure of transactions are ensured.
The virtual power plant multi-mode transaction blockchain framework is subdivided into an information blockchain, an energy blockchain, and a transaction blockchain. The information block chain is the first link of the transaction and is mainly responsible for the work such as information release, summarization, sequencing and screening, the perfection and accuracy of the information can effectively ensure the maximization of interests of both transaction parties, after the information block chain finishes generating a transaction order, the energy block chain is responsible for transmitting electric energy according to the transaction order and implementing feedback electric quantity data through the intelligent electric meter so as to ensure smooth proceeding of the transaction, finally, both transaction parties check whether the transaction is accurately completed according to the order in the transaction block chain, if the order is completed, both parties perform fund settlement, if the order is not completed, the contraband party is fund-compensated to the other party according to a punishment mechanism, and the fund settlement represents the ending of the electric power transaction. A specific transaction flow is shown in fig. 3.
The interactive transaction of the virtual power plant and the power grid comprises the following specific steps:
s1: the user registration identity ID at the internal demand side of the virtual power plant is used as the unique identity authentication of the transaction node, and the user can enter the blockchain to participate in the electric power transaction after checking, so that the internal generator of the virtual power plant also registers the identity ID, the basic information comprises an Address (Address), a user Type (Type) and a user Name (Name), the user identity ID at the demand side also comprises special information such as energy demand, electricity purchase price, transaction credit and the like, and the generator identity ID also comprises special information such as electricity generation capacity, energy Type, electricity selling price, electricity generation credit and the like. The power grid registers the exclusive ID, and electricity can be purchased or sold with the power generator.
S2: the user at the demand side reports the required electric quantity according to the historical typical load base line
Figure BDA0003839896770000071
Simultaneously submitting electricity purchase price P t D The method comprises the steps of carrying out a first treatment on the surface of the The generator predicts and reports the generated energy +.>
Figure BDA0003839896770000072
Simultaneously submitting to electricity sellingValence P t E . The power generator has wind power generation, photovoltaic power generation and energy storage, and the output models are respectively as follows:
fan output model:
Figure BDA0003839896770000073
wherein: gwpp (t) is the actual output of the fan; g is the rated power of the fan; vin is the cut-in wind speed of the fan; vR is the rated wind speed of the fan; vout is the cut-out wind speed of the fan; vt is the real-time wind speed of the wind turbine.
Fan operation constraints:
Figure BDA0003839896770000074
in the method, in the process of the invention,
Figure BDA0003839896770000075
is the lower power limit of the fan>
Figure BDA0003839896770000076
Is the upper power limit of the fan.
Photovoltaic output model:
g PV (t)=η PV S PV θ(t) (3)
wherein: ηPV is the solar radiation efficiency; SPV is the lighting area; θ (t) is the solar radiation intensity at time t.
Photovoltaic operation constraints:
Figure BDA0003839896770000077
wherein:
Figure BDA0003839896770000078
is the lower power limit of the photovoltaic device, +.>
Figure BDA0003839896770000079
Is the upper power limit of the photovoltaic device.
Energy storage output model:
Figure BDA00038398967700000710
wherein: SSC (t) is the storage capacity at the time of the electricity storage device t; gch (t) is the charging power of the electricity storage device; ηch is the charging efficiency of the electricity storage device; gdis (t) is the discharge power of the electricity storage device; ηdis is the discharge efficiency of the electricity storage device.
Energy storage operation constraint conditions:
Figure BDA0003839896770000081
in the method, in the process of the invention,
Figure BDA0003839896770000082
is the minimum power of the storage battery; g SC (t) is the actual power of the storage battery at the moment t; />
Figure BDA0003839896770000083
Maximum power of the storage battery; />
Figure BDA0003839896770000084
The minimum storage capacity of the storage battery; />
Figure BDA0003839896770000085
The maximum charge capacity of the accumulator.
S3: and screening and matching proper power generation businesses and power purchase users through intelligent contracts, comprehensively evaluating and sequencing indexes such as power purchase requirements, transaction credibility, power purchase price, power generation credibility of the power generation businesses, power generation capacity, power selling price and the like of the power purchase users by adopting an index evaluation method, and carrying out transactions according to the sequence from highest evaluation to lowest evaluation.
In an alternative implementation, the credits of both sides of the transaction are set to be divided into 100 points, 5 grades are provided, the 1 grade credit is 20 points at the lowest, the 2 grade is 40 points, and so on, the 5 grade credit is 100 points at the highest, for the convenience of calculation, firstly, the electricity purchasing users are ordered according to the order from high price to low price and the electricity generator is ordered according to the order from low price to high price, then each user is scored according to the order by 100 points of full score, and finally, the credit and the price are added by weights of 0.6 and 0.4 respectively to obtain the comprehensive score, and the specific model is as follows. And (3) preferentially matching the electricity purchasing user with the comprehensive scoring high person of the electricity generator, and after successful matching, signing intelligent contracts in sequence to generate a trade order until the demand or the power supply reaches the upper limit.
H=0.6H 1 +0.4H 2
Figure BDA0003839896770000086
Figure BDA0003839896770000087
Wherein H is a comprehensive grading value and consists of two parts, namely credit part H1 and price part H2; n is the number of credit classes, N a Credit rating for electricity purchasing users or electricity generators; n is the price sequencing number of all current electricity purchasing users or electricity generators, n Total (S) The total number of electricity purchasing users or electricity generators currently participating in the transaction.
And dynamically adjusting the comprehensive scores of the electricity purchasing users and the electricity generators in real time, and if the electricity purchasing requirements of the current electricity purchasing users for matching are met or the residual available electricity generation capacity of the current electricity generators is zero, exiting the current matching queue. And if the current electricity purchasing user electricity purchasing requirement is greater than the residual available generated energy of the current comprehensive grading highest value electricity generator, matching the current electricity purchasing user with the electricity generator with the current comprehensive grading value which is higher than the current comprehensive grading value, and providing the difference part of electricity quantity by the electricity generator with the current comprehensive grading value which is higher than the current comprehensive grading value.
Based on the matching rule, according to the electricity purchasing requirement and the electricity generating capacity, one electricity purchasing user can be matched with a plurality of electricity generators at the same time, and one electricity generator can be matched with a plurality of users at the same time.
Step 4: and if the internal transaction of the virtual power plant cannot be completely met, carrying out external transaction according to the energy supply and demand condition, namely selling electricity to the power grid for the part larger than the demand and buying electricity to the power grid for the part smaller than the demand. The external transaction model is as follows:
Figure BDA0003839896770000091
step 5: and after the production orders are exchanged inside and outside the virtual power plant, the electric quantity block chain is entered, electric energy is transmitted through physics, and the intelligent electric meter monitors and records the electric quantity of the node in real time.
Step 6: checking whether the electric energy transmission is completed according to the intelligent contract, and if the contract is completed, settling funds by both transaction parties; if not, punishing the offender and fund compensation daemon is carried out.
The grid, the generator or the electricity purchasing user are required to pay compensation to each other against the default. In a specific embodiment, taking the rule of violation of a generator as an example, after the generator generates a trade order with a power purchasing user, if the power corresponding to the trade order is not provided to the power purchasing user, the trade order is punished according to the deviation power of the intermediate scalar and the actual power generation amount. The penalty cost of the power producer is the compensation cost for the electricity purchasing user
Figure BDA0003839896770000092
The calculation formula of (2) is as follows:
Figure BDA0003839896770000093
wherein M is penalty coefficient;
Figure BDA0003839896770000094
the absolute value of the deviation electric quantity between the transaction electric quantity and the actual transmission electric quantity on the transaction order is obtained; p (P) t j To trade electricity price.
Example 1
1. Parameter setting
In a specific embodiment, it is assumed that 7 users are included in the virtual power plant, wherein 1 to 3 users are power generators, and user 1 is a wind power generator; user 2 is a photovoltaic power generator; the user 3 has both a fan and a photovoltaic, the user 4 is an energy storage aggregator, and the users 5 to 7 are electricity purchasing users, including ordinary residents and office buildings. According to different virtual power plant transaction modes, two scenes are respectively constructed for transaction result analysis, and the specific scenes are as follows:
scene 1: excess electric energy of the generator in the virtual power plant is sold to an energy storage aggregator preferentially;
scene 2: excess power from generators in a virtual power plant is flexibly sold to energy storage aggregators and power grids.
The parameters of the fan, the photovoltaic and the energy storage equipment are shown in the table 1 and the table 2, the penalty factor M is 0.5, the power grid electricity price adopts time-sharing electricity price, and the peak electricity price period is 11: 00-15: 00. 19: 00-21: 00, the selling price of electricity is 700 yuan/(MW.h); the flat electricity period is 08: 00-10: 00. 16: 00-18: 00. 22: 00-23: 00, the selling price is 500 yuan/(MW.h); the valley price period is 24: 00-07: 00, the selling price is 300 yuan/(MW.h), and in order to encourage users to reduce electricity consumption in peak period and increase electricity consumption in valley period, the purchasing price of the power grid peak-valley period is respectively 900 yuan/(MW.h), 600 yuan/MW.h) and 100 yuan/(MW.h). For the convenience of calculation, the electricity generation capacity of the electricity generator is predicted according to 24 hours a day, and the electricity generation utilization degree, the time-sharing electricity selling price of the electricity generator, the transaction credit degree of the electricity purchasing user and the time-sharing electricity purchasing price data are shown in table 3.
Table 1 fan and photovoltaic device parameters
Figure BDA0003839896770000101
Table 2 energy storage device parameters
Figure BDA0003839896770000102
TABLE 3 virtual Power plant blockchain user base information
Figure BDA0003839896770000103
2. Virtual power plant multi-scenario transaction analysis
The proposed transaction flow is simulated by Matlab, data of the scene 1 are imported, internal transactions of the virtual power plant are matched according to the set intelligent contracts, and results are analyzed. The electricity generation and electricity purchase requirements of each user in the scene 1 are shown in fig. 4.
Setting the energy storage equipment of the user 4 to be in a full state at 24 days, starting to participate in electricity selling from 1 time, and determining the trading party and the trading volume of each period through a formula according to the trading principle of the intelligent contract, wherein the trading party and the trading volume are shown in table 4. In the first scenario, the consumer 4 energy storage aggregator can participate in the trade with priority due to lower electricity selling price and higher credit, meanwhile, the surplus electric energy of the generator is sold to the energy storage aggregator, the aggregator obtains the benefits through low-price electricity purchasing and high-price electricity selling, the consumer 4 stores full electric energy for 24 hours, the consumer can purchase electricity to the power grid when the surplus electric energy of the generator is insufficient to fill the energy storage device, the rest of the time is not traded with the power grid, and the electricity purchasing situation of the consumer 4 is shown in fig. 5.
TABLE 4 user transaction order for different time periods
Figure BDA0003839896770000111
(1) According to the transaction principle of the intelligent contract, the transaction result of the first scenario is as follows, and the electricity purchasing users 5, 6 and 7, the electricity generating users 1, 2 and 3 and the energy storage user 4 successfully transact 7742.94MW electric quantity together. The power of the user 1 and the user 5 is 363.14MW, and the income is 29.46 ten thousand yuan; the amount of the power exchanged between the user 1 and the user 6 is 401.69MW, and the income is 4.02 ten thousand yuan; the power of the user 1 and the user 7 is 1187.69MW, and the income is 41.84 ten thousand; the amount of the power exchanged between the user 1 and the user 4 is 1305.34MW and the income is 65.27 ten thousand yuan, so that the virtual power plant generates electricity, and the user 1 internally exchanges the total income 140.59 ten thousand yuan.
The amount of the power exchanged between the user 2 and the user 5 is 113.35MW, and the income is 5.63 ten thousand yuan; the power of the user 2 and the user 6 is 323.6MW, and the income is 14.21 ten thousand yuan; the power of the user 2 and the user 7 is 432.51MW, the income is 34.60 ten thousand yuan, the user 2 is a photovoltaic power generator and is limited by sunlight, and no surplus power is sold to the energy storage user, so that the income is 54.44 ten thousand yuan in the internal transaction.
The amount of the power exchanged between the user 3 and the user 5 is 1976.77MW, and the income is 116.69 ten thousand yuan; the amount of the power exchanged between the user 3 and the user 6 is 1093.72MW, and the income is 55.16 ten thousand yuan; the amount of the power exchanged between the user 3 and the user 7 is 461.98MW, and the income is 23.51 ten thousand yuan; the amount of the power exchanged between the user 3 and the user 4 is 293.72MW and the profit is 14.69 ten thousand yuan, so that the virtual power plant generates electricity, and the user 3 exchanges the total profit 210.05 ten thousand yuan.
The amount of the power exchanged between the user 4 and the user 5 is 8.15MW, and the income is 0.24 ten thousand yuan; the amount of the power exchanged between the user 4 and the user 6 is 654.48MW, and the income is 19.93 ten thousand yuan; the power of the user 4 and the user 7 is 466.12MW, and the income is 30.54 ten thousand yuan, so that the virtual power plant generates electricity, and the user 4 internally transacts and has a total income of 50.71 ten thousand yuan. According to the analysis, the electricity purchasing price of the energy storage user 4 is set to be unified to 500 yuan/MW & h, and in the first scene, the electricity purchasing price of the energy storage user 4 to the power generation user 1 is more, the cost is higher, electricity selling to the electricity purchasing user 7 is more, and the electricity purchasing user is more in the electric load peak period, so that the benefit of the time period is higher, and the electricity purchasing price can be optimized according to the time period and the transaction user to improve the benefit of the energy storage user 4, and the electricity purchasing cost is reduced.
Because the surplus electric energy of the set generator is sold to the energy storage polymer firstly and then sold to the power grid in the first scene, the external transaction of the virtual power plant in the first scene comprises the purchase of 288.56MW to the power grid, the cost is 9.71 ten thousand yuan, the sale of 280.29MW to the power grid and the income is 17.99 ten thousand yuan.
The second scene is more flexible than the first scene, the virtual power plant always prioritizes the internal transaction, not only can obtain benefits through the internal transaction, but also reduces the pressure of power grid dispatching, and secondly, excessive electric energy can select transaction objects according to electricity purchasing prices of energy storage users and power grids, the higher the electricity purchasing price is, the higher the benefits are, the power grid flexibly adjusts electricity selling price and power supplying price for guiding the electricity consumption and power supplying habit of the users, the energy utilization rate is improved, namely, the electricity consumption is reduced in peak time and the power supply is increased under the influence of price, and the electricity consumption is increased in low valley time and the power supply is reduced.
And importing scene two data into Matlab simulation, wherein the electricity purchasing price of the energy storage user in the low load period is higher than that of the power grid, so that the surplus electric energy is sold to the energy storage user in the 1-6 time and 24 time, and the electricity purchasing price of the power grid in other periods is higher than that of the energy storage, and the surplus electric energy is sold to the power grid in the 7-23 time. In the second scenario, the electricity selling benefits and electricity purchasing fees of the virtual power plant are shown in the following table:
table 5 Electricity sales income and electricity purchasing expense table of two virtual power plants in scene
Time Electricity selling income/ten thousand yuan Electricity purchase expense/ten thousand yuan
1:00 7.35 0.18
2:00 4.44 5.28
3:00 9.06 0
4:00 9.94 0
5:00 12.27 0
6:00 11.54 0
7:00 14.76 0
8:00 12.71 2.06
9:00 17.04 0
10:00 15.03 3.29
11:00 19.37 2.25
12:00 25.96 0
13:00 24.47 0.44
14:00 28.25 0
15:00 22.81 1.08
16:00 23.13 0
17:00 13.12 3.46
18:00 15.65 0.28
19:00 29.65 0
20:00 34.40 0
21:00 32.55 0
22:00 16.56 1.57
23:00 11.50 0
24:00 5.34 3.95
Total sum of 416.9 23.84
Comparing the benefits and the fees of the virtual power plants under two scenes, obviously finding out that the scenes are 56.88 ten thousand yuan more than the scenes are two, and the fees are 14.13 ten thousand yuan less, because the energy storage users are taken as the constituent parts of the virtual power plants, the energy storage users can be taken as electricity selling of power generation providers and the electricity purchasing users to purchase electricity, and the appropriate transaction objects are matched according to the intelligent contract transaction principle, so that the energy storage users are in preferential transaction with the electricity purchasing users with higher electricity purchasing price than the electricity purchasing price per se, more benefits can be obtained, and the benefits are one of the benefits of the virtual power plants; the power grid is used as an external transaction unit of the virtual power plant, the electricity purchasing price is based on the power grid requirement, and even if the electricity purchasing price is higher than that of the energy storage user in the load level and peak period, the electricity generator can obtain more benefits, but from the aspect of the total benefits and the total cost of the virtual power plant, the mode of selling the surplus electric energy to the energy storage user preferentially is still the first scene.
3. Intelligent contract violation analysis
In simulation scenario one, there is a violation of user 2 and user 7 in the 12:00-14:00 period, and user 1 and user 6 in the 5:00-6:00 period, the actual transaction amounts are shown in Table 6.
TABLE 6 internal and external transaction violation conditions for virtual Power plant in scenario one
Figure BDA0003839896770000141
As can be seen from table 6, the total power consumption of the user 2 is 0.078MW, the transaction electricity price in the period is 800 yuan/MW, and the penalty of the violation is 31.2 yuan as can be obtained according to the formula (9); user 6 purchases 0.069MW of electricity against the contract, the trade price of electricity is 100 yuan/MW in the period, and the penalty of the contract is 3.45 yuan. The analysis of the default situation can show that the transaction flow and the model designed in the invention can effectively process the default situation in the transaction process, and the punishment of the default party is the compensation of the default party.
Comparing the benefits and the cost conditions of the virtual power plant in different modes through Matlab simulation calculation examples, and verifying to obtain a better transaction algorithm, wherein the whole transaction algorithm has feasibility and effectiveness.
A computer device, the computer device comprising: the system comprises a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to realize the energy block chain-based virtual power plant multi-mode transaction method.
A computer storage medium having stored therein at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, the code set, or instruction set being loaded and executed by a processor to implement the energy blockchain-based virtual power plant multimodal transaction method of the invention.
The invention has been described in detail with reference to specific embodiments thereof. While the invention is described in connection with the preferred embodiments, the invention should not be limited to the embodiments and drawings disclosed. All equivalents and modifications that come within the spirit of the disclosure are desired to be protected.

Claims (9)

1. The virtual power plant multi-mode transaction method based on the energy block chain is characterized by comprising the following steps of:
s1: registering an identity ID of a power purchasing user at the internal demand side of the virtual power plant, registering an identity ID of a generator at the internal of the virtual power plant as a unique identity authentication of a transaction node, and entering a blockchain to participate in power transaction if verification passes; the power grid registers the exclusive ID, and can purchase or sell electricity with the power generator;
s2: the electricity demand side electricity purchasing user reports the electricity demand according to the historical typical load base line
Figure FDA0003839896760000011
Simultaneously submitting purchase price->
Figure FDA0003839896760000012
The generator predicts and reports the generated energy +.>
Figure FDA0003839896760000013
At the same time, providing the price of electricity for sale>
Figure FDA0003839896760000014
S3: screening and matching proper electricity generation suppliers and electricity purchasing users through intelligent contracts, comprehensively evaluating and sequencing electricity purchasing demands, transaction credibility, electricity purchasing prices, electricity generating capacity and electricity selling price indexes of the electricity purchasing users and electricity generating capacity, according to the highest-lowest evaluation sequence, namely preferentially matching the electricity purchasing users and the electricity purchasing users, and after successful matching, orderly signing intelligent contracts to generate a transaction order until the demand or the power supply reaches the upper limit;
s4: if the internal transaction of the virtual power plant cannot be completely met, external transaction is performed according to the energy supply and demand conditions, namely, the part larger than the demand is supplied to sell electricity to the power grid, the part smaller than the demand is supplied to buy electricity to the power grid, and the external transaction model is as follows:
Figure FDA0003839896760000015
Figure FDA0003839896760000016
the electricity is sold or purchased;
s5: after the production orders are exchanged inside and outside the virtual power plant, the electric energy enters an electric quantity block chain, the electric energy is transmitted through physics, and the intelligent electric meter monitors and records the electric quantity of the node in real time;
s6: checking whether the electric energy transmission is completed according to the intelligent contract, and if the contract is completed, settling funds by both transaction parties; if not, punishing the offender and fund compensation daemon is carried out.
2. The method according to claim 1, wherein in the step S1, the electricity purchasing user and the electricity generator further provide basic information including an address, a user type and a user name, the demand side user ID further includes an energy demand, an electricity purchasing price and a transaction reliability, and the electricity generator ID further includes an electricity generating capacity, an energy type, an electricity selling price and an electricity generating reliability.
3. The method of claim 1, wherein the composite score of the composite assessment is calculated as follows,
H=0.6H 1 +0.4H 2
Figure FDA0003839896760000021
Figure FDA0003839896760000022
wherein H is a comprehensive grading value and consists of two parts, namely credit part H1 and price part H2; n is the number of credit classes, N a Credit rating for electricity purchasing users or electricity generators; n is the price sequencing number of all current electricity purchasing users or electricity generators, n Total (S) The total number of electricity purchasing users or electricity generators currently participating in the transaction.
4. The energy blockchain-based virtual power plant multi-mode transaction method of claim 3, wherein comprehensive evaluation ranking of electricity purchasing users and electricity generators is dynamically adjusted in real time, and if the electricity purchasing demand of the current electricity purchasing user for matching is met or the residual available electricity generation capacity of the current electricity generator is zero, the current ranking queue is exited.
5. The method for multi-mode transaction of a virtual power plant based on energy blockchain as claimed in claim 3, wherein if the current power purchasing user who performs matching has a power purchasing requirement greater than the residual available power generation capacity of the power generator with the highest current comprehensive grading value, the current power purchasing user is simultaneously matched with the power generator with the highest current comprehensive grading value, and the power generator with the highest current comprehensive grading value provides partial difference power.
6. The energy blockchain-based virtual power plant multi-mode transaction method according to claim 1, wherein one electricity purchasing user can be matched with a plurality of electricity generators at the same time according to electricity purchasing requirements and electricity generating capacity conditions, and one electricity generator can be matched with a plurality of users at the same time.
7. The energy blockchain-based virtual power plant multi-mode transaction method of claim 1, wherein in S6, the compensation fee for the electricity purchasing user
Figure FDA0003839896760000023
The calculation formula of (2) is as follows:
Figure FDA0003839896760000024
wherein M is penalty coefficient;
Figure FDA0003839896760000025
the absolute value of the deviation electric quantity between the transaction electric quantity and the actual transmission electric quantity on the transaction order is obtained; />
Figure FDA0003839896760000031
To trade electricity price.
8. A computer device, the computer device comprising: a processor and a memory storing a computer program that is loaded and executed by the processor to implement the energy blockchain-based virtual power plant multi-mode transaction method of any of claims 1 to 7.
9. A computer storage medium having stored therein at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, the code set, or instruction set being loaded and executed by a processor to implement the energy blockchain-based virtual power plant multimodal transaction method of any of claims 1 to 7.
CN202211099891.1A 2022-09-09 2022-09-09 Virtual power plant multi-mode transaction method, equipment and medium based on energy block chain Pending CN116308445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211099891.1A CN116308445A (en) 2022-09-09 2022-09-09 Virtual power plant multi-mode transaction method, equipment and medium based on energy block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211099891.1A CN116308445A (en) 2022-09-09 2022-09-09 Virtual power plant multi-mode transaction method, equipment and medium based on energy block chain

Publications (1)

Publication Number Publication Date
CN116308445A true CN116308445A (en) 2023-06-23

Family

ID=86782111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211099891.1A Pending CN116308445A (en) 2022-09-09 2022-09-09 Virtual power plant multi-mode transaction method, equipment and medium based on energy block chain

Country Status (1)

Country Link
CN (1) CN116308445A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116823272A (en) * 2023-08-30 2023-09-29 环球数科集团有限公司 Intelligent contract management system based on block chain consensus mechanism
CN117273242A (en) * 2023-11-20 2023-12-22 华南理工大学 Virtual power plant management system and method based on block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116823272A (en) * 2023-08-30 2023-09-29 环球数科集团有限公司 Intelligent contract management system based on block chain consensus mechanism
CN116823272B (en) * 2023-08-30 2023-11-17 环球数科集团有限公司 Intelligent contract management system based on block chain consensus mechanism
CN117273242A (en) * 2023-11-20 2023-12-22 华南理工大学 Virtual power plant management system and method based on block chain
CN117273242B (en) * 2023-11-20 2024-03-08 华南理工大学 Virtual power plant management system and method based on block chain

Similar Documents

Publication Publication Date Title
Mengelkamp et al. Trading on local energy markets: A comparison of market designs and bidding strategies
Zhou et al. Credit-based peer-to-peer electricity trading in energy blockchain environment
CN116308445A (en) Virtual power plant multi-mode transaction method, equipment and medium based on energy block chain
Wang et al. Adaptive bidding strategy for real-time energy management in multi-energy market enhanced by blockchain
CN112053152B (en) Distributed energy grid-connected authentication and transaction method based on green rights and interests consensus mechanism
Gunarathna et al. Reviewing global peer-to-peer distributed renewable energy trading projects
Wang et al. Modelling and analysis of a two-level incentive mechanism based peer-to-peer energy sharing community
Yang et al. Spot electricity market design for a power system characterized by high penetration of renewable energy generation
Dzobo et al. Proposed framework for blockchain technology in a decentralised energy network
CN114626922A (en) Self-adaptive bidding multi-energy P2P trading platform based on block chain
Johnathon et al. A proposed hedge-based energy market model to manage renewable intermittency
CN112329230A (en) Multi-microgrid main body non-cooperative game transaction method
Fan et al. Medium and long-term electricity trading considering renewable energy participation
CN114219222A (en) Renewable energy power tracking platform based on block chain technology
Wang et al. P2P trading mode for real-time coupled electricity and carbon markets based on a new indicator green energy
Han et al. Optimal operations of energy storage systems in multi‐application scenarios of grid ancillary services based on electricity price forecasting
Hrga et al. Decentralized platform for investments and operation of energy communities
Abdullah et al. A Decentralized Energy Management System Inculcating SupplyDemand Ratio (SDR) and Miners' Stake through Blockchain Smart Contract for Community Microgrid Operation
Logan et al. Evaluating a proposed 20% national renewable portfolio standard
Wentz Balancing Economic and Environmental Goals in Distributed Generation Procurement: A Critical Analysis of California's Renewable Auction Mechanism (RAM)
Akasiadis Multiagent demand-side management for real-world energy cooperatives
Kement Designing a local electricity market using blockchain technology
Hamouda Energy Trading Platforms for Isolated and Inter-connected Microgrids Utilizing Adapted Blockchain
Bogensperger Assessing the Potential of Multiple Use Cases for German Energy Communities via Integration of Machine Learning in the Energy-Economic Modeling Process
Sun ENERGY & STORAGE SHARING STRATEGIES IN AN ELECTRICITY MARKET ENVIRONMENT

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination