CN115358810A - Power transaction interaction method and device for main side chain double-chain interaction and storage medium - Google Patents

Power transaction interaction method and device for main side chain double-chain interaction and storage medium Download PDF

Info

Publication number
CN115358810A
CN115358810A CN202210888831.1A CN202210888831A CN115358810A CN 115358810 A CN115358810 A CN 115358810A CN 202210888831 A CN202210888831 A CN 202210888831A CN 115358810 A CN115358810 A CN 115358810A
Authority
CN
China
Prior art keywords
electricity
time period
power
transaction
new energy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210888831.1A
Other languages
Chinese (zh)
Inventor
杨东梅
李宝聚
王俊
李昀
刘刚
孙绘
孙勇
傅吉悦
刘畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Jilin Electric Power Co Ltd
State Grid Jilin Electric Power Corp
Nari Technology Co Ltd
State Grid Electric Power Research Institute
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Jilin Electric Power Co Ltd
State Grid Jilin Electric Power Corp
Nari Technology Co Ltd
State Grid Electric Power Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Jilin Electric Power Co Ltd, State Grid Jilin Electric Power Corp, Nari Technology Co Ltd, State Grid Electric Power Research Institute filed Critical State Grid Corp of China SGCC
Priority to CN202210888831.1A priority Critical patent/CN115358810A/en
Publication of CN115358810A publication Critical patent/CN115358810A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0611Request for offers or quotes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

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

Abstract

The invention discloses a main side chain double-chain interaction electric power transaction interaction method, a device and a storage medium, wherein the method comprises the following steps: acquiring transaction declaration information of a new energy power plant and a power consumer and uploading the transaction declaration information to a block chain main chain; according to the transaction declaration information, aiming at minimizing the electricity purchasing cost of the power users and maximizing the income of the new energy power plant, calculating the market clear electricity price and clear electricity quantity of each period of time in the day and synchronizing the price and the clear electricity quantity to a side chain; acquiring the required electric quantity of each time interval in a power consumer day, and subtracting the output clear electric quantity of the corresponding time interval in the day ahead to acquire the electric quantity deviation of the corresponding time interval; according to the electric quantity deviation of each time interval and a preset deviation assessment threshold value, buyer users, seller users and quotation strategies participating in deviation transactions at corresponding time intervals in the day are determined; calculating deviation transaction results and synchronizing the deviation transaction results to a main chain according to buyer users, seller users and quotation strategies with the aim of minimizing deviation cost of consumed electric quantity; the invention can improve the efficiency and the safety of transaction.

Description

Power transaction interaction method and device for main side chain double-chain interaction and storage medium
Technical Field
The invention relates to a main side chain double-chain interaction electric power transaction interaction method, a main side chain double-chain interaction electric power transaction interaction device and a main side chain double-chain interaction storage medium, and belongs to the technical field of electric power markets.
Background
At present, the new forms of energy are in the key period of following supplementary power to the main power conversion, and along with the propulsion of clean heating construction process, the flexible adjustable load that electric heating load conduct has timeshiftability has great potentiality in the aspect of promoting the new forms of energy consumption, fully excavates the regulation potentiality of the electric heating load of participating in the new forms of energy consumption, can promote the electric power trade market development, and the new forms of energy are consumed in coordination in the dimension of the configuration of the more ground energy.
An economical and convenient electric power market mechanism is constructed to promote electric power users such as electric heating to participate in an electric power market, the reduction of the electricity utilization cost of the users through market transaction is the demand of the current electric power users, and the consumption of new energy is an important measure for improving the consumption level of the new energy through the transaction with new energy enterprises. At present, an electric power market is mainly in a centralized transaction mode, the price and the electric quantity of the clear electricity are obtained through the centralized bidding and matching, meanwhile, punishment assessment is often carried out on the deviation of the electric quantity used by a user in the transaction process, and the hidden dangers of complex operation, unsafe information and transaction and the like exist.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, provides a main side chain double-chain interaction electric power transaction interaction method, device and storage medium, establishes a main chain and side chain double-chain transaction framework, develops day-ahead transactions between a new energy power plant and electric power users on the main chain, develops day-to-day deviation transactions between the users on the side chain, and can improve the transaction efficiency and safety.
In order to achieve the purpose, the invention is realized by adopting the following technical scheme:
in a first aspect, the present invention provides a method for power transaction with master-side chain double-chain interaction, including:
acquiring transaction declaration information of a new energy power plant and a power consumer and uploading the transaction declaration information to a block chain main chain; the transaction declaration information is market transaction electric quantity and transaction electricity price of each time period in the day;
according to the transaction declaration information, aiming at minimizing the electricity purchasing cost of the power users and maximizing the income of the new energy power plant, calculating the market clear electricity price and clear electricity quantity of each period of time in the day and synchronizing the price and the clear electricity quantity to a side chain;
acquiring the required electric quantity of each time interval in a power consumer day, and subtracting the output clear electric quantity of the corresponding time interval before the day to acquire the electric quantity deviation of the corresponding time interval;
according to the electric quantity deviation of each time interval and a preset deviation assessment threshold value, buyer users and seller users participating in deviation transactions in the corresponding time interval in the day and a quotation strategy are determined;
and calculating deviation transaction results and synchronizing the deviation transaction results to the main chain according to the buyer users, the seller users and the quotation strategy with the aim of minimizing the deviation cost of the consumed electric quantity.
Optionally, the minimizing the electricity purchasing cost of the power consumer and maximizing the revenue of the new energy power plant include:
constructing a power purchasing cost minimization function F of a power consumer 1 And new energy power plant income maximization function F 2
The electricity purchasing cost minimization function F of the power consumer 1 Comprises the following steps:
Figure BDA0003766705070000021
in the formula, C t The method is characterized in that the method comprises the steps of purchasing electricity price from the power grid side for a power consumer in a time period T, wherein T is the time period number,
Figure BDA0003766705070000022
purchasing electric power quantity from the power grid side for the electric power user m in the time period t, N EH For number of power consumers, λ m,n,t The electricity price is purchased from the new energy power plant n for the electricity consumer m in the time period t,
Figure BDA0003766705070000023
purchasing electric quantity g from new energy power plant n for electric power user m in time period t m The loss parameter of the transaction transmission between the power consumer m and the new energy power plant,
Figure BDA0003766705070000024
and (4) the loss cost generated by purchasing electricity from the new energy power plant for the electricity consumer m in the time period t.
New energy power plant income maximization function F 2 Comprises the following steps:
Figure BDA0003766705070000025
in the formula, N PC The number of new energy power plants;
Figure BDA0003766705070000026
for the power generation amount of the new energy power plant n in the time period t,
Figure BDA0003766705070000027
and a, b and d are constants for the power generation cost of the new energy power plant in the n period t.
Optionally, the electricity purchasing cost minimization function F of the power consumer 1 And new energy power plant income maximization function F 2 The following constraints are satisfied:
Figure BDA0003766705070000028
Figure BDA0003766705070000031
Figure BDA0003766705070000032
in the formula (I), the compound is shown in the specification,
Figure BDA0003766705070000033
the maximum power generation amount of the new energy power plant n in the time period t is obtained;
Figure BDA0003766705070000034
purchasing the maximum electric quantity from the power grid side for the electric power user m in the time period t;
Figure BDA0003766705070000035
purchasing the maximum electric quantity of electricity from the new energy power plant n for the electricity consumer m in the time period t;
Figure BDA0003766705070000036
Figure BDA0003766705070000037
in the formula (I), the compound is shown in the specification,
Figure BDA0003766705070000038
the required electric quantity of the electric power user m in the time period t is obtained.
Optionally, the calculating the current price and the current capacity of the market includes:
function F for minimizing electricity purchasing cost of power users based on Lagrange dual decomposition principle 1 Decomposed into minimizing function F of electricity purchasing cost of each power consumer m
Figure BDA0003766705070000039
New energy power plant income maximization function F based on Lagrange dual decomposition principle 2 Decomposing into a yield maximization function F of each new energy power plant n
Figure BDA00037667050700000310
In the formula eta t Lagrange multipliers for time period t;
power purchase cost minimization function F for simultaneous power consumers based on secondary gradient method m Income maximization function F of new energy power plant n Obtaining a power purchase price model of the power consumer and the new energy power plant:
Figure BDA0003766705070000041
wherein k is the iteration times of Lagrange multipliers, and alpha is a step length coefficient of gradient descent;
according to power consumers and new energyThe power purchase price model of the source power plant carries out iterative solution until the power purchase price converges, and the final power purchase price lambda is output m,n,t And the electricity purchasing quantity
Figure BDA0003766705070000042
The power purchase price convergence meets the following requirements:
m,n,t [k+1]-λ m,n,t [k]|≤ε
in the formula, epsilon is a preset convergence parameter;
the final electricity purchasing price lambda m,n,t And the electricity purchasing quantity
Figure BDA0003766705070000043
As the price and quantity of the outgoing clear electricity in the market at the day-ahead.
Optionally, the determining buyer users and seller users participating in the deviation transaction at the corresponding time period within the day and the quotation strategy includes:
the electric quantity deviation of the electric power consumer m in the time period t is as follows:
Δp m,t =p m,pre,t -p m,buy,t
in the formula, p m,pre,t 、p m,pre,t Respectively the demand electric quantity and the output electric quantity before the day of the time period t of the electric power user m;
the preset deviation checking threshold value comprises a positive deviation threshold value delta p p,m,t And a negative deviation threshold Δ p q,m,t
If Δ p m,t >Δp p,m,t If the electricity consumer m is the buyer user in the time period t, the price quotation policy of the electricity consumer m is as follows:
ρ m,idbuy,t =λ m,idb u y,t p a,m,tm,idbuy,t
ρ m,idbuy,t <ρ m,pdev,t
in the formula, ρ m,idbuy,t 、p a,m,t 、ρ m,pdev,t Purchasing electricity price for electricity consumers m in the day of the time period t and purchasing electricity quantity in the dayThe penalty cost of deviation; mu.s m,idbuy,t Is a constant;
if Δ p m,t <Δp q,m,t Then, the electricity consumer m is the seller user in the time period t, and the price quotation policy of the electricity consumer m is as follows:
ρ m,idsell,t =λ m,idsell,t p b,m,tm,idsell,t
ρ m,idsell,t <ρ m,qdev,t
in the formula, ρ m,idsell,t 、p b,m,t 、ρ m,qdev,t Selling electricity in a day, quoting electricity in a day, selling electricity in a day, and punishing a fee for the electric power user m in a time period t; mu.s m,idsell,t Is a constant.
Optionally, the calculating the deviation transaction result includes:
based on the VCG auction rule, sequentially ordering the electricity selling offers of the seller users from low to high in the day of the time period t to generate a clearing queue;
and performing bid clearing according to the clearing queue until the demands are met:
Figure BDA0003766705070000051
Figure BDA0003766705070000052
wherein I and J are the numbers of buyer users and seller users, p a,i,t For the buyer i to purchase electricity during the day of time t b,j,t
Figure BDA0003766705070000053
Selling electricity quantity and maximum electricity selling electricity quantity for a seller user j in the day of the time period t;
and acquiring the winning bid income of the seller users who successfully bid and settle, and calculating the final transaction price:
Figure BDA0003766705070000054
in the formula, V j,t For seller user j, the winning bid amount, omega, during time period t t A transaction price for time period t;
constructing an objective function with a minimum cost for the buyer user and the seller user to consume the demand deviation electricity quantity:
Figure BDA0003766705070000055
calculating and obtaining the electricity purchasing quantity p of the buyer user i in the day of the time period t based on the minimization construction objective function a,i,t Selling electricity quantity p of seller users j in time period t b,j,t And a transaction price ω at time period t t
In a second aspect, the present invention provides an electric power transaction interaction device for main-side chain double-chain interaction, including:
the reporting module is used for acquiring transaction reporting information of the new energy power plant and the power consumer and uploading the transaction reporting information to the block chain main chain; the transaction declaration information is the market transaction electric quantity and the transaction electricity price of each time period in the day
The clearing module is used for calculating the market clearing price and the clearing quantity of electricity in each period of time in the day and synchronizing the price and the clearing quantity to a side chain according to the transaction declaration information by taking the minimization of the electricity purchasing cost of the power users and the maximization of the income of the new energy power plant as targets;
the deviation module is used for acquiring the required electric quantity of each time interval in the day of the power consumer and subtracting the output clear electric quantity of the corresponding time interval in the day ahead to acquire the electric quantity deviation of the corresponding time interval;
the evaluation module is used for acquiring buyer users, seller users and quotation strategies participating in deviation transactions at corresponding time intervals in the day according to the electric quantity deviation of each time interval and a preset deviation evaluation threshold;
and the transaction module is used for calculating a deviation transaction result and synchronizing the deviation transaction result to the main chain according to the buyer user, the seller user and the quotation strategy with the aim of minimizing the deviation cost of the electric quantity.
Optionally, the objective of minimizing the electricity purchasing cost of the power consumer and maximizing the income of the new energy power plant includes:
constructing a power purchasing cost minimization function F of a power consumer 1 And new energy power plant income maximization function F 2
The electricity purchasing cost minimization function F of the power consumer 1 Comprises the following steps:
Figure BDA0003766705070000061
in the formula, C t The method is characterized in that the method comprises the steps of purchasing electricity price from the power grid side for a power consumer in a time period T, wherein T is the time period number,
Figure BDA0003766705070000062
purchasing electric power quantity from the power grid side for the electric power user m in the time period t, N EH For number of power consumers, λ m,n,t The electricity price is purchased from the new energy power plant n for the electricity consumer m in the time period t,
Figure BDA0003766705070000063
purchasing electric quantity g from new energy power plant n for electric power user m in time period t m The loss parameter of the transaction transmission between the power consumer m and the new energy power plant,
Figure BDA0003766705070000064
and (4) the loss cost generated by purchasing electricity from the new energy power plant for the electricity consumer m in the time period t.
The new energy power plant income maximization function F 2 Comprises the following steps:
Figure BDA0003766705070000065
in the formula, N PC The number of new energy power plants;
Figure BDA0003766705070000066
for the power generation amount of the new energy power plant n in the time period t,
Figure BDA0003766705070000067
and a, b and d are constants for the power generation cost of the new energy power plant in the period n and t.
Optionally, the power purchasing cost minimization function F of the power consumer 1 And new energy power plant income maximization function F 2 The following constraints are satisfied:
Figure BDA0003766705070000068
Figure BDA0003766705070000071
Figure BDA0003766705070000072
in the formula (I), the compound is shown in the specification,
Figure BDA0003766705070000073
the maximum power generation amount of the new energy power plant n in the time period t is obtained;
Figure BDA0003766705070000074
purchasing the maximum electric quantity of electricity from the power grid side for the electricity consumer m in a time period t;
Figure BDA0003766705070000075
purchasing the maximum electric quantity of electricity from the new energy power plant n for the electricity consumer m in the time period t;
Figure BDA0003766705070000076
Figure BDA0003766705070000077
in the formula (I), the compound is shown in the specification,
Figure BDA0003766705070000078
the required electric quantity of the electric power user m in the time period t is obtained.
Optionally, the calculating the current price and the current capacity of the market includes:
function F for minimizing electricity purchasing cost of power user based on Lagrange dual decomposition principle 1 Decomposed into minimizing function F of electricity purchasing cost of each power consumer m
Figure BDA0003766705070000079
New energy power plant income maximization function F based on Lagrange dual decomposition principle 2 Decomposing into a yield maximization function F of each new energy power plant n
Figure BDA00037667050700000710
In the formula eta t Lagrange multipliers for time period t;
power purchase cost minimization function F for simultaneous power consumers based on secondary gradient method m Income maximization function F of new energy power plant n Obtaining a power purchase price model of the power consumer and the new energy power plant:
Figure BDA0003766705070000081
in the formula, k is the iteration number of a Lagrange multiplier, and alpha is a step length coefficient of gradient descent;
performing iterative solution according to the electricity purchasing price models of the power consumers and the new energy power plant until the electricity purchasing price converges, and outputting the final electricity purchasing price lambda m,n,t And the electricity purchasing quantity
Figure BDA0003766705070000082
The convergence of the electricity purchase price satisfies the following conditions:
m,n,t [k+1]-λ m,n,t [k]|≤ε
in the formula, epsilon is a preset convergence parameter;
the final electricity purchasing price lambda m,n,t And the electricity purchasing quantity
Figure BDA0003766705070000083
As the price and quantity of the outgoing clear electricity in the market at the day-ahead.
Optionally, the determining buyer users and seller users participating in the deviation transaction at the corresponding time period within the day and the quotation strategy includes:
the electric quantity deviation of the electric power consumer m in the time period t is as follows:
Δp m,t =p m,pre,t -p m,buy,t
in the formula, p m,pre,t 、p m,pre,t Respectively the demand electric quantity and the output electric quantity before the day of the time period t of the electric power user m;
the preset deviation checking threshold comprises a positive deviation threshold delta p p,m,t And a negative deviation threshold Δ p q,m,t
If Δ p m,t >Δp p,m,t Then, the electricity consumer m is the buyer user in the time period t, and the price quotation policy of the electricity consumer m is as follows:
ρ m,idbuy,t =λ m,idbuy,t p a,m,tm,idbuy,t
ρ m,idbuy,t <ρ m,pdev,t
in the formula, ρ m,idbuy,t 、p a,m,t 、ρ m,pdev,t Electricity purchasing price, electricity purchasing quantity in the day and deviation punishment cost for the electricity user m in the day of the time period t; mu.s m,idbuy,t Is a constant;
if Δ p m,t <Δp q,m,t Then, the electricity consumer m is the seller user in the time period t, and the price quotation policy of the electricity consumer m is as follows:
ρ m,idsell,t =λ m,idsell,t p b,m,tm,idsell,t
ρ m,idsell,t <ρ m,qdev,t
in the formula, ρ m,idsell,t 、p b,m,t 、ρ m,qdev,t Selling electricity in a day, quoting electricity in a day, selling electricity in a day, and punishing a fee for the electric power user m in a time period t; mu.s m,idsell,t Is a constant.
Optionally, the calculating the deviation transaction result includes:
based on VCG auction rules, sequentially ordering the electricity selling quotes from low to high in the day of the time period t by the seller user to generate a clearing queue;
and performing bid clearing according to the clearing queue until the demands are met:
Figure BDA0003766705070000091
Figure BDA0003766705070000092
wherein I and J are the numbers of buyer users and seller users, p a,i,t For the buyer i to purchase electricity during the day of time t b,j,t
Figure BDA0003766705070000093
Selling electricity quantity and maximum electricity selling electricity quantity for a seller user j within a day of a time period t;
and acquiring the winning bid income of the seller users who successfully bid and settle, and calculating the final transaction price:
Figure BDA0003766705070000094
in the formula, V j,t For seller user j to win in time period t, ω t A transaction price for time period t;
constructing an objective function with the minimization of the cost of the buyer user and the seller user for the consumption of the demand deviation electricity quantity:
Figure BDA0003766705070000095
calculating and obtaining the electricity purchasing quantity p of the buyer user i in the day of the time period t based on the minimization construction objective function a,i,t Selling electricity quantity p of seller users j in time period t b,j,t And a transaction price omega at a time period t t
In a third aspect, the invention provides an electric power transaction interaction device for main side chain double-chain interaction, which comprises a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps according to the above-described method.
In a fourth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method.
Compared with the prior art, the invention has the following beneficial effects:
according to the main-side chain double-chain interaction electric power transaction interaction method, device and storage medium, the day-ahead transaction of a new energy power plant and an electric power user is carried out on the main chain, the electric power user electricity purchasing cost is minimized and the new energy power plant income is maximized, the electric power user electricity purchasing cost is reduced, and the new energy power plant income is improved; the intra-day deviation transaction among the power users is developed on the side chain, the power users can purchase or sell electricity according to the daily electricity utilization condition, and deviation assessment caused by adjustment of the electricity utilization plan is avoided; the data interaction problem is solved through the main chain and the side chain synchronously, so that the situation that the same chain bears different services is avoided, the processing efficiency is reduced, and the transaction efficiency is improved; meanwhile, the transaction safety can be improved based on the block chain interaction.
Drawings
Fig. 1 is a flowchart of an electric power transaction method for master-side chain double-chain interaction according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a prior transaction scenario of a master-side double-chain interaction according to an embodiment of the present invention;
fig. 3 is a schematic diagram of bid winning power in deviation trading of electric heating users according to an embodiment of the present invention;
fig. 4 is a schematic diagram of the prices of the day-ahead transaction and the day-in transaction provided by the embodiment of the invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
The first embodiment is as follows:
as shown in fig. 1, an embodiment of the present invention provides a method for exchanging power by master-side chain double-chain interaction, including the following steps:
1. acquiring transaction declaration information of a new energy power plant and a power consumer and uploading the transaction declaration information to a block chain main chain; the transaction declaration information is the market transaction electric quantity and the transaction electricity price of each time period in the day.
The time period is usually set to 15min, and one day is divided into 96 time periods.
The privacy data in the transaction declaration information can be encrypted by adopting a symmetric cryptographic algorithm, the hash value of the encrypted privacy data is calculated, and the encrypted transaction declaration information is packaged and uploaded to the block chain main chain.
2. According to the transaction declaration information, aiming at minimizing the electricity purchasing cost of the power users and maximizing the income of the new energy power plant, calculating the market clear electricity price and clear electricity quantity of each period of time in the day and synchronizing the price and the clear electricity quantity to a side chain;
2.1, constructing a power purchasing cost minimization function F of the power consumer 1 And new energy power plant income maximization function F 2
Minimizing function F for electricity purchasing cost of power consumer 1 Comprises the following steps:
Figure BDA0003766705070000111
in the formula, C t The method is characterized in that the method comprises the steps of purchasing electricity price from the power grid side for a power consumer in a time period T, wherein T is the time period number,
Figure BDA0003766705070000112
purchasing electric quantity from the power grid side for the electric power user m in the time period t, N EH For the number of power consumers, λ m,n,t The electricity price is purchased from the new energy power plant n for the electricity consumer m in the time period t,
Figure BDA0003766705070000113
purchasing electric quantity g from new energy power plant n for electric power user m in time period t m The loss parameter of the transaction transmission between the power consumer m and the new energy power plant,
Figure BDA0003766705070000114
and (4) the loss cost generated by purchasing electricity from the new energy power plant for the electricity consumer m in the time period t.
2.2 New energy Power plant income maximization function F 2 Comprises the following steps:
Figure BDA0003766705070000115
in the formula, N PC The number of new energy power plants;
Figure BDA0003766705070000116
for the power generation amount of the new energy power plant n in the time period t,
Figure BDA0003766705070000117
and a, b and d are constants for the power generation cost of the new energy power plant in the n period t.
2.3 minimizing function F of electricity purchasing cost of power consumer 1 And new energy power plant income maximization function F 2 The following constraints are satisfied:
Figure BDA0003766705070000118
Figure BDA0003766705070000119
Figure BDA00037667050700001110
in the formula (I), the compound is shown in the specification,
Figure BDA00037667050700001111
the maximum power generation amount of the new energy power plant n in the time period t is obtained;
Figure BDA00037667050700001112
purchasing the maximum electric quantity from the power grid side for the electric power user m in the time period t;
Figure BDA00037667050700001113
purchasing the maximum electric quantity of electricity from the new energy power plant n for the electricity user m in the time t;
Figure BDA00037667050700001114
Figure BDA0003766705070000121
in the formula (I), the compound is shown in the specification,
Figure BDA0003766705070000122
the required electric quantity of the electric power user m in the time period t.
2.4, calculating the current price and the current capacity of the market in the day-ahead comprises the following steps:
2.4.1 minimizing function F of power purchasing cost of power users based on Lagrange dual decomposition principle 1 Decomposed into minimizing function F of electricity purchasing cost of each power consumer m
Figure BDA0003766705070000123
2.4.2 maximizing function F of new energy power plant based on Lagrange dual decomposition principle 2 Is decomposed intoIncome maximization function F of each new energy power plant n
Figure BDA0003766705070000124
In the formula eta t A lagrange multiplier for time period t;
2.4.3 minimizing function F for simultaneous power consumer electricity purchasing cost based on secondary gradient method m Income maximization function F of new energy power plant n Obtaining a power purchase price model of the power consumer and the new energy power plant:
Figure BDA0003766705070000125
in the formula, k is the iteration number of a Lagrange multiplier, and alpha is a step length coefficient of gradient descent;
2.4.4, performing iterative solution according to the electricity purchasing price models of the power users and the new energy power plant until the electricity purchasing price converges, and outputting the final electricity purchasing price lambda m,n,t And the electricity purchasing quantity
Figure BDA0003766705070000126
The power purchase price convergence meets the following requirements:
m,n,t [k+1]-λ m,n,t [k]|≤ε
in the formula, epsilon is a preset convergence parameter;
2.4.5, the final electricity price lambda of purchasing electricity m,n,t And the electricity purchasing quantity
Figure BDA0003766705070000127
As the price and quantity of the outgoing clear electricity in the market at the day-ahead.
3. And acquiring the required electric quantity of each time interval in the day of the power consumer, and subtracting the output clear electric quantity of the corresponding time interval in the day ahead to acquire the electric quantity deviation of the corresponding time interval.
4. According to the electric quantity deviation of each time interval and a preset deviation assessment threshold value, buyer users, seller users and quotation strategies participating in deviation transactions at corresponding time intervals in the day are determined; the method specifically comprises the following steps:
4.1, the electric quantity deviation of the electric power user m in the time period t is as follows:
Δp m,t =p m,pre,t -p m,buy,t
in the formula, p m,pre,t 、p m,pre,t Respectively the demand electric quantity and the output electric quantity before the day of the time period t of the electric power user m;
4.2, the preset deviation checking threshold comprises a positive deviation threshold delta p p,m,t And a negative deviation threshold Δ p q,m,t
4.3, if Δ p m,t >Δp p,m,t If the electricity consumer m is the buyer user in the time period t, the price quotation policy of the electricity consumer m is as follows:
ρ m,idbuy,t =λ m,idbuy,t p a,m,tm,idbuy,t
ρ m,idbuy,t <ρ m,pdev,t
in the formula, ρ m,idbuy,t 、p a,m,t 、ρ m,pdev,t Electricity purchasing price, electricity purchasing quantity in the day and deviation punishment cost for the electricity user m in the day of the time period t; mu.s m,idbuy,t Is a constant;
4.4, if Δ p m,t <Δp q,m,t Then, the electricity consumer m is the seller user in the time period t, and the price quotation policy of the electricity consumer m is as follows:
ρ m,idsell,t =λ m,idsell,t p b,m,tm,idsell,t
ρ m,idsell,t <ρ m,qdev,t
in the formula, ρ m,idsell,t 、p b,m,t 、ρ m,qdev,t Electricity selling quotations, electricity selling quantity in days and deviation punishment cost for the electricity consumers m in the time period t; mu.s m,idsell,t Is a constant.
5. And calculating deviation transaction results and synchronizing the deviation transaction results to the main chain according to the buyer users, the seller users and the quotation strategy with the aim of minimizing the deviation cost of the consumed electric quantity.
The process of calculating the biased transaction result includes:
5.1, sequentially ordering according to the electricity selling quotations of the seller users in the day of the time period t from low to high based on the VCG auction rule to generate a clearing queue;
5.2, performing bidding clearing according to the clearing queue until the following conditions are met:
Figure BDA0003766705070000141
Figure BDA0003766705070000142
wherein I and J are the numbers of buyer users and seller users, p a,i,t For the buyer i to purchase electricity during the day of time t b,j,t
Figure BDA0003766705070000143
Selling electricity quantity and maximum electricity selling electricity quantity for a seller user j in the day of the time period t;
and 5.3, acquiring the winning revenue of the seller users who successfully bid and settle, and calculating the final transaction price:
Figure BDA0003766705070000144
in the formula, V j,t For seller user j, the winning bid amount, omega, during time period t t A transaction price for time period t;
5.4, constructing an objective function with the minimum cost of the buyer users and the seller users for consuming the demand deviation electric quantity:
Figure BDA0003766705070000145
5.5, calculating and obtaining the electricity purchasing quantity p of the buyer user i in the day of the time period t based on the minimization construction objective function a,i,t Selling electricity quantity p of seller users j in time period t b,j,t And a transaction price ω at time period t t
In order to verify the method, a system is constructed, which comprises 2 wind power stations, 3 photovoltaic stations, 2 energy storage users, 3 gas turbine users, 2 electric heating users and 5 conventional load users. All resources participate in day-ahead transactions through a main chain, and electric heating users and normal load users participate in day deviation transactions through side chains.
And setting two scenes of S1 and S2 for comparative analysis, wherein S1 is to carry out deviation transaction among users at a side chain, and S2 is not to carry out the deviation transaction of the side chain users.
The trading results for both scenarios are shown in the table below.
TABLE 1 different scenarios of transaction results
Scene Transaction costs (Yuan) Consumption rate of New energy (%)
S1 3859967.90 100.00
S2 4029300.83 93.47
Therefore, by carrying out deviation transaction on the side chain, the influence caused by electric quantity prediction deviation is effectively reduced, the electric quantity which is handed over with new energy in the future is executed in the day, the consumption of the new energy is promoted, deviation assessment is avoided, and the transaction cost is reduced.
The day-ahead trading of various types of resources is shown in FIG. 2 below. WT denotes wind power, PV denotes photovoltaic, ES denotes stored energy, QGE denotes gas turbine, and DL denotes electric heating.
The daily transaction situation of the electric heating user is as shown in fig. 3. Positive values indicate purchased electric power and negative values indicate sold electric power. Due to the adjustable characteristic of the electric heating, the power can be flexibly adjusted, the purchasing and selling behaviors are changed, and the electric heating system is beneficial to helping a conventional load user avoid transaction deviation caused by load fluctuation.
The transaction prices before and during the day are shown in fig. 4 below. Price changes for transactions within a day float more than day ahead. Compared with the price of the daily transaction, the price of the daily transaction is higher or lower, the attribute of the electric power as a commodity is more obvious in a shorter transaction period, the trend of the price is determined by supply and demand, and the time period that the daily price is higher than the daily price is basically consistent with the electricity selling time period of an electric heating user according to the daily transaction situation by combining ultra-short-term load prediction, namely the electricity consumption of the conventional load user is increased, the demand is increased, and the electricity price is raised in the time period.
Example two:
the embodiment of the invention provides an electric power transaction interaction device with main side chain double-chain interaction, which comprises:
the reporting module is used for acquiring transaction reporting information of the new energy power plant and the power consumer and uploading the transaction reporting information to the block chain main chain; the transaction declaration information is the market transaction electricity quantity and the transaction electricity price of each day-ahead time period
The clearing module is used for calculating the market clearing price and the clearing quantity of electricity in each period of time in the day and synchronizing the price and the clearing quantity to a side chain according to the transaction declaration information by taking the minimization of the electricity purchasing cost of the power users and the maximization of the income of the new energy power plant as targets;
the deviation module is used for acquiring the required electric quantity of each time interval in the day of the power consumer and subtracting the output clear electric quantity of the corresponding time interval before the day to acquire the electric quantity deviation of the corresponding time interval;
the evaluation module is used for acquiring buyer users, seller users and quotation strategies participating in deviation transactions at corresponding time intervals in the day according to the electric quantity deviation of each time interval and a preset deviation evaluation threshold;
and the transaction module is used for calculating a deviation transaction result and synchronizing the deviation transaction result to the main chain according to the buyer user, the seller user and the quotation strategy with the aim of minimizing the deviation cost of the electric quantity.
Specifically, the goals of minimizing the electricity purchasing cost of power consumers and maximizing the income of a new energy power plant comprise:
constructing a power purchasing cost minimization function F of a power consumer 1 And new energy power plant income maximization function F 2
Minimizing function F for electricity purchasing cost of power consumer 1 Comprises the following steps:
Figure BDA0003766705070000161
in the formula, C t The method is characterized in that the method comprises the steps of purchasing electricity price from the power grid side for a power consumer in a time period T, wherein the time period T is the number of time periods,
Figure BDA0003766705070000162
purchasing electric quantity from the power grid side for the electric power user m in the time period t, N EH For number of power consumers, λ m,n,t The electricity price is purchased from the new energy power plant n for the electricity consumer m in the time period t,
Figure BDA0003766705070000163
purchasing electric quantity g from new energy power plant n for electric power user m in time period t m The loss parameter of the transaction transmission between the power consumer m and the new energy power plant,
Figure BDA0003766705070000164
and (4) the loss cost generated by purchasing electricity from the new energy power plant for the electricity consumer m in the time period t.
New energy power plant income maximization function F 2 Comprises the following steps:
Figure BDA0003766705070000165
in the formula, N PC The number of new energy power plants;
Figure BDA0003766705070000166
for the power generation amount of the new energy power plant n in the time period t,
Figure BDA0003766705070000167
and a, b and d are constants for the power generation cost of the new energy power plant in the period n and t.
Specifically, the electricity purchasing cost minimization function F of the power consumer 1 And new energy power plant income maximization function F 2 The following constraints are satisfied:
Figure BDA0003766705070000168
Figure BDA0003766705070000169
Figure BDA00037667050700001610
in the formula (I), the compound is shown in the specification,
Figure BDA00037667050700001611
the maximum power generation amount of the new energy power plant n in the time period t is obtained;
Figure BDA00037667050700001612
purchasing the maximum electric quantity of electricity from the power grid side for the electricity consumer m in a time period t;
Figure BDA00037667050700001613
purchasing the maximum electric quantity of electricity from the new energy power plant n for the electricity consumer m in the time period t;
Figure BDA0003766705070000171
Figure BDA0003766705070000172
in the formula (I), the compound is shown in the specification,
Figure BDA0003766705070000173
the required electric quantity of the electric power user m in the time period t is obtained.
Specifically, calculating the current price and current capacity of the market in the future includes:
function F for minimizing electricity purchasing cost of power user based on Lagrange dual decomposition principle 1 Decomposed into minimizing function F of electricity purchasing cost of each power consumer m
Figure BDA0003766705070000174
New energy power plant income maximization function F based on Lagrange dual decomposition principle 2 Decomposing into income maximization function F of each new energy power plant n
Figure BDA0003766705070000175
In the formula eta t Lagrange multipliers for time period t;
power purchase cost minimization function F for simultaneous power consumers based on secondary gradient method m Income maximization function F of new energy power plant n Obtaining a power purchase price model of the power consumer and the new energy power plant:
Figure BDA0003766705070000176
in the formula, k is the iteration number of a Lagrange multiplier, and alpha is a step length coefficient of gradient descent;
iterative solution is carried out according to the electricity purchasing price model of the power consumer and the new energy power plantOutputting the final electricity purchasing price lambda until the electricity purchasing price converges m,n,t And the electricity purchasing quantity
Figure BDA0003766705070000177
The power purchase price convergence meets the following requirements:
m,n,t [k+1]-λ m,n,t [k]|≤ε
in the formula, epsilon is a preset convergence parameter;
the final electricity purchasing price lambda m,n,t And the electricity purchasing quantity
Figure BDA0003766705070000181
As the daily market discharge price and discharge capacity.
Specifically, determining buyer users and seller users and quotation strategies for participating in the deviation transaction at corresponding time intervals in the day includes:
the electric quantity deviation of the electric power consumer m in the time period t is as follows:
Δp m,t =p m,pre,t -p m,buy,t
in the formula, p m,pre,t 、p m,pre,t Respectively the demand electric quantity and the output electric quantity before the day of the time period t of the electric power user m;
the preset deviation checking threshold value comprises a positive deviation threshold value delta p p,m,t And a negative deviation threshold Δ p q,m,t
If Δ p m,t >Δp p,m,t If the electricity consumer m is the buyer user in the time period t, the price quotation policy of the electricity consumer m is as follows:
ρ m,idbuy,t =λ m,idbuy,t p a,m,tm,idbuy,t
ρ m,idbuy,t <ρ m,pdev,t
in the formula, ρ m,idbuy,t 、p a,m,t 、ρ m,pdev,t Purchasing electricity price, purchasing electricity quantity and deviation punishment cost for the electricity users m in the days of the time period t; mu.s m,idbuy,t Is a constant;
if Δ p m,t <Δp q,m,t Then, the electricity consumer m is the seller user in the time period t, and the price quotation policy of the electricity consumer m is as follows:
ρ m,idsell,t =λ m,idsell,t p b,m,tm,idsell,t
ρ m,idsell,t <ρ m,qdev,t
in the formula, ρ m,idsell,t 、p b,m,t 、ρ m,qdev,t Electricity selling quotations, electricity selling quantity in days and deviation punishment cost for the electricity consumers m in the time period t; mu.s m,idsell,t Is a constant.
Specifically, calculating the deviation transaction result includes:
based on the VCG auction rule, sequentially ordering the electricity selling offers of the seller users from low to high in the day of the time period t to generate a clearing queue;
and bidding and clearing are carried out according to the clearing queue until the conditions are met:
Figure BDA0003766705070000191
Figure BDA0003766705070000192
wherein I and J are the numbers of buyer users and seller users, p a,i,t For the buyer i to purchase electricity during the day of time t b,j,t
Figure BDA0003766705070000193
Selling electricity quantity and maximum electricity selling electricity quantity for a seller user j in the day of the time period t;
and acquiring the winning bid income of the seller users who successfully bid and settle, and calculating the final transaction price:
Figure BDA0003766705070000194
in the formula, V j,t For seller user j, the winning bid amount, omega, during time period t t A transaction price for time period t;
constructing an objective function with a minimum cost for the buyer user and the seller user to consume the demand deviation electricity quantity:
Figure BDA0003766705070000195
calculating and obtaining the electricity purchasing quantity p of the buyer user i in the day of the time period t based on the minimization construction objective function a,i,t Selling electricity quantity p of seller users j in day of time period t b,j,t And a transaction price ω at time period t t
Example three:
based on the first embodiment, the embodiment of the invention provides a main side chain double-chain interaction electric power transaction interaction device, which comprises a processor and a storage medium, wherein the processor is used for processing the main side chain double-chain interaction electric power transaction;
a storage medium to store instructions;
the processor is configured to operate in accordance with instructions to perform steps in accordance with the above-described method.
Example four:
according to a first embodiment, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, it is possible to make various improvements and modifications without departing from the technical principle of the present invention, and those improvements and modifications should be considered as the protection scope of the present invention.

Claims (14)

1. A main side chain double-chain interaction electric power transaction method is characterized by comprising the following steps:
acquiring transaction declaration information of a new energy power plant and a power consumer and uploading the transaction declaration information to a block chain main chain; the transaction declaration information is market transaction electric quantity and transaction electricity price of each time period in the day;
according to the transaction declaration information, aiming at minimizing the electricity purchasing cost of a power user and maximizing the income of a new energy power plant, calculating the market clearing price and the clearing quantity of electricity at each period of time in the day and synchronizing the price and the clearing quantity to a side chain;
acquiring the required electric quantity of each time interval in a power consumer day, and subtracting the output clear electric quantity of the corresponding time interval before the day to acquire the electric quantity deviation of the corresponding time interval;
according to the electric quantity deviation of each time interval and a preset deviation assessment threshold value, buyer users, seller users and quotation strategies participating in deviation transactions at corresponding time intervals in the day are determined;
and calculating deviation transaction results and synchronizing the deviation transaction results to the main chain according to the buyer users, the seller users and the quotation strategy with the aim of minimizing the deviation cost of the consumed electric quantity.
2. The main-side chain double-chain interaction power transaction interaction method according to claim 1, wherein the aiming at minimizing the electricity purchasing cost of power consumers and maximizing the income of new energy plants comprises:
constructing a power purchasing cost minimization function F of a power consumer 1 And new energy power plant income maximization function F 2
The electricity purchasing cost minimization function F of the power consumer 1 Comprises the following steps:
Figure FDA0003766705060000011
in the formula, C t The method is characterized in that the method comprises the steps of purchasing electricity price from the power grid side for a power consumer in a time period T, wherein T is the time period number,
Figure FDA0003766705060000012
purchasing electric quantity from the power grid side for the electric power user m in the time period t, N EH For the number of power consumers, λ m,n,t The electricity price is purchased from the new energy power plant n for the electricity consumer m in the time period t,
Figure FDA0003766705060000013
purchasing electric quantity g from new energy power plant n for electric power user m in time period t m The loss parameter of the transaction transmission between the power consumer m and the new energy power plant,
Figure FDA0003766705060000014
and (4) the loss cost generated by purchasing electricity from the new energy power plant for the electricity consumer m in the time period t.
New energy power plant income maximization function F 2 Comprises the following steps:
Figure FDA0003766705060000015
in the formula, N PC The number of new energy power plants;
Figure FDA0003766705060000021
for the power generation amount of the new energy power plant n in the time period t,
Figure FDA0003766705060000022
and a, b and d are constants for the power generation cost of the new energy power plant in the n period t.
3. The power transaction interaction method based on master-side chain double-chain interaction as claimed in claim 2, wherein the power consumer purchase cost minimization function F is 1 And new energy power plant income maximization function F 2 The following constraints are satisfied:
Figure FDA0003766705060000023
Figure FDA0003766705060000024
Figure FDA0003766705060000025
in the formula (I), the compound is shown in the specification,
Figure FDA0003766705060000026
the maximum power generation amount of the new energy power plant n in the time period t is obtained;
Figure FDA0003766705060000027
purchasing the maximum electric quantity of electricity from the power grid side for the electricity consumer m in a time period t;
Figure FDA0003766705060000028
purchasing the maximum electric quantity of electricity from the new energy power plant n for the electricity consumer m in the time period t;
Figure FDA0003766705060000029
Figure FDA00037667050600000210
in the formula (I), the compound is shown in the specification,
Figure FDA00037667050600000211
the required electric quantity of the electric power user m in the time period t is obtained.
4. The method of claim 2, wherein the calculating of the day-ahead market out-of-the-day electricity price and the out-of-the-day electricity quantity comprises:
function F for minimizing electricity purchasing cost of power user based on Lagrange dual decomposition principle 1 Decomposed into minimizing function F of electricity purchasing cost of each power consumer m
Figure FDA00037667050600000212
New energy power plant income maximization function F based on Lagrange dual decomposition principle 2 Decomposing into a yield maximization function F of each new energy power plant n
Figure FDA0003766705060000031
In the formula eta t Lagrange multipliers for time period t;
minimizing function F for simultaneous power consumer electricity purchasing cost based on secondary gradient method m Income maximization function F of new energy power plant n Obtaining a power purchase price model of the power consumer and the new energy power plant:
Figure FDA0003766705060000032
wherein k is the iteration times of Lagrange multipliers, and alpha is a step length coefficient of gradient descent;
performing iterative solution according to the electricity purchasing price models of the power consumers and the new energy power plant until the electricity purchasing price converges, and outputting the final electricity purchasing price lambda m,n,t And the electricity purchasing quantity
Figure FDA0003766705060000033
The power purchase price convergence meets the following requirements:
m,n,t [k+1]-λ m,n,t [k]|≤ε
in the formula, epsilon is a preset convergence parameter;
the final electricity purchasing price lambda m,n,t And the electricity purchasing quantity
Figure FDA0003766705060000034
As the price and quantity of the outgoing clear electricity in the market at the day-ahead.
5. The method of claim 1, wherein the determining buyer users and seller users and quotation strategies for participating in the biased transaction at corresponding time intervals within a day comprises:
the electric quantity deviation of the electric power consumer m in the time period t is as follows:
Δp m,t =p m,pre,t -p m,buy,t
in the formula, p m,pre,t 、p m,pre,t Respectively the electricity demand and the current clear electricity of the power consumer m in the day of the time period t;
the preset deviation checking threshold value comprises a positive deviation threshold value delta p p,m,t And a negative deviation threshold Δ p q,m,t
If Δ p m,t >Δp p,m,t Then, the electricity consumer m is the buyer user in the time period t, and the price quotation policy of the electricity consumer m is as follows:
ρ m,idbuy,t =λ m,idbuy,t p a,m,tm,idbuy,t
ρ m,idbuy,tm,pdev,t
in the formula, ρ m,idbuy,t 、p a,m,t 、ρ m,pdev,t Electricity purchasing price, electricity purchasing quantity in the day and deviation punishment cost for the electricity user m in the day of the time period t; mu.s m,idbuy,t Is a constant;
if Δ p m,t <Δp q,m,t Then, the electricity consumer m is the seller user in the time period t, and the offer policy of the electricity consumer m is:
ρ m,idsell,t =λ m,idsell,t p b,m,tm,idsell,t
ρ m,idsell,tm,qdev,t
in the formula, ρ m,idsell,t 、p b,m,t 、ρ m,qdev,t Electricity selling quotations, electricity selling quantity in days and deviation punishment cost for the electricity consumers m in the time period t; mu.s m,idsell,t Is a constant.
6. The method of claim 5, wherein the calculating the deviation transaction result comprises:
based on VCG auction rules, sequentially ordering the electricity selling quotes from low to high in the day of the time period t by the seller user to generate a clearing queue;
and bidding and clearing are carried out according to the clearing queue until the conditions are met:
Figure FDA0003766705060000041
Figure FDA0003766705060000042
wherein I and J are the numbers of buyer users and seller users, p a,i,t For the buyer i to purchase electricity during the day of time t b,j,t
Figure FDA0003766705060000043
Selling electricity quantity and maximum electricity selling electricity quantity for a seller user j in the day of the time period t;
and acquiring the winning bid income of the seller users who successfully bid and settle, and calculating the final transaction price:
Figure FDA0003766705060000044
in the formula, V j,t For seller user j, the winning bid amount, omega, during time period t t A transaction price for time period t;
constructing an objective function with the minimization of the cost of the buyer user and the seller user for the consumption of the demand deviation electricity quantity:
Figure FDA0003766705060000045
calculating and obtaining the electricity purchasing quantity p of the buyer user i in the day of the time period t based on the minimization construction objective function a,i,t Selling electricity quantity p of seller users j in time period t b,j,t And a transaction price omega at a time period t t
7. A master-side chain double-chain interaction power transaction interaction device, comprising:
the reporting module is used for acquiring transaction reporting information of the new energy power plant and the power consumer and uploading the transaction reporting information to the block chain main chain; the transaction declaration information is market transaction electric quantity and transaction electricity price of each time period in the day
The clearing module is used for calculating the market clearing price and the clearing quantity of electricity in each period of time in the day and synchronizing the price and the clearing quantity to a side chain according to the transaction declaration information by taking the minimization of the electricity purchasing cost of the power users and the maximization of the income of the new energy power plant as targets;
the deviation module is used for acquiring the required electric quantity of each time interval in the day of the power consumer and subtracting the output clear electric quantity of the corresponding time interval before the day to acquire the electric quantity deviation of the corresponding time interval;
the evaluation module is used for acquiring buyer users, seller users and quotation strategies participating in deviation transactions at corresponding time intervals in the day according to the electric quantity deviation of each time interval and a preset deviation evaluation threshold;
and the transaction module is used for calculating a deviation transaction result and synchronizing the deviation transaction result to the main chain according to the buyer user, the seller user and the quotation strategy with the aim of minimizing the deviation cost of the electric quantity.
8. The main-side chain double-chain interaction power transaction interaction device of claim 7, wherein the goals of minimizing the electricity purchasing cost of power users and maximizing the income of new energy power plants comprise:
constructing a power purchasing cost minimization function F of a power consumer 1 And new energy power plant income maximization function F 2
The power purchasing cost minimization function F of the power consumer 1 Comprises the following steps:
Figure FDA0003766705060000051
in the formula, C t The method is characterized in that the method comprises the steps of purchasing electricity price from the power grid side for a power consumer in a time period T, wherein T is the time period number,
Figure FDA0003766705060000052
purchasing electric power quantity from the power grid side for the electric power user m in the time period t, N EH For number of power consumers, λ m,n,t The electricity price is purchased from the new energy power plant n for the electricity consumer m in the time period t,
Figure FDA0003766705060000053
purchasing electric quantity g from new energy power plant n for electric power user m in time period t m The loss parameter of the transaction transmission between the power consumer m and the new energy power plant,
Figure FDA0003766705060000054
and (4) the loss cost generated by purchasing electricity from the new energy power plant for the electric power user m in the time t.
New energy power plant income maximization function F 2 Comprises the following steps:
Figure FDA0003766705060000061
in the formula, N PC The number of new energy power plants;
Figure FDA0003766705060000062
for the power generation amount of the new energy power plant n in the time period t,
Figure FDA0003766705060000063
and a, b and d are constants for the power generation cost of the new energy power plant in the period n and t.
9. The apparatus according to claim 8, wherein the power consumer purchase cost minimization function F is a function of minimizing the purchase cost of the power consumer 1 And new energy power plant income maximization function F 2 The following constraints are satisfied:
Figure FDA0003766705060000064
Figure FDA0003766705060000065
Figure FDA0003766705060000066
in the formula (I), the compound is shown in the specification,
Figure FDA0003766705060000067
the maximum power generation amount of the new energy power plant n in the time period t is obtained;
Figure FDA0003766705060000068
purchasing the maximum electric quantity from the power grid side for the electric power user m in the time period t;
Figure FDA0003766705060000069
purchasing the maximum electric quantity of electricity from the new energy power plant n for the electricity consumer m in the time period t;
Figure FDA00037667050600000610
Figure FDA00037667050600000611
in the formula (I), the compound is shown in the specification,
Figure FDA00037667050600000612
the required electric quantity of the electric power user m in the time period t is obtained.
10. The method of claim 8, wherein the calculating the current market price and the current market price for power trading interaction comprises:
function F for minimizing electricity purchasing cost of power user based on Lagrange dual decomposition principle 1 Decomposed into minimizing function F of electricity purchasing cost of each power consumer m
Figure FDA00037667050600000613
New energy power plant income maximization function F based on Lagrange dual decomposition principle 2 Decomposing into a yield maximization function F of each new energy power plant n
Figure FDA0003766705060000071
In the formula, theta t Lagrange multipliers for time period t;
minimizing function F for simultaneous power consumer electricity purchasing cost based on secondary gradient method m Income maximization function F of new energy power plant n Obtaining a power purchase price model of the power consumer and the new energy power plant:
Figure FDA0003766705060000072
in the formula, k is the iteration number of a Lagrange multiplier, and alpha is a step length coefficient of gradient descent;
performing iterative solution according to the electricity purchasing price models of the power consumers and the new energy power plant until the electricity purchasing price converges, and outputting the final electricity purchasing price lambda m,n,t And the electricity purchasing quantity
Figure FDA0003766705060000073
The power purchase price convergence meets the following requirements:
m,n,t [k+1]-λ m,n,t [k]|≤ε
in the formula, epsilon is a preset convergence parameter;
the final electricity price lambda of the purchase electricity m,n,t And the electricity purchasing quantity
Figure FDA0003766705060000074
As the daily market discharge price and discharge capacity.
11. The apparatus of claim 7, wherein the determination of buyer users and seller users and quotation strategies for participating in the deviation transaction at the corresponding time within the day comprises:
the electric quantity deviation of the electric power consumer m in the time period t is as follows:
Δp m,t =p m,pre,t -p m,buy,t
in the formula, p m,pre,t 、p m,pre,t Respectively the demand electric quantity and the output electric quantity before the day of the time period t of the electric power user m;
the preset deviation checking threshold value comprises a positive deviation threshold value delta p p,m,t And a negative deviation threshold Δ p q,m,t
If Δ p m,t >Δp p,m,t Then, the electricity consumer m is the buyer user in the time period t, and the price quotation policy of the electricity consumer m is as follows:
ρ m,idbuy,t =λ m,idbuy,t p a,m,tm,idbuy,t
ρ m,idbuy,tm,pdev,t
in the formula, ρ m,idbuy,t 、p a,m,t 、ρ m,pdev,t Purchasing electricity price, purchasing electricity quantity and deviation punishment cost for the electricity users m in the days of the time period t; mu.s m,idbuy,t Is a constant;
if Δ p m,t <Δp q,m,t Then, the electricity consumer m is the seller user in the time period t, and the offer policy of the electricity consumer m is:
ρ m,idsell,t =λ m,idsell,t p b,m,tm,idsell,t
ρ m,idsell,tm,qdev,t
in the formula, ρ m,idsell,t 、p b,m,t 、ρ m,qdev,t Selling electricity in a day, quoting electricity in a day, selling electricity in a day, and punishing a fee for the electric power user m in a time period t; mu.s m,idsell,t Is a constant.
12. The method of claim 11, wherein the calculating the deviation transaction result comprises:
based on the VCG auction rule, sequentially ordering the electricity selling offers of the seller users from low to high in the day of the time period t to generate a clearing queue;
and bidding and clearing are carried out according to the clearing queue until the conditions are met:
Figure FDA0003766705060000081
Figure FDA0003766705060000082
wherein I and J are the numbers of buyer users and seller users, p a,i,t For the buyer i to purchase electricity during the day of time t b,j,t
Figure FDA0003766705060000083
Selling electricity quantity and maximum electricity selling electricity quantity for a seller user j in the day of the time period t;
and acquiring the winning revenue of the seller users who successfully bid and settle, and calculating the final transaction price:
Figure FDA0003766705060000084
in the formula, V j,t For seller user j, the winning bid amount, omega, during time period t t A transaction price for time period t;
constructing an objective function with the minimization of the cost of the buyer user and the seller user for the consumption of the demand deviation electricity quantity:
Figure FDA0003766705060000091
calculating and obtaining the electricity purchasing quantity p of the buyer user i in the day of the time period t based on the minimization construction objective function a,i,t Selling electricity quantity p of seller users j in day of time period t b,j,t And a transaction price omega at a time period t t
13. A main side chain double-chain interaction electric power transaction interaction device is characterized by comprising a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of claims 1 to 6.
14. Computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202210888831.1A 2022-07-27 2022-07-27 Power transaction interaction method and device for main side chain double-chain interaction and storage medium Pending CN115358810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210888831.1A CN115358810A (en) 2022-07-27 2022-07-27 Power transaction interaction method and device for main side chain double-chain interaction and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210888831.1A CN115358810A (en) 2022-07-27 2022-07-27 Power transaction interaction method and device for main side chain double-chain interaction and storage medium

Publications (1)

Publication Number Publication Date
CN115358810A true CN115358810A (en) 2022-11-18

Family

ID=84032756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210888831.1A Pending CN115358810A (en) 2022-07-27 2022-07-27 Power transaction interaction method and device for main side chain double-chain interaction and storage medium

Country Status (1)

Country Link
CN (1) CN115358810A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117078347A (en) * 2023-08-28 2023-11-17 合肥工业大学 Electric-carbon integrated transaction method based on alliance chain

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117078347A (en) * 2023-08-28 2023-11-17 合肥工业大学 Electric-carbon integrated transaction method based on alliance chain

Similar Documents

Publication Publication Date Title
Jiang et al. Electricity trading pricing among prosumers with game theory-based model in energy blockchain environment
Luo et al. Distributed peer-to-peer energy trading based on game theory in a community microgrid considering ownership complexity of distributed energy resources
Khorasany et al. Transactive energy framework for optimal energy management of multi-carrier energy hubs under local electrical, thermal, and cooling market constraints
Wang et al. Decentralized coordinated operation model of VPP and P2H systems based on stochastic-bargaining game considering multiple uncertainties and carbon cost
CN109389327B (en) Multi-virtual power plant time-front cooperation method based on wind and light uncertainty
CN111127137A (en) Distributed energy P2P trading method based on centralized matching
Wang et al. Bidding strategy optimization for power generation company in carbon emission rights and electricity market
CN112329230A (en) Multi-microgrid main body non-cooperative game transaction method
CN110929978A (en) Electric power market risk assessment method and system
CN115358810A (en) Power transaction interaction method and device for main side chain double-chain interaction and storage medium
CN117575089A (en) Wind-storage combined optimal bidding method, bidding system and computer readable storage medium considering wind power uncertainty
Vincent et al. Sustainable microgrid design with peer-to-peer energy trading involving government subsidies and uncertainties
Chen et al. Asymmetric Nash bargaining-based cooperative energy trading of multi-park integrated energy system under carbon trading mechanism
CN113793034A (en) Research method for income of power selling company under different quota system completion modes
Li et al. Research on the operation strategy of joint wind-photovoltaic-hydropower-pumped storage participation in electricity market based on Nash negotiation
CN116452331A (en) Optimization method for carbon-green card combined transaction and monthly centralized bidding interaction
CN117522424A (en) Carbon transaction method, system, equipment and medium based on carbon asset contribution degree
CN113408868A (en) Clearing method and system suitable for completing renewable energy quota index
Vidan et al. Individual thermal generator and battery storage bidding strategies based on robust optimization
CN113807961A (en) Multi-microgrid energy transaction method and system based on alliance chain
Taş et al. Production Cost Minimization Considering Integrated Carbon and Electricity Trading System
CN114529373B (en) Priority matching-based dynamic microgrid group P2P transaction method
CN113421123B (en) Point-to-point electric energy transaction market design method and device containing shared energy storage
CN115099456B (en) Distributed energy configuration method and device, mobile terminal and storage medium
Guerrero et al. Call-options in peer-to-peer energy markets

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