Energy management method and device, equipment and storage medium

By realizing transparent trading and flexible selection of electric energy in microgrids, the volatility problem of microgrid energy management is solved, energy utilization efficiency and market flexibility are improved, and the stability of energy supply is ensured.

CN118569902APending Publication Date: 2024-08-30GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410695014.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Due to the volatility and unpredictability of new energy, microgrids are faced with the problem of energy supply exceeding demand and insufficient power supply. How to effectively manage microgrid energy has become an urgent problem to be solved.

Method used

Provide an energy management method that receives the power purchase and sale requests from user terminals, obtains the latest power-related information in the resource management database, determines the latest power quotation, and displays it on the energy management application to achieve transparent transactions of power, allowing Consumers can flexibly choose the source of electricity purchase, and producers, sellers and energy producers sell excess electricity according to market demand.

Benefits of technology

It improves the flexibility of the energy market, improves energy utilization efficiency, reduces energy waste, helps effectively manage energy in microgrids, and ensures the stability of energy supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569902A
    Figure CN118569902A
Patent Text Reader

Abstract

The invention relates to an energy management method and device, equipment and a storage medium, and the method comprises the steps: receiving a power purchase request sent by a first user terminal, then obtaining the latest electric energy related information from a resource management database, determining the latest electric energy quotation according to the latest electric energy related information, and sending the latest electric energy quotation to the first user terminal, and receiving a selection instruction of the target consumer on the energy management application, and recording the current electric energy transaction information of the target consumer. According to the method, each user can realize transparent transaction of the electric energy through the energy management application, so that the target consumer can flexibly select an electricity purchasing source according to the latest electric energy quotation and personal requirements, and meanwhile, a producer and an energy producer can sell redundant electric quantity at proper quotation according to market requirements, so that the user experience is improved. Therefore, the flexibility of the energy market is improved, the energy of the micro-grid can be effectively managed, the energy utilization efficiency is improved, and the energy waste is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an energy management method, device, equipment and storage medium. Background Art

[0002] With the increasing awareness of environmental protection, people's demand for new energy is increasing, which is driving the development and application of various new energy power generation methods. In order to reduce dependence on traditional power grids, more and more microgrids are deployed, which can better utilize renewable energy, thereby reducing carbon emissions and environmental impact.

[0003] However, the volatility and unpredictability of renewable energy pose challenges to the stability of microgrids. During high-generation periods, such as when wind and solar resources are abundant, microgrids may face a situation where energy supply exceeds demand, while during low-generation periods, there may be a shortage of power.

[0004] Therefore, how to effectively manage the energy of microgrids has become an urgent problem to be solved in current microgrid systems. Summary of the invention

[0005] Based on this, it is necessary to provide an energy management method, device, equipment and storage medium that can effectively manage microgrid energy in response to the above technical problems.

[0006] In a first aspect, the present application provides an energy management method, which is applied to an energy management application, and the method includes:

[0007] Receiving a power purchase request sent by a first user terminal; the power purchase request is triggered and generated by a target consumer on an energy management application of the first user terminal;

[0008] Acquire the latest power related information from the resource management database, determine the latest power quotation according to the latest power related information, and send the latest power quotation to the first user terminal to instruct the first user terminal to display the latest power quotation on the energy management application;

[0009] Receive the target consumer's selection instructions on the energy management application, and record the target consumer's electricity transaction information for that time.

[0010] In one embodiment, determining the latest electricity price quotation according to the latest electricity related information includes:

[0011] Determine the current power information of various types of users in the microgrid power system based on the latest power-related information; the various types of users include consumers, producers and sellers, and new energy producers;

[0012] Determine the latest electricity quotation based on the current electricity information of each type of user.

[0013] In one embodiment, the latest power price is determined based on the current power information of each type of user, including:

[0014] Obtain power trading constraints;

[0015] Determine the net power generation and net load of the microgrid power system based on the current power information of the prosumers and energy producers;

[0016] According to the power trading constraints, net power generation, net load, current power information of prosumers and energy producers, the latest power quotations corresponding to prosumers and energy producers are determined.

[0017] In one embodiment, determining the net power generation and net load of the microgrid power system according to the current power information of the prosumer and the energy producer includes:

[0018] Obtain the load of consumers and producers and sellers within a preset time period;

[0019] Obtain the power generation of prosumers and energy producers within a preset time period;

[0020] The net power generation and net load of the microgrid power system are determined according to the load of consumers, the load of producers and sellers, the power generation of producers and sellers, and the power generation of energy producers.

[0021] In one embodiment, determining the net power generation and net load of the microgrid power system according to the load of the consumer, the load of the prosumer, the power generation of the prosumer, and the power generation of the energy producer includes:

[0022] Determine the net load and net power generation of the prosumer based on the prosumer's load and power generation;

[0023] Determine the net load of the microgrid power system according to the net load of the producers and sellers and the load of the consumers;

[0024] The net power generation of the microgrid power system is determined based on the net power generation of each producer and marketer and the power generation of each energy producer.

[0025] In one embodiment, the method further comprises:

[0026] Receiving a power selling request sent by a second user terminal; the power selling request is triggered and generated by a target producer and seller and / or a target energy producer on an energy management application of the second user terminal;

[0027] The power-related information stored in the energy management application is updated according to the latest power-related information included in the power sale request, and the updated power-related information is stored in the blockchain.

[0028] In a second aspect, the present application further provides an energy management device, the device comprising:

[0029] A first receiving module is used to receive an electricity purchase request sent by a first user terminal; the electricity purchase request is triggered and generated by a target consumer on an energy management application of the first user terminal;

[0030] A display module, used to obtain the latest power related information from the resource management database, determine the latest power quotation according to the relevant information, and send the latest power quotation to the first user terminal to instruct the first user terminal to display the latest power quotation on the energy management application;

[0031] The second receiving module is used to receive the selection instruction of the target consumer on the energy management application, and record the electric energy transaction information of the target consumer at that time.

[0032] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the energy management method of any one of the first and second aspects are implemented.

[0033] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the energy management method of any one of the first and second aspects described above.

[0034] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the energy management method of any one of the first and second aspects are implemented.

[0035] The above energy management method, device, equipment and storage medium, the method receives the electricity purchase request sent by the first user terminal, then obtains the latest electricity related information from the resource management database, and determines the latest electricity quotation based on the latest electricity related information, and sends the latest electricity quotation to the first user terminal to instruct the first user terminal to display the latest electricity quotation on the energy management application, and receives the target consumer's selection instruction on the energy management application, and records the target consumer's electricity transaction information at that time. In the above method, each user can realize transparent electricity trading through the energy management application, so that the target consumer can flexibly choose the source of electricity purchase according to the latest electricity quotation and personal needs. At the same time, the producer and marketer and energy producer can also sell the excess electricity at a suitable quotation according to market demand, thereby improving the flexibility of the energy market, helping to effectively manage the energy of the microgrid, improve energy utilization efficiency, and reduce energy waste. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of the structure of an energy management system in an embodiment;

[0037] Figure 2 is a schematic diagram of a flow chart of an energy management method in an embodiment;

[0038] Figure 3 A schematic diagram of the structure of an energy management system in another embodiment;

[0039] Figure 4 is a flow chart of an energy management method in another embodiment;

[0040] Figure 5 is a flow chart of an energy management method in another embodiment;

[0041] Figure 6 is a flow chart of an energy management method in another embodiment;

[0042] Figure 7 is a flow chart of an energy management method in another embodiment;

[0043] Figure 8 A schematic diagram of the latest electric energy quotation interval in an embodiment;

[0044] Fig. 9 is a flow chart of an energy management method in another embodiment;

[0045] Fig.10 is a structural block diagram of an energy management device in one embodiment;

[0046] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] With the enhancement of environmental awareness, people's demand for new energy is constantly increasing, which is promoting the development and application of various new energy power generation methods. In order to reduce dependence on traditional power grids, more and more microgrids are deployed. These microgrids can make better use of renewable energy, thereby reducing carbon emissions and environmental impact. However, the volatility and unpredictability of new energy sources pose challenges to the stability of microgrids. During high power generation periods, such as when wind and solar energy resources are sufficient, microgrids may face a situation where energy supply exceeds demand, while during low power generation periods, there may be a shortage of power supply. Therefore, how to effectively manage the energy of microgrids has become a problem that needs to be urgently solved in current microgrid systems. The present application provides an energy management method that aims to solve the above-mentioned technical problems. The following embodiments will specifically illustrate the energy management method described in the present application.

[0049] The energy management method provided in the embodiment of the present application can be applied to Figure 1In the energy management system shown, the energy management system includes an energy management application 01, a first user terminal 02 of a consumer, and a second user terminal 03 of a prosumer or energy producer, wherein the consumer, the prosumer, and the energy producer are components of a microgrid power system, which is a power system that generates electricity through new energy sources (such as solar energy, wind energy, hydropower, etc.). Among them, consumers are electricity users who meet their needs by purchasing or using electricity; prosumers are both electricity producers and electricity consumers, who produce electricity by installing renewable energy power generation equipment and meet their own electricity needs. Energy producers generate electricity through renewable energy to provide electricity for the microgrid power system. When there is surplus electricity, prosumers and energy producers can also sell excess electricity to microgrids or traditional power grids. Optionally, the energy management system can also include a traditional power system where a traditional power grid is located, which is a power system that generates electricity through non-new energy sources (such as oil, coal, nuclear energy, etc.). The energy management application 01 may be an application software installed on the first user terminal 02 and the second user terminal 03. The first user terminal 02 and the second user terminal 03 may be, but are not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. When a producer or energy producer has surplus electric energy, the surplus electric energy can be sold through the energy management application 01 installed on the second user terminal 03, and consumers can purchase electric energy through the energy management application 01 installed on the first user terminal 02. When consumers purchase electric energy, they can compare the electricity prices of producers and sellers, energy producers, and traditional power grids, and choose a suitable electricity price for transactions. If the surplus electric energy of the producer or energy producer is not sold to consumers, it can be further sold to the traditional power grid 04. Generally, the electricity price purchased by consumers from producers and sellers or energy producers is lower than the electricity price purchased from traditional power grids, and the electricity price sold by producers and sellers or energy producers to consumers is higher than the electricity price sold to traditional power grids. The background of the energy management application 01 can be various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices; it can also be an independent server or a server cluster composed of multiple servers.

[0050] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the energy management system to which the scheme of the present application is applied. The specific energy management system may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0051] In one embodiment, Figure 2 As shown, an energy management method is provided, which is applied to Figure 1The energy management application in the example is used to illustrate, including the following steps:

[0052] S101, receiving a power purchase request sent by a first user terminal.

[0053] The electricity purchase request is generated by triggering the target consumer on the energy management application of the first user terminal. The first user terminal is the user terminal of the consumer.

[0054] In an embodiment of the present application, when the target consumer needs to purchase electricity, he or she can open the energy management application APP on the first user terminal, and then initiate an electricity purchase request through the energy management application APP. The energy management application can then receive the electricity purchase request sent by the target consumer.

[0055] S102, obtaining the latest power related information from the resource management database, determining the latest power quotation according to the latest power related information, and sending the latest power quotation to the first user terminal to instruct the first user terminal to display the latest power quotation on the energy management application.

[0056] The resource management database stores the latest power-related information of the microgrid power system and the traditional power system. The latest power-related information includes real-time load data, new energy generation data, and battery storage data of the microgrid power system and the traditional power system, such as Figure 3 As shown, it can specifically include the hourly energy consumption information of consumers and prosumers (corresponding to lines -1 and 2 in the figure), the hourly power generation information of prosumers and energy producers (corresponding to lines -3 and 6 in the figure), the hourly energy charging information of prosumers and energy producers (corresponding to line -4 in the figure), the hourly energy emission information of prosumers and energy producers (corresponding to lines -5 and 7 in the figure), the hourly load plan of consumers (corresponding to line -8 in the figure), the hourly load-prosumer generation schedule (corresponding to line -9 in the figure), the hourly generation schedule of energy producers (corresponding to line -10 in the figure), and the hourly total load table of the microgrid power system (corresponding to line -11 in the figure). The latest electricity quotation includes the latest electricity quotation corresponding to the prosumer and the latest electricity quotation corresponding to the energy producer. Optionally, the latest electricity quotation can also include the latest electricity quotation corresponding to the traditional power grid.

[0057] In the embodiment of the present application, the energy management application can collect the real-time power data of consumers, producers and distributors, and energy producers in advance through the central controller, and transmit the real-time power data to the blockchain application through the communication gateway, and then store it in the resource management database through the blockchain technology, for example, in the data cloud or local controller. After the energy management application receives the power purchase request sent by the target consumer based on the above steps, it can obtain the latest power-related information from the resource management database, and then determine the latest power quotation based on the latest power-related information, and then send the latest power quotation to the first user terminal. After the first user terminal receives the latest power quotation, it can display the latest power quotation on the application interface of the energy management application. Specifically, the latest power quotation corresponding to the producer and distributor and the latest power quotation corresponding to the energy producer can be displayed, for example, the current power quotation of the producer and distributor is X, and the current power quotation of the energy producer is Y. Optionally, the latest power quotation corresponding to the traditional power grid can also be displayed. Optionally, power quotations of different power generation sources can also be displayed, such as wind power power quotation and solar power power quotation. Optionally, the electricity quotations of different units to which the electricity belongs can also be displayed, for example, the electricity quotation of unit 1 and the electricity quotation of unit 2. The target consumer can make a selection based on the electricity quotations displayed on the application interface of the energy management application, and can make a selection based on the price, the source of electricity, or the unit to which the electricity belongs. When the target user completes the selection operation, the generation of the selection instruction can be triggered.

[0058] S103, receiving a selection instruction from a target consumer on an energy management application, and recording the target consumer's current electricity transaction information.

[0059] The electric energy transaction information includes at least one of the following information: the time of the current electric energy transaction, the transaction party, the transaction amount, the transaction quantity, the current remaining quantity, etc.

[0060] In an embodiment of the present application, after the target consumer triggers the generation of a selection instruction based on the above steps, the energy management application can receive the selection instruction, and then conduct electricity transactions according to the needs of the target consumer, and record the electricity transaction information of the time, for example, storing the electricity transaction information of the time in the blockchain.

[0061] The energy management method provided in the embodiment of the present application receives an electricity purchase request sent by a first user terminal, then obtains the latest electricity-related information from a resource management database, determines the latest electricity quotation based on the latest electricity-related information, and sends the latest electricity quotation to the first user terminal to instruct the first user terminal to display the latest electricity quotation on the energy management application, and receives the target consumer's selection instruction on the energy management application, and records the target consumer's electricity transaction information for that time. In the above method, each user can realize transparent transactions of electricity through the energy management application, so that the target consumer can flexibly choose the source of electricity purchase according to the latest electricity quotation and personal needs. At the same time, producers and sellers and energy producers can also sell excess electricity at a suitable quotation according to market demand, thereby improving the flexibility of the energy market, helping to effectively manage the energy of the microgrid, improve energy utilization efficiency, and reduce energy waste.

[0062] In one embodiment, a specific implementation method for determining the latest power quotation based on the latest power related information is also provided, such as Figure 4 As shown, the "determining the latest electricity quotation according to the latest electricity related information" in the above step S102 includes:

[0063] S201, determining the current power information of various types of users in the microgrid power system according to the latest power related information.

[0064] Among them, various types of users include consumers, producers and sellers, and new energy producers. Current power information includes current power data, including load information, power generation information, market information, etc.

[0065] In an embodiment of the present application, the energy management application can extract the current power information of various types of users in the microgrid power system from the resource management database. Specifically, it can obtain power trading constraints, load information of consumers and producers and sellers, and power generation information of producers and sellers and energy producers.

[0066] S202, determining the latest electricity quotation based on the current electricity information of each type of user.

[0067] In the embodiment of the present application, after the energy management application obtains the current power information of each type of user based on the above steps, it can determine the latest electricity quotation according to the current power information of each type of user.

[0068] Specifically, Figure 5 As shown, the method for determining the latest electricity price may include:

[0069] S301, obtaining power trading constraints.

[0070] In the embodiment of the present application, the energy management application can construct power constraints in advance according to market demand and power conditions, and then store the power transaction constraints in the resource management database. Optionally, mature power transaction constraints can also be obtained through network crawling technology, and the power transaction constraints can be stored in the resource management database. After the energy management application receives the power purchase request sent by the first user terminal, the power transaction constraints can be obtained from the resource management database.

[0071] S302, determining the net power generation and net load of the microgrid power system according to the current power information of the prosumer and energy producer.

[0072] In the present application embodiment, Figure 6 As shown, the method for determining the net power generation and net load of the microgrid power system may include:

[0073] S3021, obtaining the load of consumers and the load of producers and sellers within a preset time period.

[0074] S3022, obtaining the power generation of prosumers and energy producers within a preset time period.

[0075] S3023, determining the net power generation and net load of the microgrid power system according to the load of the consumer, the load of the prosumer, the power generation of the prosumer and the power generation of the energy producer.

[0076] The preset time period may be one hour, half a day, or one day.

[0077] In the embodiment of the present application, the energy management application can obtain the load of consumers, the load of producers and sellers, the power generation of producers and sellers, and the power generation of energy producers within a preset time period through the resource management database. Then, the load of consumers, the load of producers and sellers, the power generation of producers and sellers, and the power generation of energy producers are substituted into the preset function to calculate the net power generation and net load of the microgrid power system.

[0078] Specifically, Figure 7 As shown, the method of “determining the net power generation and net load of the microgrid power system” in S3023 may include:

[0079] S1, determine the net load and net power generation of the producers and sellers according to the load and power generation of the producers and sellers.

[0080] S2, determine the net load of the microgrid power system according to the net load of the producers and sellers and the load of the consumers.

[0081] S3, determining the net power generation of the microgrid power system according to the net power generation of each producer and marketer and the power generation of each energy producer.

[0082] In an embodiment of the present application, after obtaining the consumer's load, the producer and seller's load, the producer and seller's power generation and the energy producer's power generation, the energy management application can determine the net load and net power generation of the producer and seller based on the producer and seller's load and the producer and seller's power generation, and then determine the net load of the microgrid power system based on the net load of the producer and seller and the consumer's load, and finally determine the net power generation of the microgrid power system based on the net power generation of each producer and seller and the power generation of each energy producer.

[0083] S303, determining the latest electricity price corresponding to the prosumer and the latest electricity price corresponding to the energy producer according to the power trading constraints, net power generation, net load, current power information of the prosumer and the energy producer.

[0084] In an embodiment of the present application, after the energy management application obtains the power trading constraints, net power generation, net load, current power information of producers and sellers and energy producers based on the above steps, the power trading constraints, net power generation, net load, current power information of producers and sellers and energy producers can be substituted into a preset functional relationship for calculation to obtain the latest electricity quotation corresponding to the producers and sellers and the latest electricity quotation corresponding to the energy producer.

[0085] Exemplarily, the microgrid power system includes the system comprising "p" producers and sellers (active users), "m" consumers (passive users) and "r" energy producers, wherein , , , , , The total number of each category corresponds to each other. Through smart meters, IoT devices and sensors, combined with communication infrastructure, the system establishes a two-way information flow between users and the microgrid main server. Within the blockchain network, consumers can access energy production, cost and consumption information of all prosumers and energy producers. Traditional grid prices are constant within one hour to promote competition within the microgrid.

[0086] When the power generation of the microgrid power system is insufficient or non-existent, consumers purchase electricity from the traditional power grid; when the power generation of the microgrid power system is in excess, the remaining electricity will be sold to the traditional power grid. The peer-to-peer energy internal trading strategy (P2P price for short) adopted in the embodiment of the present application allows the prosumers and energy producers of the local microgrid power system to trade energy fairly within their community, within the microgrid community, and in areas adjacent to other microgrids. Before the hourly power market clearing, the initial dispatch and optimized dispatch based on the prosumer response will be broadcast to the blockchain network, taking into account overload, voltage and frequency constraints.

[0087] (1) The process of “obtaining power trading constraints” in step S301 is as follows:

[0088] Energy transactions between households in microgrids follow the price range of traditional power grids. When the energy prices of nearby prosumers and energy producers are lower than those of traditional power grids, consumers are more willing to buy energy from them; while prosumers and energy producers with excess energy are more willing to sell energy at a better price than selling electricity to traditional power grids. Figure 8 As shown, the P2P price (i.e. the latest electricity price) should be between the buying and selling prices of the power grid:

[0089]

[0090] In the formula, is the price of electricity sold to the traditional grid, and, It is the price quoted for electricity purchased from the conventional power grid.

[0091] In an energy management system, both demand and generation vary over time. P2P prices should be determined in a way that benefits all participants. Prosumers and energy producers as sellers should receive a selling price that is higher than the traditional grid price, while consumers as buyers need to pay a purchase price that is lower than the price they would pay from the traditional grid.

[0092] (2) The process of “obtaining the load of consumers and the load of producers and sellers within a preset time period” in step S3021 is as follows:

[0093] The microgrid power system considers the hourly load distribution within a specific time interval defined by the set "h", where "h" varies from 1,…,H. Here, the time scale is 1 hour, and H represents a day, i.e. 24 hours. , defines an hourly load schedule , as shown below:

[0094]

[0095] This formula is a generalized equation applicable to all consumers and prosumers. It indicates the hourly load consumption of device "a" in kW, i.e. the load of consumers and the load of producers and sellers in the preset time period.

[0096] The hourly load distribution (kW) of producers and consumers at hour h is expressed as:

[0097]

[0098] ① The hourly load distribution (kW) of producers and sellers is expressed as:

[0099]

[0100] ② The hourly load distribution of consumers (kW) is expressed as:

[0101]

[0102] (3) The process of “obtaining the power generation of the prosumer and energy producer within the preset time period” in step S3022 is as follows:

[0103] set up For prosumers and energy producers The maximum energy production capacity provided in the time interval "h". Therefore, the hourly energy production is subject to the constraints:

[0104]

[0105] In the formula, It is the sum of all renewable energy generation contributed by possible source producers and prosumers.

[0106] For Prosumers and Energy Producers The battery energy storage is defined as:

[0107]

[0108] In the formula, They are charging and discharging in hours respectively.

[0109] Each consumer will have a certain number of appliances and operate between the standby power and maximum power limits. Therefore, outside of this hour, the minimum and maximum power demands are set to "0". These constraints can be expressed as:

[0110]

[0111] In the formula, and are the minimum and maximum power requirements of consumers / prosumers in the microgrid, respectively. On the other hand, active consumers with battery storage recharge their batteries after meeting their load consumption requirements or sell their excess power to nearby consumers or the main grid.

[0112] The state of charge (SOC) of battery energy storage has a time-varying state It can be expressed as:

[0113]

[0114] In the formula, the energy storage per hour is is the time-varying rate of SOC. Indicates that the battery is charging, negative value Indicates the discharge state, and a value of "0" means the battery is idle. At any point in time, the total stored energy is limited by the battery's maximum storage capacity. restrictions.

[0115] Therefore, the SOC at the end of the day is defined as:

[0116]

[0117] In the formula, The value of is flexible and assumes that at the end of the day the battery energy storage will remain in its initial state.

[0118] The hourly load distribution (kW) of prosumers and energy producers at hour h is expressed as:

[0119]

[0120] ① The power generation of the producer and seller in hour h (kW) is expressed as:

[0121]

[0122] ② The power generation of energy producers in the hth hour (kW) is expressed as:

[0123]

[0124] (4) The process of “determining the net power generation and net load of the microgrid power system” in step S3023 is as follows:

[0125] The net load (kW) of the prosumer and the net load (kW) of the microgrid power system in the h hour are given by the following formula:

[0126] ① Net load of producers and sellers:

[0127]

[0128] ② Net load of microgrid power system:

[0129]

[0130] Similarly, the net power generation (kW) of the prosumers and the net power generation (kW) of the microgrid power system at hour h is given by the following formula:

[0131] ① Net power generation of producers and sellers:

[0132]

[0133] ②Net power generation of microgrid power system:

[0134]

[0135] (5) The process of "determining the latest power quotation corresponding to the prosumer and the latest power quotation corresponding to the energy producer according to the power transaction constraints, net power generation, net load, and current power information of the prosumer and the energy producer" in step S303 is as follows:

[0136] The net load of the microgrid power system and net electricity generation To describe the supply and demand relationship in the community microgrid. Therefore, in the time period "h", the supply-demand ratio (SDR) of the microgrid is defined as:

[0137]

[0138] The relationship between price and SDR is inversely proportional, so a pricing model can be designed using this method. This P2P price pricing scheme is based on cryptocurrency. In the proposed microgrid system, Cosmos (ATOM) is used as a cryptocurrency for energy trading. ATOM is one of the famous cryptocurrencies in Asia, and it is comparable to the value of the US dollar. The actual purchase price at time "h" is expressed as Indicates that the sales price is Due to the restrictions on grid-connected electricity prices, When additional energy must be exported to the utility grid, the selling price can be set to ,when When the shared energy is less than the load requirement of the microgrid, the inverse proportional function can be used to determine the internal pricing Therefore, using As a fitting function to obtain the relationship between internal P2P price and SDR:

[0139]

[0140] When SDR is 0, it means that there is no power generation available for sharing between producers and sellers, that is, all energy must be purchased from the public grid. Therefore, the function Need to cover points (0, ).like , the selling price is , the function should also include the point (1, ). Substituting the two points into the function and solving the corresponding set of equations, we get the P2P price function:

[0141] Put two points (0, ) and (1, ) get:

[0142]

[0143] Further, solve and The value of is:

[0144]

[0145] Will and Substitute the value of into the formula In the above example, we can get the latest electricity price corresponding to the producers and sellers and the latest electricity price corresponding to the energy producers:

[0146]

[0147] In one embodiment, an energy management method is also provided. Fig. 9 As shown, the method includes:

[0148] S401: Receive a power selling request sent by a second user terminal.

[0149] The electricity sales request is triggered and generated by the target producer and seller and / or the target energy producer on the energy management application of the second user terminal. The second user terminal is a user terminal of the producer and seller or the energy producer.

[0150] In an embodiment of the present application, when the target producer and seller and / or the target energy producer needs to sell electricity, the energy management application APP on the second user terminal can be opened, and then a request for electricity sale can be initiated through the energy management application APP. The energy management application can then receive the electricity sale request sent by the target producer and seller and / or the target energy producer.

[0151] S402: Update the power-related information stored in the energy management application according to the latest power-related information included in the power selling request, and store the updated power-related information in the blockchain.

[0152] In an embodiment of the present application, after receiving the electricity sale request based on the above steps, the energy management application can extract the latest electricity-related information in the electricity sale request, and then use the latest electricity-related information to update the electricity-related information stored in the energy management application, and store the updated electricity-related information in the blockchain.

[0153] For example, in the current blockchain technology, each block is connected to the previous block through the SHA256-bit hash value, forming a transaction record chain to ensure that the transaction is traceable. The content of the block mainly consists of two parts: the block header, which shows the block version that must be followed and the pointer to the previous block; the Merkle tree root hash, which records all transaction processes. The blockchain is a distributed transaction database with nodes distributed globally and interconnected through P2P network communication. These nodes are virtual machines that rely on TCP communication and recognize each other by IP addresses. Transactions are encrypted and signed with private keys and can only be included in the chain after verification by all nodes in the network. This process requires transactions to be included in the block and mined according to the rules of the consensus algorithm. The longest chain is the most reliable chain, because nodes containing invalid transactions will be ignored and eliminated by the rest of the network.

[0154] The smart contract in the embodiment of the present application is a set of interaction rules written in high-level programming languages ​​such as Solidity on the Ethereum platform and agreed upon by the participants. Once the predefined criteria are met, the agreement will be automatically executed. Participants (consumers, producers and sellers, and energy producers) can call functions in the contract and send transactions, which will be automatically published on the Ethereum blockchain network. Smart contracts need to be compiled before they can be uploaded to the blockchain. Since the Ethereum network is built on the Ethereum Virtual Machine (EVM), smart contract programs written in high-level languages ​​must be compiled into bytecode before they can run. The contract application binary interface (ABI) is an interface for interacting with the EVM bytecode, and the EVM bytecode is the executable code on the EVM.

[0155] Based on all the above embodiments, an energy management method is also provided, which includes:

[0156] S501, receiving a power selling request sent by a second user terminal, wherein the power selling request is triggered and generated by a target producer and seller and / or target energy producer on an energy management application of the second user terminal.

[0157] S502: Update the power-related information stored in the energy management application according to the latest power-related information included in the power selling request, and store the updated power-related information in the blockchain.

[0158] S503: Receive a power purchase request sent by the first user terminal, wherein the power purchase request is triggered and generated by the target consumer on the energy management application of the first user terminal.

[0159] S504, obtaining the latest power-related information from the resource management database, and determining the current power information of various types of users in the microgrid power system according to the latest power-related information, wherein the various types of users include consumers, producers and sellers, and new energy producers.

[0160] S505, obtaining power transaction constraints.

[0161] S506, obtaining the load of consumers and the load of producers and sellers within a preset time period.

[0162] S507, obtaining the power generation of the prosumer and the energy producer within a preset time period.

[0163] S508, determining the net load and net power generation of the producers and sellers according to the load and power generation of the producers and sellers.

[0164] S509, determining the net load of the microgrid power system according to the net load of the producer and seller and the load of the consumer.

[0165] S510, determining the net power generation of the microgrid power system according to the net power generation of each producer and marketer and the power generation of each energy producer.

[0166] S511, based on the power trading constraints, net power generation, net load, current power information of producers and sellers and energy producers, determine the latest power quotations corresponding to the producers and sellers and the latest power quotations corresponding to the energy producers, and send the latest power quotations to the first user terminal to instruct the first user terminal to display the latest power quotations on the energy management application.

[0167] S712, receiving a selection instruction from a target consumer on an energy management application, and recording the target consumer's electricity transaction information for that time.

[0168] In the embodiment of the present application, the network administrator (NA) in the energy management application deploys the smart contract (EnergyKWH) using the constructor and runs the initialization function init(). All participants (consumers, prosumers and energy producers) register using their public keys through the register() function. Prosumers and energy producers with surplus electricity send requests to sell electricity, while consumers who need electricity send requests to NA at any given time. NA opens the market through the openMarket() function and broadcasts relevant information to all participants in the microgrid blockchain network. Prosumers and energy producers initiate power sales quotations through the offerEnergy() function. Consumers make power purchase requests through the askforEnergy() function. NA finds the quotation that best matches their needs through the findAppropriateSellers() function. Prosumers and energy producers bid on quotations from different consumers. There are two ways to bid: (a) calculate an optimal price through the above formula (SDR pricing) so that both buyers and sellers can benefit; (b) the quotation of the consumer with a higher bid is accepted (this embodiment mainly considers the optimal price based on the above method). NA closes the market through the closeMarket() function. After accepting the bids from prosumers and energy producers, they will send electricity to a specific consumer through the acceptHighestBid(offerId) function. Here we consider that the price of the highest bid should not be higher than the optimal price defined by SDR pricing. The power delivery is completed, the transaction is completed, and this new transaction is added to the block in the blockchain network. NA cleans up the inventory of bids and requests, and after meeting the local microgrid needs, it provides the remaining electricity to the main grid through the buyRemainingOffer() / sellToRemainingBuyers() function. In the algorithm, blockchain network participants create accounts with private key signatures, and use the registration function of the smart contract to complete identity authentication using the public key to ensure that only expected users can participate in the network. The network administrator is responsible for broadcasting the transaction to the blockchain network after all participants have verified it. This process emphasizes the necessity of user identity authentication mechanism, the miner role of the administrator, and transaction verification in the blockchain network, thereby ensuring the security of the network and the reliability of transactions.

[0169] The method described in the above embodiment, first, the proposed energy management system manages peer-to-peer energy transactions through smart contracts. The blockchain energy management system integrated in this model helps community microgrid users manage power generation and load balance to improve social efficiency. Secondly, participants interact through smart contracts to ensure that hourly transaction volumes and prices are transparently traded peer-to-peer through the blockchain network. Thirdly, the automatic execution of smart contracts reduces operating costs while ensuring the security, transparency and traceability of transactions. Finally, the microgrid system combined with blockchain effectively responds to the challenges of the distribution system, realizes orderly, automatic and secure energy P2P price settlement, and improves the flexibility of load-generation balance.

[0170] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0171] Based on the same inventive concept, the embodiment of the present application also provides an energy management device for implementing the energy management method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more energy management device embodiments provided below can refer to the limitations on the energy management method above, and will not be repeated here.

[0172] In one embodiment, Fig.10 As shown, an energy management device is provided, comprising:

[0173] The first receiving module 10 is used to receive an electricity purchase request sent by a first user terminal; the electricity purchase request is triggered and generated by a target consumer on an energy management application of the first user terminal.

[0174] The display module 11 is used to obtain the latest power related information from the resource management database, determine the latest power quotation based on the latest power related information, and send the latest power quotation to the first user terminal to instruct the first user terminal to display the latest power quotation on the energy management application.

[0175] The second receiving module 12 is used to receive the selection instruction of the target consumer on the energy management application, and record the electric energy transaction information of the target consumer at that time.

[0176] In one embodiment, the display module 11 includes:

[0177] The first determination unit is used to determine the current power information of various types of users in the microgrid power system according to the latest power related information; the various types of users include consumers, producers and sellers, and new energy producers.

[0178] The second determining unit is used to determine the latest electric energy quotation according to the current electric power information of each type of user.

[0179] In one embodiment, the second determining unit includes:

[0180] The first acquisition subunit is used to acquire power transaction constraint conditions.

[0181] The second acquisition subunit is used to determine the net power generation and net load of the microgrid power system according to the current power information of the prosumer and energy producer.

[0182] The determination subunit is used to determine the latest electricity quotation corresponding to the prosumer and the latest electricity quotation corresponding to the energy producer according to the power trading constraints, net power generation, net load, and the current power information of the prosumer and the energy producer.

[0183] In one embodiment, the above-mentioned determination subunit is specifically used to obtain the load of consumers and the load of producers and sellers within a preset time period; obtain the power generation of producers and sellers and the power generation of energy producers within a preset time period; and determine the net power generation and net load of the microgrid power system based on the load of consumers, the load of producers and sellers, the power generation of producers and sellers, and the power generation of energy producers.

[0184] In one embodiment, the above-mentioned determination subunit is also specifically used to determine the net load and net power generation of the producer and seller based on the load of the producer and seller and the power generation of the producer and seller; determine the net load of the microgrid power system based on the net load of the producer and seller and the load of the consumer; determine the net power generation of the microgrid power system based on the net power generation of each producer and seller and the power generation of each energy producer.

[0185] In one embodiment, the energy management device further includes:

[0186] The third receiving module is used to receive a power selling request sent by the second user terminal; the power selling request is triggered and generated by the target producer and seller and / or target energy producer on the energy management application of the second user terminal.

[0187] The update module is used to update the power-related information stored in the energy management application according to the latest power-related information included in the power sale request, and store the updated power-related information in the blockchain.

[0188] Each module in the above energy management device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0189] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an energy management method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0190] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0191] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of the energy management method described in any of the aforementioned embodiments are implemented.

[0192] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the energy management method described in any of the aforementioned embodiments are implemented.

[0193] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of the energy management method described in any of the above embodiments when executed by a processor.

[0194] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0195] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0196] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An energy management method, characterized in that: The method is applied to energy management applications, and the method comprises: Receiving a power purchase request sent by a first user terminal; the power purchase request is triggered and generated by a target consumer on an energy management application of the first user terminal; Acquire the latest power related information from the resource management database, determine the latest power quotation according to the latest power related information, and send the latest power quotation to the first user terminal to instruct the first user terminal to display the latest power quotation on the energy management application; Receive the selection instruction of the target consumer on the energy management application, and record the electric energy transaction information of the target consumer at that time.

2. The method according to claim 1, characterized in that Determining the latest electricity quotation according to the latest electricity related information includes: Determine the current power information of various types of users in the microgrid power system according to the latest power related information; the various types of users include consumers, producers and sellers, and new energy producers; The latest electric energy quotation is determined according to the current electric power information of each type of users.

3. The method according to claim 2, characterized in that The determining the latest electric energy quotation according to the current electric power information of each type of user includes: Obtain power trading constraints; Determine the net power generation and net load of the microgrid power system according to the current power information of the prosumer and the energy producer; According to the power trading constraints, the net power generation, the net load, the current power information of the prosumer and the energy producer, the latest power quotation corresponding to the prosumer and the latest power quotation corresponding to the energy producer are determined.

4. The method according to claim 3, characterized in that: The determining of the net power generation and net load of the microgrid power system according to the current power information of the prosumer and the energy producer comprises: Obtaining the load of the consumer and the load of the producer and seller within a preset time period; Obtaining the power generation of the prosumer and the energy producer within the preset time period; The net power generation and net load of the microgrid power system are determined according to the load of the consumer, the load of the prosumer, the power generation of the prosumer and the power generation of the energy producer.

5. The method according to claim 4, characterized in that Determining the net power generation and net load of the microgrid power system according to the load of the consumer, the load of the prosumer, the power generation of the prosumer and the power generation of the energy producer includes: Determining the net load and net power generation of the prosumer according to the load of the prosumer and the power generation of the prosumer; Determining the net load of the microgrid power system according to the net load of the prosumer and the load of the consumer; The net power generation of the microgrid power system is determined based on the net power generation of each of the prosumers and the power generation of each of the energy producers.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Receiving a power selling request sent by a second user terminal; the power selling request is triggered and generated by a target producer and seller and / or a target energy producer on an energy management application of the second user terminal; The power-related information stored in the energy management application is updated according to the latest power-related information included in the power selling request, and the updated power-related information is stored in the blockchain.

7. An energy management device, characterized in that: The device comprises: A first receiving module is used to receive a power purchase request sent by a first user terminal; the power purchase request is triggered and generated by a target consumer on an energy management application of the first user terminal; a display module, configured to obtain the latest power-related information from a resource management database, determine the latest power quotation according to the relevant information, and send the latest power quotation to the first user terminal to instruct the first user terminal to display the latest power quotation on the energy management application; The second receiving module is used to receive the selection instruction of the target consumer on the energy management application, and record the electric energy transaction information of the target consumer at that time.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.