CN113643131A - Microgrid distributed energy trading method and system based on block chain - Google Patents

Microgrid distributed energy trading method and system based on block chain Download PDF

Info

Publication number
CN113643131A
CN113643131A CN202110843362.7A CN202110843362A CN113643131A CN 113643131 A CN113643131 A CN 113643131A CN 202110843362 A CN202110843362 A CN 202110843362A CN 113643131 A CN113643131 A CN 113643131A
Authority
CN
China
Prior art keywords
electricity
purchasing
user
power
electric quantity
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
CN202110843362.7A
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.)
Beijing University of Posts and Telecommunications
Electric Power Research Institute of State Grid Ningxia Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Shanxi Electric Power Co Ltd
Original Assignee
Beijing University of Posts and Telecommunications
Electric Power Research Institute of State Grid Ningxia Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Shanxi 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 Beijing University of Posts and Telecommunications, Electric Power Research Institute of State Grid Ningxia Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Shanxi Electric Power Co Ltd filed Critical Beijing University of Posts and Telecommunications
Priority to CN202110843362.7A priority Critical patent/CN113643131A/en
Publication of CN113643131A publication Critical patent/CN113643131A/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
    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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

The invention provides a block chain-based microgrid distributed energy trading method, and belongs to the technical field of microgrids. The method comprises the following steps: the microgrid operator matches and deals with the electricity selling information and the electricity purchasing information to generate an intelligent contract signed between a power generation party user and an electricity purchasing party user; the microgrid operator broadcasts the intelligent contract to the block chain network and stores the intelligent contract to a node, and the intelligent contract is packaged into blocks at the node and linked up; the micro-grid operator executes the intelligent contract, and completes value transfer and energy transfer of the intelligent electric meter according to the content in the intelligent contract; the microgrid operator checks whether the actual generating capacity of the power generation party user is equal to the declared transaction electric quantity; accounting the amount of money to be refunded by the power generation party; and the micro-grid operator returns the amount of money to be refunded by the power generator and the guarantee money of the power purchasing party. The invention further provides a block chain-based microgrid distributed energy trading system.

Description

Microgrid distributed energy trading method and system based on block chain
Technical Field
The invention relates to the technical field of micro-grids, in particular to a micro-grid distributed energy trading method and system based on block chains.
Background
The micro-grid is a small-sized power generation and distribution system which comprises a distributed power generation device, an energy storage device, an energy conversion device, a load, a centralized control center, a protection device and the like, and can execute the whole process of power generation, transmission, storage, distribution and power utilization. The micro-grid is connected with the large power grid through the isolation transformer and the isolation device, can be operated in a grid-connected mode with the large power grid, can also be operated independently, and provides power requirements for local loads. Therefore, the distributed power generation is connected to a large power grid in a micro-grid mode for grid-connected operation, and the distributed power generation system and the large power grid are mutually supported, so that the method is an effective way for reliably exerting the benefits of the distributed power generation system.
Distributed power sources generally include thermoelectric power generation, wind power generation, photovoltaic power generation, gas power generation, hydroelectric power generation and the like, wherein the output of a power generation party utilizing wind energy, solar energy and tidal power generation has large fluctuation, so that sufficient power can be provided for a power grid sometimes, and power needs to be purchased from the power grid sometimes to maintain the operation of the power grid.
The block chain is a decentralized, public and transparent distributed database which cannot be tampered, nodes of all nodes participating in data verification and accounting are organized and distributed through a peer-to-peer network, a credible broadcasting and storage platform is provided, point-to-point transaction is achieved through all the nodes, transaction can be achieved through various transaction modes, meanwhile, a chain structure and a timestamp are adopted, all data have sequence and time marks, a consensus mechanism is adopted to achieve read-write rights of competitive data, and data safety and consistency cannot be tampered. The electric power transaction is carried out inside the microgrid and among nodes of the microgrid, the problems that transaction main bodies are dispersed, management is difficult, and transaction decision and execution cannot guarantee real-time performance exist.
At present, the reachable range of electric power transaction is all nodes of a large power grid, and according to the characteristic that electric power energy transaction includes fund transfer and actual electric power energy transfer, when a selling and purchasing user needs to trade electric power, a micro power grid where the selling and purchasing user is located needs to be kept in grid-connected operation with the large power grid, and the transaction efficiency is limited.
Disclosure of Invention
In view of the above, the invention provides a microgrid distributed energy transaction method and system based on a block chain, wherein when a single microgrid runs, both selling and purchasing users can still be supported to transact electric power nearby inside the microgrid, electric power transaction is managed through an intelligent contract of the block chain, the safety, consistency and traceability of transaction information are ensured, and the transaction efficiency of distributed electric power resources and the reliability of the microgrid system can be improved.
The technical scheme adopted by the embodiment of the invention for solving the technical problem is as follows:
a distributed energy trading method of a micro-grid based on a block chain supports the implementation of the micro-grid in a grid-connected operation state or a single-grid operation state, and comprises the following steps:
the microgrid operator matches and trades according to electricity selling information and electricity purchasing information to generate an intelligent contract signed and signed between a power generator user and an electricity purchasing user, wherein the electricity selling information is issued to a block chain network by the power generator user in the microgrid, the electricity selling information comprises predicted electricity selling quantity, electricity selling price and the number of power generator deposit, the electricity purchasing information is issued to the block chain network by the electricity purchasing user in the microgrid, the electricity purchasing information comprises the intended electricity purchasing quantity, the electricity purchasing price and the number of the electricity purchasing deposit, and the intelligent contract comprises electricity purchasing user information, electricity generator user information, declared trading quantity and price clearing records;
the microgrid operator broadcasts the intelligent contract to the block chain network and stores the intelligent contract to a node, and the intelligent contract is packaged into blocks at the node and linked up;
the micro-grid operator executes the intelligent contract, and completes value transfer and energy transfer of the intelligent electric meter according to the content in the intelligent contract;
the microgrid operator checks whether the actual generating capacity of the power generation party user is equal to the declared transaction electric quantity;
the micro-grid operator calculates the amount of money to be returned by the power generation party according to the relation between the actual power generation amount of the power generation party user and the declared transaction power amount and the number of the guarantee money of the power generation party;
and the micro-grid operator returns the amount of money to be refunded by the power generator and the guarantee money of the power purchasing party.
Preferably, before the microgrid operator of the microgrid matches the trade according to the electricity selling information and the electricity purchasing information and generating an intelligent contract signed between the power generator user and the electricity purchasing user, the method further comprises the following steps:
the microgrid operator provides registration and login entries, information of the electricity purchasing party user and information of the power generating party user are synchronized to the block chain network, and the information of the electricity purchasing party user and the information of the power generating party user are encrypted through a Hash algorithm.
Preferably, the micro-grid operator of the micro-grid generates an intelligent contract signed between the power generator user and the power purchasing user according to the trade matching between the power selling information and the power purchasing information, and the intelligent contract comprises:
selecting the power generation users with the electricity selling quotations equal to the electricity purchasing quotations as signing objects for signing the intelligent contract with the power purchasing users, wherein when at least two power generation users meet selection conditions, the power generation users with the highest expected electricity selling quantity are preferentially selected;
matching the electricity purchasing user and the electricity generating user to sign the intelligent contract, wherein the declared transaction electricity quantity in the intelligent contract is the minimum value of the predicted electricity selling quantity and the intention electricity purchasing quantity, and the clearing price is equal to the electricity purchasing quotation;
when the declared transaction electric quantity is the predicted electric quantity, continuing to select the next power generation party user for the power purchasing party user until the sum of the declared transaction electric quantities of all the intelligent contracts signed by the power purchasing party user is equal to the intention electric quantity;
when the declared transaction electric quantity is the intention purchasing electric quantity, continuously selecting the next power purchasing user for the power generation user so as to sell the residual electric quantity after the power generation user signs the intelligent contract and deducts the declared transaction electric quantity;
sorting all the unapproved electricity selling information in an ascending order according to the electricity selling price, wherein the electricity selling information with the same electricity selling price is sorted in a descending order according to the residual electricity quantity;
sorting all the unapproved electricity purchasing information in a descending order according to the electricity purchasing price, wherein the electricity purchasing information with the same electricity purchasing price is sorted in a descending order according to the amount of unaddressed electricity purchasing, and the amount of unaddressed electricity purchasing is the difference between the intention electricity purchasing amount of the electricity purchasing user and the declared transaction amount in the intelligent contract signed by the electricity purchasing user;
sequentially traversing each piece of electricity purchasing information, and selecting the power generation party user as a signing object for signing the intelligent contract with the electricity purchasing party user according to the sequence that the electricity selling price is from low to high;
matching the electricity purchasing user and the electricity generating user to sign the intelligent contract, wherein the declared transaction electric quantity in the intelligent contract is the minimum value of the residual electric quantity and the unachieved purchase electric quantity, and the clearing price is the average value of the electricity purchasing price and the electricity selling guarantee price;
when the residual electric quantity is sold out and the unachieved purchased electric quantity still exists, selecting an energy storage facility in the microgrid as a transaction object of the user of the electricity purchasing party;
and when the unachieved purchased electric quantity is completely achieved and the residual electric quantity still exists, recovering the residual electric quantity and storing the residual electric quantity to the energy storage facility of the microgrid.
Preferably, after the microgrid operator checks whether the actual power generation amount of the power generation party user is equal to the declared transaction power amount, the microgrid operator calculates the amount of money to be refunded of the power generation party according to the relationship between the actual power generation amount of the power generation party user and the declared transaction power amount and the number of the power generation party deposit, and further includes:
when the actual generated energy is larger than the declared transaction electric quantity, the microgrid operator purchases excess electric quantity according to the clearing price in the intelligent contract and recovers the excess electric quantity to the energy storage facility in the microgrid;
alternatively, the first and second electrodes may be,
and when the actual generating capacity is smaller than the declared transaction electric quantity, the micro-grid operator purchases the shortage electric quantity from the large power grid according to the sale price issued by the large power grid.
Preferably, when the actual generated energy is larger than the declared transaction electric quantity, the amount of money to be refunded by the power generation party is the sum of the amount of money used for purchasing the excess electric quantity, the guarantee money of the power generation party and the economic reward amount;
when the actual generated energy is equal to the declared transaction electric quantity, the amount of money to be refunded by the power generation party is the sum of the guarantee money of the power generation party and the economic reward amount;
and when the actual generated energy is smaller than the declared transaction electric quantity, the amount to be refunded by the power generator is the difference obtained by subtracting the amount used for purchasing the shortage electric quantity from the number of the guarantee money of the power generator and then subtracting the economic punishment.
The invention also provides a block chain-based microgrid distributed energy transaction system, which supports the implementation of a microgrid in a grid-connected operation state or a single-grid operation state, and specifically comprises the following steps:
the system comprises a transaction matching module, a block chain network and a micro-grid, wherein the transaction matching module is used for matching transactions according to electricity selling information and electricity purchasing information to generate an intelligent contract signed and signed between a power generator user and an electricity purchasing user, the electricity selling information is issued to the block chain network by the power generator user in the micro-grid, the electricity selling information comprises the predicted electricity selling quantity, electricity selling price and the number of electricity generating party guarantee funds, the electricity purchasing information is issued to the block chain network by the electricity purchasing user in the micro-grid, the electricity purchasing information comprises the intention electricity purchasing quantity, the electricity purchasing price and the number of electricity purchasing party guarantee funds, and the intelligent contract comprises electricity purchasing user information, electricity generating party user information, reporting transaction electricity quantity and clearing price records;
a broadcasting module, configured to broadcast the smart contract to the block chain network and store the smart contract to a node, and package the smart contract into blocks at the node and uplink the smart contract;
the execution module is used for executing the intelligent contract and completing value transfer and energy transfer of the intelligent electric meter according to the content in the intelligent contract;
the checking module is used for checking whether the actual generating capacity of the power generation party user is equal to the declared transaction electric quantity or not;
the accounting module is used for accounting the amount of money to be returned by the power generator according to the relation between the actual power generation amount of the power generator user and the declared transaction power amount and the number of the power generator deposit;
and the return module is used for returning the amount of money to be returned by the power generator and the deposit of the power purchasing party.
Preferably, the method further comprises the following steps:
and the market access module is used for providing registration and login entries, synchronizing the information of the electricity purchasing party user and the information of the electricity generating party user to the block chain network, and encrypting the information of the electricity purchasing party user and the information of the electricity generating party user through a Hash algorithm.
Preferably, the transaction matching module comprises:
the selection unit is used for selecting the power generation party user with the electricity selling price equal to the electricity purchasing price as a signing object for signing the intelligent contract with the power purchasing party user, wherein when at least two power generation party users meet the selection condition, the power generation party user with the highest expected electricity selling quantity is preferentially selected;
the intelligent contract generating unit is used for matching the electricity purchasing user and the electricity generating user to sign the intelligent contract, wherein the declared trading electric quantity in the intelligent contract is the minimum value of the predicted selling electric quantity and the intention purchasing electric quantity, and the clearing price is equal to the electricity purchasing price;
the selecting unit is used for continuing to select the next power generation party user for the power purchasing party user when the declared transaction electric quantity is the predicted power selling electric quantity until the sum of the declared transaction electric quantities of all the intelligent contracts signed by the power purchasing party user is equal to the intention power purchasing electric quantity;
the selecting unit is used for continuously selecting the next electricity purchasing user for the electricity generating party user when the declared transaction electricity quantity is the intention electricity purchasing quantity so as to sell the remaining electricity quantity after the electricity generating party user signs the intelligent contract and deducts the declared transaction electricity quantity;
the sorting unit is used for sorting all the unapproved electricity selling information in an ascending order according to the electricity selling price, wherein the electricity selling information with the same electricity selling price is sorted in a descending order according to the residual electricity quantity;
the sorting unit is used for sorting all the unapproved electricity purchasing information in a descending order according to the electricity purchasing price, wherein the electricity purchasing information with the same electricity purchasing price is sorted in a descending order according to the unaddressed electricity purchasing quantity, and the unaddressed electricity purchasing quantity is the difference between the intention electricity purchasing quantity of the electricity purchasing user and the declaration transaction electricity quantity in the intelligent contract signed by the electricity purchasing user;
the selecting unit is used for sequentially traversing each piece of electricity purchasing information and selecting the power generator user as a signing object for signing the intelligent contract with the electricity purchasing user according to the sequence of the electricity selling prices from low to high;
the clearing unit is used for matching the electricity purchasing user and the electricity generating user to sign the intelligent contract, wherein the declared transaction electricity quantity in the intelligent contract is the minimum value of the residual electricity quantity and the unachieved purchase electricity quantity, and the clearing price is the average value of the electricity purchasing price and the electricity selling guarantee price;
the selecting unit is used for selecting the energy storage facilities in the microgrid as transaction objects of the electricity purchasing user when the residual electricity quantity is sold out and the unachieved electricity purchasing quantity still exists;
and the recovery unit is used for recovering the residual electric quantity and storing the residual electric quantity to the energy storage facility of the microgrid when the unachieved purchased electric quantity is completely achieved and the residual electric quantity still exists.
Preferably, the method further comprises the following steps:
the excess processing module is used for purchasing excess electric quantity by the microgrid operator according to the clearing price in the intelligent contract and recycling the excess electric quantity to the energy storage facility in the microgrid when the actual generated energy is larger than the declared transaction electric quantity;
and the shortage processing module is used for purchasing the shortage electric quantity from the large power grid by the micro-power grid operator according to the sale price issued by the large power grid when the actual generated energy is smaller than the declared transaction electric quantity.
Preferably, when the actual generated energy is larger than the declared transaction electric quantity, the amount of money to be refunded by the power generation party is the sum of the amount of money used for purchasing the excess electric quantity, the guarantee money of the power generation party and the economic reward amount;
when the actual generated energy is equal to the declared transaction electric quantity, the amount of money to be refunded by the power generation party is the sum of the guarantee money of the power generation party and the economic reward amount;
and when the actual generated energy is smaller than the declared transaction electric quantity, the amount to be refunded by the power generator is the difference obtained by subtracting the amount used for purchasing the shortage electric quantity from the number of the guarantee money of the power generator and then subtracting the economic punishment.
According to the technical scheme, the distributed energy trading method and system for the micro-grid based on the block chains can still support the two parties of the purchase and sale users to trade electric power nearby inside the micro-grid when the single micro-grid operates, the electric power trading is managed through the intelligent contracts of the block chains, the safety, consistency and traceability of trading information are guaranteed, and the distributed electric power resource trading efficiency and the reliability of the micro-grid system can be improved.
Drawings
Fig. 1 is a flowchart of a block chain-based microgrid distributed energy transaction method according to the present invention.
Fig. 2 is a structural diagram of a microgrid distributed energy trading system of the present invention.
Fig. 3 is a block chain-based distributed energy transaction model diagram in a microgrid according to the present invention.
Fig. 4 is a schematic diagram of the flow of energy and information in the model shown in fig. 3.
Fig. 5 is a flow chart of the energy transaction process of the system of the present invention.
FIG. 6 is a flow chart of a transaction between a buyer and a seller based on a smart contract according to the present invention.
Detailed Description
The technical scheme and the technical effect of the invention are further elaborated in the following by combining the drawings of the invention.
As shown in fig. 1, the invention provides a block chain-based microgrid distributed energy transaction method, which can support implementation of a microgrid in a grid-connected operation state or a single-grid operation state. The power generation side user in the microgrid has distributed power generation capacity, generated renewable energy can be stored in an energy storage facility of the microgrid, the energy stored in the energy storage facility by the power generation side user can be used by the power generation side user, the energy can be shared in a block chain network and profits can be obtained, and when the self power utilization can not be met, the power generation side user can become a power purchasing side user, the power is traded from other power generation side users in the microgrid and the energy storage facility of the microgrid, point-to-point nearby trading is realized, the power trading can still be realized under the operation state of the microgrid single grid, for example, the microgrid model shown in fig. 3, an intelligent contract signed by the two sides is automatically triggered, and the real-time performance and the accuracy of the trading can be ensured. Meanwhile, the micro-grid is realized based on a block chain network, transaction data cannot be changed after being linked in real time, each node has a complete account book, the safety, consistency and traceability of transaction information can be guaranteed, and transaction management is facilitated. The method comprises the following specific implementation steps:
and step S1, the microgrid operator matches the electricity selling information and the electricity purchasing information to generate an intelligent contract signed between the power generation party user and the electricity purchasing party user.
The electricity selling information is issued to the blockchain network by a power generation party user in the microgrid, the electricity selling information comprises the predicted electricity selling amount, the electricity selling price and the number of power generation party guarantee funds, the electricity purchasing information is issued to the blockchain network by a power purchasing party user in the microgrid, the electricity purchasing information comprises the intended electricity purchasing amount, the electricity purchasing price and the number of the power purchasing party guarantee funds, and the intelligent contract comprises the electricity purchasing party user information, the power generation party user information, the declaration transaction amount and the offer price records.
In step S2, the microgrid operator broadcasts the smart contracts to the blockchain network and stores the smart contracts in nodes, where the smart contracts are packaged into blocks and linked up.
And step S3, the microgrid operator executes the intelligent contract, and value transfer and energy transfer of the intelligent electric meter are completed according to the content in the intelligent contract.
In step S4, the microgrid operator checks whether the actual power generation amount of the power generation users is equal to the declared transaction power amount.
And step S5, the operator of the micro-grid calculates the amount of money to be refunded by the power generator according to the relation between the actual power generation amount of the users of the power generator and the reported transaction power amount and the number of the guarantee money of the power generator.
And step S6, the microgrid operator returns the amount to be refunded by the power generator and the guarantee money of the power purchasing party.
In the invention, a microgrid operator plays a role of a convergence agent, and as a node in a block chain, energy management and proper power routing matching transaction are carried out through an intelligent contract, as shown in fig. 4, energy flow and fund transfer between a power generation party user and a power purchasing party user can be managed, and a block chain network allows bidirectional power flow through digital communication with both purchasing and selling user sides, so that the users can know own power use information.
Specifically, the process of matching the transaction according to the electricity selling information and the electricity purchasing information in step S1 is as follows:
step S11, selecting a power generation user with a power selling price equal to a power purchasing price as a signing object for signing an intelligent contract with the power purchasing user, wherein when at least two power generation users meet a selection condition, the power generation user with the highest predicted power selling amount is preferentially selected;
and matching the electricity purchasing user and the electricity generating user to sign an intelligent contract, wherein the declared transaction electricity quantity in the intelligent contract is the minimum value of the predicted electricity selling quantity and the intention electricity purchasing quantity, and the clearing price is equal to the electricity purchasing price.
As shown in the example of table 1, the power selling information and the power purchasing information list submitted by the power purchasing user and the power generating user,
Figure BDA0003179861220000101
TABLE 1
First, as described in step S11, trade matching is performed, and for each electricity purchasing party' S quoted price, all electricity selling party quoted prices are traversed, and if there are electricity selling parties with equal quoted prices, trade matching is directly performed, an intelligent contract is made, it is declared that the trade electricity amount is the smaller value of the two trading parties, and the bargaining price is the two-party quoted price, that is, the two trading parties with the same quoted price are matched first, and the electricity purchasing party user with number 1 and the electricity generating party user with number 3, the electricity purchasing party user with number 6 and the electricity generating party user with number 4, the electricity purchasing party user with number 5 and the electricity generating party user with number 6 in table 1. And when the quotations of the plurality of power buyers are consistent, the large client with large power purchasing amount is given priority to trade, and if the quotations of the plurality of power sellers are consistent, the large client with large power selling amount is given priority to trade. The remaining transaction requests after the match are shown in table two.
Figure BDA0003179861220000111
TABLE 2
Step S12, when the declared transaction electric quantity is the predicted selling electric quantity, continuously selecting the next power generation user for the power purchasing user until the sum of the declared transaction electric quantity of all the intelligent contracts signed by the power purchasing user is equal to the intention purchasing electric quantity; when the declared transaction electric quantity is the intention electric quantity, continuously selecting the next electricity purchasing user for the electricity generating party user, and deducting the residual electric quantity after the transaction electric quantity is declared after the selling electricity generating party user signs an intelligent contract;
sorting all the unachieved electricity selling information in an ascending order according to the electricity selling price, wherein the electricity selling information with the same electricity selling price is sorted in a descending order according to the residual electricity quantity; sorting all the unachieved electricity purchasing information in a descending order according to electricity purchasing prices, wherein the electricity purchasing information with the same electricity purchasing prices is sorted in a descending order according to the unachieved electricity purchasing quantity, and the unachieved electricity purchasing quantity is the difference between the intention electricity purchasing quantity of the electricity purchasing user and the declared transaction electricity quantity in the intelligent contract signed by the electricity purchasing user; after sorting as shown in table 3:
Figure BDA0003179861220000112
Figure BDA0003179861220000121
TABLE 3
Step S13, matching after sorting, traversing each electricity purchasing information in the order of electricity purchasing price from high to low, and selecting the power generation users as the signing objects for signing the intelligent contract with the electricity purchasing users according to the order of electricity purchasing price from low to high;
matching the electricity purchasing user and the electricity generating user to sign an intelligent contract, wherein the declared transaction electricity quantity in the intelligent contract is the minimum value of the residual electricity quantity and the unachieved purchase electricity quantity, and the discharge price is the average value of the electricity purchasing quotation and the electricity selling premium; the transaction results are shown in table 4, via step S13:
Figure BDA0003179861220000122
TABLE 4
Step S14, when the residual electric quantity is sold out and the electric quantity is not purchased, selecting the energy storage facility in the microgrid as the transaction object of the user of the electricity purchasing party; when the electricity purchasing quantity is not achieved and residual electricity still exists, the residual electricity is recovered and stored to an energy storage facility of the micro-grid.
If after the transaction period is over, there may be a missed transaction situation: for the unachieved electricity selling information, as the power generation party user 2 in the table 4, the information is recycled to the energy storage facility in the microgrid; and for the electricity purchasing information which is not transacted, the electricity purchasing party is enabled to purchase electric energy from the energy storage facility in the microgrid, and the price is determined by the aggregation agency.
After matching is successful, the intelligent contracts signed by the two parties comprise declaration of transaction electric quantity, clearing price, execution time, the number of the deposit between the two parties and the like, and the two parties of the sale and purchase need to reserve corresponding deposits in respective accounts and freeze the part of the deposit. When the intelligent contract agreement arrives, the intelligent contract is automatically executed, and in the period, the system automatically acquires the information of the intelligent electric meters of both sides of the contract. And reading intelligent contract parameters in the settlement intelligent contract, carrying out corresponding asset transfer, and carrying out energy transfer by the intelligent ammeter.
After the actual power generation amount is checked and the transaction power amount is declared by the step S4, the following three situations occur: the actual power generation is greater than the declared transaction power, the actual power generation is equal to the declared transaction power, and the actual power generation is greater than the declared transaction power. For the condition that the actual generated energy is larger than the reported transaction electric quantity, a microgrid operator purchases excess electric quantity according to the clearing price in the intelligent contract and recovers the excess electric quantity to an energy storage facility in the microgrid; and for the condition that the actual power generation is less than the declared transaction power, the micro-grid operator purchases the shortage power from the large power grid according to the sale price issued by the large power grid.
And carrying out corresponding punishment reward measures by the microgrid operator according to the deviation between the predicted electricity selling quantity and the actual electricity selling quantity of the users of the distributed electricity generators, wherein the distributed electricity generators can strive to improve the prediction capability of the electricity generation quantity of the distributed electricity generators so as to obtain greater economic benefits. And if the actual generated energy of the distributed power generation party is larger than or equal to the declared transaction electric quantity in the transaction, the microgrid operator gives economic rewards to the user accounts of the distributed power generation party through an intelligent contract, and the users are rewarded to really declare the generated energy. And if the actual generated energy of the distributed power generation party is less than the reported transaction electric quantity, deducting additional guarantee money by the microgrid operator as a punishment.
Accordingly, the amount of the power generator refund which is calculated in step S5 is: when the actual generated energy is larger than the declared transaction electric quantity, the refund amount of the power generation party is the sum of the amount used for purchasing the excess electric quantity, the guarantee money of the power generation party and the economic reward amount; when the actual generated energy is equal to the reported transaction electric quantity, the amount of money to be refunded by the power generation party is the sum of the guarantee money of the power generation party and the economic reward amount; when the actual generated energy is less than the declared transaction electric quantity, the amount of money to be refunded by the power generation party is the difference value obtained by subtracting the amount of money used for purchasing the shortage electric quantity from the number of the guarantee money of the power generation party and then subtracting the economic punishment.
As shown in fig. 2, the present invention further provides a block chain-based microgrid distributed energy transaction system, which can be used for implementing the method shown in fig. 1, and supports implementation of a microgrid in a grid-connected operation state or a single-grid operation state, specifically including:
the transaction matching module 21 is used for matching transactions according to electricity selling information and electricity purchasing information to generate an intelligent contract signed between a power generator user and an electricity purchasing user, the electricity selling information is issued to the block chain network by the power generator user in the microgrid, the electricity selling information comprises the predicted electricity selling amount, electricity selling price and the number of the power generator deposit, the electricity purchasing information is issued to the block chain network by the electricity purchasing user in the microgrid, the electricity purchasing information comprises the intended electricity purchasing amount, the electricity purchasing price and the number of the electricity purchasing deposit, and the intelligent contract comprises the electricity purchasing user information, the electricity generator user information, the declaration transaction amount and the clearing record;
a broadcasting module 22, configured to broadcast the smart contracts to the blockchain network and store the smart contracts to the nodes, and package the smart contracts into blocks at the nodes and uplink the smart contracts;
the execution module 23 is configured to execute the smart contract, and complete value transfer and energy transfer of the smart meter according to the content in the smart contract;
the checking module 24 is used for checking whether the actual generating capacity of the power generation party user is equal to the declared transaction electric quantity or not;
the accounting module 25 is used for accounting the amount of money to be refunded by the power generator according to the relation between the actual power generation amount of the power generator user and the reported transaction power amount and the number of the power generator deposit;
and the returning module 26 is used for returning the amount of money to be returned by the power generator and the deposit of the power purchasing party.
In addition, the system further comprises:
and the market admission module 27 is used for providing registration and login entries and synchronizing the information of the electricity purchasing user and the information of the electricity generating user to the block chain network.
To ensure privacy, the information of the user should not be known by other users in the blockchain network, the SHA256 algorithm may be used to encrypt the information related to the user, and the obtained hash value is used as the unique identifier of the user, where the encryption algorithm is as follows:
SHA256(UserInfo)=UID (1)
the UserInfo comprises the name of a user, a home address, a telephone, a number of an intelligent electric meter, an account address of a user Ether house and the like. After the user information is verified to be accurate, the aggregation proxy calls a user registration function in the intelligent contract to create an account for user registration to form a user information structure body, the user information structure body comprises a user information unique identifier UID and an Ether house Address, encryption operation is only carried out once in a registration stage, the UID is used as an identity by a user, and the block link point only needs to verify whether the UID corresponds to the Address.
Specifically, the transaction matching module 21 includes:
the selecting unit 211 is configured to select a power generator user with a power selling price equal to a power purchasing price as a signing object for signing an intelligent contract with the power purchasing user, where when at least two power generator users meet a selecting condition, a power generator user with the highest expected power selling amount is preferentially selected;
the intelligent contract generating unit 212 is used for matching the electricity purchasing user and the electricity generating user to sign an intelligent contract, wherein the declared transaction electricity quantity in the intelligent contract is the minimum value of the predicted electricity selling quantity and the intention electricity purchasing quantity, and the clear price is equal to the electricity purchasing price;
the selecting unit 211 is configured to continue to select a next power generation user for the power purchasing user when the declared transaction electric quantity is the expected power selling electric quantity until the total declared transaction electric quantity of all the intelligent contracts signed by the power purchasing user is equal to the intended power purchasing electric quantity;
the selecting unit 211 is used for continuously selecting the next electricity purchasing user for the electricity generating party user when the declared transaction electricity quantity is the intention electricity purchasing quantity so as to deduct the residual electricity quantity after the transaction electricity quantity is declared after the intelligent contract is signed by the electricity generating party selling user;
the sorting unit 213 is configured to sort all the unapproved electricity selling information in an ascending order according to the electricity selling price, wherein the electricity selling information with the same electricity selling price is sorted in a descending order according to the remaining electricity quantity;
the sorting unit 213 is configured to sort all the unachieved electricity purchasing information in a descending order of electricity purchasing prices, where the electricity purchasing information with the same electricity purchasing price is sorted in a descending order of the unachieved electricity purchasing quantity, and the unachieved electricity purchasing quantity is a difference between the intention electricity purchasing quantity of the electricity purchasing user and the declared transaction electricity quantity in the intelligent contract signed by the electricity purchasing user;
the selecting unit 211 is configured to sequentially traverse each electricity purchasing information, and select the power generator user as a contract signing object for signing an intelligent contract with the electricity purchasing user according to the sequence from low electricity selling price to high electricity selling price;
the clearing unit 214 is used for matching the electricity purchasing user and the electricity generating user to sign an intelligent contract, wherein the declared transaction electricity quantity in the intelligent contract is the minimum value of the residual electricity quantity and the unachieved purchase electricity quantity, and the clearing price is the average value of the electricity purchasing price and the electricity selling guarantee price;
the selecting unit 211 is configured to select an energy storage facility in the microgrid as a transaction object of a user of an electricity purchasing party when the remaining electricity amount is sold out and the electricity purchasing amount is still not reached;
the recycling unit 215 is used for recycling the surplus power to store to the energy storage facility of the microgrid when the purchased power is not achieved and the surplus power still exists.
When the actual power generation capacity and the declared transaction power are input and output, the system processes through an excess processing module 28 and an shortage processing module 29:
the excess processing module 28 is used for purchasing excess electric quantity by a microgrid operator according to a clearing price in an intelligent contract and recycling the excess electric quantity to an energy storage facility in the microgrid when the actual generated energy is larger than the declared transaction electric quantity;
and the shortage processing module 29 is used for purchasing the shortage electric quantity from the large power grid by the micro-power grid operator according to the sale price issued by the large power grid when the actual generated electric quantity is smaller than the declared transaction electric quantity.
Correspondingly, the calculated value of the amount to be refunded by the power generator is as follows: when the actual generated energy is larger than the declared transaction electric quantity, the refund amount of the power generation party is the sum of the amount used for purchasing the excess electric quantity, the guarantee money of the power generation party and the economic reward amount; when the actual generated energy is equal to the reported transaction electric quantity, the amount of money to be refunded by the power generation party is the sum of the guarantee money of the power generation party and the economic reward amount; when the actual generated energy is less than the declared transaction electric quantity, the amount of money to be refunded by the power generation party is the difference value obtained by subtracting the amount of money used for purchasing the shortage electric quantity from the number of the guarantee money of the power generation party and then subtracting the economic punishment.
Referring to the system shown in fig. 5, a flow chart of energy transaction is shown, where the flow chart shown in fig. 5 includes four stages of market admission, pre-transaction stage, transaction settlement, and incentive penalty, and specifically includes the following steps:
step S51, registering each transaction agent at the aggregation proxy, and synchronizing the account information to the blockchain;
at step S52, is the transaction subject admission successful? If yes, go to step S53; if not, ending;
step S53, the seller and the buyer pay a certain amount of deposit;
step S54, the seller and buyer submit the electricity selling information and the electricity purchasing information;
step S55, is the present cycle time expired? If yes, go to step S56; if not, jumping to step S57;
step S56, matching transaction and signing an intelligent contract;
step S57, each trading member continues to submit the electricity selling information and the electricity purchasing information, and returns to step S55;
step S58, recording uplink by the intelligent contract;
step S59, the intelligent contract automatically completes value transfer according to contract data and contract content, and the intelligent ammeter performs energy transfer;
step S510, is the actual amount of electricity used for transmission equal to the reported transaction amount? If yes, jumping to step S511; if not, jumping to step S512;
step S511, giving economic incentive and returning guarantee fund, and skipping to the end;
and step S512, deducting the economic punishment and the amount of the shortage purchase, returning the residual deposit and skipping to the end.
Referring to the intelligent contract-based transaction flow diagram of both buyer and seller shown in fig. 6, the specific steps include:
step S61, the buyer and seller issue the electricity purchasing information and electricity selling information;
step S62, matching transaction according to the electricity selling information and the electricity purchasing information;
step S63, signing an intelligent contract;
step S64, automatically executing transaction at contract start time; wherein the execution content comprises a fund transfer and a power transfer;
step S65, real-time data uplink;
step S66, stopping trading at contract ending time;
in step S67, is there a deviation between the actual power generation and the reported transaction power? If yes, jumping to step S68, otherwise, jumping to step S69;
step S68, calculating deviation, and settling balance cost; the balance fee refers to the excess purchase amount and the shortage purchase amount;
step S69, settlement contract fee;
step S610, reward and punishment are carried out;
step S611, returns the balance deposit of both parties.
According to the block chain-based microgrid distributed energy trading method and system, two trading parties can achieve free point-to-point trading through the intelligent microgrid based on the block chain, and the trading is automatically triggered through an intelligent contract according to agreement of the two parties, so that the real-time performance and the accuracy of the trading are guaranteed. Meanwhile, the intelligent micro-grid is realized based on a block chain, transaction data are linked in real time, each node has a complete account book, the safety, consistency and traceability of transaction information are guaranteed, transaction management is facilitated, and the transaction efficiency of distributed power resources is improved.
In the invention, the micro-grid can also keep a trading function during the period of being isolated from the large power grid, so that energy in the system can trade nearby, and participants in the micro-grid can share the generated energy to obtain profits through the aggregation agency of the micro-grid, the smart meter and other infrastructure. All conversion is carried out under the condition that the preset condition is met, and due to the characteristics of the block chain, any participant cannot change data, so that the running reliability of the system is improved.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (10)

1. A microgrid distributed energy transaction method based on a block chain is characterized in that implementation of a microgrid in a grid-connected operation state or a single-grid operation state is supported, and the method comprises the following steps:
the microgrid operator matches and trades according to electricity selling information and electricity purchasing information to generate an intelligent contract signed and signed between a power generator user and an electricity purchasing user, wherein the electricity selling information is issued to a block chain network by the power generator user in the microgrid, the electricity selling information comprises predicted electricity selling quantity, electricity selling price and the number of power generator deposit, the electricity purchasing information is issued to the block chain network by the electricity purchasing user in the microgrid, the electricity purchasing information comprises the intended electricity purchasing quantity, the electricity purchasing price and the number of the electricity purchasing deposit, and the intelligent contract comprises electricity purchasing user information, electricity generator user information, declared trading quantity and price clearing records;
the microgrid operator broadcasts the intelligent contract to the block chain network and stores the intelligent contract to a node, and the intelligent contract is packaged into blocks at the node and linked up;
the micro-grid operator executes the intelligent contract, and completes value transfer and energy transfer of the intelligent electric meter according to the content in the intelligent contract;
the microgrid operator checks whether the actual generating capacity of the power generation party user is equal to the declared transaction electric quantity;
the micro-grid operator calculates the amount of money to be returned by the power generation party according to the relation between the actual power generation amount of the power generation party user and the declared transaction power amount and the number of the guarantee money of the power generation party;
and the micro-grid operator returns the amount of money to be refunded by the power generator and the guarantee money of the power purchasing party.
2. The distributed energy trading method for the micro-grid based on the block chain as claimed in claim 1, wherein before the micro-grid operator of the micro-grid matches the trade according to the electricity selling information and the electricity purchasing information, an intelligent contract is generated between the users of the power generator and the electricity purchasing users, further comprising:
the microgrid operator provides registration and login entries, information of the electricity purchasing party user and information of the power generating party user are synchronized to the block chain network, and the information of the electricity purchasing party user and the information of the power generating party user are encrypted through a Hash algorithm.
3. The block chain-based microgrid distributed energy resource transaction method of claim 1, wherein the generation of an intelligent contract between a power generator user and a power buyer user by a microgrid operator of the microgrid according to trade matching of power selling information and power buying information comprises:
selecting the power generation users with the electricity selling quotations equal to the electricity purchasing quotations as signing objects for signing the intelligent contract with the power purchasing users, wherein when at least two power generation users meet selection conditions, the power generation users with the highest expected electricity selling quantity are preferentially selected;
matching the electricity purchasing user and the electricity generating user to sign the intelligent contract, wherein the declared transaction electricity quantity in the intelligent contract is the minimum value of the predicted electricity selling quantity and the intention electricity purchasing quantity, and the clearing price is equal to the electricity purchasing quotation;
when the declared transaction electric quantity is the predicted electric quantity, continuing to select the next power generation party user for the power purchasing party user until the sum of the declared transaction electric quantities of all the intelligent contracts signed by the power purchasing party user is equal to the intention electric quantity;
when the declared transaction electric quantity is the intention purchasing electric quantity, continuously selecting the next power purchasing user for the power generation user so as to sell the residual electric quantity after the power generation user signs the intelligent contract and deducts the declared transaction electric quantity;
sorting all the unapproved electricity selling information in an ascending order according to the electricity selling price, wherein the electricity selling information with the same electricity selling price is sorted in a descending order according to the residual electricity quantity;
sorting all the unapproved electricity purchasing information in a descending order according to the electricity purchasing price, wherein the electricity purchasing information with the same electricity purchasing price is sorted in a descending order according to the amount of unaddressed electricity purchasing, and the amount of unaddressed electricity purchasing is the difference between the intention electricity purchasing amount of the electricity purchasing user and the declared transaction amount in the intelligent contract signed by the electricity purchasing user;
sequentially traversing each piece of electricity purchasing information, and selecting the power generation party user as a signing object for signing the intelligent contract with the electricity purchasing party user according to the sequence that the electricity selling price is from low to high;
matching the electricity purchasing user and the electricity generating user to sign the intelligent contract, wherein the declared transaction electric quantity in the intelligent contract is the minimum value of the residual electric quantity and the unachieved purchase electric quantity, and the clearing price is the average value of the electricity purchasing price and the electricity selling guarantee price;
when the residual electric quantity is sold out and the unachieved purchased electric quantity still exists, selecting an energy storage facility in the microgrid as a transaction object of the user of the electricity purchasing party;
and when the unachieved purchased electric quantity is completely achieved and the residual electric quantity still exists, recovering the residual electric quantity and storing the residual electric quantity to the energy storage facility of the microgrid.
4. The distributed energy trading method for the micro-grid based on the block chain according to claim 1, wherein after the operator checks whether the actual power generation amount of the users of the power generation parties is equal to the declared trading power amount, the operator of the micro-grid calculates the amount of the power generation parties to be returned according to the relationship between the actual power generation amount of the users of the power generation parties and the declared trading power amount and the number of the deposit of the power generation parties, and further comprising:
when the actual generated energy is larger than the declared transaction electric quantity, the microgrid operator purchases excess electric quantity according to the clearing price in the intelligent contract and recovers the excess electric quantity to the energy storage facility in the microgrid;
alternatively, the first and second electrodes may be,
and when the actual generating capacity is smaller than the declared transaction electric quantity, the micro-grid operator purchases the shortage electric quantity from the large power grid according to the sale price issued by the large power grid.
5. The block chain based microgrid distributed energy resource transaction method of claim 4, comprising:
when the actual generated energy is larger than the declared transaction electric quantity, the amount of money to be refunded by the power generation party is the sum of the amount of money for purchasing the excess electric quantity, the guarantee money of the power generation party and the economic reward amount;
when the actual generated energy is equal to the declared transaction electric quantity, the amount of money to be refunded by the power generation party is the sum of the guarantee money of the power generation party and the economic reward amount;
and when the actual generated energy is smaller than the declared transaction electric quantity, the amount to be refunded by the power generator is the difference obtained by subtracting the amount used for purchasing the shortage electric quantity from the number of the guarantee money of the power generator and then subtracting the economic punishment.
6. The utility model provides a little grid distribution type energy transaction system based on block chain which characterized in that, supports little grid-connected operation state or single network operation state implementation, specifically includes:
the system comprises a transaction matching module, a block chain network and a micro-grid, wherein the transaction matching module is used for matching transactions according to electricity selling information and electricity purchasing information to generate an intelligent contract signed and signed between a power generator user and an electricity purchasing user, the electricity selling information is issued to the block chain network by the power generator user in the micro-grid, the electricity selling information comprises the predicted electricity selling quantity, electricity selling price and the number of electricity generating party guarantee funds, the electricity purchasing information is issued to the block chain network by the electricity purchasing user in the micro-grid, the electricity purchasing information comprises the intention electricity purchasing quantity, the electricity purchasing price and the number of electricity purchasing party guarantee funds, and the intelligent contract comprises electricity purchasing user information, electricity generating party user information, reporting transaction electricity quantity and clearing price records;
a broadcasting module, configured to broadcast the smart contract to the block chain network and store the smart contract to a node, and package the smart contract into blocks at the node and uplink the smart contract;
the execution module is used for executing the intelligent contract and completing value transfer and energy transfer of the intelligent electric meter according to the content in the intelligent contract;
the checking module is used for checking whether the actual generating capacity of the power generation party user is equal to the declared transaction electric quantity or not;
the accounting module is used for accounting the amount of money to be returned by the power generator according to the relation between the actual power generation amount of the power generator user and the declared transaction power amount and the number of the power generator deposit;
and the return module is used for returning the amount of money to be returned by the power generator and the deposit of the power purchasing party.
7. The block chain based microgrid distributed energy resource transaction system of claim 6, further comprising:
and the market access module is used for providing registration and login entries, synchronizing the information of the electricity purchasing party user and the information of the electricity generating party user to the block chain network, and encrypting the information of the electricity purchasing party user and the information of the electricity generating party user through a Hash algorithm.
8. The block chain based microgrid distributed energy resource transaction system of claim 6, wherein the transaction matching module comprises:
the selection unit is used for selecting the power generation party user with the electricity selling price equal to the electricity purchasing price as a signing object for signing the intelligent contract with the power purchasing party user, wherein when at least two power generation party users meet the selection condition, the power generation party user with the highest expected electricity selling quantity is preferentially selected;
the intelligent contract generating unit is used for matching the electricity purchasing user and the electricity generating user to sign the intelligent contract, wherein the declared trading electric quantity in the intelligent contract is the minimum value of the predicted selling electric quantity and the intention purchasing electric quantity, and the clearing price is equal to the electricity purchasing price;
the selecting unit is used for continuing to select the next power generation party user for the power purchasing party user when the declared transaction electric quantity is the predicted power selling electric quantity until the sum of the declared transaction electric quantities of all the intelligent contracts signed by the power purchasing party user is equal to the intention power purchasing electric quantity;
the selecting unit is used for continuously selecting the next electricity purchasing user for the electricity generating party user when the declared transaction electricity quantity is the intention electricity purchasing quantity so as to sell the remaining electricity quantity after the electricity generating party user signs the intelligent contract and deducts the declared transaction electricity quantity;
the sorting unit is used for sorting all the unapproved electricity selling information in an ascending order according to the electricity selling price, wherein the electricity selling information with the same electricity selling price is sorted in a descending order according to the residual electricity quantity;
the sorting unit is used for sorting all the unapproved electricity purchasing information in a descending order according to the electricity purchasing price, wherein the electricity purchasing information with the same electricity purchasing price is sorted in a descending order according to the unaddressed electricity purchasing quantity, and the unaddressed electricity purchasing quantity is the difference between the intention electricity purchasing quantity of the electricity purchasing user and the declaration transaction electricity quantity in the intelligent contract signed by the electricity purchasing user;
the selecting unit is used for sequentially traversing each piece of electricity purchasing information and selecting the power generator user as a signing object for signing the intelligent contract with the electricity purchasing user according to the sequence of the electricity selling prices from low to high;
the clearing unit is used for matching the electricity purchasing user and the electricity generating user to sign the intelligent contract, wherein the declared transaction electricity quantity in the intelligent contract is the minimum value of the residual electricity quantity and the unachieved purchase electricity quantity, and the clearing price is the average value of the electricity purchasing price and the electricity selling guarantee price;
the selecting unit is used for selecting the energy storage facilities in the microgrid as transaction objects of the electricity purchasing user when the residual electricity quantity is sold out and the unachieved electricity purchasing quantity still exists;
and the recovery unit is used for recovering the residual electric quantity and storing the residual electric quantity to the energy storage facility of the microgrid when the unachieved purchased electric quantity is completely achieved and the residual electric quantity still exists.
9. The block chain based microgrid distributed energy resource transaction system of claim 6, further comprising:
the excess processing module is used for purchasing excess electric quantity by the microgrid operator according to the clearing price in the intelligent contract and recycling the excess electric quantity to the energy storage facility in the microgrid when the actual generated energy is larger than the declared transaction electric quantity;
and the shortage processing module is used for purchasing the shortage electric quantity from the large power grid by the micro-power grid operator according to the sale price issued by the large power grid when the actual generated energy is smaller than the declared transaction electric quantity.
10. The block chain based microgrid distributed energy resource transaction system of claim 9,
when the actual generated energy is larger than the declared transaction electric quantity, the amount of money to be refunded by the power generation party is the sum of the amount of money for purchasing the excess electric quantity, the guarantee money of the power generation party and the economic reward amount;
when the actual generated energy is equal to the declared transaction electric quantity, the amount of money to be refunded by the power generation party is the sum of the guarantee money of the power generation party and the economic reward amount;
and when the actual generated energy is smaller than the declared transaction electric quantity, the amount to be refunded by the power generator is the difference obtained by subtracting the amount used for purchasing the shortage electric quantity from the number of the guarantee money of the power generator and then subtracting the economic punishment.
CN202110843362.7A 2021-07-26 2021-07-26 Microgrid distributed energy trading method and system based on block chain Pending CN113643131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110843362.7A CN113643131A (en) 2021-07-26 2021-07-26 Microgrid distributed energy trading method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110843362.7A CN113643131A (en) 2021-07-26 2021-07-26 Microgrid distributed energy trading method and system based on block chain

Publications (1)

Publication Number Publication Date
CN113643131A true CN113643131A (en) 2021-11-12

Family

ID=78418387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110843362.7A Pending CN113643131A (en) 2021-07-26 2021-07-26 Microgrid distributed energy trading method and system based on block chain

Country Status (1)

Country Link
CN (1) CN113643131A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113935786A (en) * 2021-12-15 2022-01-14 浙江数秦科技有限公司 Carbon emission right transaction system and method based on block chain
CN113971611A (en) * 2021-12-23 2022-01-25 华中科技大学 Medium-and-long-term electric power transaction method and system based on intelligent contract
CN115311040A (en) * 2022-07-13 2022-11-08 国网山东省电力公司营销服务中心(计量中心) Transaction platform based on block chain intelligent contract, photovoltaic transaction system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985944A (en) * 2018-08-07 2018-12-11 燕山大学 Power market transaction method in micro-capacitance sensor group based on multiple agent and game theory
CN109377411A (en) * 2018-10-29 2019-02-22 南方电网科学研究院有限责任公司 Electricity market based on block chain concentrates trade matching method and device
CN110415093A (en) * 2019-07-11 2019-11-05 上海电器科学研究所(集团)有限公司 A kind of intelligent energy gateway of user oriented side micro-capacitance sensor electricity transaction
CN111352923A (en) * 2020-02-27 2020-06-30 苏州市星际云通区块链科技有限公司 Mixed block chain architecture system, processing method and processing system
CN112837126A (en) * 2021-02-10 2021-05-25 合肥工业大学 Industrial park distributed energy trading method and system based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108985944A (en) * 2018-08-07 2018-12-11 燕山大学 Power market transaction method in micro-capacitance sensor group based on multiple agent and game theory
CN109377411A (en) * 2018-10-29 2019-02-22 南方电网科学研究院有限责任公司 Electricity market based on block chain concentrates trade matching method and device
CN110415093A (en) * 2019-07-11 2019-11-05 上海电器科学研究所(集团)有限公司 A kind of intelligent energy gateway of user oriented side micro-capacitance sensor electricity transaction
CN111352923A (en) * 2020-02-27 2020-06-30 苏州市星际云通区块链科技有限公司 Mixed block chain architecture system, processing method and processing system
CN112837126A (en) * 2021-02-10 2021-05-25 合肥工业大学 Industrial park distributed energy trading method and system based on block chain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113935786A (en) * 2021-12-15 2022-01-14 浙江数秦科技有限公司 Carbon emission right transaction system and method based on block chain
CN113971611A (en) * 2021-12-23 2022-01-25 华中科技大学 Medium-and-long-term electric power transaction method and system based on intelligent contract
CN115311040A (en) * 2022-07-13 2022-11-08 国网山东省电力公司营销服务中心(计量中心) Transaction platform based on block chain intelligent contract, photovoltaic transaction system and method
CN115311040B (en) * 2022-07-13 2024-03-19 国网山东省电力公司营销服务中心(计量中心) Transaction platform based on blockchain intelligent contract, photovoltaic transaction system and method

Similar Documents

Publication Publication Date Title
US20220237712A1 (en) Exergy token
KR101976401B1 (en) Block-Chain based Electricity power trading system, Method thereof, and Computer readable Storage medium having the method
He et al. Joint operation mechanism of distributed photovoltaic power generation market and carbon market based on cross-chain trading technology
Oprea et al. Two novel blockchain-based market settlement mechanisms embedded into smart contracts for securely trading renewable energy
CN113643131A (en) Microgrid distributed energy trading method and system based on block chain
Dorri et al. Peer-to-peer energytrade: A distributed private energy trading platform
CN112053152B (en) Distributed energy grid-connected authentication and transaction method based on green rights and interests consensus mechanism
Bukar et al. Peer-to-peer electricity trading: A systematic review on current developments and perspectives
Gunarathna et al. Reviewing global peer-to-peer distributed renewable energy trading projects
Dinesha et al. Conceptualization of blockchain enabled interconnected smart microgrids
Okwuibe et al. A blockchain-based double-sided auction peer-to-peer electricity market framework
CN114626922A (en) Self-adaptive bidding multi-energy P2P trading platform based on block chain
Wang et al. A multiblockchain-oriented decentralized market framework for frequency regulation service
Lai et al. Blockchain applications in microgrid clusters
Golosova et al. Review of the blockchain technology in the energy sector
Ge et al. Blockchain and green certificates based market structure and transaction mechanism of direct power-purchase for industrial users
Lu et al. Blockchain-based direct-sale transaction with peak shaving and green certificate mechanism
Jin et al. Blockchain-enabled transactive method in distributed systems considering security constraints
Wang et al. Equilibrium Analysis of Multi‐Energy Markets with Microgrids Bidding
Ma et al. Study on the transaction management mode of virtual power plants based on blockchain technology
Armani et al. Seamless Grid: An off-chain model proposal for scalable P2P electricity markets and grids management
Coll-Mayor et al. Development and test of distributed ledger technologies applications in a microgrid distributed control
Umar et al. Peer-to-Peer Decentralized Community Energy Management System Using Blockchain Technology
Yu Design, implementation, and evaluation of a blockchain-enabled multi-energy transaction system for district energy systems
Fan et al. Peer-Peer electricity transaction and integrated regulation of VPP based on Blockchain

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