CN110992179A - Power distribution network electric energy transaction and verification method based on distributed account book and state estimation - Google Patents
Power distribution network electric energy transaction and verification method based on distributed account book and state estimation Download PDFInfo
- Publication number
- CN110992179A CN110992179A CN201911187206.9A CN201911187206A CN110992179A CN 110992179 A CN110992179 A CN 110992179A CN 201911187206 A CN201911187206 A CN 201911187206A CN 110992179 A CN110992179 A CN 110992179A
- Authority
- CN
- China
- Prior art keywords
- transaction
- electric energy
- user node
- reported
- node
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000012795 verification Methods 0.000 title claims abstract description 43
- 238000004364 calculation method Methods 0.000 claims abstract description 23
- 238000005259 measurement Methods 0.000 claims abstract description 14
- 238000013524 data verification Methods 0.000 claims description 51
- 150000001875 compounds Chemical class 0.000 claims description 2
- 230000005611 electricity Effects 0.000 claims description 2
- 238000004146 energy storage Methods 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000003993 interaction Effects 0.000 description 7
- 239000000126 substance Substances 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Theoretical Computer Science (AREA)
- Strategic Management (AREA)
- Finance (AREA)
- Economics (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Marketing (AREA)
- Health & Medical Sciences (AREA)
- Tourism & Hospitality (AREA)
- Primary Health Care (AREA)
- Public Health (AREA)
- Human Resources & Organizations (AREA)
- General Health & Medical Sciences (AREA)
- Water Supply & Treatment (AREA)
- Development Economics (AREA)
- Technology Law (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
According to the power distribution network electric energy transaction and verification method based on the distributed account book and the state estimation, the indirect measurement of the user electric energy is realized by adopting the high-frequency power distribution network state estimation calculation, and the electric energy transaction and verification method based on the distributed account book is established. The method does not depend on traditional metering equipment such as an intelligent ammeter and the like, and accurate user electric energy statistics is realized; based on an intelligent contract technology on a distributed account book, the reporting, transaction and verification of system and user electric energy data in an electric power market environment are realized, and the method has the characteristics of high safety and stability, no tampering, traceability of transaction and the like.
Description
Technical Field
The invention relates to a power distribution network electric energy trading and checking method. In particular to a power distribution network electric energy transaction and verification method based on a distributed account book and state estimation.
Background
In recent years, as power electronic equipment on the network side of an active power distribution system is put into application and measurement and communication networks are gradually covered, the controllability and observability level of the system are greatly improved; the load terminal on the user side puts higher demands on the quality of electric energy and the reliability of power supply, and presents a trend of customizing electric power. The interaction between the refined regulation and control of the power distribution network and the customization requirements of the users promotes the interaction between the network and the users, and the interaction content of the network and the users is more diverse and complex. More specifically, aiming at the interaction in the electric power market transaction environment, users in the power distribution network can report the electric energy data independently, and the network verifies the electric energy data reported by the users, so that the transaction interaction of both electric energy buyers and sellers is realized.
At present, most of electric power markets adopt a single centralized operation platform for trading, the mode can realize the unified management of market trading, but also face increasingly prominent potential problems of information security and the like, particularly market trading interruption, trading data loss or tampering and the like caused by network attacks or equipment faults and the like. The emerging distributed book technology has the advantages of complete distribution, data non-falsification, distrust and the like, and can effectively avoid the problems of power transaction interruption, data loss or falsification and the like. If the electric energy trading and checking platform of the electric power market adopts the distributed accounting book technology, the safety and traceability of network and user trading data in the trading platform can be guaranteed.
In the interaction process of the network and the user, the network needs to accurately measure the electric energy data of the user. The current power distribution network mainly depends on meters such as a smart meter in an advanced metering system to realize the metering of user electric energy, and if the high-precision measurement is utilized to carry out high-frequency state estimation on the network in the sensing fields such as power distribution network state estimation and the like, a user power estimation value with finer granularity and higher accuracy on the time level can be obtained; the user power estimated values of different discontinuous surfaces are further integrated, so that user power statistics in any time period can be approximately realized, and the user power is approximately estimated by using a state estimation method. Therefore, the user electric energy transaction and verification between the network and the user do not need to rely on the metering data of meters such as the intelligent electric meter and the like on the user side. Therefore, under the power market environment, the power distribution network realizes the electric energy statistics by adopting the state estimation method, and realizes the transaction and the verification of the electric energy on the distributed account book, and the method has important practical significance for realizing the electric energy transaction interaction between the network and the user and improving the safety and the stability of the transaction process.
Disclosure of Invention
The invention aims to solve the technical problem of providing a power distribution network electric energy trading and checking method based on a distributed account book and state estimation, which adopts power distribution network state estimation to accurately and indirectly measure user electric energy and utilizes a distributed account book technology to realize electric energy trading and checking.
The technical scheme adopted by the invention is as follows: a power distribution network electric energy transaction and verification method based on a distributed account book and state estimation comprises the following steps:
1) aiming at a given active power distribution network with users participating in electric energy transaction, acquiring a topological connection relation of the power distribution network, impedance parameters of each branch, user positions participating in the electric energy transaction and configuration conditions of measurement points in the system; obtaining electric energy transaction period TtraElectric energy transaction starting time hs:msElectric energy transaction ending time he:meTransaction data check threshold epsilon and power distribution network state estimation calculation period TseWherein h represents hour, m represents minute; number k for defining electric energy transaction starting time periods, ks=(hs*60+ms)/TtraNumber k of electric energy transaction end time periode,ke=(he*60+me)/TtraNumber of state estimation calculations n for a single power transaction periodse,nse=Ttra/Tse+ 1; defining the electric energy transaction time period number k, k belonging to ks,ks+1,ks+2,…,ke-1,keK is initializedsDefining an electric energy transaction time period xk、xk-1、xk-2;
2) A system node and a plurality of electric energy transaction user nodes are arranged on a distributed account book, and each electric energy transaction user node corresponds to a user actually participating in electric energy transaction in a power distribution network; the method for deploying the electric energy transaction data verification intelligent contract on the distributed account book comprises the following steps: defining intelligent contract variables r, w, Wherein r is a transaction report number and takes a value of 0 or 1, w is a transaction check number and takes a value of 0 or 1,respectively the system node reporting state when the transaction reporting number r or the transaction verification number w is 0, the user node address reported by the system node and the user node transaction electric quantity reported by the system node,respectively the user node reporting state when the transaction reporting number r or the transaction verification number w is 0, the user node address reported by the user node and the transaction electric quantity reported by the user node,respectively the system node reporting state when the transaction reporting number r or the transaction verification number w is 1, the user node address reported by the system node and the user node transaction electric quantity reported by the system node,setting the reporting state of the user node, the address of the user node reported by the user node and the transaction electric quantity reported by the user node when the transaction reporting number r or the transaction verification number w is 1 respectivelyIs 0,Is empty,Is empty,Is empty,Is empty,Is empty,Is 0,Is empty,Is empty,Is empty,Is empty,Is empty; defining a transaction data verification event;
3) setting an electric energy transaction time period xkIs [ kT ]tra/60:kTtra%60,(k+1)Ttra/60:(k+1)Ttra%60]And electric energy transaction time period xk-1Is [ (k-1) Ttra/60:(k-1)Ttra%60,kTtra/60:kTtra%60]And electric energy transaction time period xk-2Is [ (k-2) Ttra/60:(k-2)Ttra%60,(k-1)Ttra/60:(k-1)Ttra%60]The transaction reporting number r is k% 2, and the transaction verification number w is 1-r;
4) electric energy transaction time period xkIn the method, the system node calculates to obtain the electric energy transaction time period xk-1The transaction electric quantity of all user nodes participating in the transaction is reported to an electric energy transaction data verification intelligent contract, and the user node address and the user node transaction electric quantity are reported to the electric energy transaction data verification intelligent contract, and the electric energy transaction data verification intelligent contract stores the reporting information of the system node in an electric energy transaction data verification intelligent contract variable; during the electric energy transaction time period xkIn the method, each user node participating in electric energy transaction reports an electric energy transaction time period x to an electric energy transaction data verification intelligent contract respectivelyk-1The electric energy transaction data check intelligent contract respectively stores the reported information of each user node in an electric energy transaction data check intelligent contract variable; during the electric energy transaction time period xkIn the method, electric energy transaction data verification intelligent contracts verify electric energy transaction time periods x of each electric energy transaction user nodek-2Whether the internal transaction electric quantity is accurate or not;
5) judging whether the electric energy transaction time period number k +1 is less than keIf less than keSetting k to be k +1, returning to the step 3), and otherwise, entering the next step;
6) setting a trade verification serial number w as r, and verifying the electric energy trade time period x of each electric energy trade user node by an electric energy trade data verification intelligent contractk-1And if the internal transaction electric quantity is accurate, ending the electric energy transaction and verification process.
According to the power distribution network electric energy transaction and verification method based on the distributed account book and the state estimation, the indirect measurement of the user electric energy is realized by adopting the high-frequency power distribution network state estimation calculation, and the electric energy transaction and verification method based on the distributed account book is established. The method does not depend on traditional metering equipment such as an intelligent ammeter and the like, and accurate user electric energy statistics is realized; based on an intelligent contract technology on a distributed account book, the reporting, transaction and verification of system and user electric energy data in an electric power market environment are realized, and the method has the characteristics of high safety and stability, no tampering, traceability of transaction and the like.
Drawings
FIG. 1 is a flow chart of a power distribution network electric energy transaction and verification method based on a distributed ledger and state estimation according to the present invention;
fig. 2 is a diagram of network topology connections and measurement configuration of an example IEEE 13 node.
Detailed Description
The following describes in detail a power distribution network electric energy transaction and verification method based on a distributed ledger and state estimation according to the present invention with reference to embodiments and drawings.
As shown in fig. 1, the method for trading and checking the power distribution network electric energy based on the distributed ledger and the state estimation of the present invention includes the following steps:
1) aiming at a given active power distribution network with users participating in electric energy transaction, acquiring a topological connection relation of the power distribution network, impedance parameters of each branch, user positions participating in the electric energy transaction and configuration conditions of measurement points in the system; obtaining electric energy transaction period TtraElectric energy transaction starting time hs:msElectric energy transaction ending time he:meTransaction data check threshold epsilon and power distribution network state estimation calculation period TseWherein h represents hour, m represents minute; number k for defining electric energy transaction starting time periods, ks=(hs*60+ms)/TtraNumber k of electric energy transaction end time periode,ke=(he*60+me)/TtraNumber of state estimation calculations n for a single power transaction periodse,nse=Ttra/Tse+ 1; defining the electric energy transaction time period number k, k belonging to ks,ks+1,ks+2,…,ke-1,keK is initializedsDefining an electric energy transaction time period xk、xk-1、xk-2;
2) A system node and a plurality of electric energy transaction user nodes are arranged on a distributed account book, and each electric energy transaction user node corresponds to a user actually participating in electric energy transaction in a power distribution network; system node deployment electric energy on distributed account bookA transaction data verification smart contract comprising: defining intelligent contract variables r, w, Wherein r is a transaction report number and takes a value of 0 or 1, w is a transaction check number and takes a value of 0 or 1,respectively the system node reporting state when the transaction reporting number r or the transaction verification number w is 0, the user node address reported by the system node and the user node transaction electric quantity reported by the system node,respectively the user node reporting state when the transaction reporting number r or the transaction verification number w is 0, the user node address reported by the user node and the transaction electric quantity reported by the user node,respectively the system node reporting state when the transaction reporting number r or the transaction verification number w is 1, the user node address reported by the system node and the user node transaction electric quantity reported by the system node,setting the reporting state of the user node, the address of the user node reported by the user node and the transaction electric quantity reported by the user node when the transaction reporting number r or the transaction verification number w is 1 respectivelyIs 0,Is empty,Is empty,Is empty,Is empty,Is empty,Is 0,Is empty,Is empty,Is empty,Is empty,Is empty; defining a transaction data verification event; wherein the content of the first and second substances,
the user nodes are as follows: and considering various users including distributed power sources, energy storage and loads in the active power distribution network, the transaction electric quantity is a positive value or a negative value.
The transaction data verification event is as follows: writing user node addresses, user node transaction electric quantity reported by system nodes, transaction electric quantity reported by the user nodes, user node transaction electric quantity after transaction data verification, whether the transaction electric quantity reported by the user nodes is accurate or not and an electric energy transaction time period x into a distributed account book transaction logk-1Is started at (k-1) Ttra/60:(k- 1Ttra%60。
3) Setting an electric energy transaction time period xkIs [ kT ]tra/60:kTtra%60,(k+1)Ttra/60:(k+1)Ttra%60]And electric energy transaction time period xk-1Is [ (k-1) Ttra/60:(k-1)Ttra%60,kTtra/60:kTtra%60]And electric energy transaction time period xk-2Is [ (k-2) Ttra/60:(k-2)Ttra%60,(k-1)Ttra/60:(k-1)Ttra%60]The transaction reporting number r is k% 2, and the transaction verification number w is 1-r;
4) electric energy transaction time period xkIn the method, the system node calculates to obtain the electric energy transaction time period xk-1The transaction electric quantity of all user nodes participating in the transaction is reported to an electric energy transaction data verification intelligent contract, and the user node address and the user node transaction electric quantity are reported to the electric energy transaction data verification intelligent contract, and the electric energy transaction data verification intelligent contract stores the reporting information of the system node in an electric energy transaction data verification intelligent contract variable; during the electric energy transaction time period xkIn the method, each user node participating in electric energy transaction reports an electric energy transaction time period x to an electric energy transaction data verification intelligent contract respectivelyk-1The electric energy transaction data check intelligent contract respectively stores the reported information of each user node in an electric energy transaction data check intelligent contract variable; during the electric energy transaction time period xkIn the method, electric energy transaction data verification intelligent contracts verify electric energy transaction time periods x of each electric energy transaction user nodek-2Whether the internal transaction electric quantity is accurate or not; wherein the content of the first and second substances,
the system node calculates and obtains an electric energy transaction time period xk-1The transaction electric quantity of all user nodes participating in the transaction comprises:
(1) setting the state estimation calculation number n as 1 and the state estimation calculation time
(2) Obtaining a state estimation computation timeThe measurement values of all measurement points are subjected to three-phase state estimation calculation of the power distribution network to obtain state estimation calculation timeActive power estimation value of each user nodeJudging whether the state estimation calculation number n is less than the state estimation calculation times n of a single electric energy transaction time periodseIf it is less than nseN is set to n +1,returning to the step (2), otherwise, entering the next step;
(3) based on electric energy transaction time period xk-1Obtaining the transaction electric quantity of all user nodes participating in the transaction in the electric energy transaction time period by three-phase state estimation results at different calculation momentsFor the transaction electricity quantity of user node iExpressed as:
in the formula (I), the compound is shown in the specification,computing time of day for state estimationThe j-phase active power estimate for user node i,is state estimationCounting the time of dayAnd j is 0, 1 and 2, and correspondingly represents A phase, B phase and C phase respectively.
The electric energy transaction data verification intelligent contract stores the reported information of the system nodes in the electric energy transaction data verification intelligent contract variables: judging the reporting state of the system nodeIf the value is 0, setting the reporting state of the system node if the value is 0Respectively storing the user node address reported by the system node and the user node transaction electric quantity in the user node address reported by the system nodeAnd user node transaction electric quantity reported by system nodeIn (1).
The electric energy transaction data verification intelligent contract respectively stores the reported information of each user node in the electric energy transaction data verification intelligent contract variables is as follows: for any user node i participating in electric energy transaction, judging the reporting state of the user node iIf the value is 0, setting the reporting state of the user node i if the value is 0Respectively storing the address of the user node i and the reported transaction electric quantity in the user node address reported by the user nodeAnd transaction electric quantity reported by user nodeIn (1).
The electric energy transaction data verification intelligent contract verifies the electric energy transaction time period x of each electric energy transaction user nodek-2Whether the transaction power is accurate or not includes:
(1) judging whether the electric energy transaction time period number k is greater than ksIf greater than ksEntering the next step, otherwise, ending the verification process;
(2) judging the reporting state of the system nodeIf the value is 1, turning to the step (4) if the value is 1, otherwise entering the next step;
(3) traversing user node address reported by user nodeFor any user node i, setting the transaction electric quantity of the user node reported by a system node of the user node i to be 0, and setting the transaction electric quantity after the transaction data of the user node i is verified to be the transaction electric quantity reported by the user node iSetting the transaction electric quantity reported by the user node i to be accurate, and then triggering a transaction data verification event;
(4) user node address reported by traversing system nodeFor any user node i, judging the address of the user node i reported by the system nodeWhether the user node address reported by the user node exists or notIf yes, judging whether the transaction electric quantity reported by the user node is accurate or not based on the electric energy data check criterion; otherwise, setting the transaction electric quantity reported by the user node i as 0, and setting the transaction electric quantity after the transaction data of the user node i is verified as the transaction electric quantity of the user node i reported by the system nodeSetting that the transaction electric quantity reported by the user node i is inaccurate, and then triggering a transaction data verification event; the electric energy data checking criterion is as follows:
for the user node i, the transaction electric quantity reported by the user node is judgedThe transaction electric quantity of the user node i reported by the system nodeWhether the absolute value of the deviation of (2) is greater than epsilonNamely, it is
If the condition is satisfied, setting the transaction electric quantity after the transaction data of the user node i is verified as the transaction electric quantity of the user node i reported by the system nodeSetting that the transaction electric quantity reported by the user node i is inaccurate, and then triggering a transaction data verification event; if the condition is not satisfied, setting the transaction electric quantity after the transaction data of the user node i is verified as the transaction electric quantity reported by the user node iSetting the transaction electric quantity reported by the user node i to be accurate, and then triggering transaction data check affairsAnd (3) a component.
(5) Setting system node reporting state0, user node address reported by system nodeUser node transaction electric quantity reported by null and system nodesReporting state for empty user nodeUser node address reported by null user nodeTransaction electric quantity reported by empty and user nodesIs empty.
5) Judging whether the electric energy transaction time period number k +1 is less than keIf less than keSetting k to be k +1, returning to the step 3), and otherwise, entering the next step;
6) setting a trade verification serial number w as r, and verifying the electric energy trade time period x of each electric energy trade user node by an electric energy trade data verification intelligent contractk-1And if the internal transaction electric quantity is accurate, ending the electric energy transaction and verification process.
Specific examples are given below:
the method provided by the invention is verified by adopting an improved IEEE 13 node example, the network topology connection and measurement point configuration conditions of the IEEE 13 node example are shown in figure 2, and the relationship between the user node number participating in the electric energy transaction and the network node is shown in table 1. Setting electric energy transaction period TtraThe electric energy transaction starting time is 08:00, the electric energy transaction ending time is 09:00, the transaction data verification threshold epsilon is 0.05, and the state of the power distribution network is 5minEstimating a computation period Tse=1/60min。
Table 1 user-network node corresponding table participating in electric energy transaction
And 1 system node and 9 electric energy transaction user nodes are arranged on the Etherhouse private block chain. The trading and verification processes of electric energy are respectively explained by taking electric energy trading time periods [08:05,08:10) and [08:10,08:15) as examples:
during the transaction time period [08:05,08:10), the system node performs n based on the measurement of the time period [08:00,08:05 ]seThe method comprises the steps of (1) estimating three-phase states of the network 301 times to obtain active power calculation values of different discontinuous sections, calculating by a time integration acquisition method to obtain transaction electric quantities of all transaction user nodes, reporting to an intelligent contract, and reporting data as shown in a table 2; in the time period, each electric energy transaction user node reports the transaction electric quantity in the time period [08:00,08:05) to the intelligent contract respectively, and the reported data is shown in table 3.
Table 2 electric energy transaction time period [08:05,08:10) transaction electric quantity reported by network node
Table 3 electric energy transaction time period [08:05,08:10) transaction electric quantity reported by each transaction user node
And in the electric energy transaction time period [08:10,08:15), the intelligent contract checks whether the transaction electric quantity of each transaction user node in the electric energy transaction time period [08:00,08:05) is accurate or not, and writes the check result into a transaction log of the block chain, wherein the result is shown in a table 4.
Table 4 electric energy trade time period 08:10,08:15 trade electric quantity check result
According to the analysis, the power distribution network electric energy transaction and verification method based on the distributed account book and the state estimation does not need to rely on metering equipment such as an intelligent electric meter, the power consumption of each user of the network is indirectly calculated by adopting a high-frequency state estimation result, the electric energy transaction data verification between the network and the user is realized on the distributed account book, and the safety and traceability of the network and user transaction are effectively guaranteed.
Claims (8)
1. A power distribution network electric energy transaction and verification method based on a distributed account book and state estimation is characterized by comprising the following steps:
1) aiming at a given active power distribution network with users participating in electric energy transaction, acquiring a topological connection relation of the power distribution network, impedance parameters of each branch, user positions participating in the electric energy transaction and configuration conditions of measurement points in the system; obtaining electric energy transaction period TtraElectric energy transaction starting time hs:msElectric energy transaction ending time he:meTransaction data check threshold epsilon and power distribution network state estimation calculation period TseWherein h represents hour, m represents minute; number k for defining electric energy transaction starting time periods,ks=(hs*60+ms)/TtraNumber k of electric energy transaction end time periode,ke=(he*60+me)/TtraNumber of state estimation calculations n for a single power transaction periodse,nse=Ttra/Tse+ 1; defining the electric energy transaction time period number k, k belonging to ks,ks+1,ks+2,…,ke-1,keK is initializedsDefining an electric energy transaction time period xk、xk-1、xk-2;
2) Setting on distributed account bookThe system comprises a system node and a plurality of electric energy trading user nodes, wherein each electric energy trading user node corresponds to a user actually participating in electric energy trading in the power distribution network; the method for deploying the electric energy transaction data verification intelligent contract on the distributed account book comprises the following steps: defining intelligent contract variables r, w,Wherein r is a transaction report number and takes a value of 0 or 1, w is a transaction check number and takes a value of 0 or 1,respectively the system node reporting state when the transaction reporting number r or the transaction verification number w is 0, the user node address reported by the system node and the user node transaction electric quantity reported by the system node,respectively the user node reporting state when the transaction reporting number r or the transaction verification number w is 0, the user node address reported by the user node and the transaction electric quantity reported by the user node,respectively the system node reporting state when the transaction reporting number r or the transaction verification number w is 1, the user node address reported by the system node and the user node transaction electric quantity reported by the system node,setting the reporting state of the user node, the address of the user node reported by the user node and the transaction electric quantity reported by the user node when the transaction reporting number r or the transaction verification number w is 1 respectivelyIs 0,Is empty,Is empty,Is empty,Is empty,Is empty,Is 0,Is empty,Is empty,Is empty,Is empty,Is empty; defining a transaction data verification event;
3) setting an electric energy transaction time period xkIs [ kT ]tra/60:kTtra%60,(k+1)Ttra/60:(k+1)Ttra%60]And electric energy transaction time period xk-1Is [ (k-1) Ttra/60:(k-1)Ttra%60,kTtra/60:kTtra%60]And electric energy transaction time period xk-2Is [ (k-2) Ttra/60:(k-2)Ttra%60,(k-1)Ttra/60:(k-1)Ttra%60]The transaction reporting number r is k% 2, and the transaction verification number w is 1-r;
4) electric energy transaction time period xkIn the method, the system node calculates to obtain the electric energy transaction time period xk-1The transaction electric quantity of all user nodes participating in the transaction is reported to an electric energy transaction data verification intelligent contract, and the user node address and the user node transaction electric quantity are reported to the electric energy transaction data verification intelligent contract, and the electric energy transaction data verification intelligent contract stores the reporting information of the system node in an electric energy transaction data verification intelligent contract variable; during the electric energy transaction time period xkIn the method, each user node participating in electric energy transaction reports an electric energy transaction time period x to an electric energy transaction data verification intelligent contract respectivelyk-1The electric energy transaction data check intelligent contract respectively stores the reported information of each user node in an electric energy transaction data check intelligent contract variable; during the electric energy transaction time period xkIn the method, electric energy transaction data verification intelligent contracts verify electric energy transaction time periods x of each electric energy transaction user nodek-2Whether the internal transaction electric quantity is accurate or not;
5) judging whether the electric energy transaction time period number k +1 is less than keIf less than keSetting k to be k +1, returning to the step 3), and otherwise, entering the next step;
6) setting a trade verification serial number w as r, and verifying the electric energy trade time period x of each electric energy trade user node by an electric energy trade data verification intelligent contractk-1And if the internal transaction electric quantity is accurate, ending the electric energy transaction and verification process.
2. The distributed ledger and state estimation-based power distribution network electric energy transaction and verification method according to claim 1, characterized in that, in step 2), the user nodes are: and considering various users including distributed power sources, energy storage and loads in the active power distribution network, the transaction electric quantity is a positive value or a negative value.
3. The method for trading and verifying power distribution network electric energy based on the distributed ledger and state estimation as claimed in claim 1, wherein in step 2)The transaction data verification event is as follows: writing user node addresses, user node transaction electric quantity reported by system nodes, transaction electric quantity reported by the user nodes, user node transaction electric quantity after transaction data verification, whether the transaction electric quantity reported by the user nodes is accurate or not and an electric energy transaction time period x into a distributed account book transaction logk-1Is started at (k-1) Ttra/60:(k-1)Ttra%60。
4. The method for trading and checking power distribution network electric energy based on the distributed ledger and state estimation of claim 1, wherein the system node in step 4) calculates the electric energy trading time period xk-1The transaction electric quantity of all user nodes participating in the transaction comprises:
(1) setting the state estimation calculation number n as 1 and the state estimation calculation time
(2) Obtaining a state estimation computation timeThe measurement values of all measurement points are subjected to three-phase state estimation calculation of the power distribution network to obtain state estimation calculation timeActive power estimation value of each user nodeJudging whether the state estimation calculation number n is less than the state estimation calculation times n of a single electric energy transaction time periodseIf it is less than nseN is set to n +1, returning to the step (2), otherwise, entering the next step;
(3) based on electric energy transaction time period xk-1Obtaining the transaction electric quantity of all user nodes participating in the transaction in the electric energy transaction time period by three-phase state estimation results at different calculation momentsFor the transaction electricity quantity of user node iExpressed as:
5. The method for trading and verifying power distribution network electric energy based on the distributed ledger and state estimation as claimed in claim 1, wherein the electric energy trading data verification intelligence in step 4)The energy contract stores the reported information of the system nodes in the electric energy transaction data verification intelligent contract variables: judging the reporting state of the system nodeIf the value is 0, setting the reporting state of the system node if the value is 0Respectively storing the user node address reported by the system node and the user node transaction electric quantity in the user node address reported by the system nodeAnd user node transaction electric quantity reported by system nodeIn (1).
6. The power distribution network electric energy transaction and verification method based on the distributed ledger and the state estimation of claim 1, wherein the electric energy transaction data verification intelligent contract in step 4) respectively stores the reported information of each user node in the electric energy transaction data verification intelligent contract variable is: for any user node i participating in electric energy transaction, judging the reporting state of the user node iIf the value is 0, setting the reporting state of the user node i if the value is 0Respectively storing the address of the user node i and the reported transaction electric quantity in the user node address reported by the user nodeAnd transaction electric quantity reported by user nodeIn (1).
7. The method for trading and verifying power distribution network electric energy based on the distributed ledger and state estimation as claimed in claim 1, wherein the electric energy trading data verification intelligent contract in step 4) verifies the electric energy trading time period x of each electric energy trading user nodek-2Whether the transaction power is accurate or not includes:
(1) judging whether the electric energy transaction time period number k is greater than ksIf greater than ksEntering the next step, otherwise, ending the verification process;
(2) judging the reporting state of the system nodeIf the value is 1, turning to the step (4) if the value is 1, otherwise entering the next step;
(3) traversing user node address reported by user nodeFor any user node i, setting the transaction electric quantity of the user node reported by a system node of the user node i to be 0, and setting the transaction electric quantity after the transaction data of the user node i is verified to be the transaction electric quantity reported by the user node iSetting the transaction electric quantity reported by the user node i to be accurate, and then triggering a transaction data verification event;
(4) user node address reported by traversing system nodeFor any user node i, judging the address of the user node i reported by the system nodeWhether the user node address reported by the user node exists or notIf yes, judging whether the transaction electric quantity reported by the user node is accurate or not based on the electric energy data check criterion; otherwise, setting the transaction electric quantity reported by the user node i as 0, and setting the transaction electric quantity after the transaction data of the user node i is verified as the transaction electric quantity of the user node i reported by the system nodeSetting that the transaction electric quantity reported by the user node i is inaccurate, and then triggering a transaction data verification event;
(5) setting system node reporting state0, user node address reported by system nodeUser node transaction electric quantity reported by null and system nodesReporting state for empty user nodeUser node address reported by null user nodeTransaction electric quantity reported by empty and user nodesIs empty.
8. The power distribution network electric energy transaction and verification method based on the distributed ledger and state estimation according to claim 7, wherein the electric energy data verification criterion in step (4) is:
for the user node i, the transaction electric quantity reported by the user node is judgedThe transaction electric quantity of the user node i reported by the system nodeWhether the absolute value of the deviation of (2) is greater than epsilonNamely, it is
If the condition is satisfied, setting the transaction electric quantity after the transaction data of the user node i is verified as the transaction electric quantity of the user node i reported by the system nodeSetting that the transaction electric quantity reported by the user node i is inaccurate, and then triggering a transaction data verification event; if the condition is not satisfied, setting the transaction electric quantity after the transaction data of the user node i is verified as the transaction electric quantity reported by the user node iAnd setting the transaction electric quantity reported by the user node i to be accurate, and then triggering a transaction data verification event.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911187206.9A CN110992179B (en) | 2019-11-28 | 2019-11-28 | Power distribution network electric energy transaction and verification method based on distributed account book and state estimation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911187206.9A CN110992179B (en) | 2019-11-28 | 2019-11-28 | Power distribution network electric energy transaction and verification method based on distributed account book and state estimation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110992179A true CN110992179A (en) | 2020-04-10 |
CN110992179B CN110992179B (en) | 2023-02-17 |
Family
ID=70087630
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911187206.9A Active CN110992179B (en) | 2019-11-28 | 2019-11-28 | Power distribution network electric energy transaction and verification method based on distributed account book and state estimation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110992179B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109359985A (en) * | 2018-09-19 | 2019-02-19 | 南方电网科学研究院有限责任公司 | Block chain-based distributed energy transaction execution method, device and equipment |
-
2019
- 2019-11-28 CN CN201911187206.9A patent/CN110992179B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109359985A (en) * | 2018-09-19 | 2019-02-19 | 南方电网科学研究院有限责任公司 | Block chain-based distributed energy transaction execution method, device and equipment |
Non-Patent Citations (2)
Title |
---|
刘明川: ""基于能源区块链的分布式电能交易系统设计"", 《硕士电子期刊》 * |
朱抗: ""基于区块链的能源互联网去中心化电能交易关键技术研究"", 《硕士电子期刊》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110992179B (en) | 2023-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108448568B (en) | Power distribution network hybrid state estimation method based on multiple time period measurement data | |
Deng et al. | A branch-estimation-based state estimation method for radial distribution systems | |
CN103048629B (en) | Method and device for metering lithium battery electric quantity | |
CN104778367B (en) | Wide area Thevenin's equivalence parameter on-line calculation method based on a single state section | |
CN110429653B (en) | Rural power grid distributed photovoltaic absorption method considering energy storage and DR (digital radiography) and terminal equipment | |
CN109086963B (en) | Line loss theoretical calculation lean management method | |
CN106355298A (en) | Intelligent watt-hour meter reliability prediction cloud service platform | |
CN110196404A (en) | A kind of metering chip calibration method, device and the terminal device of charging pile | |
CN106655152B (en) | A kind of State Estimation for Distribution Network measuring characteristic based on AMI | |
CN111198799A (en) | Machine room power consumption early warning method, system, terminal and storage medium based on LSTM | |
CN115640935A (en) | Method and device for calculating carbon emission of power system and computer equipment | |
CN105552885B (en) | Method and system for improving power distribution network state estimation observability | |
CN106443496A (en) | Battery charge state estimation method with improved noise estimator | |
CN104656053A (en) | State estimation method and system for electric energy metering devices | |
CN106372440B (en) | A kind of adaptive robust state estimation method of the power distribution network of parallel computation and device | |
CN109858061B (en) | Power distribution network equivalence and simplification method for voltage power sensitivity estimation | |
CN115685046A (en) | Mutual inductor metering abnormity identification method, device, equipment and storage medium | |
CN110380409A (en) | Consider the active distribution network distributed robust state estimation method and system of communication failure | |
CN108802628B (en) | Method, device and equipment for measuring battery electric quantity | |
CN110992179B (en) | Power distribution network electric energy transaction and verification method based on distributed account book and state estimation | |
CN110298570A (en) | Distribution network system topology status discrimination method, device, storage medium and equipment | |
CN116400223A (en) | Battery electric quantity information generation method, device and readable storage medium | |
CN111796143B (en) | Energy-saving metering method for energy-saving equipment of power distribution and utilization system | |
CN111478311A (en) | Line loss calculation method and system for any partition of power grid | |
CN113468729B (en) | Method and system for measuring and calculating operation errors of electric power station metering device without calibration mode |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |