CN115311084A - Method, device, equipment and storage medium for electric energy point-to-point transaction - Google Patents
Method, device, equipment and storage medium for electric energy point-to-point transaction Download PDFInfo
- Publication number
- CN115311084A CN115311084A CN202210551825.7A CN202210551825A CN115311084A CN 115311084 A CN115311084 A CN 115311084A CN 202210551825 A CN202210551825 A CN 202210551825A CN 115311084 A CN115311084 A CN 115311084A
- Authority
- CN
- China
- Prior art keywords
- node
- model
- branch
- representing
- virtual
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000002347 injection Methods 0.000 claims abstract description 16
- 239000007924 injection Substances 0.000 claims abstract description 16
- 238000013461 design Methods 0.000 claims abstract description 12
- 238000004364 calculation method Methods 0.000 claims description 90
- 230000005611 electricity Effects 0.000 claims description 61
- 239000011159 matrix material Substances 0.000 claims description 28
- 230000009977 dual effect Effects 0.000 claims description 25
- 238000000354 decomposition reaction Methods 0.000 claims description 18
- 230000006870 function Effects 0.000 claims description 14
- 230000008569 process Effects 0.000 claims description 14
- 230000007246 mechanism Effects 0.000 claims description 11
- 239000000243 solution Substances 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 9
- 230000008901 benefit Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 claims description 4
- 238000010248 power generation Methods 0.000 claims description 4
- 230000001174 ascending effect Effects 0.000 claims description 3
- 238000010276 construction Methods 0.000 claims description 3
- 230000002452 interceptive effect Effects 0.000 claims description 3
- 230000008859 change Effects 0.000 claims description 2
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 claims 2
- 239000011248 coating agent Substances 0.000 claims 1
- 238000000576 coating method Methods 0.000 claims 1
- 238000002360 preparation method Methods 0.000 claims 1
- 239000007787 solid Substances 0.000 claims 1
- 238000007726 management method Methods 0.000 abstract description 16
- 230000003287 optical effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012549 training 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/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- 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/22—Payment schemes or models
- G06Q20/223—Payment schemes or models based on the use of peer-to-peer networks
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Finance (AREA)
- Theoretical Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
The invention provides a method, a device, equipment and a storage medium for electric energy point-to-point transaction, which relate to the technical field of electric power, and the management method comprises the following steps: the method comprises the following steps that a power distribution network operator submits power distribution network physical parameter information to a block chain transaction platform, wherein the power distribution network physical parameter information comprises a power distribution network topological structure, power distribution network branch parameter information and safety physical constraint information of power distribution network operation; the block chain trading platform aims at reducing the consumption of block chain platform computing resources, redesigns a load flow computing network according to the physical parameter information of the power distribution network, achieves linear design of the load flow computing network under the condition of meeting power distribution network load flow computing precision by constructing virtual node active injection (Pxn), virtual node reactive injection (Qxn), virtual branch active load flow (PLxn) and virtual branch reactive load flow (QLxn), and can obtain the highest model performance and the convergence close to the optimal strategy compared with other standard energy management methods.
Description
Technical Field
The invention relates to a method, a device, equipment and a storage medium for electric energy point-to-point transaction, and belongs to the technical field of electric power transaction mechanism design.
Background
Due to the new development of information and communication technology and the appearance of block chains and other distributed account book technologies, a transparent and dispersed transaction framework is provided for energy transaction of a power distribution system, decentralized point-to-point transaction can be organized under the condition that no independent third party intervenes in a power distribution network, and the pressure of an upper-layer scheduling mechanism is greatly reduced, so that a plurality of scholars regard an transaction market on the block chain as an effective way for developing point-to-point electric energy transaction in a power distribution network power market.
In practical application, different from common commodity exchange, a scattered electric energy market is developed in a power distribution system, and the running state of the power distribution network is inevitably influenced even the safe running of the system is endangered under the condition that a unified dispatching center is not used for coordination, so that the point-to-point trading of electric energy in the market on the chain must include a trading management function on the chain, and the privacy protection requirement of a user participating in the market on the chain cannot be considered.
Disclosure of Invention
Technical problem to be solved
Compared with other standard energy management methods, the method, the device, the equipment and the storage medium for point-to-point transaction of the electric energy can obtain the highest model performance and the convergence close to the optimal strategy.
(II) technical scheme
In order to achieve the purpose, the invention is realized by the following technical scheme:
in one aspect, a method for point-to-point transaction of electric energy is provided, which includes the following steps:
s101: the method comprises the following steps that a power distribution network operator submits power distribution network physical parameter information to a block chain transaction platform, wherein the power distribution network physical parameter information comprises a power distribution network topological structure, power distribution network branch parameter information and safety physical constraint information of power distribution network operation;
s102: the block chain trading platform is used for reducing the consumption of block chain platform computing resources, redesigning a load flow computing network according to the physical parameter information of the power distribution network, and realizing the linear design of the load flow computing network under the condition of meeting the load flow computing precision of the power distribution network by constructing virtual node active power injection (Pxn), virtual node reactive power injection (Qxn), virtual branch active power load flow (PLxn) and virtual branch reactive power load flow (QLxn);
s103: the block chain trading platform is combined with a linearized load flow calculation network, voltage calculation processes of all nodes are subjected to linearized processing according to an iterative algorithm, and a power distribution network load flow chain upper calculation Model (BC-PF Model) facing to block chain upper calculation is completely realized, so that load flow calculation does not depend on an offline calculation platform any more;
s104: a block chain trading platform constructs a complete chain market of electric energy point-to-point trading according to a BC-PF Model, and designs a trading mechanism of each trading subject participating in the complete chain market through a dual decomposition method with the purposes of chain electric energy trading, chain management and chain trading privacy protection, so as to realize the chain decomposition of a point-to-point trading Model and the local solution of a chain decomposition subproblem;
s105: the block chain trading platform designs an intelligent contract according to a trading mechanism, and normal and stable operation of a market on a complete chain is realized.
Further, the nodes participating in the point-to-point transaction include a power purchasing node and a power selling node, and the nodes participating in the point-to-point transaction need to be authenticated with the transaction platform in advance, and the authentication information includes: the transaction platform has no admission threshold requirement on nodes participating in P2P transaction.
Furthermore, the blockchain trading platform and the intelligent contracts for point-to-point trading on the built-in supporting chains of the blockchain trading platform are written in So i d ity language supported by the Ethernet workshop platform.
Further, the step S102 specifically includes:
(1) designing a power flow calculation network by adopting standard accurate power flow calculation:
wherein,expressing the active and reactive power flows of the branch lk;the active and reactive outputs of the lk downstream nodes of the branch circuit and the active and reactive losses of the downstream branch circuit are represented; sub (k +1, j) represents a Boolean variable for judging whether the node j is a downstream node of the node k + 1; NB represents the number of system nodes, and the nonlinearity of the accurate load flow calculation model can be found to be mainly reflected on the active and reactive losses of a downstream branch;
wherein, P ij Expressing the branch flow of a branch ij taking a node i as a head node and taking a node j as a tail node; p ji A branch load flow of a branch ji taking the node j as a head node and taking the node i as a tail node;representing the network loss of a branch ij in the power flow calculation network, which is a main reason causing the nonlinearity of the power flow calculation network under the model (1); r is ij 、X ij 、δ ij Representing the resistance, reactance, phase angle difference of branch ij.
(2) By constructing virtual variables including virtual node active injection (Pxn), virtual node reactive injection (Qxn), virtual branch active power flow (PLxn) and virtual branch reactive power flow (QLxn), the power flow calculation network of the model (2) is designed in a linear way, so that the calculation resource consumption in the calculation process is reduced:
by the constructionThe network loss of the branch ij is eliminated, and the linearization of the load flow calculation network is realized, wherein V i 、V j Represents the voltage at node i, j;indicating new constructionVariables are as follows: branch ij, and virtual branch active power flow (PLxn) of branch ji;
under the logic of the calculation network variable setting, the linearization of the calculation power flow network is realized, wherein PLxn and Pxn are constructed in the following way:wherein,a virtual branch active power flow representing the branch lk,virtual node active injection (Pxn) representing node j; corresponding construction methods of QLxn and Qxn are similar;
finally, the variables are integrated and expressed in a matrix form to form the linearized power flow calculation network provided by the patent:wherein,representing a column vector consisting of branch variables PLxn and QLxn of the system;representing a column vector consisting of system node variables Pxn and Qxn; s represents a matrix constructed with Boolean variables Sub (k +1, j);
(3) linearization is carried out on the node voltage through an iterative algorithm, and a complete power distribution network load flow chain on-line calculation Model (BC-PF Model) is obtained by combining a linearized load flow calculation network Model (5), so that load flow calculation does not depend on an off-line calculation platform any more:
the models (3) to (4) find that the accuracy of the newly constructed virtual variable calculation depends on the node voltage, so that the node voltage needs to be accurately calculated and the calculation process is integrated into a power distribution network load flow chain calculation Model (BC-PF Model),wherein, V i 、 V j Represents the voltage at node i, j;X ij the virtual resistance and the virtual reactance of a branch ij with a node i as a head node and a node j as a tail node are represented;
constructing the voltage value of the node of the model (7) through the model (6), wherein the model (7) takes the No. 1 node as a reference node
The point(s) is (are) such that,wherein, V 1 、V 2 、V 3 Representing the voltages at nodes 1, 2, 3;the virtual resistance, the virtual reactance, the virtual branch active power flow and the virtual branch reactive power flow of the branch 12 with the node 1 as a head node and the node 2 as a tail node are shown;the virtual resistance, the virtual reactance, the virtual branch active power flow and the virtual branch reactive power flow of the branch 12 with the node 2 as a head node and the node 3 as a tail node are shown; ij ∈ Path (1 j) represents a boolean variable that determines whether the branch ij is a component of the Path (1 j);
finally, the variables are integrated and expressed in a matrix form to form the voltage linearization calculation model provided by the patent:wherein V represents a vector formed by node voltages of each node of the system; t denotes a matrix composed of boolean variables { ij ∈ Path (1 j) };represents the resistance and reactance of any branch of the system;is expressed by formulaA diagonal matrix is formed; b P 、B Q Is represented by a matrix Calculating a new matrix;
and combining interactive iterative calculation between the models (7) and (8) until convergence to obtain an accurate load flow calculation result.
Further, the step S104 specifically includes:
(1) modeling trading users and net fees participating in the point-to-point electric energy trading on the chain:
the electricity purchasing user model comprises the following steps:
wherein alpha is j 、β j A secondary coefficient and a primary coefficient representing a power purchasing user j; p is a radical of j Representing the energy usage value of the electricity purchasing user j; u shape j (p j ) Representing the benefit brought by the energy use of the electricity purchasing user j;
electricity selling user model:
wherein, a i 、b i 、c i Quadratic, first order and constant terms, p, representing electricity selling users i i Indicating the power generation of electricity-selling customers i, C i (p i ) Indicating electricity selling usersi power generation cost;
a net charge model:
wherein, N (p) ij ) Representing the electric energy transaction amount p between the electricity selling user i and the electricity purchasing user j ij Resulting in a net charge, p ij Representing the electric energy transaction amount of the electricity selling user i and the electricity purchasing user j; pi represents the net charge of unit electric energy; d ij The virtual electric distance between the electricity selling user i and the electricity purchasing user j is represented, and the using condition of the power grid assets in the transaction of the electricity selling user i and the electricity purchasing user j can be expressed; s ij,l Representing Boolean variables in the matrix S corresponding to the line l when the electricity selling user i and the electricity purchasing user j carry out transactions;
(2) constructing targets and constraint conditions of a point-to-point electric energy transaction matching model on a chain:
wherein, P J ,P I ,P IJ V respectively represents a virtual electricity purchasing quantity vector of an electricity purchasing user j, a virtual electricity selling quantity vector of an electricity selling user i, a virtual electric energy transaction quantity matrix between the electricity selling user i and the electricity purchasing user j and a node voltage vector; C. p represents a power purchasing user set and a power selling user set; lambda i A dual variable representing a balance constraint of the electricity selling user i; delta j A dual variable representing a balance constraint of a power purchase user j;representing the lower limit and the upper limit of the system node voltage and the corresponding dual variable;representing the lower limit and the upper limit of the branch flow of the system line and the dual variables corresponding to the lower limit and the upper limit;represents the upper limit, the lower limit and the lower limit of the electricity selling quantity of the electricity selling user iIts corresponding dual variable;representing the upper limit and the lower limit of the electricity purchasing quantity of the electricity purchasing user j and corresponding dual variables;
(3) splitting the model (12) according to a dual-variate method, and realizing the on-chain decomposition of the point-to-point transaction model and the local solution of the on-chain decomposition subproblem so as to protect the privacy of the user and realize the on-chain transaction management:
and (3) arranging the Model (12) by adopting a power distribution network load flow chain calculation Model (BC-PF Model) to obtain:
wherein,is represented by a matrix B C A new matrix formed by the corresponding columns of the medium-purchase power users and the power-sale users; s C 、S P Representing a new matrix formed by the corresponding columns of the electricity purchasing users and the electricity selling users in the matrix S;representing the upper and lower limit margins of the n-node voltage caused by point-to-point electric energy transaction;representing the value of the voltage change of the n node caused by point-to-point electric energy transaction;representing the margin of the upper and lower limits of the line k current due to point-to-point power trading.
Constructing a Lagrangian function for the model (13) resulting in:
splitting the model (14) by adopting a dual decomposition method to obtain:
the model (15 a) is equivalent split of the model (14), chain management of transactions can be achieved on the basis that user privacy information (cost information such as primary coefficients, secondary coefficients and constant terms) is unknown according to the model (15 a), the models (15 b) and (15 c) are solving models of sub-problems in the model (15 a) and can be solved locally by a user, and then the solving results are uploaded to a chain to achieve protection of the user privacy information.
Updating the even variables by adopting a gradient ascending method:
wherein,representing that the Lagrangian function L calculates gradient of the even variable lambda;representing that the Lagrange function L graduates the dual variable k;representing the gradient of the dual variable mu by the Lagrangian function L;representing that the Lagrangian function L calculates the gradient of the dual variable gamma; alpha (alpha) ("alpha") t Representing an iteration step of the t-th iteration;representing the even-pair variable value of the t iteration;
the node voltages of the nodes are updated according to a model (8):
repeatedly carrying out iterative calculation according to the models (15 b), (15 c), (16) and (17) until the model satisfies the requirementsAnd obtaining a result of the point-to-point electric energy transaction on the chain.
In yet another aspect, an apparatus is provided, the apparatus comprising:
the measured resource parameter acquisition module is used for acquiring the measured state parameters and the measured resource parameters of the target resources;
and the target management strategy output module is used for inputting the measured state parameters and the measured resource parameters into a pre-trained target management model to obtain an output target management strategy and target gains corresponding to the target management strategy, wherein the target management model is obtained by training based on a flexible action-evaluation algorithm.
In yet another aspect, an apparatus is provided, the apparatus comprising:
at least one processor;
a memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement a method of point-to-point transaction of electrical energy as recited in claims 1-5.
In yet another aspect, a storage medium of computer-executable instructions is provided, which when executed by a computer processor, is for performing a method of point-to-point transaction of electrical energy as recited in claims 1-5.
(III) advantageous effects
The invention provides a method, a device, equipment and a storage medium for electric energy point-to-point transaction.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a method for peer-to-peer transaction of electrical energy according to an embodiment of the present invention;
FIG. 2 is a graph comparing the voltage calculation effects of the BC-PF Model according to the embodiment of the present invention;
FIG. 3 is a comparison graph of load flow calculation effects of the BC-PF Model according to the embodiment of the present invention;
FIG. 4 is a diagram illustrating a convergence of transaction results for a transaction mechanism of the complete linked market in an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings 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 given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example (b):
as shown in fig. 1, fig. 1 is a schematic flow chart of a point-to-point transaction design method for full-link market electric energy in an embodiment of the present invention, where the method may include:
s101: and the power distribution network operator submits power distribution network physical parameter information including a power distribution network topological structure, power distribution network branch parameter information and power distribution network operation safety physical constraint information to the block chain transaction platform.
S102: and the block chain transaction platform realizes the linearization of the load flow calculation network by constructing virtual variables.
Specifically, the block chain trading platform aims at reducing the calculation resource consumption of the block chain platform, redesigns the load flow calculation network according to the physical parameter information of the power distribution network, and realizes the linear design of the load flow calculation network under the condition of meeting the load flow calculation precision of the power distribution network by constructing virtual node active power injection (Pxn), virtual node reactive power injection (Qxn), virtual branch active power load flow (PLxn) and virtual branch reactive power load flow (QLxn).
Further, the specific process for implementing the steps comprises:
firstly, designing a power flow calculation network by adopting standard accurate power flow calculation, wherein a specific model is as follows:
secondly, a virtual variable is constructed, wherein the virtual variable comprises virtual node active injection (Pxn), virtual node reactive injection (Qxn), virtual branch active power flow (PLxn) and virtual branch reactive power flow (QLxn), and a power flow calculation network of the model (2) is designed in a linear mode, so that the calculation resource consumption of the calculation process is reduced, and the specific model is as follows:
through the model (3), it can be found thatThe network loss of the branch ij can be eliminated, and the linearization of the load flow calculation network is realized.
Without loss of generality, PLxn, pxn are constructed as follows:
and thirdly, integrating the variables, and expressing the variables in a matrix form to obtain the linearized power flow calculation network provided by the patent:
s103: the block chain transaction platform linearizes the system node voltage, and combines the linearization of load flow calculation to realize a power distribution network load flow chain upper calculation Model (BC-PF Model) facing the block chain upper calculation.
Further, the specific process for implementing the steps comprises:
firstly, linearizing the node voltage through an iterative algorithm, wherein a specific model is as follows:
because the node 1 is often directly connected with the upper-layer power grid, the voltage per unit value of the node can be maintained as 1, the model (7) takes the node 1 as a reference node, and the voltage values of other nodes are constructed through the model (6).
And secondly, integrating the variables, expressing the variables in a matrix form to obtain a voltage linearization calculation model provided by the patent, wherein the specific model is as follows:
and thirdly, combining interactive iterative calculation between the models (7) and (8) until convergence to obtain an accurate load flow calculation result, wherein the process is a complete power distribution network load flow chain calculation Model (BC-PF Model).
As shown in fig. 2-3, the BC-PF Model voltage and power flow calculation results are compared with the calculation results of other platform-supported power flow calculation models (an alternating current power flow calculation Model, a direct current power flow calculation Model, and a power flow calculation Model based on taylor expansion) that need to be linked.
S104: a complete chain market transaction mechanism of electric energy point-to-point transaction is designed according to the BC-PF Model, and chain management and chain transaction privacy protection of electric energy transaction are achieved.
Specifically, a block chain trading platform constructs a complete chain market of electric energy point-to-point trading according to a BC-PF Model, aims at managing on the chain electric energy trading and protecting privacy of trading on the chain, and designs a trading mechanism of each trading subject participating in the complete chain market through a dual decomposition method, so as to realize the on-chain decomposition of the point-to-point trading Model and the local solution of the on-chain decomposition subproblems.
Further, the specific process for realizing the steps comprises the following steps:
firstly, modeling trading users and net fees participating in point-to-point electric energy trading on a chain:
the electricity purchasing user model comprises the following steps:
electricity selling user model:
a net charge model:
secondly, constructing targets and constraint conditions of a point-to-point electric energy transaction matching model on the chain:
thirdly, splitting the model (12) according to a dual variable method to realize the on-chain decomposition of the point-to-point transaction model and the local solution of the on-chain decomposition subproblem so as to protect the privacy of the user and realize the on-chain transaction management, wherein the specific model is as follows:
constructing a Lagrangian function for the model (13) resulting in:
splitting the model (14) by adopting a dual decomposition method to obtain:
in the above formula, the model (15 a) is an equivalent split of the model (14), chain management of transactions can be realized on the basis of unknown user privacy information (cost information such as primary coefficient, secondary coefficient, constant item and the like) according to the model (15 a), the models (15 b) and (15 c) are solving models of sub-problems in the model (15 a), the local solution can be performed on a user, and then the solution result is uploaded to a chain to realize protection of the user privacy information.
Updating the even variables by adopting a gradient ascending method:
fourthly, updating the node voltage of each node according to the model (8):
and fifthly, repeatedly and iteratively calculating according to the models (15 b), (15 c), (16) and (17) until the following convergence condition (model (18)) is met, and obtaining a result of the point-to-point electric energy transaction on the chain.
For example, the trading mechanism trading result of the complete chain market is shown in fig. 4, and the trading result can find that the results obtained by the trading mechanism all achieve convergence.
Fig. 5 is a schematic structural diagram of a device according to an embodiment of the present invention, where the embodiment of the present invention provides a service for a complete chain market electric energy point-to-point transaction design method considering chain transaction management and user privacy protection according to the above embodiment of the present invention, and a device for implementing the complete chain market electric energy point-to-point transaction method according to the above embodiment may be configured. FIG. 5 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 5 is only an example and should not impose any limitation on the functionality or scope of use of an embodiment of the invention.
As shown in FIG. 5, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5 and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes programs stored in the system memory 28, thereby executing various functional applications and data processing, such as an implementation program for implementing the P2P transaction method provided by the embodiment of the present invention.
Through the equipment, the physical constraint of adding distribution network safety in P2P transaction is solved, the P2P transaction can be automatically carried out under the unsupervised condition, and the safe and stable operation of a power distribution system can not be threatened.
The embodiment of the invention also provides a storage medium containing computer executable instructions, and the computer executable instructions are used for executing the power distribution network state calculation contract, the transaction application contract, the transaction matching contract and the transaction settlement contract which are written by the Solidity language supported by the Ethernet workshop platform and are related to the P2P transaction method when being executed by a computer processor.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Of course, the storage medium provided by the embodiments of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in any embodiments of the present invention.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Claims (8)
1. A method for peer-to-peer transaction of electric energy, comprising the steps of:
s101: a power distribution network operator submits power distribution network physical parameter information to a block chain transaction platform, wherein the power distribution network physical parameter information comprises a power distribution network topological structure, power distribution network branch parameter information and power distribution network operation safety physical constraint information;
s102: the block chain trading platform is used for reducing the consumption of block chain platform computing resources, redesigning a load flow computing network according to the physical parameter information of the power distribution network, and realizing the linear design of the load flow computing network under the condition of meeting the load flow computing precision of the power distribution network by constructing virtual node active power injection (Pxn), virtual node reactive power injection (Qxn), virtual branch active power load flow (PLxn) and virtual branch reactive power load flow (QLxn);
s103: the block chain trading platform is combined with a linear load flow calculation network, the calculation process of the node voltage of the power distribution system is subjected to linear processing according to an iterative algorithm, and a power distribution network load flow chain on-calculation Model (BC-PF Model) facing to block chain on-calculation is completely realized, so that the load flow calculation does not depend on an off-line calculation platform any more;
s104: a block chain trading platform constructs a complete chain market of electric energy point-to-point trading according to a BC-PF Model, and designs a trading mechanism of each trading subject participating in the complete chain market through a dual decomposition method with the purposes of chain electric energy trading, chain management and chain trading privacy protection, so as to realize the chain decomposition of a point-to-point trading Model and the local solution of a chain decomposition subproblem;
s105: the block chain trading platform designs an intelligent contract according to a trading mechanism, and normal and stable operation of a market on a complete chain is realized.
2. The method of claim 1, wherein the users participating in the peer-to-peer transaction include a power purchasing user and a power selling user, and the nodes participating in the peer-to-peer transaction need to be authenticated with the transaction platform in advance, and the authentication information includes: the transaction platform has no admission threshold requirement on nodes participating in P2P transaction.
3. The method of claim 1, wherein the blockchain trading platform and the intelligent contracts for point-to-point trading on the supporting chains built in the blockchain trading platform are written in a Solidity language supported by the ethernet platform.
4. The method of claim 1, wherein the step S102 specifically includes:
(1) designing a power flow calculation network by adopting standard accurate power flow calculation:wherein,expressing the active and reactive power flows of the branch lk;the active and reactive outputs of the Ik downstream node of the branch circuit and the active and reactive losses of the downstream branch circuit are represented; sub (k +1, j) represents a Boolean variable for judging whether the node j is a downstream node of the node k + 1; NB represents the number of system nodes, and the nonlinearity of the accurate load flow calculation model can be found to be mainly reflected on the active and reactive losses of a downstream branch;
wherein, P ij Expressing the branch flow of a branch ij taking a node i as a head node and taking a node j as a tail node; p ji A branch flow of a branch ji taking the node j as a head node and the node i as a tail node;representing the network loss of a branch ij in the power flow calculation network, which is a main reason causing the nonlinearity of the power flow calculation network under the model (1); r is ij 、X ij 、δ ij Representing the resistance, reactance, phase angle difference of branch ij.
(2) Through constructing virtual variables, the load flow calculation network comprising virtual node active injection (Pxn), virtual node reactive injection (Qxn), virtual branch active load flow (PLxn) and virtual branch reactive load flow (QLxn) and the model (2) is designed in a linear mode, so that the calculation resource consumption in the calculation process is reduced:by the structureThe network loss of the branch ij is eliminated, and the linearization of the load flow calculation network is realized, wherein V i 、V j Represents the voltage at node i, j;variables representing the new construct: branch ij, and virtual branch active power flow (PLxn) of branch ji;
under the logic of the calculation network variable setting, the linearization of the calculation power flow network is realized, wherein PLxn and Pxn are constructed in the following way:wherein,a virtual branch active power flow representing the branch lk,virtual node active injection (Pxn) representing node j; corresponding construction methods of QLxn and Qxn are similar;
finally, the variables are integrated and expressed in a matrix form to form the linearized power flow calculation network provided by the patent:wherein,representing a column vector formed by branch variables PLxn and QLxn of the system;representing a column vector consisting of system node variables Pxn and Qxn; s represents a matrix constructed with Boolean variables Sub (k +1, j);
(3) linearization is carried out on the node voltage through an iterative algorithm, and a complete power distribution network load flow chain on-line calculation Model (BC-PF Model) is obtained by combining a linearized load flow calculation network Model (5), so that load flow calculation does not depend on an off-line calculation platform any more:
the models (3) to (4) find that the accuracy of the calculation of the newly constructed virtual variable depends on the node voltage, so that the accurate calculation of the node voltage needs to be modeled, and the calculation process is fused into the power distribution networkIn a calculation Model (BC-PF Model) on a power flow chain,wherein, V i 、V j Represents the voltage at node i, j;X ij the virtual resistance and the virtual reactance of a branch ij with a node i as a head node and a node j as a tail node are represented;
constructing the voltage value of the node of the model (7) through the model (6), wherein the model (7) takes the node No. 1 as a reference node,wherein, V 1 、V 2 、V 3 Representing the voltages at nodes 1, 2, 3;the virtual resistance, the virtual reactance, the virtual branch active power flow and the virtual branch reactive power flow of the branch 12 with the node 1 as a head node and the node 2 as a tail node are shown;the virtual resistance, the virtual reactance, the virtual branch active power flow and the virtual branch reactive power flow of the branch 12 with the node 2 as a head node and the node 3 as a tail node are shown; ij ∈ Path (1 j) represents a boolean variable that determines whether the branch ij is a component of the Path (1 j);
finally, the variables are integrated and expressed in a matrix form to form the voltage linearization calculation model provided by the patent:wherein V represents a vector formed by node voltages of each node of the system; t denotes a matrix composed of boolean variables { ij ∈ Path (1 j) };represents the resistance and reactance of any branch of the system;is expressed by formulaA diagonal matrix is formed; b P 、B Q Is represented by a matrix Calculating a new matrix;
and combining interactive iterative calculation between the models (7) and (8) until convergence to obtain an accurate load flow calculation result.
5. The method of claim 1, wherein the step 104 comprises:
(1) modeling transaction users and net fees for participating in point-to-point electric energy transactions on a chain:
the electricity purchasing user model comprises the following steps:
wherein alpha is j 、β j A secondary coefficient and a primary coefficient representing a power purchase user j; p is a radical of formula j Representing the energy usage value of the electricity purchasing user j; u shape j (p j ) Representing the benefit brought by the energy use of the electricity purchasing user j;
electricity selling user model:
wherein, a i 、b i 、c i Representing electricity-selling users iQuadratic coefficient, first order coefficient and constant term, p i Indicating the power generation of electricity-selling customers i, C i (p i ) Representing the power generation cost of the electricity selling user i;
a net charge model:
wherein, N (p) ij ) Representing the electric energy transaction amount p between the electricity selling user i and the electricity purchasing user j ij Resulting in a net charge, p ij Representing the electric energy transaction amount of the electricity selling user i and the electricity purchasing user j; pi represents the net charge of unit electric energy; d is a radical of ij The virtual electrical distance between the electricity selling user i and the electricity purchasing user j is represented, and the using condition of the power grid assets in the transaction of the electricity selling user i and the electricity purchasing user j can be expressed; s ij,l Representing Boolean variables in the matrix S corresponding to the line l when the electricity selling user i and the electricity purchasing user j carry out transactions;
(2) constructing targets and constraint conditions of a point-to-point electric energy transaction matching model on a chain:
wherein, P J ,P I ,P IJ V respectively represents a virtual electricity purchasing quantity vector of an electricity purchasing user j, a virtual electricity selling quantity vector of an electricity selling user i, a virtual electric energy transaction quantity matrix between the electricity selling user i and the electricity purchasing user j, and a node voltage vector; C. p represents an electricity purchasing user set and an electricity selling user set; lambda [ alpha ] i A dual variable representing a balance constraint of the electricity selling user i; delta. For the preparation of a coating j A dual variable representing a balance constraint of a power purchase user j;representing the lower limit and the upper limit of the system node voltage and the corresponding dual variables;lower limit and upper limit representing system line branch power flow and corresponding dual changeAn amount; i p、representing the upper limit and the lower limit of the electricity selling quantity of the electricity selling user i and the corresponding dual variable; j p、representing the upper limit and the lower limit of the electricity purchasing quantity of the electricity purchasing user j and corresponding dual variables;
(3) splitting the model (12) according to a dual-variate method, and realizing the on-chain decomposition of the point-to-point transaction model and the local solution of the on-chain decomposition subproblem so as to protect the privacy of the user and realize the on-chain transaction management:
and (3) sorting the Model (12) by adopting a power distribution network load flow chain calculation Model (BC-PF Model) to obtain:
wherein,is represented by a matrix B C A new matrix formed by the corresponding columns of the medium-purchase power users and the power-sale users; s C 、S P Representing a new matrix composed of columns corresponding to electricity purchasing users and electricity selling users in the matrix S;representing the upper and lower limit margins of the n-node voltage caused by point-to-point electric energy transaction;representing the value of the voltage change of the n node caused by point-to-point electric energy transaction;representing the margin of the upper and lower limits of the line k current due to point-to-point power transactions.
Constructing a Lagrangian function for the model (13) resulting in:
splitting the model (14) by a dual decomposition method to obtain:
the model (15 a) is equivalent split of the model (14), chain management of transactions can be achieved on the basis that user privacy information (cost information such as primary coefficients, secondary coefficients and constant terms) is unknown according to the model (15 a), the models (15 b) and (15 c) are solving models of sub-problems in the model (15 a) and can be solved locally by a user, and then the solving results are uploaded to a chain to achieve protection of the user privacy information.
Updating the even variables by adopting a gradient ascending method:
wherein,expressing that the Lagrange function L calculates the gradient of the dual variable lambda;representing LagrangianThe function L graduates the even variables kappa;representing the gradient of the dual variable mu by the Lagrangian function L;representing that the Lagrangian function L calculates the gradient of the dual variable gamma; alpha is alpha t Representing an iteration step of the t-th iteration;representing the even variable value of the t iteration;
the node voltages of the nodes are updated according to a model (8):
6. An apparatus, comprising:
the information acquisition module is configured to acquire physical parameter information of the power distribution network;
the intelligent terminal module is configured to be internally provided with intelligent contract codes such as transaction application, local solution and the like written by the solid language supported by the Ether, and provides a communication interface connected with the central processing module of the platform for the transaction node;
the platform central processing module is configured to embed intelligent contracts such as on-chain load flow calculation written by the Solidity language supported by the Etherns, point-to-point trading node publishing and the like.
7. An apparatus, comprising:
at least two processors;
the processor is connected with at least one memory and at least one bus;
the processor and the memory complete mutual communication through the bus; the processor is operable to invoke program instructions in the memory to perform the method of any of claims 1 to 5.
8. A storage medium containing computer-executable instructions, the storage medium comprising a stored program, wherein the program, when executed, controls an apparatus on which the storage medium is located to perform the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210551825.7A CN115311084A (en) | 2022-05-18 | 2022-05-18 | Method, device, equipment and storage medium for electric energy point-to-point transaction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210551825.7A CN115311084A (en) | 2022-05-18 | 2022-05-18 | Method, device, equipment and storage medium for electric energy point-to-point transaction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115311084A true CN115311084A (en) | 2022-11-08 |
Family
ID=83855163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210551825.7A Pending CN115311084A (en) | 2022-05-18 | 2022-05-18 | Method, device, equipment and storage medium for electric energy point-to-point transaction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115311084A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116308802A (en) * | 2023-05-15 | 2023-06-23 | 广东电网有限责任公司东莞供电局 | Intelligent contract-based power transaction method, device, equipment and storage medium |
CN117349897A (en) * | 2023-12-05 | 2024-01-05 | 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) | Block chain-based carbon quota transaction privacy protection method |
-
2022
- 2022-05-18 CN CN202210551825.7A patent/CN115311084A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116308802A (en) * | 2023-05-15 | 2023-06-23 | 广东电网有限责任公司东莞供电局 | Intelligent contract-based power transaction method, device, equipment and storage medium |
CN116308802B (en) * | 2023-05-15 | 2023-10-31 | 广东电网有限责任公司东莞供电局 | Intelligent contract-based power transaction method, device, equipment and storage medium |
CN117349897A (en) * | 2023-12-05 | 2024-01-05 | 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) | Block chain-based carbon quota transaction privacy protection method |
CN117349897B (en) * | 2023-12-05 | 2024-03-26 | 哈尔滨工业大学(深圳)(哈尔滨工业大学深圳科技创新研究院) | Block chain-based carbon quota transaction privacy protection method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Luo et al. | Short‐term operational planning framework for virtual power plants with high renewable penetrations | |
CN115311084A (en) | Method, device, equipment and storage medium for electric energy point-to-point transaction | |
Zhang et al. | Joint bidding and geographical load balancing for datacenters: Is uncertainty a blessing or a curse? | |
Gérard et al. | On risk averse competitive equilibrium | |
Goodarzi et al. | Tight convex relaxation for TEP problem: a multiparametric disaggregation approach | |
Zangeneh et al. | Multi‐leader–follower game theory for modelling interaction between virtual power plants and distribution company | |
Eidiani | An efficient differential equation load flow method to assess dynamic available transfer capability with wind farms | |
CN112581309A (en) | Block chain-based distributed energy transaction method and system for power distribution network | |
Durvasulu et al. | Market‐based generator cost functions for power system test cases | |
Holmberg | Numerical calculation of an asymmetric supply function equilibrium with capacity constraints | |
Peng et al. | A novel deep learning based peer‐to‐peer transaction method for prosumers under two‐stage market environment | |
Wang et al. | A data‐driven probabilistic power flow method based on convolutional neural networks | |
Jin et al. | Power grid simulation applications developed using the GridPACK™ high performance computing framework | |
Han et al. | Optimization of transactive energy systems with demand response: A cyber‐physical‐social system perspective | |
CN115169786A (en) | Power market demand side resource aggregation model scheduling method and device | |
Santos et al. | Intelligent energy systems ontology to support markets and power systems co-simulation interoperability | |
CN110046766A (en) | A kind of cooperative optimization method of virtual plant and power distribution network | |
Singhal et al. | Iterative transmission and distribution optimal power flow framework for enhanced utilisation of distributed resources | |
Chandrakala et al. | Multi-agent based modeling and learning approach for intelligent day-ahead bidding strategy in wholesale electricity market | |
Shivaie et al. | Risk‐constrained multi‐level framework for coordination of generation and transmission expansion planning in liberalised environments–part I: theory and formulation | |
Dong et al. | Bidding strategy of thermal power compound differential evolution game under the market mechanism of peak regulation auxiliary service | |
Tang et al. | Heterogeneous‐decomposition‐based coordinated optimisation for integrated transmission and distribution networks considering communication conditions | |
Ekel et al. | Multicriteria analysis based on constructing payoff matrices and applying methods of decision making in fuzzy environment | |
Liu et al. | Research on Smart Power Sales Strategy Considering Load Forecasting and Optimal Allocation of Energy Storage System in China | |
Song | Design and Application of Financial Market Option Pricing System Based on High‐Performance Computing and Deep Reinforcement Learning |
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 |