Energy transfer method, device and equipment, readable storage medium and program product
By deploying producers and consumers in the microgrid in the blockchain network, the total output and demand capabilities are obtained, and the energy transfer strategy is determined to minimize the total cost. This solves the problem of low energy transfer efficiency in the microgrid and improves energy efficiency. Transfer efficiency and security.
Patent Information
- Application Number
- CN202410700706.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-03
AI Technical Summary
Existing microgrids are not efficient in the energy transfer process and require a third party to act as a controller to manage transaction information, resulting in low efficiency.
Deploy producers and consumers in the microgrid in the blockchain network, determine the total cost by obtaining the total output capacity and total demand capacity, and solve the transfer strategy based on energy dispatch constraints to achieve energy transfer with the minimum total cost.
The efficiency and security of energy transfer are improved, and the transaction process is verified and recorded through the blockchain network, ensuring the security and transparency of the transaction.
Smart Images

Figure CN118589507A
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart grid technology, and in particular to an energy transfer method, device, equipment, readable storage medium and program product. Background Art
[0002] With the development of smart grid technology, microgrids have emerged. Microgrids are small power systems composed of distributed power sources, energy storage devices, energy conversion devices, loads, monitoring and protection devices, etc. Energy transfer between microgrids can reduce dependence on the public power grid.
[0003] However, current microgrids all operate independently, and a third party is required to act as a controller to manage or control transaction information between microgrids during the energy transfer process. This energy transfer method is not efficient. Summary of the invention
[0004] Based on this, it is necessary to provide an energy transfer method, device, equipment, readable storage medium and program product that can improve the energy transfer efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides an energy transfer method, which is applied to a microgrid, where each producer and each consumer in the microgrid is deployed in a blockchain network, and the method includes:
[0006] Obtain the total output capacity and total demand capacity of the microgrid, where the total output capacity represents the total amount of energy produced by the microgrid, and the total demand capacity represents the energy consumption of each producer and consumer in the microgrid;
[0007] Determine the total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity;
[0008] Obtain energy dispatch constraints, and solve the transfer strategy of the microgrid that meets the target conditions based on the energy dispatch constraints, where the target condition is to minimize the total cost;
[0009] Energy transfer based on transfer strategy.
[0010] In one embodiment, obtaining the total output capacity and the total demand capacity of the microgrid includes:
[0011] Obtaining the production power of each producer in the microgrid at a second preset time;
[0012] Obtaining the power consumption of each producer and each consumer in the microgrid at a second preset time;
[0013] The net power of each producer is obtained according to each production power and each consumption power;
[0014] Based on the net power of each producer, calculate the total output capacity and the total demand capacity.
[0015] In one embodiment, determining the total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity includes:
[0016] Get the price model based on total output capacity and total demand capacity;
[0017] According to the price model, the total cost of the microgrid at a first preset time is determined.
[0018] In one embodiment, a price model is obtained according to the total output capacity and the total demand capacity, including:
[0019] Obtain the supply-demand ratio based on the total output capacity and total demand capacity;
[0020] The price model is obtained according to the supply-demand ratio and the energy transfer attributes of the public power grid.
[0021] In one embodiment, a price model is obtained according to the supply-demand ratio and the energy transfer attribute value of the public power grid, further comprising:
[0022] If the first amount of electricity demanded by each producer and each consumer is less than a preset threshold during the peak power generation period of the microgrid, the price model is adjusted according to the preset hysteresis value.
[0023] In one embodiment, the energy scheduling constraint condition includes a total energy invariance constraint condition and a power consumption constraint condition.
[0024] In a second aspect, the present application further provides an energy transfer device, which is applied to a microgrid, and each producer and each consumer in the microgrid is deployed in a blockchain network, and the device includes:
[0025] An acquisition module is used to acquire the total output capacity and total demand capacity of the microgrid, where the total output capacity represents the total amount of energy produced by the microgrid, and the total demand capacity represents the energy consumption of each producer and each consumer in the microgrid;
[0026] A determination module, configured to determine a total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity;
[0027] A solution module is used to obtain energy scheduling constraints and solve the transfer strategy of the microgrid that meets the target conditions based on the energy scheduling constraints. The target condition is to minimize the total cost.
[0028] The transfer module is used to transfer energy based on the transfer strategy.
[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any method described in the first aspect are implemented.
[0030] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the methods described in the first aspect are implemented.
[0031] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any of the methods described in the first aspect above.
[0032] The above energy transfer method, device, equipment, readable storage medium and program product are applied to a microgrid, and each producer and each consumer in the microgrid is deployed in a blockchain network, including: first, obtaining the total output capacity of the microgrid, which represents the total amount of energy produced by the microgrid, and the total demand capacity, which represents the energy consumption of each producer and each consumer in the microgrid, and then determining the total cost of the microgrid at the first preset time according to the total output capacity and the total demand capacity; at the same time, obtaining energy scheduling constraints, solving the transfer strategy of the microgrid that meets the target conditions based on the energy scheduling constraints, and the target condition is to minimize the total cost, and finally, energy transfer is performed based on the transfer strategy. In this way, the energy transfer strategy is determined based on the energy constraints and the minimum total cost of the microgrid energy transfer, and then energy transfer is performed according to the energy transfer strategy, so that the efficiency of energy transfer can be improved.
[0033] Furthermore, each producer and consumer in the microgrid is deployed in the blockchain network, which can verify and record the energy transfer process in the microgrid, making the energy transfer more secure. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A diagram of an application environment of an energy transfer method in one embodiment;
[0036] Figure 2 A schematic diagram of a process of an energy transfer method in one embodiment;
[0037] Figure 3 A schematic diagram of the structure of an energy transfer system in one embodiment;
[0038] Figure 4 A schematic diagram of an energy trading method in another embodiment;
[0039] Figure 5 A schematic diagram of a process of an energy transfer method in another embodiment;
[0040] Figure 6 A schematic diagram of a process of an energy transfer method in another embodiment;
[0041] Figure 7 A schematic diagram of a process of an energy transfer method in another embodiment;
[0042] Figure 8 A schematic diagram of a process of an energy transfer method in another embodiment;
[0043] Fig. 9 is a structural block diagram of an energy transfer device in one embodiment;
[0044] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0045] 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.
[0046] The energy transfer method provided in the embodiments of the present application can be applied to Figure 1 In the application environment shown, the microgrid includes multiple producers 10 and multiple consumers 20. The producers 10 can be participants with photovoltaic devices, solar panels that can generate electricity, or available batteries, that is, they can produce energy, and the consumers 20 are energy consumers.
[0047] Each producer 10 and consumer 20 in the microgrid is deployed in the blockchain network 30. The producer 10, consumer 20 and public power grid 40 are all nodes in the blockchain network 30, and energy transfer is performed through the smart contract of the blockchain network 30. The producer 10 can produce energy and consume energy, so there is a two-way energy flow, and the consumer 20 only consumes energy, so it is a one-way energy flow. The producer 10 and the consumer 20 can conduct point-to-point energy transactions through the blockchain network 30. Among them, the blockchain network 30 can be implemented through a server, which can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0048] In an exemplary embodiment, Figure 2 As shown, an energy transfer method is provided, which is applied to a microgrid, and each producer and each consumer in the microgrid is deployed in a blockchain network, including the following steps 201 to 204. Among them:
[0049] Step 201, obtaining the total output capacity and total demand capacity of the microgrid.
[0050] Among them, the total output capacity represents the total amount of energy produced by the microgrid, and the total demand capacity represents the energy consumption of each producer and consumer in the microgrid. Energy transfer is also energy trading. The total output capacity can be the total amount of electricity that can be sold by the microgrid, which is the total amount of energy produced by the microgrid. It can be calculated by the sum of the energy generated by each producer in the microgrid, that is, the total power generation. Producers can record, monitor and transmit energy information to the blockchain network through smart contracts. Energy information includes the producer's power generation and energy consumption. Consumers can transmit energy consumption to the blockchain network through smart contracts. The total demand capacity can also be the amount of electricity that the microgrid needs to purchase. The blockchain network can determine the energy trading strategy of the microgrid based on the total selling capacity and total demand capacity of the microgrid.
[0051] Step 202: determining the total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity.
[0052] The first preset time can be set according to actual needs, which can be 1 day, to determine the total cost of each producer and consumer in the microgrid after selling and purchasing electricity within 1 day.
[0053] Step 203, obtaining energy dispatch constraint conditions, and solving a transfer strategy of the microgrid that meets the target conditions based on the energy dispatch constraint conditions.
[0054] Among them, the target condition is to minimize the total cost, and the energy constraint scheduling condition is also the condition that needs to be met in the energy trading process, such as the law of conservation of energy, the total amount of energy before and after the energy transfer remains unchanged, or the power generation of the producer needs to be less than the rated power generation, or the pre-set power generation, etc. The transfer strategy is also the trading strategy, which can be the amount of electricity and price that each producer needs to sell, or the amount of electricity stored by each producer, or the amount of electricity and price that each consumer needs to buy. Determine the corresponding trading strategy while satisfying the minimum total cost of the microgrid.
[0055] Step 204: Perform energy transfer based on the transfer strategy.
[0056] After determining the transfer strategy, that is, the trading strategy, each producer and consumer can conduct energy transactions according to the trading strategy, thereby minimizing the total cost of the microgrid and improving the efficiency and economic benefits of energy transactions. Figure 3 As shown in the figure, it is a structural diagram of the energy trading system. Energy can flow from the public grid to the microgrid through power electronic interfaces such as inverters, and can also flow from the microgrid to the public grid. Producers can generate energy through household wind turbines or household photovoltaics and output energy to the microgrid. The microgrid can also purchase energy from the public grid or sell energy to the public grid. The distributed network allows energy transactions between producers using the microgrid and between producers and consumers. Figure 4 As shown in the figure, when the producer's photovoltaic power generation exceeds its own load requirements, the excess power can be sold to consumers with electricity needs, stored in batteries, or sold to the public grid. When the producer's photovoltaic power generation is lower than its own load requirements, the battery can be discharged to supplement the missing power, or power can be purchased from other adjacent microgrids, thereby realizing the energy trading process between microgrids.
[0057] In the above embodiment, each producer and each consumer in the microgrid is deployed in the blockchain network, including: first, obtaining the total output capacity of the microgrid, which represents the total amount of energy produced by the microgrid, and the total demand capacity, which represents the energy consumption of each producer and each consumer in the microgrid, and then determining the total cost of the microgrid at the first preset time according to the total output capacity and the total demand capacity; at the same time, obtaining energy scheduling constraints, solving the transfer strategy of the microgrid that meets the target conditions based on the energy scheduling constraints, and the target condition is to minimize the total cost, and finally, performing energy transfer based on the transfer strategy. In this way, the energy transfer strategy is determined based on the energy constraints and the minimum total cost of the microgrid energy transfer, and then energy transfer is performed according to the energy transfer strategy, thereby improving the efficiency of energy transfer.
[0058] Furthermore, each producer and consumer in the microgrid is deployed in the blockchain network, which can verify and record the energy transfer process in the microgrid, making the energy transfer more secure. Each node in the blockchain network has a unique identifier, and each node creates a copy of the blockchain ledger locally. During the energy transaction process, each node can maintain the blockchain ledger locally, share the transaction copy through the unique identifier, and copy it to all nodes in the network for verification. The security of energy transactions is improved through the consensus mechanism of the blockchain.
[0059] In the embodiment of the present application, the above step 201, such as Figure 5 Shown include:
[0060] Step 501, obtaining the production power of each producer in the microgrid at a second preset time.
[0061] Optionally, the second preset time may be a time interval, such as time t, during which the production power P of the i-th photovoltaic energy producer in the microgrid is i (t) is shown in the following formula (1).
[0062] (1)
[0063] in: Number the producers in the microgrid.
[0064] Step 502: Obtain the power consumption of each producer and each consumer in the microgrid at a second preset time.
[0065] The power consumed by a producer or consumer during time t As shown in the following formula (2).
[0066] (2)
[0067] in: is the number of consumers in the microgrid.
[0068] Step 503, obtaining the net power of each producer according to each production power and each consumption power.
[0069] For producers , defines the net power at a given time t As shown in the following formula (3).
[0070] (3)
[0071] Step 504, calculate the total output capacity and the total demand capacity according to the net power of each producer.
[0072] Different users, that is, different producers and consumers, have different energy consumption patterns. According to the net power in a specific period of time, different users can act as sellers or buyers in the energy trading process. The total output capacity is the total sales capacity, and the total demand capacity is the total purchasing capacity. Therefore, the total sales power (TSP) and total purchasing power (TPP) of the microgrid are defined as shown in the following equations (4) and (5).
[0073] (4)
[0074] (5)
[0075] In the above embodiment, the total selling capacity and total purchasing capacity of the microgrid are determined according to the energy production and energy consumption of each producer and each consumer, so that energy transactions can be accurately performed according to the total selling capacity and total purchasing capacity.
[0076] In one embodiment, the above step 202, such as Figure 6 As shown, including:
[0077] Step 601, obtaining a price model according to the total output capacity and the total demand capacity.
[0078] The price model can be the selling price and purchasing price of each producer and each consumer in time t. Optionally, the price model is calculated as Figure 7 Shown include:
[0079] Step 701, obtaining a supply-demand ratio according to the total output capacity and the total demand capacity.
[0080] According to economic theory, the relationship between price and supply-demand ratio is inversely proportional. The price model is based on the supply and demand model SDR. The total purchasing power is the energy consumption of producers or consumers, and the total selling power is the energy generated by photovoltaic power generation of producers. Therefore, the SDR at a given time t is defined as shown in the following formula (6).
[0081] (6)
[0082] Step 702: Obtain a price model according to the supply-demand ratio and the energy transfer attribute value of the public power grid.
[0083] Among them, the energy transfer attribute value of the public grid, that is, the price of energy transactions in the public grid, includes the purchase price from the grid and the price sold to the grid. The energy sales price and energy purchase price of the microgrid change in each period of 1 day, and the purchase price P of the producer or consumer in time t is defined as b (t) and sales price P s (t) is shown in the following formula.
[0084] (7)
[0085] (8)
[0086] (9)
[0087] in, is the energy transaction price between producers and consumers in the microgrid.
[0088] In order to encourage consumers and producers to participate in energy trading, especially during the peak period of photovoltaic power generation, the purchase price P of producers or consumersb (t) is less than or equal to the purchase price PG from the power grid b (t), the producer’s selling price P s (t) is greater than or equal to the grid sales price PG s (t). Purchase price P b (t) and sales price P s (t) is a function based on the supply-demand ratio, as shown below.
[0089] (10)
[0090] (11)
[0091] in, To compensate producers through compensation prices, producers can get better profits when participating in energy transactions in microgrids. When the buying and selling prices are different, the economic benefits provided to producers are greater than those to consumers, allowing producers to obtain better profits when participating in local energy transactions.
[0092] Optionally, a price model is derived based on the supply-demand ratio and the energy transfer attributes of the public grid, including:
[0093] If the first amount of electricity demanded by each producer and each consumer is less than a preset threshold during the peak power generation period of the microgrid, the price model is adjusted according to the preset hysteresis value.
[0094] If producers or consumers hoard energy or refuse to purchase energy during peak power generation, that is, when the first power demand of each producer and consumer is less than the preset threshold, the demurrage mechanism will be triggered to encourage producers and consumers to purchase local energy generated during peak power generation. The demurrage mechanism is a mechanism used to suppress energy hoarding and transmit price signals to customers. The expected demurrage value can be a demurrage fee, and the price model is adjusted according to the demurrage fee. In this case, given The conditions will be slightly different, i.e. the purchase price will be slightly higher and the sales price will be slightly lower than the buying and selling price of the utility grid. During peak generation periods, prices should follow the SDR pricing model. When the total purchasing capacity and total selling capacity of the microgrid are the same, and no electricity is purchased or sold from the utility grid. The selling price and the purchasing price are both equal to the utility grid’s selling price plus the compensation price. When 0, it means that the microgrid has no selling capacity. All producers and consumers need to buy energy from the public grid. Therefore, the purchase price and sales price are equal to the purchase price of the public grid. DR When (t)<1, the buying and selling prices will change according to formula (10) and formula (11). According to the above formula (10) and formula (11), S DR (t) Determine the energy transaction price between producers and consumers in each time period.
[0095] The deferred mechanism allows consumers to shift their electricity consumption to the period when the local microgrid has excess energy. Let δ be the deferred value, and the new sales price is derived from the deferred mechanism and purchase price They are equation (13) and equation (14), respectively, where K is a constant, and min and max are the time ranges for considering the hysteresis mechanism.
[0096] (12)
[0097] (13)
[0098] (14)
[0099] Step 602: Determine the total cost of the microgrid at a first preset time according to the price model.
[0100] Producers and consumers who participate in energy trading demand response can bear part of the transferable energy load. Due to the use of price incentives, producers and consumers may change their respective energy consumption. Therefore, the initial consumption power C i (t) has changed from the actual value. Power consumption after adjustment As shown in the following formula.
[0101] (15)
[0102] Define the adjusted net consumption of producers and consumers at update time interval t As shown in the following formula.
[0103] (16)
[0104] Producer The cost function at time t is defined as:
[0105] (17)
[0106] in: is the user price at time t, which includes the purchase price and the sales price.
[0107] As can be seen from the above, the first preset time is defined as 1 day. The total cost is shown below.
[0108] (18)
[0109] Among them, the user price is determined by the net power as the purchase price or the sales price, as shown in the following formula.
[0110] (19)
[0111] Optionally, the total cost of the microgrid in the first preset time period is the sum of the total costs of each producer in the microgrid.
[0112] In the above embodiment, by calculating the total cost of the microgrid, energy trading can be carried out with the lowest total cost, effectively promoting energy sharing among producers and consumers in the microgrid, improving the efficiency of energy trading, and minimizing the energy use cost of consumers, increasing the profit of producers, and further, through the demurrage mechanism, energy accumulation can be avoided and the energy trading of the microgrid can be optimized.
[0113] In one embodiment, the energy scheduling constraint condition includes a total energy unchanged constraint condition and a power consumption constraint condition. The energy scheduling process has two constraints. The total energy unchanged constraint condition is that the total energy remains unchanged before and after the energy transfer, as shown in Formula 21. The power consumption constraint condition is that the transferred power load must be between the minimum and maximum power loads configured by the original user, that is, the energy actually consumed by the user must be greater than the minimum value of the energy consumption configured by the original user and less than the maximum value of the energy consumption configured by the original user, as shown in Formula 22.
[0114] (20)
[0115] (twenty one)
[0116] In the embodiment of the present application, please refer to 8, which shows a flow chart of an energy transfer method provided in the embodiment of the present application, and the energy transfer method includes the following steps:
[0117] Step 801, obtaining the total output capacity and total demand capacity of the microgrid.
[0118] Step 802, obtaining a supply-demand ratio according to the total output capacity and the total demand capacity.
[0119] Step 803: Obtain a price model according to the supply-demand ratio and the energy transfer attribute value of the public power grid.
[0120] Step 804: Determine the total cost of the microgrid at a first preset time according to the price model.
[0121] Step 805, obtaining energy dispatch constraint conditions, and solving a transfer strategy of the microgrid that meets the target conditions based on the energy dispatch constraint conditions.
[0122] Step 806, performing energy transfer based on the transfer strategy.
[0123] 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.
[0124] Based on the same inventive concept, the embodiment of the present application also provides an energy transfer device for implementing the energy transfer 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 transfer device embodiments provided below can refer to the above limitations on the energy transfer method, and will not be repeated here.
[0125] In an exemplary embodiment, Fig. 9 As shown, an energy transfer device is provided, which is applied to a microgrid. Each producer and each consumer in the microgrid is deployed in a blockchain network, including: an acquisition module, a determination module, a solution module and a transfer module, wherein:
[0126] An acquisition module is used to acquire the total output capacity and total demand capacity of the microgrid, where the total output capacity represents the total amount of energy produced by the microgrid, and the total demand capacity represents the energy consumption of each producer and each consumer in the microgrid;
[0127] A determination module, configured to determine a total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity;
[0128] A solution module is used to obtain energy scheduling constraints and solve the transfer strategy of the microgrid that meets the target conditions based on the energy scheduling constraints. The target condition is to minimize the total cost.
[0129] The transfer module is used to transfer energy based on the transfer strategy.
[0130] In one of the embodiments, the acquisition module is specifically used to obtain the production power of each producer in the microgrid at the second preset time; obtain the consumption power of each producer and each consumer in the microgrid at the second preset time; obtain the net power of each producer based on each production power and each consumption power; and calculate the total output capacity and the total demand capacity based on the net power of each producer.
[0131] In one embodiment, the determination module is specifically used to obtain a price model according to the total output capacity and the total demand capacity; and determine the total cost of the microgrid at a first preset time according to the price model.
[0132] In one embodiment, the determination module is specifically used to obtain a supply-demand ratio according to the total output capacity and the total demand capacity; and to obtain a price model according to the supply-demand ratio and the energy transfer attribute value of the public power grid.
[0133] In one of the embodiments, the determination module is further used to adjust the price model according to a preset hysteresis value if the first power demanded by each producer and each consumer is less than a preset threshold value during the peak power generation period of the microgrid.
[0134] In one embodiment, the energy scheduling constraint condition includes a total energy invariance constraint condition and a power consumption constraint condition.
[0135] Each module in the above energy transfer 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 operations corresponding to each module.
[0136] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store energy transfer data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an energy transfer method is implemented.
[0137] Those skilled in the art will understand that Fig.10 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.
[0138] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining a total output capacity and a total demand capacity of a microgrid, wherein the total output capacity represents the total amount of energy produced by the microgrid, and the total demand capacity represents the energy consumption of each producer and each consumer in the microgrid; determining the total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity; obtaining energy scheduling constraints, and solving a transfer strategy of the microgrid that meets a target condition based on the energy scheduling constraints, wherein the target condition is to minimize the total cost; and performing energy transfer based on the transfer strategy.
[0139] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the production power of each producer in the microgrid at the second preset time; obtaining the consumption power of each producer and each consumer in the microgrid at the second preset time; obtaining the net power of each producer based on each production power and each consumption power; and calculating the total output capacity and the total demand capacity based on the net power of each producer.
[0140] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining a price model according to the total output capacity and the total demand capacity; and determining the total cost of the microgrid at a first preset time according to the price model.
[0141] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining a supply-demand ratio according to the total output capacity and the total demand capacity; and obtaining a price model according to the supply-demand ratio and the energy transfer attribute value of the public power grid.
[0142] In one embodiment, when the processor executes the computer program, the following steps are also implemented: if during the peak power generation period of the microgrid, the first power demanded by each producer and each consumer is less than a preset threshold, the price model is adjusted according to the preset demurrage value.
[0143] In one embodiment, the energy scheduling constraint condition includes a total energy invariance constraint condition and a power consumption constraint condition.
[0144] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining a total output capacity and a total demand capacity of a microgrid, wherein the total output capacity represents the total amount of energy produced by the microgrid, and the total demand capacity represents the energy consumption of each producer and each consumer in the microgrid; determining the total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity; obtaining energy scheduling constraints, and solving a transfer strategy of the microgrid that meets a target condition based on the energy scheduling constraints, wherein the target condition is to minimize the total cost; and performing energy transfer based on the transfer strategy.
[0145] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the production power of each producer in the microgrid at the second preset time; obtaining the consumption power of each producer and each consumer in the microgrid at the second preset time; obtaining the net power of each producer based on each production power and each consumption power; and calculating the total output capacity and the total demand capacity based on the net power of each producer.
[0146] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a price model according to the total output capacity and the total demand capacity; and determining the total cost of the microgrid at a first preset time according to the price model.
[0147] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a supply-demand ratio according to the total output capacity and the total demand capacity; and obtaining a price model according to the supply-demand ratio and the energy transfer attribute value of the public power grid.
[0148] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if during the peak power generation period of the microgrid, the first power demanded by each producer and each consumer is less than a preset threshold, the price model is adjusted according to the preset demurrage value.
[0149] In one embodiment, the energy scheduling constraint condition includes a total energy invariance constraint condition and a power consumption constraint condition.
[0150] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: obtaining a total output capacity and a total demand capacity of a microgrid, wherein the total output capacity represents the total amount of energy produced by the microgrid, and the total demand capacity represents the energy consumption of each producer and each consumer in the microgrid; determining the total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity; obtaining energy scheduling constraints, and solving a transfer strategy of the microgrid that meets a target condition based on the energy scheduling constraints, wherein the target condition is to minimize the total cost; and performing energy transfer based on the transfer strategy.
[0151] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the production power of each producer in the microgrid at the second preset time; obtaining the consumption power of each producer and each consumer in the microgrid at the second preset time; obtaining the net power of each producer based on each production power and each consumption power; and calculating the total output capacity and the total demand capacity based on the net power of each producer.
[0152] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a price model according to the total output capacity and the total demand capacity; and determining the total cost of the microgrid at a first preset time according to the price model.
[0153] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a supply-demand ratio according to the total output capacity and the total demand capacity; and obtaining a price model according to the supply-demand ratio and the energy transfer attribute value of the public power grid.
[0154] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if during the peak power generation period of the microgrid, the first power demanded by each producer and each consumer is less than a preset threshold, the price model is adjusted according to the preset demurrage value.
[0155] In one embodiment, the energy scheduling constraint condition includes a total energy invariance constraint condition and a power consumption constraint condition.
[0156] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0157] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method 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 the present application can include at least one of non-volatile memory 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), magnetic 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, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0158] 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 application.
[0159] 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. A method of energy transfer, It is characterized in that Applied in a microgrid, each producer and each consumer in the microgrid is deployed in a blockchain network, and the method includes: Obtaining a total output capacity and a total demand capacity of the microgrid, wherein the total output capacity represents the total amount of energy produced by the microgrid, and the total demand capacity represents the energy consumption of each producer and each consumer in the microgrid; Determining a total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity; Obtaining energy scheduling constraints, and solving a transfer strategy of the microgrid that meets a target condition based on the energy scheduling constraints, wherein the target condition is minimizing the total cost; Energy transfer is performed based on the transfer strategy.
2. The method according to claim 1, It is characterized in that The obtaining of the total output capacity and total demand capacity of the microgrid includes: Obtaining the production power of each producer in the microgrid at a second preset time; Obtaining the power consumption of each producer and each consumer in the microgrid during the second preset time; Obtaining the net power of each producer according to each production power and each consumption power; The total output capacity and the total demand capacity are calculated based on the net power of each of the producers.
3. The method according to claim 2, It is characterized in that The determining the total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity includes: Obtaining a price model according to the total output capacity and the total demand capacity; According to the price model, a total cost of the microgrid at a first preset time is determined.
4. The method according to claim 3, It is characterized in that The obtaining of a price model according to the total output capacity and the total demand capacity comprises: Obtaining a supply-demand ratio according to the total output capacity and the total demand capacity; The price model is obtained according to the supply-demand ratio and the energy transfer attribute value of the public power grid.
5. The method according to claim 4, It is characterized in that The price model is obtained according to the supply-demand ratio and the energy transfer attribute value of the public power grid, and further includes: If, during the peak power generation period of the microgrid, the first power demanded by each of the producers and each of the consumers is less than a preset threshold, the price model is adjusted according to a preset hysteresis value.
6. The method according to claim 1, It is characterized in that The energy scheduling constraints include a total energy invariance constraint and a power consumption constraint.
7. An energy transfer device, It is characterized in that Applied in a microgrid, each producer and each consumer in the microgrid is deployed in a blockchain network, and the device includes: An acquisition module, used to acquire the total output capacity and total demand capacity of the microgrid, wherein the total output capacity represents the total amount of energy produced by the microgrid, and the total demand capacity represents the energy consumption of each producer and each consumer in the microgrid; A determination module, configured to determine a total cost of the microgrid at a first preset time according to the total output capacity and the total demand capacity; A solution module, used for obtaining energy scheduling constraints, and solving a transfer strategy of the microgrid that meets a target condition based on the energy scheduling constraints, wherein the target condition is to minimize the total cost; A transfer module is used to perform energy transfer based on the transfer strategy.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that 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, It is 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, It is 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.
Citation Information
Cited By
Regulation and control method based on air conditioning system of enterprise clean room
CN119333954A
