[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111402047A - Distributed power supply regional power dispatching system and method based on block chain - Google Patents

Distributed power supply regional power dispatching system and method based on block chain Download PDF

Info

Publication number
CN111402047A
CN111402047A CN202010154322.7A CN202010154322A CN111402047A CN 111402047 A CN111402047 A CN 111402047A CN 202010154322 A CN202010154322 A CN 202010154322A CN 111402047 A CN111402047 A CN 111402047A
Authority
CN
China
Prior art keywords
seller
price
transaction
queue
buyer
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
CN202010154322.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.)
Xinneng Boan Technology Beijing Co ltd
Original Assignee
Xinneng Boan Technology Beijing 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 Xinneng Boan Technology Beijing Co ltd filed Critical Xinneng Boan Technology Beijing Co ltd
Priority to CN202010154322.7A priority Critical patent/CN111402047A/en
Publication of CN111402047A publication Critical patent/CN111402047A/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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0609Buyer or seller confidence or verification
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0611Request for offers or quotes
    • 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/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Data Mining & Analysis (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Technology Law (AREA)
  • Human Resources & Organizations (AREA)
  • Water Supply & Treatment (AREA)
  • Public Health (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a distributed power supply regional power dispatching system and method based on a block chain, which are applied to a target block chain, wherein sellers and buyers are respectively registered as nodes on a block chain platform, the expected electricity price of the buyer and the electricity price of the seller are matched, and the seller with the matched electricity price is selected from a seller queue; the buyer and the seller sign an intelligent contract; the power scheduling module schedules the seller's power to the buyer according to the intelligent contract. The power dispatching method greatly improves the trust integrity of point-to-point transaction information and greatly improves the transparency and safety of transactions.

Description

Distributed power supply regional power dispatching system and method based on block chain
Technical Field
The invention relates to the field of power scheduling, in particular to a distributed power supply regional power scheduling system and method based on a block chain.
Background
The green electric power refers to the electric power of clean and non-fossil energy sources such as solar energy, wind power, hydroelectric power, nuclear power and the like. These power generation methods usually have the characteristics of autonomous production, self-consumption, autonomous storage and tradable transaction of consumers. From a global perspective, the traditional green electricity trade is to sell electricity to the national grid. The principle of our country's solar energy generation is ' self-generation, surplus electricity on-line and power grid regulation '. The electricity produced by the clean energy is used by itself, and the surplus electricity is transmitted to the power grid. Therefore, the traditional green energy transaction is the transaction of C2G, i.e. the transaction mode to the national power grid, and direct point-to-point green electricity transaction cannot be carried out. This is policy driven, on the one hand, the lack of tradable platforms and technologies, which discourages trading and consumption of clean energy.
However, with the technical progress of green energy power generation, the electricity consumption cost L COE of power generation is continuously reduced, the reaction of the electricity price is often lagged, and in the scene of distributed power generation, families, hospitals, schools, factory roofs and the cost of green energy power generation depend on various factors, namely system cost, sunlight, wind power and other natural factors, so that in essence, the power generation cost of green power fluctuates relatively, so that a flexible price mechanism capable of correspondingly matching the power generation cost price and a corresponding real-time trading system capable of correspondingly matching the power generation cost price are required to be provided for matching and trading between a power generation side and a power utilization side, and further, the matching of the power generation cost mechanism and the corresponding real-time trading system can be promoted to be matched with the power generation cost and the power utilization side, and the power generation load of the power generation system can be clearly matched, and the power generation burden of the power generation side and the power consumption of the power grid can be reduced, and the pollution of the power grid can be reduced.
Disclosure of Invention
In order to overcome the defects of the prior art, the green power dispatching system and method based on the block chain are invented, and the transparency and the safety of point-to-point power transaction are greatly improved.
The technical scheme provided by the invention is as follows: a distributed power supply regional power dispatching method based on a block chain is characterized in that a plurality of sellers and buyers are respectively registered as nodes on a block chain platform, and the specific steps are as follows:
s1, constructing a seller price queue;
s2: matching the prices of the seller and the buyer;
s3: implementing a non-repudiation transaction by means of a smart contract;
s4: and carrying out power dispatching according to the intelligent contract.
The seller price queue in S1 is constructed based on the seller' S electricity price; the S2 further includes the steps of: selecting a seller matched with the buyer expected electricity price from the seller price queue; the S3 further includes the steps of: the method comprises the steps that a buyer and a seller matched with the buyer in price sign an intelligent contract, and the intelligent contract is sent to a power dispatching module; the S4 further includes the steps of: the power scheduling module schedules seller power to buyers according to the intelligent contracts. The price queue in S1 is specifically the price queue
Figure RE-821987DEST_PATH_IMAGE001
(ii) a When a new seller is inserted into the queue, the queue is updated to
Figure RE-739128DEST_PATH_IMAGE002
When the seller exits the queue, the queue is updated to
Figure RE-315603DEST_PATH_IMAGE003
Or
Figure RE-445233DEST_PATH_IMAGE004
Wherein P is0Representing electricity price, P, of the 1 st seller1Representing the electricity price of the 2 nd seller, Pn-2Representing the electricity price, P, of the (n-1) th sellern-1Representing the electricity price of the nth seller, PnElectric price representing the (n + 1) th seller, 0mRepresenting the empty space left by the exit,
Figure RE-603813DEST_PATH_IMAGE005
the seller price queue is divided into a plurality of sub-queues based on the area where the seller is located, a sample variance S and an average electricity price Pm of the electricity price in a certain area are calculated by sampling a large amount of electricity price data in the area, and when a new seller inserts into the seller price queue based on the electricity price, the new seller electricity price
Figure RE-223013DEST_PATH_IMAGE006
When the new seller is inserted into the average price of electricity PmIn sub-queues
Figure RE-490046DEST_PATH_IMAGE008
The S2 further includes the steps of: s21: when the buyer desires the price
Figure RE-157788DEST_PATH_IMAGE010
Selecting the sub-queues with the average electricity price of Pm as target matched price queues in the price interval; s21: selecting a seller in the target matching price queue, and when the price P of a seller in the target matching price queue is upqSatisfy the requirement of
Figure RE-952567DEST_PATH_IMAGE011
Wherein, in the step (A),
Figure RE-414772DEST_PATH_IMAGE012
Figure RE-965839DEST_PATH_IMAGE013
if the matching error is found, the price in the price queue of the target matching is PqSet as the seller matching the buyer.
The S3 further includes the steps of: determining a transaction pair, namely a buyer and a seller, transaction electric quantity, and a fund account and an electric account of the buyer and the seller, taking the electric price of the seller matched with the buyer determined in the step S2 as a transaction electric price, obtaining a transaction amount based on the transaction electric price and the transaction electric quantity, matching a payment mode with an intelligent contract, calling a third-party interface to complete payment of the transaction amount and clearing of the electric quantity, and finally forming a transaction order.
The transaction orders are sequenced and packaged to all nodes on the blockchain transaction platform after being identified by all nodes or part of nodes of the blockchain transaction platform, and a transaction record used for tracing, auditing and not being tampered is formed; the consensus process is to verify the validity, correctness and completeness of the trade order: the transaction record content includes at least: the transaction body, the transaction price, the transaction time and the transaction electric quantity.
The system comprises: the system comprises a block chain platform, a deployment module, a matching module, a signing module and an electric power scheduling module; a plurality of sellers and buyers are respectively registered as nodes on the block chain platform, and a seller price queue is constructed by the deployment module based on the electricity price of the seller; the matching module matches the expected electricity price of the buyer with the electricity price of the seller, and selects the seller with the matched electricity price from the seller price queue; the signing module is used for signing an intelligent contract by a buyer and a seller matched with the electricity price and sending the intelligent contract to the power scheduling module and nodes on the block chain platform; the power scheduling module is used for scheduling the power of the seller to the buyer according to the intelligent contract.
The price queue is specifically
Figure RE-702851DEST_PATH_IMAGE014
(ii) a When a new seller is inserted into the queue, the queue is updated to
Figure RE-570444DEST_PATH_IMAGE015
When the seller exits the queue, the queue is updated to
Figure RE-734709DEST_PATH_IMAGE016
Or
Figure RE-773072DEST_PATH_IMAGE017
Wherein P is0Representing electricity price, P, of the 1 st seller1Representing the electricity price of the 2 nd seller, Pn-2Representing the electricity price, P, of the (n-1) th sellern-1Representing the electricity price of the nth seller, PnElectric price representing the (n + 1) th seller, 0mRepresenting the empty space left by the exit,
Figure RE-890939DEST_PATH_IMAGE018
. Determining a transaction pair, namely a buyer and a seller, transaction electric quantity, and a fund account and an electric account of the buyer and the seller, taking an electric price of the seller matched with the buyer as a transaction electric price, obtaining a transaction amount based on the transaction electric price and the transaction electric quantity, matching a payment mode with an intelligent contract, calling a third-party interface to complete payment of the transaction amount and clearing of the electric quantity, and finally forming a transaction order; the transaction orders are sequenced and packaged to all nodes on the blockchain transaction platform after being identified by all nodes or part of nodes of the blockchain transaction platform, and a transaction record used for tracing, auditing and not being tampered is formed; the consensus process is to verify the validity, correctness and completeness of the trade order: the transaction record content includes at least: the transaction body, the transaction price, the transaction time and the transaction electric quantity.
The power dispatching system and the method have the advantages that the validity, the integrity and the like of the transaction are verified through a consensus mechanism, so that the information and the trust integrity of point-to-point transaction are greatly improved, each transaction node can theoretically acquire each transaction record and an account book synchronized to the whole network, malicious nodes are prevented, the transparency and the safety of the transaction are greatly improved, and the fraudulent behaviors of an electricity buying party and an electricity selling party are avoided.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention in the prior art, the drawings used in the description of the embodiments or prior art are briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of an embodiment of a distributed power supply regional power scheduling method based on a block chain;
FIG. 2 is a block diagram of a distributed power source regional power scheduling system based on a block chain according to an embodiment of the disclosure;
FIG. 3 is a schematic diagram of an embodiment of a distributed power supply regional power scheduling based on a block chain;
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
The invention discloses a distributed power supply regional power dispatching system and method based on a block chain, which are applied to the transaction process of power energy, and utilize the characteristics of non-falsification and traceability of an intelligent contract in the block chain to reduce the fraudulent conduct of a buyer and a seller, and erect a good credit bridge.
The block chain-based distributed power supply regional power scheduling method has the flow shown in fig. 1, and includes the following steps:
the first step is as follows: constructing a seller price queue;
suppose there are n selling electricity, each with price of P, and P>0. The seller price may be defined as P [ N ], where N =0. So that a price index queue comprising n price index queues can be constructed
Figure RE-534410DEST_PATH_IMAGE019
= P0, P1.. Pn-1 }. Wherein P0<P1<P2..<Pn-1. The problems of queue joining, queue exiting and queue splitting are discussed in three cases below.
Case 1: n +1 join queue
Assuming that the current electricity selling queue is an ordered array, the members to be added into the ordered array currently can choose to adopt various sorting algorithms on time overhead and complexity to realize the insertion of the current price index Pn into the original electricity selling queue
Figure RE-603997DEST_PATH_IMAGE020
Thereby forming a price index queue containing n +1 price indexes
Figure RE-942705DEST_PATH_IMAGE021
={P0,P1,...Pn-1,Pn}。
Case 2: m retire queue
If a certain queue needs to be quitted or no transactable electric quantity exists, the corresponding position in the queue can be deleted, the length of the queue is marked again, or the original position is marked directly and set to be 0, and the length of the queue is not changed. In order to later match a certain buyer price. Quit transaction, price index queue changes to
Figure RE-880574DEST_PATH_IMAGE022
= P0, P1.. Pn-2 or
Figure RE-847393DEST_PATH_IMAGE023
={P0,P1,...
Figure RE-619040DEST_PATH_IMAGE024
,.. The benefit of the latter is that any retirement, transaction price queue length is unchanged, and the order is unchanged. The former has the advantages of quitting, shortening the length of the queue, and having higher matching efficiency than the latter, but the order of the queue is rearranged.
Case 3: queue splitting
When the length of a single queue is linearly increased, the calculation of inserting the queue and matching the electricity price of the buyer increases the calculation overhead, for example, the time complexity of inserting the sequence is O (
Figure RE-615684DEST_PATH_IMAGE025
),The larger n, the more exponential the computational time complexity increases. For matching the electricity prices of the buyers in real time, time efficiency is not optimized, so that the queue is considered to be split. The splitting is to split the electricity price into a plurality of queues according to a certain price interval, and the specific number of the split queues is determined according to the density and the variance of the electricity price distribution. In particular practice, electricity prices typically have an average price per region, with market prices fluctuating around the average price. Thus, the electricity rate queue can be split by region if the average electricity rate of a certain region is defined as
Figure RE-357244DEST_PATH_IMAGE026
The sample variance of a region is calculated by sampling a large amount of electricity price data of the region
Figure RE-726040DEST_PATH_IMAGE027
When the electricity price of a certain area
Figure RE-668588DEST_PATH_IMAGE028
At that time, the electricity prices can be added to the regional electricity price queue
Figure RE-699998DEST_PATH_IMAGE029
And sorted from high to low or from high to low. Therefore, the whole seller price queue is composed of a plurality of regional price subqueues, the length of the queue is obviously shortened compared with a single queue, and meanwhile, the queue is designed according to the model, and the method has an optimization effect on a subsequent matching search calculation method.
The second step is that: matching the prices of the seller and the buyer;
at the time of transaction, a desired price is first given by the buyer
Figure RE-855036DEST_PATH_IMAGE030
. Then matching is carried out from the price queue of the seller, the matching process is that the price interval of the area is matched firstly, if so, the price interval is matched
Figure RE-170348DEST_PATH_IMAGE030
Within the price interval of this zone, i.e.Then the price queue of the target matching is found first, and the computation complexity of the matching process is
Figure RE-5766DEST_PATH_IMAGE032
Where n represents the number of regional electricity rate queues. The next step is to
Figure RE-964495DEST_PATH_IMAGE033
Is found to be equal to or close to
Figure RE-25992DEST_PATH_IMAGE030
The value and position of (c). First, a matching error is defined
Figure RE-654550DEST_PATH_IMAGE034
>0, this is
Figure RE-863815DEST_PATH_IMAGE034
It will affect the speed and accuracy of matching and depend on various factors and policies set according to the platform in the business model, such as the price of the matched seller is higher than that of the matched seller
Figure RE-360655DEST_PATH_IMAGE035
Then the electricity purchase may not be acceptable, and may be more or less appropriate, possibly within a certain range, and also acceptable. If the matched electricity price is lower than
Figure RE-542238DEST_PATH_IMAGE035
The benefit of the seller may be impaired, and the seller is unwilling, so that it is desirable that the electricity prices of the buyer and the seller are completely equal and accurately matched. In fact, to achieve the above result, one situation is possible, but requires a full traversal of the transaction pool (transaction pool consisting of transaction queues), and one situation is that even after a traversal, no perfectly matching value is found. So whether to find the optimal or sub-optimal solution. Sub-optimal means sacrificing accuracy, improving matching degree and matching time, and is a comprehensive consideration balancing matchability, computation time and complexity. The process of matching is to find the target queue
Figure RE-846092DEST_PATH_IMAGE036
So that
Figure RE-214757DEST_PATH_IMAGE037
Wherein
Figure RE-577605DEST_PATH_IMAGE038
How to find a solution according to the above formula
Figure RE-223481DEST_PATH_IMAGE039
Due to the fact that
Figure RE-318476DEST_PATH_IMAGE040
In an ordered queue, a binary search method plus a step length method is needed, namely, the value is taken from the middle position of the queue each time for size comparison, then whether the search direction is towards the big or towards the small is judged, and the two steps are circulated
Figure RE-502333DEST_PATH_IMAGE034
Error, so that when the target value approaches
Figure RE-42773DEST_PATH_IMAGE034
In time, the step length can be reduced
Figure RE-480839DEST_PATH_IMAGE041
So that the user can easily and conveniently select the required position,
Figure RE-746735DEST_PATH_IMAGE042
for example, the binary search is converted into the logarithmic step search, so that the search efficiency can be further improved, and the computing resources can be saved. If the seller's price satisfying the formula is found, it is recorded
Figure RE-683467DEST_PATH_IMAGE043
The corresponding position N and the electricity price p. N corresponds to the sell price and p corresponds to the seller price closest to the buyer's ideal price, so the final unit price of electricity for a deal is the price p corresponding to the customer N. The total price of the final transaction is the amount of electricity purchased
Figure RE-902965DEST_PATH_IMAGE044
The third step: the method comprises the steps that a non-repudiation transaction is realized through an intelligent contract, and a power dispatching module dispatches power of a seller to a buyer according to the intelligent contract;
after the electricity price matching is successful, the following step is to complete the transaction. The subsequent transaction process includes order generation, payment and power delivery. The intelligent contract is mainly to complete the clearing and settlement of funds and electric power, namely, the link of 'accounting' is completed.
First, the intelligent contract is to determine a transaction pair, i.e., buyer and buyer, the buyer and buyer's fund account and power account. And based on the transaction price determined in the second step, automatic clearing and settlement based on the electricity price and the electric quantity are realized, and finally, an electric power delivery request is initiated to the power grid by an intelligent contract, and the electric power delivery is finally completed by the electric power system. Therefore, in the green power trading, whenever the intelligent contract receives a trading pair which has already reached the trading interest, a trading contract is initiated on the chain in real time, and the flow and the content of the trading contract are as follows:
TX_SC
{
buyer id:
seller id:
the buyer account:
the buyer account:
the payment method comprises the following steps:
automatically clearing based on the transaction electricity price and the electric quantity;
initiating a power delivery request to a power grid
}
Aiming at the order in the transaction, an intelligent contract is designed to complete the transaction process, the intelligent contract needs to match with a payment mode, call a third-party interface to complete payment and clearing of electric quantity, and finally a transaction order is formed. The transaction order is subjected to the consensus of all nodes or part of nodes (fragmentation consensus) of the p2p network, the consensus process is to verify the validity, correctness and integrity of the transaction record, and once the consensus passes, the transaction record is packaged into a block by the sequencing node and is linked to the previous block to form a traceable, auditable and non-falsifiable transaction record. At this time, the smart contract may initiate a request for power delivery to the power grid to complete the entire closed-loop transaction. If the consensus fails and the transaction is rejected by the network, the transaction content is checked by the system and the transaction request can be initiated again after waiting. The transaction record Tx _ hedger includes the following contents:
{
transaction body
Transaction price
Transaction time
Transaction amount of electricity
}
The intelligent contract has the characteristics of non-revocable property and denial prevention, so that the credibility of the transaction can be greatly improved. The transaction record uplink is helpful for credibly checking the transaction history, and the price model of the system and the price model of the customer have basic credible data support function for counting and analyzing the electricity purchasing behavior of the customer.
Based on the above green power scheduling method based on the blockchain, in the embodiment of the present invention, there is also provided a green power scheduling system based on the blockchain, which is applied to the blockchain, where the blockchain includes a seller node and a buyer node, where the seller node and the buyer node store an intelligent contract, the intelligent contract is used to issue the demands of the seller node and the buyer node and complete the power transaction between the seller node and the buyer node, and the green power scheduling system based on the blockchain has a structure as shown in fig. 2, and the system includes: the system comprises a block chain platform, a deployment module, a matching module, a signing module and an electric power scheduling module; a plurality of sellers and buyers are respectively registered as nodes on the block chain platform, and a seller price queue is constructed by the deployment module based on the electricity price of the seller; the matching module matches the expected electricity price of the buyer with the electricity price of the seller, and selects the seller with the matched electricity price from the seller price queue; the signing module is used for signing an intelligent contract by a buyer and a seller matched with the electricity price and sending the intelligent contract to the power scheduling module and nodes on the block chain platform; the power scheduling module is used for scheduling the power of the seller to the buyer according to the intelligent contract. The block chain-based green power dispatching schematic is shown in fig. 3, a seller can be a distributed power supply such as photovoltaic power generation, wind power generation, thermal power generation and the like, and a buyer can be a residential area, an electric vehicle charging station, a factory and the like. The buyer and the seller realize a non-repudiation transaction through an intelligent contract, and the power dispatching module dispatches the power of the seller to the buyer according to the intelligent contract. The intelligent contract may include: the method comprises the steps that contents such as buyer id, seller id, buyer account, payment mode, transaction subject, transaction price, transaction time and transaction electric quantity are identified through all nodes of a p2p network or part of nodes (fragmentation identification), the identification process is to verify the validity, correctness and integrity of transaction records, once the identification passes, the transaction records are packaged into blocks by sequencing nodes and are linked to the previous blocks to form traceable, auditable and non-tamperable transaction records.
The present invention is not limited to the disclosed embodiments and the accompanying drawings, and is intended to cover various changes and modifications that fall within the spirit and scope of the invention.

Claims (10)

1. A distributed power supply regional power dispatching method based on a block chain is characterized in that: a plurality of sellers and buyers are respectively registered as nodes on the blockchain platform, and the specific steps are as follows:
s1, constructing a seller price queue;
s2: matching the prices of the seller and the buyer;
s3: a non-repudiation transaction is realized through an intelligent contract, and the power dispatching module dispatches the power of the seller to the buyer according to the intelligent contract.
2. The power scheduling method of claim 1, wherein: the seller price queue in S1 is constructed based on the seller' S electricity price; the S2 further includes the steps of: selecting a seller matched with the buyer expected electricity price from the seller price queue; the S3 further includes the steps of: and the buyer and the seller matched with the price of the buyer sign an intelligent contract, and the intelligent contract is sent to the power dispatching module.
3. The power scheduling method of claim 2, wherein: the price queue in S1 is specifically the price queue
Figure RE-510463DEST_PATH_IMAGE001
(ii) a When a new seller is inserted into the queue, the queue is updated to
Figure RE-321162DEST_PATH_IMAGE002
When the seller exits the queue, the queue is updated to
Figure RE-214032DEST_PATH_IMAGE003
Or
Figure RE-925636DEST_PATH_IMAGE004
Wherein P is0Representing electricity price, P, of the 1 st seller1Representing the electricity price of the 2 nd seller, Pn-2Representing the electricity price, P, of the (n-1) th sellern-1Representing the electricity price of the nth seller, PnElectric price representing the (n + 1) th seller, 0mRepresenting the empty space left by the exit,
Figure RE-525244DEST_PATH_IMAGE005
4. the power scheduling method of claim 3, wherein: based onThe method comprises the steps that a seller price queue is divided into a plurality of sub-queues in an area where a seller is located, a sample variance S and an average electricity price Pm of the electricity price in a certain area are calculated by sampling a large amount of electricity price data in the certain area, and when a new seller is inserted into the seller price queue based on the electricity price, the new seller electricity price
Figure RE-8309DEST_PATH_IMAGE006
When the new seller is inserted into the average price of electricity PmIn sub-queues
Figure RE-591737DEST_PATH_IMAGE007
5. The power scheduling method of claim 4, wherein: the S2 further includes the steps of: s21: when the buyer desires the price
Figure RE-638191DEST_PATH_IMAGE009
Selecting the sub-queues with the average electricity price of Pm as target matched price queues in the price interval; s21: selecting a seller in the target matching price queue, and when the price P of a seller in the target matching price queue is upqSatisfy the requirement of
Figure RE-92306DEST_PATH_IMAGE010
Wherein, in the step (A),
Figure RE-516246DEST_PATH_IMAGE011
Figure RE-55812DEST_PATH_IMAGE012
if the matching error is found, the price in the price queue of the target matching is PqSet as the seller matching the buyer.
6. The power scheduling method of claim 1, wherein: the S3 further includes the steps of: determining a transaction pair, namely a buyer and a seller, transaction electric quantity, and a fund account and an electric account of the buyer and the seller, taking the electric price of the seller matched with the buyer determined in the step S2 as a transaction electric price, obtaining a transaction amount based on the transaction electric price and the transaction electric quantity, matching a payment mode with an intelligent contract, calling a third-party interface to complete payment of the transaction amount and clearing of the electric quantity, and finally forming a transaction order.
7. The power scheduling method of claim 6, wherein: the transaction orders are sequenced and packaged to all nodes on the blockchain transaction platform after being identified by all nodes or part of nodes of the blockchain transaction platform, and a transaction record used for tracing, auditing and not being tampered is formed; the consensus process is to verify the validity, correctness and completeness of the trade order: the transaction record content includes at least: the transaction body, the transaction price, the transaction time and the transaction electric quantity.
8. The utility model provides a regional power dispatching system of distributed power supply based on block chain which characterized in that: the system comprises: the system comprises a block chain platform, a deployment module, a matching module, a signing module and an electric power scheduling module; the method comprises the steps that a plurality of sellers and buyers are respectively registered as nodes on a block chain platform, a deployment module constructs a seller price queue based on the electricity price of the seller, and the seller price queue is divided into a plurality of sub-queues based on the region where the seller is located; the matching module matches the expected electricity price of the buyer with the electricity price of the seller, and selects the seller with the matched electricity price from the seller price queue; the signing module is used for signing an intelligent contract by a buyer and a seller matched with the electricity price and sending the intelligent contract to the power scheduling module and nodes on the block chain platform; the power scheduling module is used for scheduling the power of the seller to the buyer according to the intelligent contract.
9. The power dispatching system of claim 8, wherein: the price queue is specifically
Figure RE-109218DEST_PATH_IMAGE014
(ii) a When a new seller is inserted into the queue, the queue is updated to
Figure RE-745736DEST_PATH_IMAGE016
When the seller exits the queue, the queue is updated to
Figure RE-226396DEST_PATH_IMAGE018
Or
Figure RE-863045DEST_PATH_IMAGE020
Wherein P is0Representing electricity price, P, of the 1 st seller1Representing the electricity price of the 2 nd seller, Pn-2Representing the electricity price, P, of the (n-1) th sellern-1Representing the electricity price of the nth seller, PnElectric price representing the (n + 1) th seller, 0mRepresenting the empty space left by the exit,
Figure RE-DEST_PATH_IMAGE021
10. the power dispatching system of claim 9, wherein: determining a transaction pair, namely a buyer and a seller, transaction electric quantity, and a fund account and an electric account of the buyer and the seller, taking an electric price of the seller matched with the buyer as a transaction electric price, obtaining a transaction amount based on the transaction electric price and the transaction electric quantity, matching a payment mode with an intelligent contract, calling a third-party interface to complete payment of the transaction amount and clearing of the electric quantity, and finally forming a transaction order; the transaction orders are sequenced and packaged to all nodes on the blockchain transaction platform after being identified by all nodes or part of nodes of the blockchain transaction platform, and a transaction record used for tracing, auditing and not being tampered is formed; the consensus process is to verify the validity, correctness and completeness of the trade order: the transaction record content includes at least: the transaction body, the transaction price, the transaction time and the transaction electric quantity.
CN202010154322.7A 2020-03-07 2020-03-07 Distributed power supply regional power dispatching system and method based on block chain Pending CN111402047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010154322.7A CN111402047A (en) 2020-03-07 2020-03-07 Distributed power supply regional power dispatching system and method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010154322.7A CN111402047A (en) 2020-03-07 2020-03-07 Distributed power supply regional power dispatching system and method based on block chain

Publications (1)

Publication Number Publication Date
CN111402047A true CN111402047A (en) 2020-07-10

Family

ID=71430603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010154322.7A Pending CN111402047A (en) 2020-03-07 2020-03-07 Distributed power supply regional power dispatching system and method based on block chain

Country Status (1)

Country Link
CN (1) CN111402047A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112418915A (en) * 2020-11-09 2021-02-26 浙江浙能电力股份有限公司萧山发电厂 Electric power safety transaction method based on block chain energy storage system
CN112561668A (en) * 2021-02-24 2021-03-26 国网电子商务有限公司 Electric power transaction bidding method and device between distributed power supply and aggregator
CN113256448A (en) * 2021-06-23 2021-08-13 国网电子商务有限公司 Block chain-based power data processing method and system
CN113487318A (en) * 2021-07-28 2021-10-08 中国银行股份有限公司 Foreign exchange quotation reminding method and device based on block chain
CN113762961A (en) * 2021-08-17 2021-12-07 国网山东省电力公司信息通信公司 Trusted intelligent transaction method, system, computer equipment and terminal
CN113822671A (en) * 2021-11-22 2021-12-21 武汉龙津科技有限公司 Private data transaction method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107330788A (en) * 2017-06-15 2017-11-07 雷盈科技(上海)有限公司 A kind of block chain digital asset transaction match method, system, device and medium
CN109523075A (en) * 2018-11-14 2019-03-26 上海交通大学 Charging station charging power Optimizing Configuration System based on block chain intelligence contract
CN109785131A (en) * 2018-12-21 2019-05-21 昆明理工大学 A kind of electricity transaction method based on block chain
US20190333166A1 (en) * 2016-09-15 2019-10-31 Erik M Simpson Renewable energy community objects with price-time priority queues for transformed renewable energy units

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190333166A1 (en) * 2016-09-15 2019-10-31 Erik M Simpson Renewable energy community objects with price-time priority queues for transformed renewable energy units
CN107330788A (en) * 2017-06-15 2017-11-07 雷盈科技(上海)有限公司 A kind of block chain digital asset transaction match method, system, device and medium
CN109523075A (en) * 2018-11-14 2019-03-26 上海交通大学 Charging station charging power Optimizing Configuration System based on block chain intelligence contract
CN109785131A (en) * 2018-12-21 2019-05-21 昆明理工大学 A kind of electricity transaction method based on block chain

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112418915A (en) * 2020-11-09 2021-02-26 浙江浙能电力股份有限公司萧山发电厂 Electric power safety transaction method based on block chain energy storage system
CN112418915B (en) * 2020-11-09 2024-04-30 浙江浙能电力股份有限公司萧山发电厂 Power safety transaction method based on block chain energy storage system
CN112561668A (en) * 2021-02-24 2021-03-26 国网电子商务有限公司 Electric power transaction bidding method and device between distributed power supply and aggregator
CN113256448A (en) * 2021-06-23 2021-08-13 国网电子商务有限公司 Block chain-based power data processing method and system
CN113487318A (en) * 2021-07-28 2021-10-08 中国银行股份有限公司 Foreign exchange quotation reminding method and device based on block chain
CN113762961A (en) * 2021-08-17 2021-12-07 国网山东省电力公司信息通信公司 Trusted intelligent transaction method, system, computer equipment and terminal
CN113762961B (en) * 2021-08-17 2023-08-11 国网山东省电力公司信息通信公司 Trusted intelligent transaction method, system, computer equipment and terminal
CN113822671A (en) * 2021-11-22 2021-12-21 武汉龙津科技有限公司 Private data transaction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111402047A (en) Distributed power supply regional power dispatching system and method based on block chain
US11823293B2 (en) Energy resource network
Liu et al. Electric vehicle power trading mechanism based on blockchain and smart contract in V2G network
CN111401993A (en) Green power dispatching system and method based on block chain
CN108961018A (en) Micro-capacitance sensor electricity market decentralization mechanism of exchange based on intelligent contract
CN108711077B (en) Photovoltaic type microgrid transaction method based on block chain technology
CN110689398B (en) Residential micro-grid power transaction management system based on block chain
KR20220136998A (en) Blockchain-based green certificate transaction system
CN112837126B (en) Industrial park distributed energy trading method and system based on block chain
US7885888B2 (en) Auction for financially settled contracts
CN111861631A (en) Inter-provincial power generation right trading method and system for promoting consumption of various energy sources
CN114358929A (en) Distributed energy centralized transaction method and system based on block chain
Tan et al. Bidding strategy of virtual power plant with energy storage power station and photovoltaic and wind power
CN116308445A (en) Virtual power plant multi-mode transaction method, equipment and medium based on energy block chain
CN113643131A (en) Microgrid distributed energy trading method and system based on block chain
CN114519640A (en) Alliance chain-based transnational power transaction method
Jin et al. Blockchain-enabled transactive method in distributed systems considering security constraints
CN113807961B (en) Multi-micro-grid energy transaction method and system based on alliance chain
CN117114877A (en) Medium-and-long-term power transaction method and system based on virtual power plant
CN117635189A (en) Virtual power plant master-slave multi-chain resource interactive matching method based on improved consensus algorithm
CN114529376A (en) Energy exchange data processing method and device, computer equipment and storage medium
KR102616424B1 (en) waste metal resource transaction management system and method using the same
KR102599544B1 (en) System and method for intermediating electric power transaction for peer-to-peer contract
Kekilli et al. GreenLink P2P Energy Trading Platform
CN115271948A (en) P2P electric energy trading method considering wind power uncertainty based on block chain

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200710