Electric energy trading method, device, storage medium and electronic equipment

By receiving load information in the blockchain trading system and building an electricity price function model, the problems of high transaction costs and low transaction efficiency in electricity trading are solved, and the accurate matching of electricity supply and demand and economic benefits are achieved.

CN114066633BActive Publication Date: 2024-12-03STATE GRID BEIJING ELECTRIC POWER CO +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111401513.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-19
Publication Date
2024-12-03
Estimated Expiration
2041-11-19

AI Technical Summary

Technical Problem

The existing blockchain-based power trading methods have shortcomings in improving demand response accuracy and economic benefits, and the interaction rules between the power supply side and the power sales side are not perfect enough, resulting in high transaction costs, low transaction efficiency, and opaque information transmission.

Method used

In the blockchain trading system, by receiving the load information uploaded by the load device, an electricity price function model is constructed based on the power generation power and node reputation value of the photovoltaic equipment, the electricity transaction is completed, and the electricity transaction information is recorded to achieve accurate matching of supply and demand, and the transaction cost is reduced. .

Benefits of technology

It realizes direct electricity trading in a state of trustlessness, improves the economic benefits of the transaction subject, reduces transaction costs, and promotes the accurate matching of electricity supply and demand.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114066633B_ABST
    Figure CN114066633B_ABST
Patent Text Reader

Abstract

The present invention discloses an electric energy trading method, device, storage medium and electronic device. The method comprises: receiving the load information uploaded by the load device, wherein the load information is used to characterize the electric energy trading demand of the user to which the load device belongs; constructing the electricity price function model of the photovoltaic device according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device; completing the electric energy trading and determining the electric energy trading information based on the load information and the electricity price function model, wherein the electric energy trading information is used to record the electric energy demand of the load device and the actual electric energy sold by the photovoltaic device during this electric energy trading process. The present invention solves the technical problems in the prior art that the electric energy trading adopts a centralized management mode, has high transaction costs, low transaction efficiency and opaque information transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an electric energy trading method, device, storage medium and electronic equipment. Background Art

[0002] With the continuous advancement of my country's new round of power system reform and the opening of the power sales side, market trading users have gradually transformed from single producers or consumers to electricity producers and consumers with dual trading directions, and the operation mode of power market transactions has become more complex and diverse. Under the new situation, a more flexible power trading mechanism is urgently needed to meet the needs of trading entities to the greatest extent, promote the consumption of new energy, and maximize the interests of all parties.

[0003] However, the existing blockchain-based electricity trading methods focus on the impact of blockchain applications on improving demand response accuracy and economic benefits, do not fully encourage demand response resources to participate in distributed electricity trading, and the interaction rules for the participating entities on both the power supply and sales sides are not yet perfect.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide an electric energy trading method, device, storage medium and electronic device to at least solve the technical problems in the prior art that electric energy trading adopts a centralized management mode, has high transaction costs, low transaction efficiency and opaque information transmission.

[0006] According to one aspect of an embodiment of the present invention, there is provided an electric energy trading method, which is applied to a blockchain trading system, wherein the blockchain trading system comprises: an upper-level power grid, a photovoltaic device, a load device, a blockchain trading platform, a photovoltaic load device and a photovoltaic generator set, wherein the photovoltaic load device and the photovoltaic generator set are built into the photovoltaic device, and the method comprises: receiving load information uploaded by the load device, wherein the load information is used to characterize the electric energy trading demand of the user to which the load device belongs; constructing an electricity price function model of the photovoltaic device according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device; completing the electric energy transaction based on the load information and the electricity price function model and determining the electric energy transaction information, wherein the electric energy transaction information is used to record the electric energy demand of the load device and the actual electric energy sold by the photovoltaic device during this electric energy transaction.

[0007] Optionally, before receiving the load information uploaded by the load device, the method includes: determining a plurality of electricity trading cycles; dividing an electricity trading cycle among the plurality of electricity trading cycles into a plurality of time periods, wherein the one electricity trading cycle includes at least one time period.

[0008] Optionally, the above-mentioned electricity price function model of the photovoltaic equipment is constructed according to the power generation power of the photovoltaic equipment and the node reputation value of the photovoltaic equipment, including: obtaining the power generation power of the photovoltaic power generation group and the load power of the photovoltaic load equipment; judging whether the power generation power is greater than the load power; if the power generation power is greater than the load power, adjusting the electricity price function model according to the power generation power and the load information.

[0009] Optionally, the above-mentioned electricity price function model of the photovoltaic equipment is constructed based on the power generation power of the photovoltaic equipment and the node credit value of the photovoltaic equipment, and also includes: if the power generation power is less than the load power, stopping selling electricity to the load equipment and purchasing electricity provided by the upper-level power grid.

[0010] Optionally, if the above-mentioned generated power is greater than the above-mentioned load power, the above-mentioned electricity price function model is adjusted according to the above-mentioned generated power and the above-mentioned load information, including: judging whether the above-mentioned generated power is greater than the above-mentioned electricity trading demand; if the above-mentioned generated power is greater than the above-mentioned electricity trading demand, lowering the electricity price and selling electricity at the internal electricity price; if the above-mentioned generated power is less than the above-mentioned electricity trading demand, increasing the above-mentioned internal electricity price and selling electricity.

[0011] Optionally, constructing an electricity price function model for the photovoltaic equipment based on the power generation power of the photovoltaic equipment and the node reputation value of the photovoltaic equipment also includes: obtaining the output deviation value of the photovoltaic equipment in the previous time period; and determining the node reputation value of the photovoltaic equipment based on the output deviation value.

[0012] Optionally, the node reputation value of the photovoltaic device is determined based on the output deviation value, including: comparing the agreed power generation power of the load device and the actual power generation power of the photovoltaic device during the electric energy transaction in the previous time period; if the agreed power generation power is less than the actual power generation power, the output deviation value is negative, and the node reputation value of the photovoltaic device remains stable; if the agreed power generation power is greater than the actual power generation power, the output deviation value is positive, reducing the node reputation value of the photovoltaic device.

[0013] According to another aspect of an embodiment of the present invention, there is also provided an electric energy trading device, which is applied to a blockchain trading system. The above-mentioned blockchain trading system includes: an upper-level power grid, photovoltaic equipment, user load equipment, and a blockchain trading platform. The above-mentioned photovoltaic equipment includes: photovoltaic load equipment and photovoltaic power generation groups. The above-mentioned device includes: a receiving module, which is used to receive load information uploaded by the above-mentioned load equipment, wherein the above-mentioned load information is used to characterize the electric energy trading demand of the user to which the above-mentioned load equipment belongs; a construction module, which is used to construct an electricity price function model of the above-mentioned photovoltaic equipment according to the power generation power of the above-mentioned photovoltaic equipment and the node reputation value of the above-mentioned photovoltaic equipment; a trading module, which is used to complete the electric energy transaction and determine the electric energy trading information based on the above-mentioned load information and the above-mentioned electricity price function model, wherein the above-mentioned electric energy trading information is used to record the electric energy demand of the above-mentioned load equipment and the actual electric energy sold by the above-mentioned photovoltaic equipment during this electric energy transaction.

[0014] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned electricity trading methods.

[0015] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the above-mentioned electricity trading methods.

[0016] In an embodiment of the present invention, by receiving the load information uploaded by the above-mentioned load device, wherein the above-mentioned load information is used to characterize the electric energy transaction demand of the user to which the above-mentioned load device belongs; constructing the electricity price function model of the above-mentioned photovoltaic device according to the power generation power of the above-mentioned photovoltaic device and the node reputation value of the above-mentioned photovoltaic device; completing the electric energy transaction and determining the electric energy transaction information based on the above-mentioned load information and the above-mentioned electricity price function model, wherein the above-mentioned electric energy transaction information is used to record the electric energy demand of the above-mentioned load device and the actual electric energy sold by the above-mentioned photovoltaic device during this electric energy transaction, the purpose of directly conducting the electric energy transaction in a trustless state is achieved, thereby achieving the technical effect of improving the economic benefits of the transaction entities and reducing the transaction costs while accurately matching the supply and demand of electric energy, thereby solving the technical problems of the prior art that electric energy transactions adopt a centralized management mode, have high transaction costs, low transaction efficiency, and opaque information transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0018] Figure 1 is a flow chart of an electric energy trading method according to an embodiment of the present invention;

[0019] Figure 2 It is a result schematic diagram of an optional blockchain-based photovoltaic distribution network power transaction architecture according to an embodiment of the present invention;

[0020] Figure 3 is an optional smart contract-based electricity market transaction flow chart according to an embodiment of the present invention;

[0021] Figure 4 is an optional electricity price transaction curve comparison diagram according to an embodiment of the present invention;

[0022] Figure 5 is a schematic diagram of an optional electricity purchasing situation of a flexible load user according to an embodiment of the present invention;

[0023] Figure 6 is a schematic diagram of another optional electricity purchasing situation of a flexible load user according to an embodiment of the present invention;

[0024] Figure 7 is a schematic diagram of an optional photovoltaic user's electricity sales revenue according to an embodiment of the present invention;

[0025] Figure 8 is a schematic diagram of an optional electricity purchasing cost for load users according to an embodiment of the present invention;

[0026] Fig. 9 is a schematic diagram of an optional distribution of reputation values ​​of photovoltaic users during a transaction according to an embodiment of the present invention;

[0027] Fig.10 It is a structural schematic diagram of an electric energy trading device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Example 1

[0031] According to an embodiment of the present invention, a method embodiment of electric energy trading is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0032] Figure 1 is a flow chart of an electric energy trading method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0033] Step S102, receiving load information uploaded by the load device, wherein the load information is used to characterize the electric energy transaction demand of the user to which the load device belongs;

[0034] Step S104, constructing an electricity price function model of the photovoltaic device according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device;

[0035] Step S106, completing the power transaction and determining the power transaction information based on the load information and the electricity price function model, wherein the power transaction information is used to record the power demand of the load equipment and the actual power sales of the photovoltaic equipment during this power transaction.

[0036] In an embodiment of the present invention, the above-mentioned photovoltaic device is used to receive the load information uploaded by the load device of the above-mentioned load user, and the above-mentioned photovoltaic device constructs an electricity price function model according to its own power generation power and node reputation value; the above-mentioned photovoltaic device and the above-mentioned user load device both complete the electricity transaction and determine the electricity transaction information based on the above-mentioned load information and the above-mentioned electricity price function model, and upload the above-mentioned electricity transaction information to the blockchain transaction system.

[0037] It should be noted that if Figure 2The above-mentioned blockchain-based photovoltaic distribution network power transaction architecture diagram is shown. The above-mentioned blockchain transaction system includes: upper-level power grid, photovoltaic equipment, flexible user load equipment, and blockchain transaction platform; the above-mentioned photovoltaic equipment includes: photovoltaic load equipment and photovoltaic generator sets. The above-mentioned load information is used to characterize the power transaction demand of the user to whom the above-mentioned user load equipment belongs; the above-mentioned power transaction information is used to record the power demand of the above-mentioned user load equipment and the actual power sales of the above-mentioned photovoltaic equipment during this power transaction.

[0038] In an embodiment of the present invention, the above-mentioned blockchain trading system can improve the economic benefits of both users by decentralized transactions of power market entities based on blockchain technology. By designing a photovoltaic node reputation value model and using blockchain technology to record the node's default behavior, trustworthy photovoltaic users can avoid paying default fees to obtain more profits, and also provide a selection basis for the electricity preferences of flexible load users; at the same time, it improves the on-site consumption rate of photovoltaic users' electricity, thereby guiding market entities to actively participate in power market transactions from a long-term perspective.

[0039] It should be noted that in the traditional power market, electric energy transactions usually adopt a centralized management model, which generally has high transaction costs, low transaction efficiency, and opaque information transmission. As a decentralized underlying database technology, blockchain technology can provide real-time transaction records, fair information sharing, and efficient decision-making services for multi-subject transactions in the power market. The combination of blockchain technology and power market transactions has significant advantages. The distributed storage characteristics of blockchain technology are mainly achieved by establishing a data transmission sharing mechanism between the nodes of various market entities, so that all nodes in the above blockchain transaction system can participate in data storage and verification. The market transaction of electric energy no longer requires a central trading institution, breaking the information barriers in the transaction process and improving the interactivity of the transaction subjects. At the same time, in the blockchain transaction system, data storage is traceable and tamper-proof, and the consistency and security of electric energy transaction information can be further guaranteed. Blockchain technology enables decentralized electric energy transactions to be carried out directly in a trustless state, avoiding third parties from earning price differences, reducing some electric energy transaction costs, and improving the economic benefits of transaction subjects while achieving accurate matching of supply and demand.

[0040] In an embodiment of the present invention, the electric energy transaction situation in the power market changes continuously according to the electricity price and the amount of electricity. When purchasing electric energy, flexible load users often choose trading partners based on factors such as the electricity price, power supply capacity, and power quality of the electricity seller, and formulate corresponding electricity use strategies. The above-mentioned upper-level power grid can provide load users with more stable and reliable electricity, and the electricity generated by photovoltaic equipment of photovoltaic users has significant advantages in price, and the electricity price can be adjusted in real time according to load demand. The preference of load users for the main body of the power market will directly affect the energy demand of the power market and the economic interests of the power seller; photovoltaic users should formulate a reasonable electricity price mechanism based on market supply and demand in the transaction platform based on blockchain technology to attract loads to participate in electricity transactions and achieve their own energy consumption and optimal benefits.

[0041] It should be noted that the embodiments of the present invention use platforms such as Ethernet and Hyperledger to implement the deployment and application of smart contracts. Smart contracts are used as an embedded program module and can be installed on the blockchain for calling. The simulation software Matlab can be used to verify the feasibility of the model under the implementation of smart contracts.

[0042] Through the embodiment of the present invention, a decentralized electric energy trading method for an active distribution network based on blockchain is adopted, which takes into account the photovoltaic equipment income of photovoltaic users and the electricity purchase cost of flexible load equipment of load users, constructs a flexible internal electric energy trading mechanism, and obtains trading electricity prices and electricity use strategies that are satisfactory to both buyers and sellers; by recording the credibility value of photovoltaic users in the transaction process, their electricity use behavior is supervised and constrained, thereby protecting the basic rights and interests of electricity users and providing a basis for electricity purchase choices.

[0043] In an optional embodiment, before receiving the load information uploaded by the user load device, the method includes:

[0044] Step S202, determining a plurality of electric energy trading cycles;

[0045] Step S204: dividing one of the multiple power trading cycles into multiple time periods, wherein the one power trading cycle includes at least one time period.

[0046] In an embodiment of the present invention, the identity of the above-mentioned photovoltaic user is converted between the power source and the load as the power generation power of the photovoltaic power generation group of the above-mentioned photovoltaic equipment increases. In order to facilitate the judgment of the role of the distributed subject, a plurality of electricity trading cycles are first determined, and each of the plurality of the above-mentioned electricity trading cycles is divided into T time periods, and any time period t∈[1,T].

[0047] It should be noted that the above-mentioned electricity trading cycle includes at least one time period.

[0048] In an optional embodiment, the electricity price function model of the photovoltaic device is constructed according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device, including:

[0049] Step S302, obtaining the power generation power of the photovoltaic power generation group and the load power of the photovoltaic load device;

[0050] Step S304, determining whether the above-mentioned generated power is greater than the above-mentioned load power;

[0051] Step S306: if the generated power is greater than the load power, the electricity price function model is adjusted according to the generated power and the load information.

[0052] In an embodiment of the present invention, before using the above-mentioned photovoltaic equipment to sell electric energy to the load equipment of the above-mentioned flexible load user, the power generation power of the above-mentioned photovoltaic power generation group and the load power of the above-mentioned photovoltaic load equipment are obtained; it is determined whether the above-mentioned power generation power is greater than the above-mentioned load power; if the above-mentioned power generation power is greater than the above-mentioned load power, the above-mentioned electricity price function model is adjusted according to the above-mentioned power generation power and the above-mentioned load information.

[0053] It should be noted that the above-mentioned photovoltaic equipment includes a photovoltaic power generation group and a photovoltaic load device. The above-mentioned photovoltaic power generation group generates electricity through energy such as solar energy. The above-mentioned photovoltaic load device is a device that needs to consume electric energy when the above-mentioned photovoltaic equipment is in operation. The load generated by the above-mentioned photovoltaic load device is the self-load of the photovoltaic equipment. During the operation of the above-mentioned photovoltaic equipment, the photovoltaic equipment must give priority to satisfying its own load consumption. Before using the above-mentioned photovoltaic equipment to sell electric energy to the above-mentioned user load device, first obtain the power generation power of the above-mentioned photovoltaic power generation group and the load power of the above-mentioned photovoltaic load device, and compare the power generation power with the load power. If the power generation power is greater than the load power, the photovoltaic equipment, as a producer, sells electricity to the flexible load at the internal electricity price or sells electricity to the superior power grid at the grid-connected electricity price.

[0054] In an optional embodiment, the electricity price function model of the photovoltaic device is constructed according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device, and further includes:

[0055] Step S402: If the generated power is less than the load power, stop selling electric energy to the user load device and purchase electric energy provided by the upper-level power grid.

[0056] In an embodiment of the present invention, if the above-mentioned generated power is less than the above-mentioned load power, the above-mentioned photovoltaic device purchases electricity from the above-mentioned upper-level power grid as a consumer, and stops selling electric energy to the above-mentioned user load device.

[0057] In an optional embodiment, if the above-mentioned power generation is greater than the above-mentioned load power, adjusting the above-mentioned electricity price function model according to the above-mentioned power generation and the above-mentioned load information includes:

[0058] Step S502, determining whether the above-mentioned generated power is greater than the above-mentioned electric energy transaction demand;

[0059] Step S504, if the above-mentioned generated power is greater than the above-mentioned electric energy transaction demand, then lower the electricity price and sell the electric energy at the internal electricity price;

[0060] Step S506: if the generated power is less than the electric energy transaction demand, the internal electricity price is increased and the electric energy is sold.

[0061] In an embodiment of the present invention, if it is determined that the photovoltaic equipment, as a producer, sells electricity to the flexible load at the internal electricity price or sells electricity to the superior power grid at the grid-connected electricity price, and before using the above-mentioned photovoltaic equipment to sell electricity for the above-mentioned user load equipment, it is determined whether the above-mentioned generated power is greater than the above-mentioned electricity trading demand; if the above-mentioned generated power is greater than the above-mentioned electricity trading demand, the electricity price is lowered and the electricity is sold at the internal electricity price; if the above-mentioned generated power is less than the above-mentioned electricity trading demand, the above-mentioned internal electricity price is appropriately increased and the electricity is sold.

[0062] It should be noted that, assuming that the power supply side includes N power sales entities, the photovoltaic equipment n (n∈N) of the photovoltaic user represents the source of power sales, and the demand side includes the above-mentioned user load equipment of M flexible power purchasers, and the flexible load m∈M. When the power generation of the photovoltaic equipment is less than the power demand of the load equipment, the photovoltaic power generation is in short supply, and the internal electricity price can be appropriately increased to obtain benefits; when the photovoltaic output is greater than the user demand, the photovoltaic power generation is sufficient, and the photovoltaic user should reduce the electricity price to guide the user demand response to increase the photovoltaic consumption.

[0063] It should also be noted that the electricity price function constructed based on the above-mentioned power generation and the above-mentioned electricity trading demand is: In the formula, is the internal electricity price of photovoltaic user n in period t, is the base electricity price of photovoltaic user n in period t, represents the amount of electricity purchased by user m from PV user n during period t, is the actual power generation (output value) of photovoltaic user n in time period t, a is a correlation coefficient greater than 0, and the value of the above correlation coefficient a can be set according to actual conditions to adjust the imbalance between power supply and demand.

[0064] In an optional embodiment, the electricity price function model of the photovoltaic device is constructed according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device, further comprising:

[0065] Step S602, obtaining the output deviation value of the photovoltaic device in the previous time period;

[0066] Step S604: determining the node reputation value of the photovoltaic device based on the output deviation value.

[0067] In the embodiment of the present invention, before each electric energy transaction begins, the output deviation value of the photovoltaic device corresponding to the transaction in the previous time period can be obtained; based on the output deviation value, the node reputation value of the photovoltaic device corresponding to the transaction can be determined. Alternatively, after the transaction is completed, the output deviation value during the transaction can be obtained to determine the node reputation value of the photovoltaic device.

[0068] It should be noted that the actual power generation of the above-mentioned photovoltaic equipment is greatly affected by the environment and weather, and the output of the above-mentioned photovoltaic equipment has a strong uncertainty, which is prone to breach of contract and dishonesty during the transaction process, which will affect the trust of power users and reduce the enthusiasm for transactions. By deploying executable blockchain smart contract code on the above-mentioned blockchain transaction system, the blockchain transaction platform of the blockchain transaction system is used to automatically execute the computer transaction protocol of the above-mentioned smart contract. The above-mentioned smart contract can motivate users to conduct more reliable transactions by recording the behavior of the transaction subject during the transaction; the node reputation value is introduced in the smart contract. The reputation value of the above-mentioned photovoltaic user is related to the output deviation of the photovoltaic equipment corresponding to the photovoltaic user, which can reflect the default of the transaction. In the actual transaction scenario, the output deviation is used to indicate the difference between the agreed power generation power and the actual power generation power of the above-mentioned photovoltaic equipment when the transaction is reached.

[0069] In an optional embodiment, determining the node reputation value of the photovoltaic device based on the output deviation value includes:

[0070] Step S702, comparing the agreed power generation power of the load device and the actual power generation power of the photovoltaic device during the power transaction process in the previous time period;

[0071] Step S704: if the agreed power generation is less than the actual power generation, the output deviation value is negative, and the node reputation value of the photovoltaic device remains stable;

[0072] Step S704: if the agreed power generation is greater than the actual power generation, the output deviation value is positive, and the node reputation value of the photovoltaic device is reduced.

[0073] In an embodiment of the present invention, the actual power generation of all electric energy transactions of a photovoltaic device in the previous time period and the agreed power generation in all electric energy transactions are obtained, and the agreed power generation and the actual power generation of the photovoltaic device are compared. If the agreed power generation is less than the actual power generation, the output deviation value is negative, and if the agreed power generation is greater than the actual power generation, the output deviation value is positive.

[0074] It should be noted that if the output deviation value is negative, it will not affect the power supply and sales of photovoltaic users, and the credit value will remain stable and be set to 1; if the output deviation value is positive, it means that the photovoltaic equipment generates less power, which affects the power quality of load users and brings economic losses. The node credit value of the above photovoltaic user decreases with the increase of the output deviation value. In addition to paying the corresponding default cost, the above photovoltaic user will also reduce the load user's preference for the photovoltaic user.

[0075] It should also be noted that the node reputation value function of the above photovoltaic user n in period t is: In the formula, is the node reputation value of PV user n in period t, is the output deviation between the agreed power generation and the actual power generation of photovoltaic user n in period t, is the agreed power generation of PV user n in period t.

[0076] In an embodiment of the present invention, a distribution network power market transaction model can be constructed to reflect the joint participation of power buyers and sellers in the power grid game, and to maximize benefits when the capacity of their respective equipment and load demand are certain. The above-mentioned distribution network power market transaction model specifically includes: a photovoltaic user power sales model and a flexible load user power purchase model. When photovoltaic users are consumers, they only purchase electricity from the upper-level power grid, and there is no purchase of electricity from other photovoltaic users; when photovoltaic users are producers, they give priority to selling electricity to flexible load users to earn more profits. If the electricity cannot be completely consumed locally or nearby, the excess electricity will be sold to the upper-level power grid; if a photovoltaic user defaults and causes economic losses to the flexible load user, he must bear a certain default cost to urge the photovoltaic user to improve his credit rating.

[0077] In the embodiment of the present invention, the total revenue formula of photovoltaic users is: pv =C user +C grid -C buy -C V ; In the formula, C user The income from selling electricity to flexible load users is is the amount of electricity sold by PV user n to flexible load user m during period t, is the internal electricity price of PV user n in period t, T is the number of periods divided in the transaction cycle, N is the total number of PV users on the electricity sales side, and M is the total number of flexible load users on the electricity purchase side; C grid The income from selling electricity to the upper grid for photovoltaic users, is the amount of electricity sold to the upper grid by PV user n when he is a producer during period t, and c is the PV grid-connected electricity price; C buy To purchase electricity from photovoltaic power plants, is the amount of electricity purchased from the upper grid during period t when PV user n is a consumer, d t is the time-of-use electricity price of the large power grid; C V is the default cost, is the deviation between the agreed power generation and the actual power generation of PV user n in period t, and p is the penalty coefficient for breach of contract.

[0078] In the embodiment of the present invention, the constraint formula for power balance of the photovoltaic user's own node is: In the formula, is the amount of electricity purchased by PV user n from the upper grid when he is a consumer during period t, is the power generation of photovoltaic user n in period t, is the amount of electricity sold by PV user n to the upper grid when acting as a producer during period t, is the amount of electricity sold by PV user n to flexible load user m during period t, is the load power of photovoltaic user n in period t.

[0079] In an embodiment of the present invention, flexible load users can change their original electricity usage habits according to electricity prices, meet the grid operation needs by increasing or decreasing electricity consumption, promote the consumption of new energy, and mitigate net load fluctuations. Flexible loads generally include transferable loads, interruptible loads, and shiftable loads. Transferable loads can arbitrarily change the load usage period while ensuring that the total load remains unchanged within the scheduling cycle, and there are no continuity and timing restrictions, and the response is more flexible. In an embodiment of the present invention, transferable load users are selected as the transaction subjects of the electricity purchase party, and actively respond to market demand. The transaction objects include photovoltaic users and superior power grids. During the transaction process, power users tend to choose electricity sellers (photovoltaic users) with high credibility as the transaction objects, and the penalty electricity price formula for photovoltaic user n in time period t is defined as: In the formula, is the penalty electricity price for PV user n in period t, is the internal electricity price of photovoltaic user n in period t, is the node reputation value of PV user n in period t-1, that is, the penalty electricity price at the current moment is related to the reputation value in the previous period.

[0080] In the embodiment of the present invention, the electricity purchase cost of the flexible load user is:D =C PV +C D,grid ; In the formula, C PV , C D,grid are the electricity purchase costs of flexible load users from photovoltaic users and upper-level power grids, is the amount of electricity sold by PV user n to flexible load m during period t, is the penalty electricity price of PV user n in period t, T is the number of periods in the transaction cycle, N is the number of PV users on the electricity sales side, and M is the number of flexible loads on the electricity purchase side; is the power purchased by the flexible load m from the grid during period t, d t It is the time-of-use electricity price of the upper power grid.

[0081] In the embodiment of the present invention, the amount of electricity used by the flexible load user during the transaction period is subject to the upper and lower limits of the amount of electricity transferred: In the formula, is the amount of electricity used by flexible user m in period t, The upper and lower limits of the amount of electricity used by user m in time period t.

[0082] In an embodiment of the present invention, photovoltaic users and flexible load users negotiate and modify power trading information based on their own power supply and load demand. During the negotiation and modification process, the transaction electricity price is continuously updated iteratively. Flexible load users respond according to the received electricity price signal and feedback to photovoltaic users. This process is repeated until a transaction agreement is reached. In an embodiment of the present invention, it is set that in the agreement transaction process, both parties only conduct centralized transactions with the upper-level power grid in the initial scenario. After the photovoltaic user generates electricity and can meet its own load, the electricity sales price can be released. The photovoltaic user and the flexible load user negotiate the transaction electricity plan. When the increased electricity sales income of the photovoltaic user is equal to the reduced electricity purchase cost of the flexible load, the two parties reach a consensus to trade, that is: In the formula, are the electricity sales revenue and electricity purchase cost of photovoltaic users and flexible loads in the initial scenario operation, respectively. PV 、F D They are the electricity sales revenue and electricity purchase costs for photovoltaic users and flexible load users respectively.

[0083] Through the above steps, electricity users register accounts in the blockchain trading system through the blockchain trading platform, such as Figure 3As shown in the flowchart of power market transaction based on smart contracts, flexible load users upload load information of each time period, photovoltaic users publish tradable electricity and flexible output range, and broadcast them to the whole network; after receiving external information, the smart contract in the blockchain transaction system can judge and update the information in the contract by itself, and obtain the initial scenario economic cost by the independent operation of power purchase and sale, and then formulate a reasonable demand response strategy through continuous negotiation to determine the transaction electricity price and electricity that both parties are satisfied with. After reaching a consensus, the transaction information will be uploaded to the blockchain system for packaging; in the execution stage of the transaction, the power purchase and sale parties shall strictly implement the electricity price and transaction electricity in accordance with the content of the agreement. When a breach of contract occurs, the credit value shall be updated in time and a certain breach of contract fee shall be deducted.

[0084] By introducing the photovoltaic user reputation model in the transaction process in the embodiment of the present invention, the impact of blockchain technology is quantified in the reputation function. Users with low reputation values ​​are punished to constrain the trading behavior of photovoltaic users, while power users with high reputation values ​​will be given priority by power buyers. Under the reputation value mechanism, flexible load users can choose more reliable power sources to purchase electricity, and trustworthy photovoltaic users can also obtain more profits. In the decentralized photovoltaic distribution network power market transaction model of the embodiment of the present invention, market entities directly trade in an environment without relying on third-party institutions, which can reduce transaction costs, promote the balance of power supply and demand, and maximize the profits of trading entities. At the same time, it slows down the fluctuation of net load in the distribution network, and the operation of the distribution network will be safer and more flexible. By establishing a pricing strategy for photovoltaic user power transactions on the power seller side to adjust the power transaction balance, the flexible load consumes photovoltaic power in real time, and the decentralized transaction between "photovoltaic users and flexible loads" is realized.

[0085] Example 2

[0086] According to an embodiment of the present invention, a simulation process embodiment of an electric energy trading method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0087] In the embodiment of the present invention, in the simulation system, the photovoltaic equipment output time period is set to 06:00-18:00, a total of 13 hours; and distributed photovoltaic equipment with different capacities and distributions are selected, named photovoltaic users 1-4 in sequence, and five flexible load users are randomly selected to participate in market transactions, named flexible load users 1-5 in sequence, and the transferable load scheduling capacity is set to account for 15% of the maximum capacity; the remaining power users purchase electricity from the upper power grid as ordinary nodes and do not participate in decentralized power market transactions. The electricity price of the upper power grid is the time-of-use electricity price, and the photovoltaic grid-connected electricity price is 0.35 / (yuan / kW·h); by studying the transaction behavior of photovoltaic users and flexible load users during the photovoltaic output period (6:00-18:00), the transaction results of the initial centralized transaction scenario and the agreement transaction scenario are compared.

[0088] In the embodiment of the present invention, Figure 4 As shown in the comparison of the photovoltaic internal transaction price curve, the internal electricity prices of photovoltaic users are all within the envelope of the grid time-of-use electricity price and the on-grid electricity price, and both parties to the transaction can guarantee a certain profit in the transaction price. The trend of the internal transaction price of photovoltaic users is basically consistent with the grid time-of-use electricity price, which guarantees a certain electricity sales income for photovoltaic users. Among them, the electricity price of photovoltaic user 3 remains at a high level during the peak load period. Analysis shows that due to the large load demand near this node, photovoltaic users can appropriately increase the electricity price to obtain higher profits during the stage of power supply and demand. Figure 5 , 6 The power purchase situation of flexible load users 4 and 5 is shown. It can be seen that flexible load users maintain a high level of power purchase during the load valley period (before 10:00), while the power purchase gradually decreases during the load peak period, indicating that the photovoltaic power price incentive policy has changed the power consumption habits of flexible load users; flexible load 4 needs to purchase power from the superior power grid during the trading cycle, indicating that the power generation of photovoltaic 3 on the same line is in short supply, and photovoltaic users can increase the power price to increase their income.

[0089] In the embodiment of the present invention, the electricity sales income of photovoltaic users and the electricity purchase cost of power loads obtained in the two scenarios of centralized trading and agreement trading are as follows: Figure 7 , 8 As shown in the figure. By comparing the two transaction scenarios, it can be seen that the decentralized agreement transaction method saves the management cost of the third party. Therefore, the photovoltaic users of the electricity sellers have higher profits, and the electricity purchasers have lower electricity costs. Most of the benefits flow only between the transaction entities, and the overall economic benefits of electricity users have been improved. In market transactions, output forecast deviations will cause economic losses to both the electricity buyers and sellers, and affect the electricity preferences of electricity users. Taking photovoltaic user 3 as an example for analysis, its transaction objects are mainly flexible loads 4 on the same line.

[0090] like Fig. 9The distribution of credit value of photovoltaic user 3 during the transaction process is shown. It can be seen that photovoltaic user 3 has a total of 4 default transactions, among which the default degree is relatively small except at 11 o'clock. At this time, the penalty price of photovoltaic power is still lower than the time-of-use power price of the power grid, and users are still more inclined to choose photovoltaic power purchase. At 11 o'clock, the photovoltaic output and the agreed power volume have a large deviation of 22%. Therefore, the power user no longer chooses photovoltaic users to purchase electricity at the next moment 12:00. Analysis may be that photovoltaic power sales have no price advantage at this time, and flexible load users choose to purchase electricity from the power grid with more stable power supply; photovoltaic users should improve the prediction accuracy of photovoltaic output or reserve a part of the error power during the agreement process to avoid major default behaviors that affect the local consumption of electricity. In the blockchain of the embodiment of the present invention, the credit value is recorded to record the user's integrity, which has a good restraining effect on user behavior.

[0091] Through the embodiments of the present invention, decentralized transactions among power market entities based on blockchain transaction technology can improve the economic benefits of both users. Trustworthy photovoltaic users can avoid paying default fees and obtain more profits, while increasing their local consumption rate, thereby guiding market entities to actively participate in power market transactions from a long-term perspective.

[0092] Example 3

[0093] According to an embodiment of the present invention, there is also provided an embodiment of a device for implementing the above-mentioned electric energy trading method, which is applied to a blockchain trading system. The above-mentioned blockchain trading system includes: an upper-level power grid, a photovoltaic device, a user load device, and a blockchain trading platform. The above-mentioned photovoltaic device includes: a photovoltaic load device and a photovoltaic generator set. The above-mentioned device, Fig.10 is a schematic diagram of the structure of an electric energy trading device according to an embodiment of the present invention. Fig.10 As shown, the above device includes: a receiving module 90, a building module 92 and a transaction module 94, wherein:

[0094] The receiving module 90 is used to receive the load information uploaded by the load device, wherein the load information is used to represent the electric energy transaction demand of the user to which the load device belongs;

[0095] A construction module 92 is used to construct an electricity price function model of the photovoltaic device according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device;

[0096] The transaction module 94 is used to complete the power transaction and determine the power transaction information based on the above load information and the above electricity price function model, wherein the above power transaction information is used to record the power demand of the above load equipment and the actual power sales of the above photovoltaic equipment during this power transaction.

[0097] It should be noted here that the above-mentioned receiving module 90, construction module 92 and transaction module 94 correspond to steps S102 to S106 in Example 1, and the instances and application scenarios implemented by the three modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned Example 1.

[0098] It should be noted that the preferred implementation of this embodiment can refer to the relevant description in Example 1, which will not be repeated here.

[0099] According to an embodiment of the present invention, an embodiment of a computer-readable storage medium is also provided. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the electric energy trading method provided in the above embodiment 1.

[0100] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group.

[0101] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: receiving load information uploaded by the above-mentioned load device, wherein the above-mentioned load information is used to characterize the electric energy trading demand of the user to which the above-mentioned load device belongs; constructing an electricity price function model of the above-mentioned photovoltaic device according to the power generation power of the above-mentioned photovoltaic device and the node reputation value of the above-mentioned photovoltaic device; completing the electric energy transaction and determining the electric energy transaction information based on the above-mentioned load information and the above-mentioned electricity price function model, wherein the above-mentioned electric energy transaction information is used to record the electric energy demand of the above-mentioned load device and the actual electric energy sold by the above-mentioned photovoltaic device during this electric energy transaction.

[0102] Optionally, the computer-readable storage medium may also execute program codes for the following steps: determining a plurality of electricity trading cycles; dividing an electricity trading cycle among the plurality of the electricity trading cycles into a plurality of time periods, wherein the one electricity trading cycle includes at least one time period.

[0103] Optionally, the computer-readable storage medium can also execute program codes for the following steps: obtaining the power generation power of the photovoltaic power generation group and the load power of the photovoltaic load device; determining whether the power generation power is greater than the load power; if the power generation power is greater than the load power, adjusting the electricity price function model according to the power generation power and the load information.

[0104] Optionally, the computer-readable storage medium may also execute program code of the following steps: if the generated power is less than the load power, stop selling electric energy to the load device and purchase electric energy provided by the upper-level power grid.

[0105] Optionally, the computer-readable storage medium may also execute program codes for the following steps: determining whether the generated power is greater than the electricity trading demand; if the generated power is greater than the electricity trading demand, lowering the electricity price and selling electricity at an internal electricity price; if the generated power is less than the electricity trading demand, increasing the internal electricity price and selling electricity.

[0106] Optionally, the computer-readable storage medium may also execute program codes of the following steps: obtaining an output deviation value of the photovoltaic device in a previous time period; and determining a node reputation value of the photovoltaic device based on the output deviation value.

[0107] Optionally, the computer-readable storage medium may also execute program codes for the following steps: comparing the agreed power generation of the load device and the actual power generation of the photovoltaic device during the electric energy transaction in the previous time period; if the agreed power generation is less than the actual power generation, the output deviation value is negative, and the node reputation value of the photovoltaic device remains stable; if the agreed power generation is greater than the actual power generation, the output deviation value is positive, and the node reputation value of the photovoltaic device is reduced.

[0108] According to an embodiment of the present invention, an embodiment of a processor is also provided. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the electric energy trading method provided in the above embodiment 1.

[0109] An embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: receiving load information uploaded by the load device, wherein the load information is used to characterize the electric energy trading demand of the user to which the load device belongs; constructing an electricity price function model of the photovoltaic device according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device; completing the electric energy transaction and determining the electric energy transaction information based on the load information and the electricity price function model, wherein the electric energy transaction information is used to record the electric energy demand of the load device and the actual electric energy sold by the photovoltaic device during this electric energy transaction.

[0110] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the following method steps: receiving load information uploaded by the above-mentioned load device, wherein the above-mentioned load information is used to characterize the electric energy trading demand of the user to which the above-mentioned load device belongs; constructing an electricity price function model of the above-mentioned photovoltaic device according to the power generation power of the above-mentioned photovoltaic device and the node reputation value of the above-mentioned photovoltaic device; completing the electric energy transaction based on the above-mentioned load information and the above-mentioned electricity price function model and determining the electric energy transaction information, wherein the above-mentioned electric energy transaction information is used to record the electric energy demand of the above-mentioned load device and the actual electric energy sold by the above-mentioned photovoltaic device during this electric energy transaction.

[0111] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0112] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0113] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0116] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0117] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for electric energy trading, characterized in that: Applied in a blockchain transaction system, the blockchain transaction system includes: an upper-level power grid, photovoltaic equipment, user load equipment, and a blockchain transaction platform. The photovoltaic equipment includes: photovoltaic load equipment and photovoltaic generator sets. The method includes: Receiving load information uploaded by the user load device, wherein the load information is used to characterize the electric energy transaction demand of the user to which the user load device belongs; Constructing an electricity price function model of the photovoltaic device according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device; Based on the load information and the electricity price function model, the electric energy transaction is completed and the electric energy transaction information is determined, wherein the electric energy transaction information is used to record the electric energy transaction demand of the user load equipment and the actual electric energy sales amount of the photovoltaic equipment during this electric energy transaction; The step of constructing the electricity price function model of the photovoltaic device according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device comprises: Obtaining the power generation power of the photovoltaic power generation group and the load power of the photovoltaic load device; Determining whether the generated power is greater than the load power; If the power generation is greater than the load power, the electricity price function model is adjusted according to the power generation and the load information. The electricity price function model is: , where is the internal electricity price of photovoltaic user n in period t, is the base electricity price of photovoltaic user n in period t, represents the amount of electricity purchased by user m from PV user n during period t, is the actual power generation of photovoltaic user n in period t, and a is a correlation coefficient greater than 0; Wherein, the electricity price function model of the photovoltaic device is constructed according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device, and further includes: if the power generation power is less than the load power, then stop selling electric energy to the user load device and purchase the electric energy provided by the upper-level power grid; If the generated power is greater than the load power, the electricity price function model is adjusted according to the generated power and the load information, including: judging whether the generated power is greater than the electric energy transaction demand, if the generated power is greater than the electric energy transaction demand, lowering the electricity price and selling electric energy at the internal electricity price, if the generated power is less than the electric energy transaction demand, raising the internal electricity price and selling electric energy; Constructing the electricity price function model of the photovoltaic device according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device, further comprising: obtaining the output deviation value of the photovoltaic device in the previous time period; determining the node reputation value of the photovoltaic device based on the output deviation value; The determining of the node reputation value of the photovoltaic device based on the output deviation value includes: comparing the agreed power generation power of the photovoltaic load device and the actual power generation power of the photovoltaic device during the power transaction in the previous time period; if the agreed power generation power is less than the actual power generation power, the output deviation value is negative, and the node reputation value of the photovoltaic device remains stable; if the agreed power generation power is greater than the actual power generation power, the output deviation value is positive, and the node reputation value of the photovoltaic device is reduced; The node reputation function of the above photovoltaic user n in period t is: , where is the node reputation value of PV user n in period t, is the output deviation between the agreed power generation and the actual power generation of photovoltaic user n in period t, is the agreed power generation of PV user n in period t.

2. The method according to claim 1, characterized in that Before receiving the load information uploaded by the user load device, the method includes: Determine multiple power trading cycles; One electric energy trading cycle among the multiple electric energy trading cycles is divided into multiple time periods, wherein the one electric energy trading cycle includes at least one time period.

3. An electric energy trading device, characterized in that: Applied in a blockchain transaction system, the blockchain transaction system includes: an upper-level power grid, photovoltaic equipment, user load equipment, and a blockchain transaction platform. The photovoltaic equipment includes: photovoltaic load equipment and photovoltaic generator sets. The device includes: A receiving module, used to receive the load information uploaded by the user load device, wherein the load information is used to characterize the electric energy transaction demand of the user to which the user load device belongs; A construction module, used to construct an electricity price function model of the photovoltaic device according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device; A transaction module, used to complete the electric energy transaction and determine the electric energy transaction information based on the load information and the electricity price function model, wherein the electric energy transaction information is used to record the electric energy transaction demand of the user load equipment and the actual electric energy sales amount of the photovoltaic equipment during this electric energy transaction; The electricity price function model of the photovoltaic device is constructed according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device, including: Obtaining the power generation power of the photovoltaic power generation group and the load power of the photovoltaic load device; Determining whether the generated power is greater than the load power; If the power generation is greater than the load power, the electricity price function model is adjusted according to the power generation and the load information. The electricity price function model is: , where is the internal electricity price of photovoltaic user n in period t, is the base electricity price of photovoltaic user n in period t, represents the amount of electricity purchased by user m from PV user n during period t, is the actual power generation of photovoltaic user n in period t, and a is a correlation coefficient greater than 0; Wherein, the electricity price function model of the photovoltaic device is constructed according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device, and further includes: if the power generation power is less than the load power, then stop selling electric energy to the user load device and purchase the electric energy provided by the upper-level power grid; If the generated power is greater than the load power, the electricity price function model is adjusted according to the generated power and the load information, including: judging whether the generated power is greater than the electric energy transaction demand, if the generated power is greater than the electric energy transaction demand, lowering the electricity price and selling electric energy at the internal electricity price, if the generated power is less than the electric energy transaction demand, raising the internal electricity price and selling electric energy; Constructing the electricity price function model of the photovoltaic device according to the power generation power of the photovoltaic device and the node reputation value of the photovoltaic device, further comprising: obtaining the output deviation value of the photovoltaic device in the previous time period; determining the node reputation value of the photovoltaic device based on the output deviation value; The determining of the node reputation value of the photovoltaic device based on the output deviation value includes: comparing the agreed power generation power of the photovoltaic load device and the actual power generation power of the photovoltaic device during the power transaction in the previous time period; if the agreed power generation power is less than the actual power generation power, the output deviation value is negative, and the node reputation value of the photovoltaic device remains stable; if the agreed power generation power is greater than the actual power generation power, the output deviation value is positive, and the node reputation value of the photovoltaic device is reduced; The node reputation function of the above photovoltaic user n in period t is: , where is the node reputation value of PV user n in period t, is the output deviation between the agreed power generation and the actual power generation of photovoltaic user n in period t, is the agreed power generation of PV user n in period t.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the electric energy trading method according to claim 1 or 2.

5. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the electric energy trading method according to claim 1 or 2.