Method and device for obtaining energy regulation scheme, and computer device

By constructing an integrated energy regulation model, combining energy procurement, transportation, and sales models, and using the maximization of revenue function for solution, the problem of low efficiency in traditional energy regulation methods is solved, achieving high efficiency and accuracy in energy regulation.

CN122155137APending Publication Date: 2026-06-05RICHFIT INFORMATION TECH +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
RICHFIT INFORMATION TECH
Filing Date
2024-12-05
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Traditional energy regulation methods rely on human experience, which is inefficient and inaccurate, and cannot effectively improve the efficiency and accuracy of energy transportation regulation.

Method used

An integrated energy regulation model is constructed, which combines energy procurement, transportation, and sales models. The objective function is to maximize the revenue function, and the solution is obtained using a mathematical model to generate an energy regulation scheme.

Benefits of technology

It improves the efficiency and accuracy of energy regulation, enabling more effective optimization of natural gas transportation and sales, and flexibly meeting energy demand.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122155137A_ABST
    Figure CN122155137A_ABST
Patent Text Reader

Abstract

The application provides an energy regulation scheme acquisition method and device and a computer device, and belongs to the technical field of computers. The energy regulation scheme acquisition method constructs an energy integration regulation model with a target function of maximizing income according to the models corresponding to each link in the procurement, transportation and sales integration process of energy, and obtains an energy regulation scheme by solving the energy integration regulation model. The above method integrates the models corresponding to each link in the integration process, solves the energy regulation scheme in a digital manner, has high efficiency and accuracy in obtaining the energy regulation scheme, and can improve the efficiency and accuracy of regulating energy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus and computer equipment for obtaining an energy regulation scheme. Background Technology

[0002] With the advancement of energy structure transformation, the demand for natural gas, as a clean fossil fuel, has surged. Against this backdrop, researching how to regulate energy transportation is of great significance within the integrated industrial chain of procurement, transportation, and sales of natural gas and other gaseous energy sources.

[0003] Currently, traditional control methods mainly rely on manual regulation of energy transportation based on historical experience, which is inefficient and has low accuracy. Therefore, there is an urgent need for a method to obtain energy control schemes, through which energy transportation can be regulated to improve the efficiency and accuracy of control. Summary of the Invention

[0004] This application provides a method, apparatus, and computer equipment for obtaining energy regulation schemes, used to improve the efficiency and accuracy of regulation. The technical solution is as follows:

[0005] Firstly, a method for obtaining an energy regulation scheme is provided, the method comprising:

[0006] Based on the energy procurement model, energy transportation model, and energy sales model, an integrated energy control model for the energy to be controlled is constructed. The energy procurement model is used to determine the costs incurred in the energy procurement process, the energy transportation model is used to determine the costs incurred in the energy transportation process, and the energy sales model is used to determine the revenue obtained in the energy sales process. The objective function of the integrated energy control model is to maximize the revenue function.

[0007] The energy integrated control model is solved by taking energy supply, energy demand, pipeline flow balance and pipeline capacity as constraints, and the energy control scheme is obtained.

[0008] In some embodiments, the above method further includes:

[0009] Identify multiple gas source nodes;

[0010] Based on multiple gas source nodes, determine the energy purchase price corresponding to each of the multiple gas source nodes;

[0011] Based on multiple gas source nodes, determine the pipe segment connected to each gas source node.

[0012] An energy procurement model is constructed based on the energy purchase price of each of the multiple gas source nodes and the energy transport volume of the pipeline connected to each gas source node.

[0013] In some embodiments, the above method further includes:

[0014] Determine the energy transportation cost for each of the multiple pipeline segments;

[0015] An energy transportation model is constructed based on the energy transportation costs of each of the multiple pipeline segments.

[0016] In some embodiments, the above method further includes:

[0017] Identify multiple customer nodes;

[0018] Based on multiple customer nodes, determine the energy sales price corresponding to each of the multiple customer nodes;

[0019] Based on multiple customer nodes, determine the pipe segment connected to each customer node among the multiple customer nodes;

[0020] An energy sales model is constructed based on the energy sales prices of each customer node and the energy transport volume of the pipeline segment connected to each customer node.

[0021] In some embodiments, when energy demand exceeds energy supply, the above method further includes:

[0022] With the energy demand, energy supply, pipeline flow balance and pipeline capacity corresponding to the first customer node as constraints, the energy integrated control model corresponding to the first customer node is solved to obtain the energy control scheme corresponding to the first customer node.

[0023] Based on the energy control scheme corresponding to the first customer node, obtain the remaining pipeline capacity;

[0024] The energy integrated control model corresponding to the second customer node is solved under the constraints of energy demand, energy supply, pipeline flow balance and remaining pipeline capacity. The energy control scheme corresponding to the second customer node is obtained. The priority of the second customer node is lower than that of the first customer node.

[0025] In some embodiments, the above-mentioned energy control scheme further includes the energy transport volume of each path in the energy transport model, where each path corresponds to a gas source node and a customer node, including multiple pipeline segments from the gas source node to the customer node; the integrated energy control model is solved using energy supply, energy demand, pipeline segment flow balance, and pipeline segment capacity as constraints, resulting in an energy control scheme including:

[0026] The energy integrated control model is solved by taking energy supply, energy demand, pipeline flow balance, pipeline capacity, and the correspondence between pipeline capacity and path capacity as constraints, so as to obtain the energy control scheme.

[0027] In some embodiments, the above-mentioned energy regulation scheme is an optimized natural gas transportation plan with the goal of maximizing revenue. The natural gas transportation plan includes the natural gas transportation volume of each pipeline segment in the energy transportation model.

[0028] In some embodiments, the above method is deployed as a microservice in a cloud platform, and the energy regulation scheme is obtained by calling the microservice through an application programming interface.

[0029] Secondly, an energy regulation scheme acquisition device is provided, the device comprising:

[0030] The model building module is used to construct an integrated energy control model for the energy to be controlled based on the energy procurement model, energy transportation model, and energy sales model. The energy procurement model is used to determine the costs incurred in the energy procurement process, the energy transportation model is used to determine the costs incurred in the energy transportation process, and the energy sales model is used to determine the revenue obtained in the energy sales process. The objective function of the integrated energy control model is to maximize the revenue function.

[0031] The planning acquisition module is used to solve the integrated energy control model with constraints such as energy supply, energy demand, pipeline flow balance, and pipeline capacity, and obtain the energy control scheme.

[0032] In some embodiments, the above-described apparatus further includes:

[0033] The gas source determination module is used to determine multiple gas source nodes;

[0034] The purchase price determination module is used to determine the energy purchase price corresponding to each of the multiple gas source nodes based on multiple gas source nodes.

[0035] The first pipe segment determination module is used to determine the pipe segment connected to each of the multiple gas source nodes based on multiple gas source nodes.

[0036] The procurement model construction module is used to construct an energy procurement model based on the energy purchase price corresponding to each of the multiple gas source nodes and the energy transportation volume of the pipeline connected to each gas source node.

[0037] In some embodiments, the above-described apparatus further includes:

[0038] The cost determination module is used to determine the energy transportation cost for each of multiple pipe segments;

[0039] The transportation model building module is used to build an energy transportation model based on the energy transportation costs of each segment in multiple pipelines.

[0040] In some embodiments, the above-described apparatus further includes:

[0041] The customer identification module is used to identify multiple customer nodes;

[0042] The sales price determination module is used to determine the energy sales price for each of the multiple customer nodes.

[0043] The second pipe segment determination module is used to determine the pipe segment connected to each of the multiple customer nodes based on multiple customer nodes.

[0044] The sales model building module is used to build an energy sales model based on the energy sales prices of multiple customer nodes and the energy transportation volume of the pipeline segments connected to each customer node.

[0045] In some embodiments, the above-described apparatus further includes:

[0046] The first solution module is used to solve the integrated energy control model corresponding to the first customer node with the energy demand, energy supply, pipeline flow balance and pipeline capacity as constraints, so as to obtain the energy control scheme corresponding to the first customer node.

[0047] The remaining capacity acquisition module is used to acquire the remaining pipeline capacity based on the energy control scheme corresponding to the first customer node.

[0048] The second solution module is used to solve the integrated energy control model corresponding to the second customer node with the energy demand, energy supply, pipeline flow balance and remaining pipeline capacity as constraints, so as to obtain the energy control scheme corresponding to the second customer node. The priority of the second customer node is lower than that of the first customer node.

[0049] In some embodiments, the above energy control scheme further includes the energy transport volume for each path in the energy transport model, where each path corresponds to a gas source node and a customer node, including multiple pipeline segments from the gas source node to the customer node; the planning acquisition module is used for:

[0050] The energy integrated control model is solved by taking energy supply, energy demand, pipeline flow balance, pipeline capacity, and the correspondence between pipeline capacity and path capacity as constraints, so as to obtain the energy control scheme.

[0051] In some embodiments, the above-mentioned energy regulation scheme is an optimized natural gas transportation plan with the goal of maximizing revenue. The natural gas transportation plan includes the natural gas transportation volume of each pipeline segment in the energy transportation model.

[0052] In some embodiments, the above method is deployed as a microservice in a cloud platform, and the energy regulation scheme is obtained by calling the microservice through an application programming interface.

[0053] Thirdly, a computer device is provided, the computer device including a processor and a memory, the memory being used to store at least one computer program, the at least one computer program being loaded and executed by the processor to perform the operations performed by the method for obtaining the energy regulation scheme provided in the first aspect or various alternative implementations of the first aspect.

[0054] Fourthly, a computer-readable storage medium is provided, wherein at least one computer program is stored therein, the at least one computer program being loaded and executed by a processor to perform the operations performed by the method for obtaining the energy regulation scheme provided in the first aspect or various alternative implementations of the first aspect.

[0055] Fifthly, a computer program product or computer program is provided, the computer program product or computer program including computer program code stored in a computer-readable storage medium, a processor of a computer device reading the computer program code from the computer-readable storage medium, the processor executing the computer program code, causing the computer device to perform the operations performed by the energy regulation scheme acquisition method provided in the first aspect or various optional implementations of the first aspect.

[0056] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods.

[0057] The beneficial effects of the technical solution provided in this application are:

[0058] Based on the models corresponding to each stage of the integrated energy procurement, transportation, and sales process, an integrated energy control model with profit maximization as the objective function is constructed. By solving this integrated energy control model, an energy control scheme is obtained. This method integrates the models corresponding to each stage of the integrated process and uses a digital approach to solve for the energy control scheme, resulting in high efficiency and accuracy in obtaining the energy control scheme, thus improving the efficiency and accuracy of energy regulation. Attached Figure Description

[0059] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0060] Figure 1 This is a schematic diagram illustrating the implementation environment of a method for obtaining an energy regulation scheme provided in an embodiment of this application;

[0061] Figure 2 This is a flowchart of an energy regulation scheme acquisition method provided in an embodiment of this application;

[0062] Figure 3 This is a flowchart of a method for obtaining an energy regulation scheme provided in an embodiment of this application;

[0063] Figure 4 This is an architecture diagram of a cloud platform provided in an embodiment of this application;

[0064] Figure 5 This is an architecture diagram of another cloud platform provided in an embodiment of this application;

[0065] Figure 6 This is a structural block diagram of an energy regulation scheme acquisition device provided in an embodiment of this application;

[0066] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0067] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0068] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "n," nor is there any limitation on the quantity or execution order.

[0069] In this application, the term "at least one" means one or more, and "multiple" means two or more.

[0070] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the energy regulation-related data involved in this application were obtained with full authorization.

[0071] The method for obtaining energy regulation schemes provided in this application can be executed by a computer device. In some embodiments, the computer device is a terminal or a server. The implementation environment of the method for obtaining energy regulation schemes provided in this application will be described below, taking a computer device as a server as an example.

[0072] Figure 1 This is a schematic diagram illustrating the implementation environment of a method for obtaining an energy regulation scheme provided in an embodiment of this application, such as... Figure 1 As shown, the implementation environment includes terminal 101 and server 102. Terminal 101 and server 102 can be connected directly or indirectly through wired or wireless networks, which is not limited herein.

[0073] In some embodiments, terminal 101 may be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, smart voice interaction device, smart home appliance, vehicle terminal, etc., but is not limited to these. Terminal 101 has an application installed and running that supports obtaining energy control schemes. Illustratively, terminal 101 is a user-used terminal. Terminal 101 sends an energy control scheme acquisition request to server 102 through the aforementioned application. This energy control scheme acquisition request instructs the user to obtain the corresponding energy control scheme based on preset gas source nodes, customer nodes, and gas pipeline networks.

[0074] In some embodiments, server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), big data, and artificial intelligence platforms. Server 102 is used to provide background services for applications that support obtaining energy control schemes. Illustratively, server 102 receives an energy control scheme acquisition request sent by terminal 101, obtains the energy control scheme based on the preset gas source node, customer node, and gas pipeline network indicated in the request, and returns the energy control scheme to terminal 101.

[0075] In some embodiments, the server 102 is a cloud server, which is deployed with a microservice architecture. The microservice architecture includes multiple microservices. In the process of obtaining energy control solutions, each microservice is responsible for implementing specific functions, so that the cloud server can provide background services for the application that supports obtaining energy control solutions through the microservice architecture. This application embodiment does not limit this.

[0076] Secondly, taking a computer device as an example, the terminal can be implemented in various possible ways as described above as terminal 101. An application program that supports obtaining energy control schemes is installed and running on terminal 101. The terminal obtains the corresponding energy control schemes based on preset gas source nodes, customer nodes and gas transmission pipelines through the application program. This application embodiment does not limit this.

[0077] Those skilled in the art will understand that the number of terminals and servers described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more. This application does not limit the number or type of terminals, or the number or type of servers.

[0078] In some embodiments, the aforementioned wireless or wired networks use standard communication technologies and / or protocols. The network is typically the Internet, but can be any network, including but not limited to Local Area Networks (LANs), Metropolitan Area Networks (MANs), Wide Area Networks (WANs), mobile, wired or wireless networks, private networks, or any combination of virtual private networks. In some embodiments, technologies and / or formats, including Hypertext Markup Language (HTML), Extensible Markup Language (XML), etc., are used to represent data exchanged over the network. Furthermore, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Networks (VPNs), and Internet Protocol Security (IPsec) can be used to encrypt all or some links. In other embodiments, custom and / or dedicated data communication technologies can be used to replace or supplement the aforementioned data communication technologies.

[0079] Figure 2This is a flowchart of an energy regulation scheme acquisition method provided in an embodiment of this application. Taking the server executing the method as an example, as follows... Figure 2 As shown, the method includes the following steps:

[0080] 201. Based on the energy procurement model, energy transportation model, and energy sales model, the server constructs an integrated energy control model for the energy to be controlled. The energy procurement model is used to determine the costs incurred in the energy procurement process, the energy transportation model is used to determine the costs incurred in the energy transportation process, and the energy sales model is used to determine the revenue obtained in the energy sales process. The objective function of the integrated energy control model is to maximize the revenue function.

[0081] The energy to be regulated is gaseous energy, such as natural gas, that can be transmitted through a pre-built transportation pipeline network. This network comprises multiple transportation routes, each including at least one pipeline segment. The energy procurement model, energy transportation model, energy sales model, and integrated energy regulation model are all mathematical models. The energy procurement model is a data model built based on the gas source nodes used for energy procurement and the corresponding energy purchase price at each node. Given a fixed number of gas source nodes and their corresponding energy purchase prices, it can determine the cost of energy procurement. The energy transportation model is a mathematical model built based on the pipeline segments used for energy transportation and the corresponding energy transportation costs at each segment. Given a fixed transportation pipeline network and its corresponding energy transportation costs, it can determine the cost of energy transportation. The energy sales model is a mathematical model built based on the customer nodes used for energy sales and the corresponding energy sales price at each customer node. Given a fixed number of customer nodes and their corresponding energy sales prices, it can determine the revenue received from energy sales. The integrated energy regulation model is a mathematical model built on the costs of purchasing energy, the costs of transporting energy, and the revenue from selling energy. It can determine the revenue from selling energy given that the costs of purchasing energy, transporting energy, and the revenue from selling energy are fixed.

[0082] In this embodiment, the server builds an energy procurement model, an energy transportation model, and an energy sales model based on multiple pre-set gas source nodes, multiple customer nodes, and a transportation pipeline network. Then, based on the energy procurement model, energy transportation model, and energy sales model, and with the maximization of the revenue function as the objective function, an integrated energy control model for the energy to be controlled is constructed.

[0083] 202. The server solves the integrated energy control model with constraints of energy supply, energy demand, pipeline flow balance, and pipeline capacity to obtain the energy control scheme.

[0084] Energy supply includes the amount of energy that each of the multiple gas source nodes can supply, while energy demand includes the amount of energy required by each of the multiple customer nodes. Pipeline flow balance means that for any given pipeline segment, the amount of energy flowing into that segment equals the amount of energy flowing out of it. For any given pipeline segment, the segment capacity refers to the amount of energy that the segment can transmit within a preset time period. Energy control schemes are used to regulate energy during the procurement, transportation, and sale of energy. These schemes are related to the variables in the integrated energy control model described above. For example, if the variable in the integrated energy control model is the amount of energy transported per pipeline segment, then the energy control scheme is the energy transportation plan, which indicates the amount of energy transported per pipeline segment.

[0085] In this embodiment, the server substitutes pre-set fixed values ​​into the integrated energy control model. Under constraints such as energy supply, energy demand, pipeline flow balance, and pipeline capacity, the server solves the integrated energy control model to obtain the variable values ​​corresponding to the maximum benefit. An energy control plan is then generated based on these variable values. For example, the pre-set fixed values ​​are the energy purchase price of gas source nodes and each gas source node, the energy transportation cost of the transportation network and each pipeline segment, and the energy sales price of customer nodes and each customer node. The variable in the integrated energy control model is the energy transportation volume of each pipeline segment. During the solution process of the integrated energy control model, the server substitutes the aforementioned fixed values ​​into the integrated energy model and solves under constraints to obtain the energy transportation volume of each pipeline segment when the maximum benefit is achieved. An energy transportation plan is then generated based on the energy transportation volume of each pipeline segment.

[0086] The energy regulation scheme acquisition method provided in this application embodiment constructs an integrated energy regulation model with profit maximization as the objective function based on the models corresponding to each link in the integrated energy procurement, transportation, and sales process. By solving this integrated energy regulation model, the energy regulation scheme is obtained. This method integrates the models corresponding to each link in the integrated process and uses a digital approach to solve the energy regulation scheme, resulting in high efficiency and accuracy in obtaining the energy regulation scheme, thus improving the efficiency and accuracy of energy regulation.

[0087] The following is combined Figure 3 Taking natural gas as the energy to be regulated, natural gas transportation plan as the energy regulation scheme, and the above method executed by the server as an example, the method for obtaining the energy regulation scheme provided in this application embodiment will be described by way of example. Figure 3 This is a flowchart of a method for obtaining an energy regulation scheme provided in an embodiment of this application, such as... Figure 3 As shown, the method includes the following steps.

[0088] 301. In response to the request for obtaining the natural gas transportation plan, the server builds an initial integrated natural gas control model. The objective function of the integrated natural gas control model is to maximize the revenue function.

[0089] In this embodiment of the application, the server responds to the natural gas transportation plan acquisition request sent by the terminal or other servers, and builds an initial integrated natural gas control model with the objective function of maximizing revenue. The completed integrated natural gas control model is shown in the following formula (1).

[0090] max Profit = S out -P in -C pipeline (1)

[0091] Where max Profit is used to indicate the function that maximizes the profit, S out P is used to indicate the revenue obtained from the sale of natural gas. in C is used to indicate the cost incurred in the procurement of natural gas. pipeline This indicates the costs incurred in the transportation of natural gas.

[0092] Step 301 above is equivalent to the process of building the overall framework of the integrated natural gas control model. This process takes maximizing revenue as the objective function. Considering that the revenue from selling natural gas is related to the gas purchase cost, transportation cost, sales price, and sales income, the constructed integrated natural gas control model covers the natural gas procurement environment, transportation link, and sales link, integrating the links included in the natural gas sales industry chain. Based on the integrated natural gas control model obtained through integration, natural gas can be controlled, which can reduce natural gas procurement costs, improve the profitability of natural gas sales, and more effectively carry out optimized control of natural gas, flexibly meeting new gas demand.

[0093] Furthermore, step 301 above is illustrated using the objective function of maximizing revenue as an example. In some embodiments, the objective function may also be a function that minimizes cost or a function that minimizes energy consumption, etc. This application does not limit this.

[0094] 302. The server determines multiple gas source nodes, the natural gas purchase price corresponding to each of the multiple gas source nodes, and the pipeline segment connected to each of the multiple gas source nodes.

[0095] In this system, gas source nodes are nodes used to supply natural gas. Natural gas sellers purchase natural gas from these gas source nodes and then sell the purchased natural gas to other customers. These multiple gas source nodes are pre-set and change in real time according to actual conditions. For example, if multiple natural gas extraction points exist in a preset geographical area, each extraction point is a gas source node. When a gas source node stops extracting natural gas, it is removed from the list of multiple gas source nodes. Each gas source node is connected to at least one pipeline segment. The multiple gas source nodes, the corresponding natural gas purchase price for each gas source node, and the pipeline segments connected to each gas source node are stored in the gas source node information. This gas source node information is stored locally on a server or in a database; this embodiment does not limit this.

[0096] In this embodiment of the application, the server determines multiple gas source nodes from gas source node information stored locally or in a database. Based on the determined multiple gas source nodes, the server determines the natural gas purchase price corresponding to each of the multiple gas source nodes and the pipeline segment connected to each of the multiple gas source nodes from the gas source node information.

[0097] Step 302 above is a possible implementation method in which the server determines multiple gas source nodes, determines the energy purchase price corresponding to each of the multiple gas source nodes, and determines the pipeline segment connected to each of the multiple gas source nodes. In this possible implementation method, the energy purchase price is the natural gas purchase price.

[0098] 303. The server uses the natural gas transportation volume of the pipeline connected to each gas source node as a variable, and constructs a natural gas procurement model based on the natural gas purchase price corresponding to each of the multiple gas source nodes and the natural gas transportation volume of the pipeline connected to each gas source node. The natural gas procurement model is used to determine the cost consumed in the natural gas procurement process.

[0099] In this embodiment of the application, the server uses the natural gas transportation volume of the pipeline connected to each gas source node as a variable, and constructs a natural gas procurement model based on the natural gas purchase price corresponding to each of the multiple gas source nodes and the natural gas transportation volume of the pipeline connected to each gas source node. The constructed natural gas procurement model is shown in the following formula (2).

[0100]

[0101] Where n indicates the number of gas source nodes, m indicates the number of pipe segments connected to the i-th gas source node (i.e., gas source node i), and type indicates the type of node; type = 0 for node i indicates that node i is a gas source node, and type = 1 for node j indicates that node j is a transportation node. P i Used to indicate the purchase price of natural gas at gas source node i, x ijThis is used to indicate the natural gas transport volume of a pipeline segment starting at node i and ending at node j. The unit of this transport volume can be thousands of cubic meters, and the unit of the natural gas purchase price can be yuan per thousand cubic meters; however, this embodiment of the application does not limit this.

[0102] Step 303 above is a possible implementation of the server constructing an energy procurement model based on the energy purchase price of each of the multiple gas source nodes and the energy transportation volume of the pipeline connected to each gas source node. In this possible implementation, the energy purchase price is the natural gas purchase price, the energy transportation volume is the natural gas transportation volume, and the energy procurement model is the natural gas procurement model.

[0103] The process described in steps 302 to 303 above is also equivalent to the process of constructing an analysis framework for the natural gas procurement process. In this process, the server acquires and organizes data related to the gas source nodes, and constructs a natural gas procurement model based on this data and the natural gas transportation volume of the pipeline segment as the optimization variable.

[0104] 304. The server determines the natural gas transportation cost for the transportation pipeline network and each segment of the multiple pipeline segments within the transportation pipeline network.

[0105] The transportation pipeline network is pre-defined and comprises multiple transportation routes, each including at least one pipeline segment. Accordingly, the information for the transportation pipeline network includes the transportation routes within the network, the pipeline segments within each route, and the natural gas transportation cost for each segment. This information is stored locally on a server or in a database. Similar to the multiple gas source nodes mentioned above, the information for the transportation pipeline network also changes in real time based on actual conditions.

[0106] In this embodiment of the application, the server determines the transportation pipeline network from the transportation pipeline network information stored locally or in the database, and determines the natural gas transportation cost of each of the multiple pipeline segments in the transportation pipeline network based on the determined transportation pipeline network information.

[0107] Step 304 above is one possible implementation of the server determining the energy transportation cost of each of multiple pipeline segments, where the energy transportation cost is the natural gas transportation cost. In some embodiments, the information of the above-mentioned transportation network includes information on long-distance (branch) pipelines, urban pipeline networks, LNG (Liquefied Natural Gas) pipelines, and LPG (Liquefied Petroleum Gas) pipelines. Therefore, when energy is regulated using the energy regulation scheme acquisition method provided in this application embodiment, unified regulation of different business or type of transportation pipelines can be achieved, resulting in high efficiency.

[0108] 305. The server uses the natural gas transportation volume of each pipeline segment as a variable and the natural gas transportation cost of each pipeline segment to construct a natural gas transportation model. The natural gas transportation model is used to determine the costs incurred in the transportation of natural gas.

[0109] The natural gas transportation cost for each of the multiple pipeline segments is pre-set and stored in the information of the aforementioned transportation pipeline network.

[0110] In this embodiment of the application, the server obtains the natural gas transportation cost of each of the above multiple pipe segments from the information of the transportation pipeline network, uses the natural gas transportation volume of each of the multiple pipe segments as a variable, and constructs a natural gas transportation model based on the natural gas transportation cost of each of the multiple pipe segments. The constructed natural gas transportation model is shown in the following formula (3).

[0111]

[0112] Where, type = 0, 1 indicates that node i is a gas source node or a transportation node, type = 1, 2 indicates that node j is a transportation node or a customer node, n indicates the total number of gas source nodes and transportation nodes that can serve as the starting point of a pipeline segment, and m indicates the total number of customer nodes and transportation nodes that can serve as the ending point of a pipeline segment starting from node i. ij Used to indicate the natural gas transportation cost for a pipeline segment starting at node i and ending at node j, x ij This is used to indicate the volume of natural gas transported in a pipeline segment starting at node i and ending at node j. The unit for natural gas transportation costs can be yuan per thousand cubic meters, but this embodiment of the application does not limit this.

[0113] Step 305 above is a possible implementation of the server constructing an energy transportation model based on the energy transportation cost of each of the multiple pipeline segments. In this possible implementation, the energy transportation cost is the natural gas transportation cost, and the energy transportation model is the natural gas transportation model.

[0114] The process described in steps 304 to 305 above is equivalent to the process of constructing an analytical framework for the natural gas transportation process.

[0115] 306. The server determines multiple customer nodes, the natural gas sales price corresponding to each of the multiple customer nodes, and the pipeline segment connected to each of the multiple customer nodes.

[0116] In this context, customer nodes are nodes used for selling natural gas. These multiple customer nodes are pre-set and change in real time according to actual conditions. For example, if multiple residential areas exist in a preset geographical region, each residential area is a customer node. When a customer node stops using natural gas, it is removed from the list of multiple customer nodes. Each customer node is connected to at least one pipeline segment. The multiple customer nodes, the corresponding natural gas sales price for each customer node, and the pipeline segment connected to each customer node are stored in the customer node information. This customer node information is stored locally on a server or in a database; this embodiment does not limit the specific storage location.

[0117] In this embodiment of the application, the server determines multiple customer nodes from customer node information stored locally or in a database. Based on the determined multiple customer nodes, the server determines the natural gas sales price corresponding to each of the multiple customer nodes and the pipeline segment connected to each of the multiple customer nodes from the aforementioned customer node information.

[0118] Step 306 above is a possible implementation method in which the server determines multiple customer nodes, determines the energy sales price corresponding to each of the multiple customer nodes, and determines the pipeline segment connected to each of the multiple customer nodes. In this possible implementation method, the energy sales price is the natural gas sales price.

[0119] 307. The server uses the natural gas transportation volume of the pipeline segment connected to each customer node as a variable, and constructs a natural gas sales model based on the natural gas sales price corresponding to each customer node and the natural gas transportation volume of the pipeline segment connected to each customer node. The natural gas sales model is used to determine the revenue obtained from the natural gas sales process.

[0120] In this embodiment of the application, the server uses the natural gas transportation volume of the pipeline connected to each customer node as a variable, and constructs a natural gas sales model based on the natural gas sales price corresponding to each of the multiple customer nodes and the natural gas transportation volume of the pipeline connected to each customer node. The constructed natural gas sales model is shown in the following formula (4).

[0121]

[0122] Where n indicates the number of customer nodes, m indicates the number of pipe segments connected to the j-th customer node (i.e., customer node j), and type indicates the type of node; type=2 for node j indicates that node j is a customer node, and type=1 for node i indicates that node i is a transportation node. j Used to indicate the natural gas sales price at customer node j, x ijThis is used to indicate the volume of natural gas transported in a pipeline segment starting at node i and ending at node j. The unit of this transport volume can be thousands of cubic meters, and the unit of the natural gas sales price can be yuan per thousand cubic meters; however, this embodiment of the application does not limit this.

[0123] Step 307 above is a possible implementation of the server constructing an energy sales model based on the energy sales prices corresponding to multiple customer nodes and the energy transportation volume of the pipeline connected to each customer node. In this possible implementation, the energy sales price is the natural gas sales price, the energy transportation volume is the natural gas transportation volume, and the energy sales model is the natural gas sales model.

[0124] The process described in steps 306 and 307 above is also equivalent to constructing an analytical framework for the natural gas sales process. In this process, customer nodes can include those for wholesale and those for retail. By constructing the aforementioned natural gas sales model, the wholesale and retail processes can be integrated, thereby reducing intermediate steps in sales, lowering transaction costs, and simultaneously improving service quality and customer satisfaction.

[0125] 308. The server inputs the natural gas procurement model, natural gas transportation model, and natural gas sales model into the initial integrated natural gas control model.

[0126] In this embodiment, the server substitutes the above-mentioned natural gas procurement model, natural gas transportation model, and natural gas sales model into the initial integrated natural gas control model to obtain a revenue maximization function with the natural gas transportation volume of the pipeline segment as the optimization variable.

[0127] Steps 301 to 308 above are a possible implementation method for the server to construct an integrated energy control model for the energy to be controlled based on the energy procurement model, energy transportation model, and energy sales model. In this possible implementation method, the energy to be controlled is natural gas, the energy procurement model, energy transportation model, and energy sales model are natural gas procurement model, natural gas transportation model, and natural gas sales model, respectively, and the integrated energy control model is a natural gas integrated control model.

[0128] 309. The server solves the integrated natural gas control model by taking natural gas supply, natural gas demand, pipeline flow balance and pipeline capacity as constraints, and obtains the natural gas transportation plan.

[0129] Among them, the constraints are the parameters that affect the regulation of natural gas. The constraints of natural gas supply, natural gas demand, pipeline flow balance and pipeline capacity are shown in the following formulas (5) to (8).

[0130]

[0131] Among them, ai The value of m indicates the amount of natural gas that gas source node i can supply, and the value of x indicates the number of pipeline segments connected to gas source node i. ij Used to indicate the amount of natural gas transported in a pipeline segment starting at node i and ending at node j.

[0132]

[0133] Among them, c j The x indicates the amount of natural gas required by customer node j, n indicates the number of pipeline segments connected to customer node j, and x indicates the amount of natural gas required by customer node j. ij Used to indicate the amount of natural gas transported in a pipeline segment starting at node i and ending at node j.

[0134]

[0135] Where n indicates the number of pipe segments ending at node j, and m indicates the number of pipe segments starting at node j. ij Used to indicate the amount of natural gas transported in a pipeline segment starting at node i and ending at node j, x jk Used to indicate the amount of natural gas transported in a pipeline segment starting at node j and ending at node k.

[0136] Pipe section capacity: 0≤x ij ≤PC max (8)

[0137] Where, x ij PC is used to indicate the amount of natural gas transported in a pipeline segment starting at node i and ending at node j. max Used to indicate the maximum capacity of a pipe segment starting at node i and ending at node j.

[0138] In this embodiment, the server uses natural gas supply, natural gas demand, pipeline flow balance, and pipeline capacity as constraints to solve the integrated natural gas control model and obtain a natural gas transportation plan.

[0139] Step 309 above involves the server solving the integrated energy control model under constraints of energy supply, energy demand, pipeline flow balance, and pipeline capacity to obtain a possible implementation of the energy control scheme. In this possible implementation, the energy supply and energy demand are the natural gas supply and natural gas demand, respectively. The integrated energy control model is a natural gas integrated control model, and the energy control scheme is an optimized natural gas transportation plan with the goal of maximizing revenue. This natural gas transportation plan includes the natural gas transportation volume of each pipeline segment in the natural gas transportation model.

[0140] The energy regulation scheme acquisition method provided in this application embodiment constructs an integrated energy regulation model with profit maximization as the objective function based on the models corresponding to each link in the integrated energy procurement, transportation, and sales process. By solving this integrated energy regulation model, the energy regulation scheme is obtained. This method integrates the models corresponding to each link in the integrated process and uses a digital approach to solve the energy regulation scheme, resulting in high efficiency and accuracy in obtaining the energy regulation scheme, thus improving the efficiency and accuracy of energy regulation.

[0141] In some embodiments, when energy demand exceeds energy supply, the energy integrated control model corresponding to the first customer node is solved using the energy demand, energy supply, pipeline flow balance, and pipeline capacity as constraints. This yields the energy control scheme for the first customer node. Based on the energy control scheme for the first customer node, the remaining pipeline capacity is obtained. Then, the energy integrated control model corresponding to the second customer node is solved using the energy demand, energy supply, pipeline flow balance, and remaining pipeline capacity as constraints. This yields the energy control scheme for the second customer node, where the priority of the second customer node is lower than that of the first customer node.

[0142] In the above solution process, since the gas is distributed to customer nodes of different priorities in sequence, and the gas volume of the completed distribution will occupy part of the pipeline capacity, after the distribution of each priority customer node is completed, the remaining pipeline capacity needs to be recalculated before the distribution process of the next priority customer node can continue. The formula for calculating the remaining pipeline capacity is shown in the following formula (9).

[0143] PC = PC max -x ij (9)

[0144] PC is used to indicate the remaining pipe section capacity. max Used to indicate the maximum capacity of a pipe section, x ij Used to indicate the distributed capacity of a pipe segment starting at node i and ending at node j.

[0145] In some embodiments, the energy control scheme further includes the energy transport volume of each path in the energy transport model. Each path corresponds to a gas source node and a customer node, including multiple pipeline segments from the gas source node to the customer node. The energy control scheme is obtained by solving the integrated energy control model under constraints of energy supply, energy demand, pipeline segment flow balance, and pipeline segment capacity. This involves solving the integrated energy control model under constraints of energy supply, energy demand, pipeline segment flow balance, pipeline segment capacity, and the correspondence between pipeline segment capacity and path capacity. In the above process, due to the complexity of the transport pipeline network, there may be more than one transport path to the same customer node. The final natural gas transport volume received by that customer node is the sum of the transport volumes of all transport paths leading to that customer node.

[0146] The relationship between pipe segment capacity and route capacity is that the pipe segment capacity is equal to the sum of the route capacities of all transport routes passing through that pipe segment.

[0147] In some embodiments, such as Figure 4As shown, the method for obtaining the aforementioned energy control scheme is implemented based on a cloud platform, specifically deployed as a microservice within the cloud platform. The energy control scheme is obtained by calling this microservice through an application programming interface (API). Accordingly, the cloud platform includes a data layer, a microservice layer, an API (Application Programming Interface) layer, and an application layer. The data layer stores real-time data related to obtaining the energy control scheme, such as information about gas source nodes, customer nodes, and transportation pipelines. In some embodiments, the data stored in the data layer is obtained through a business system deployed on the aforementioned server; this application embodiment does not limit this approach. The microservice layer includes microservices corresponding to the aforementioned energy procurement, energy transportation, energy sales, and the monitoring and early warning stages described below. These microservices are used to handle functions related to obtaining the energy control scheme in each of the aforementioned stages, or to handle optimizations in each of the aforementioned stages. The microservices corresponding to each of the aforementioned stages are described later. The API layer provides standardized API interfaces, enabling business systems to call microservices through these API interfaces. These API interfaces can be RESTful APIs or SOAP APIs; this application embodiment does not limit this approach. The application layer receives operation requests from business systems and, based on these requests, calls the corresponding microservices via API interfaces to process them. For example, the application layer might call a microservice via an API interface to obtain energy control solutions or real-time monitoring data. The microservices corresponding to each of these stages are deployed in the cloud platform, enabling comprehensive optimization of procurement, transportation, and sales. Through this microservice architecture, the integrated energy control model achieves efficient integration and invocation within the cloud platform, ensuring smooth optimization at each stage and improved overall efficiency.

[0148] The microservices corresponding to the procurement process include the following functions:

[0149] Data Acquisition Function: Through the cloud platform's API interface, real-time energy supply and demand data, industry reports, historical price data, and procurement records are collected from the energy procurement database. Forecasting Function: Utilizing big data analytics, the collected data is cleaned and analyzed to predict future energy demand and price trends. Optimization Function: The energy procurement optimization microservice is invoked. Based on the forecast results and constraints (such as budget limitations and supplier contracts), an optimization algorithm is executed to generate a procurement plan for a preset future period (e.g., one month). This procurement plan serves as the constraint for the aforementioned energy supply volume. During the plan generation process, the energy procurement optimization microservice prioritizes suppliers with low prices and stable supply, and purchases based on the predicted demand, thereby effectively reducing procurement costs. Finally, the optimal procurement plan is fed back to the energy procurement system through the cloud platform's API interface, enabling adjustments and optimizations to the procurement plan.

[0150] The microservices corresponding to the transportation process include the following functions:

[0151] Data acquisition function: Information about the transportation pipeline network, gas source nodes, and customer nodes is obtained from the pipeline transportation database via the cloud platform's API interface. Transportation plan optimization function: The transportation plan optimization microservice is invoked to execute an optimization algorithm (the energy dispatch scheme acquisition method provided in this application embodiment) based on the information from the transportation pipeline network, gas source nodes, and customer nodes, generating a transportation plan for a preset future duration (e.g., one week). This transportation plan optimizes the transportation routes and the timing of each node, ensuring that customer needs are met at the lowest possible transportation cost and improving transportation efficiency. Finally, the optimal transportation plan is fed back to the pipeline transportation system via the cloud platform's API, enabling adjustments and optimizations to the transportation plan.

[0152] The microservices corresponding to the sales process include the following functions:

[0153] Data Acquisition Function: Through the cloud platform's API interface, wholesale and retail data, energy demand data, and customer feedback data are collected in real-time from wholesale and retail databases. Sales Plan Optimization Function: The sales plan optimization microservice is invoked. Based on market forecasts and constraints (such as inventory levels and transportation capacity), optimization algorithms are executed to generate a sales plan for a preset future period (e.g., one week). This sales plan serves as the constraint for the aforementioned energy demand. This sales plan comprehensively considers changes in market demand and inventory status, optimizes energy allocation for wholesale and retail, reduces intermediate links, lowers transaction costs, and improves customer satisfaction and sales efficiency. Finally, the optimal sales plan is fed back to the wholesale and retail system via the cloud platform's API, enabling adjustments and optimizations to the sales plan.

[0154] All of the aforementioned microservices can be developed, deployed, and scaled independently. They communicate and collaborate via API interfaces, providing a flexible service invocation mechanism. The microservices corresponding to each stage of the process use these APIs to obtain and analyze data from the cloud platform in real time, perform optimization calculations, and dynamically adjust control measures.

[0155] During the use of the cloud platform, the aforementioned servers interact with the cloud platform through the business system by sending HTTP requests to obtain real-time data or to call microservices to use the corresponding algorithms. For example, in the energy procurement process, the server obtains energy supply and demand data through the API interface in the cloud platform, and then calls the microservice through the API interface to calculate the energy supply and demand data, so that the cloud platform returns the optimal procurement plan to the server.

[0156] When the method provided in this application embodiment is implemented through a cloud platform, the constraints and optimization objectives of each stage of energy procurement optimization, transportation plan optimization, and sales plan optimization can be comprehensively considered, and integrated control can be achieved based on the cloud platform. For example, in terms of data integration and processing, the cloud platform integrates and analyzes data from different stages through distributed data storage and processing technologies (such as Hadoop and Spark). This includes energy procurement data, pipeline transportation data, market wholesale and retail data, and customer demand data. The integration and analysis of data provides a reliable foundation for the implementation of optimization algorithms, ensuring the accuracy and timeliness of scheduling schemes. As another example, in terms of real-time monitoring and control, the execution process of the integrated process is monitored in real time through the real-time monitoring and early warning microservice of the cloud platform, and monitoring results are returned to the monitoring and early warning system. The monitoring content includes the execution status of natural gas procurement, transportation, and sales, as well as changes in various key indicators (such as procurement costs, efficiency, and customer satisfaction). Through real-time monitoring, potential problems can be detected and addressed in a timely manner, ensuring the stable operation of the energy control method. For example, in terms of method implementation, the integrated energy control model is implemented in the form of microservices on the cloud platform. Each microservice corresponds to a specific functional module (such as procurement optimization, transportation optimization, and sales optimization). The microservices communicate and collaborate through API interfaces to ensure the flexibility and scalability of the method implementation process. Accordingly, the implementation steps include: (1) Establishing a data interface to obtain and transmit data from each stage through API interfaces to ensure the real-time performance and accuracy of the data. (2) Deploying the algorithm model to deploy the optimization algorithm model on the cloud platform and ensuring the portability and high availability of the algorithm through containerization technology (such as Docker). (3) Executing optimization calculations to execute the optimization algorithm using the computing power of the cloud platform to obtain the optimal energy control scheme. (4) Feedback and adjustment to dynamically adjust the control scheme based on real-time monitoring data feedback to ensure the optimal operation of each stage.

[0157] The following content combined Figure 5 This section explains the communication and collaboration between the corresponding microservices in each stage. For example... Figure 5 As shown, in the energy procurement stage, the cloud platform obtains the energy purchase prices of multiple gas source nodes and each gas source node based on data such as total energy dispatch volume and energy allocation in various regions, and provides these prices to the energy transportation stage. In the energy sales stage, the cloud platform determines the energy sales prices of multiple customer nodes and each customer node by combining wholesale and retail data, and provides these prices to the energy transportation stage. In the energy transportation stage, the cloud platform obtains energy control plans based on the energy purchase prices of multiple gas source nodes and each gas source node, the energy sales prices of multiple customer nodes, and other data such as pipeline network data.

[0158] As Figure 5 shown, in the energy procurement link, the cloud platform obtains data such as the energy demand, supply, storage capacity, transportation capacity, and consumption capacity in each region based on the enterprise's relevant statistical data, industry reports, government announcements, etc. At the same time, considering the seasonal changes in the energy market and factors such as the economic development level and energy policies in each region, on the basis of determining the total energy dispatch volume and confirming the energy allocation volume in each region, multiple gas source nodes and the energy purchase prices of each gas source node are determined, that is, the supply strategy. Generally speaking, this supply strategy is fixed. In some embodiments, as Figure 5 shown, the cloud platform uses the linear programming method to obtain the supply strategy, making the relevant decisions more reasonable. Correspondingly, the cloud platform takes the minimization of the energy purchase cost as the optimization goal, and under the constraints such as the energy allocation volume limit in each region, the energy procurement volume limit, the node flow balance, and the pipe section load limit, uses the gas source node data, the energy allocation volume in each region, the pipe network data, and other configuration parameters as the optimization parameters to obtain the supply strategy that minimizes the energy purchase cost. In the above process, the cloud platform can adjust the supply strategy in a timely manner when there are large fluctuations in the energy supply volume or temporary changes in the gas source nodes.

[0159] As Figure 5 shown, in the energy sales link, the cloud platform combines the customer demand volume, the customer resource purchase price, and the customer corresponding priority, etc., to determine multiple customer nodes and the energy purchase prices of each customer node, that is, the sales strategy. Through the above process, the cloud platform can formulate control measures and update the sales strategy in a timely manner when there are large fluctuations in the energy demand volume or changes in the actual energy demand volume.

[0160] As Figure 5 shown, in the energy transportation link, the cloud platform combines the structure of the transportation pipe network, the gas source nodes in the supply strategy, the customer nodes in the sales strategy, and the transportation costs of the pipe sections in the pipe network, takes the minimization of the sales cost as the goal, and under the constraints such as the energy supply volume, the energy demand volume, the pipe section flow balance, and the pipe section capacity, obtains the energy regulation plan, which includes the relevant parameters of the gas source nodes, the relevant parameters of the customer nodes, the relevant parameters of the pipe network, and other configuration parameters. Through the above process, the cloud platform can analyze the relevant key nodes in each node in a timely manner and perform preventive protection on the key nodes when the pipe network fails or a pipe section load warning is received. The key nodes are preset.

[0161] As Figure 5 shown, the cloud platform is also responsible for the whole-process monitoring and warning to perform preventive protection on the whole process.

[0162] In some embodiments, before the cloud platform is deployed, its operational effectiveness is tested. This involves simulating the operation of energy procurement, transportation, and sales processes on the cloud platform based on historical data, running an integrated energy control model to obtain a simulated energy control plan, and then verifying the cloud platform's effectiveness by combining this plan with historical energy control data. Next, the cloud platform is tested in practical applications, deployed in selected pilot projects, and data collected during operation to evaluate its performance. Finally, in the user feedback phase, customer feedback is collected to assess the cloud platform's performance in real-world applications. Data collected during operation is analyzed to evaluate the platform's applicability and stability in different scenarios. These testing methods ensure the effective application of the cloud platform across various business processes, improving the operational efficiency and economic benefits of energy-related enterprises.

[0163] The above process, by encapsulating the optimization algorithms of each stage into microservices, achieves comprehensive optimization of energy procurement, transportation, and sales. The cloud platform can collect and process large amounts of data in real time, providing accurate demand forecasting and production planning. Through the microservice architecture, the cloud platform can flexibly invoke various optimization algorithms, enabling dynamic adjustments to energy procurement, transportation, and sales plans. The cloud platform's high availability and scalability ensure the continuous operation and rapid response of the algorithms, offering strong flexibility. Integrated monitoring and early warning microservices can monitor the operational status of each stage in real time, promptly identify and resolve potential problems, and ensure the stability and reliability of the algorithms running on the cloud platform.

[0164] Figure 6 This is a structural block diagram of an energy regulation scheme acquisition device provided in an embodiment of this application. This device is used to execute the steps of the energy regulation scheme acquisition method described above, see below. Figure 6 The energy regulation scheme acquisition device includes:

[0165] The model building module 601 is used to construct an integrated energy control model for the energy to be controlled based on the energy procurement model, energy transportation model, and energy sales model. The energy procurement model is used to determine the costs incurred in the energy procurement process, the energy transportation model is used to determine the costs incurred in the energy transportation process, and the energy sales model is used to determine the revenue obtained in the energy sales process. The objective function of the integrated energy control model is to maximize the revenue function.

[0166] The planning module 602 is used to solve the integrated energy control model with constraints such as energy supply, energy demand, pipeline flow balance, and pipeline capacity, and obtain the energy control scheme.

[0167] In some embodiments, the above-described apparatus further includes:

[0168] The gas source determination module is used to determine multiple gas source nodes;

[0169] The purchase price determination module is used to determine the energy purchase price corresponding to each of the multiple gas source nodes based on multiple gas source nodes.

[0170] The first pipe segment determination module is used to determine the pipe segment connected to each of the multiple gas source nodes based on multiple gas source nodes.

[0171] The procurement model construction module is used to construct an energy procurement model based on the energy purchase price corresponding to each of the multiple gas source nodes and the energy transportation volume of the pipeline connected to each gas source node.

[0172] In some embodiments, the above-described apparatus further includes:

[0173] The cost determination module is used to determine the energy transportation cost for each of multiple pipe segments;

[0174] The transportation model building module is used to build an energy transportation model based on the energy transportation costs of each segment in multiple pipelines.

[0175] In some embodiments, the above-described apparatus further includes:

[0176] The customer identification module is used to identify multiple customer nodes;

[0177] The sales price determination module is used to determine the energy sales price for each of the multiple customer nodes.

[0178] The second pipe segment determination module is used to determine the pipe segment connected to each of the multiple customer nodes based on multiple customer nodes.

[0179] The sales model building module is used to build an energy sales model based on the energy sales prices of multiple customer nodes and the energy transportation volume of the pipeline segments connected to each customer node.

[0180] In some embodiments, the above-described apparatus further includes:

[0181] The first solution module is used to solve the integrated energy control model corresponding to the first customer node with the energy demand, energy supply, pipeline flow balance and pipeline capacity as constraints, so as to obtain the energy control scheme corresponding to the first customer node.

[0182] The remaining capacity acquisition module is used to acquire the remaining pipeline capacity based on the energy control scheme corresponding to the first customer node.

[0183] The second solution module is used to solve the integrated energy control model corresponding to the second customer node with the energy demand, energy supply, pipeline flow balance and remaining pipeline capacity as constraints, so as to obtain the energy control scheme corresponding to the second customer node. The priority of the second customer node is lower than that of the first customer node.

[0184] In some embodiments, the above energy control scheme further includes the energy transport volume of each path in the energy transport model, each path corresponding to a gas source node and a customer node, including multiple pipeline segments from the gas source node to the customer node; the planning acquisition module 602 is used for:

[0185] The energy integrated control model is solved by taking energy supply, energy demand, pipeline flow balance, pipeline capacity, and the correspondence between pipeline capacity and path capacity as constraints, so as to obtain the energy control scheme.

[0186] In some embodiments, the above-mentioned energy regulation scheme is an optimized natural gas transportation plan with the goal of maximizing revenue. The natural gas transportation plan includes the natural gas transportation volume of each pipeline segment in the energy transportation model.

[0187] In some embodiments, the above method is deployed as a microservice in a cloud platform, and the energy regulation scheme is obtained by calling the microservice through an application programming interface.

[0188] It should be noted that the above embodiments of the device for obtaining energy regulation schemes are only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.

[0189] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 700 can vary significantly due to differences in configuration or performance. It may include one or more CPUs (Central Processing Units) 701 and one or more memories 702. The memory 702 stores at least one computer program, which is loaded and executed by the processor 701 to implement the energy regulation scheme acquisition method provided in the above-described method embodiments. Of course, the computer device may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The computer device may also include other components for implementing device functions, which will not be elaborated here.

[0190] This application also provides a computer-readable storage medium storing at least one computer program. This computer program is loaded and executed by a processor of a computer device to implement the operations performed by the computer device in the energy regulation scheme acquisition method of the above embodiments. For example, the computer-readable storage medium may be ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, and optical data storage device, etc.

[0191] In some embodiments, the computer program involved in the present application embodiments may be deployed and executed on a computer device, or executed on multiple computer devices located in one location, or executed on multiple computer devices distributed in multiple locations and interconnected through a communication network. Multiple computer devices distributed in multiple locations and interconnected through a communication network may constitute a blockchain system.

[0192] This application also provides a computer program product or computer program, which includes computer program code stored in a computer-readable storage medium. A processor of a computer device reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the computer device to perform the energy regulation scheme acquisition method provided in the various optional implementations described above.

[0193] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0194] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for obtaining an energy regulation scheme, characterized in that, The method includes: Based on the energy procurement model, energy transportation model, and energy sales model, an integrated energy regulation model for the energy to be regulated is constructed. The energy procurement model is used to determine the costs incurred in the energy procurement process, the energy transportation model is used to determine the costs incurred in the energy transportation process, and the energy sales model is used to determine the revenue obtained in the energy sales process. The objective function of the integrated energy regulation model is to maximize the revenue function. The energy integrated control model is solved by taking energy supply, energy demand, pipeline flow balance and pipeline capacity as constraints, and the energy control scheme is obtained.

2. The method according to claim 1, characterized in that, The method further includes: Identify multiple gas source nodes; Based on the multiple gas source nodes, determine the energy purchase price corresponding to each of the multiple gas source nodes; Based on the multiple gas source nodes, determine the pipe segment connected to each of the multiple gas source nodes; The energy procurement model is constructed based on the energy purchase price corresponding to each of the multiple gas source nodes and the energy transport volume of the pipeline connected to each gas source node.

3. The method according to claim 1, characterized in that, The method further includes: Determine the energy transportation cost for each of the multiple pipe segments; The energy transportation model is constructed based on the energy transportation cost of each of the multiple pipe segments.

4. The method according to claim 1, characterized in that, The method further includes: Identify multiple customer nodes; Based on the multiple customer nodes, determine the energy sales price corresponding to each of the multiple customer nodes; Based on the multiple customer nodes, determine the pipe segment connected to each of the multiple customer nodes; The energy sales model is constructed based on the energy sales prices corresponding to each of the multiple customer nodes and the energy transport volume of the pipeline segment connected to each customer node.

5. The method according to claim 1, characterized in that, When the energy demand exceeds the energy supply, the method further includes: Using the energy demand, energy supply, pipeline flow balance, and pipeline capacity corresponding to the first customer node as constraints, the energy integrated control model corresponding to the first customer node is solved to obtain the energy control scheme corresponding to the first customer node. Based on the energy control scheme corresponding to the first customer node, the remaining pipeline capacity is obtained; Using the energy demand, energy supply, pipeline flow balance, and remaining pipeline capacity corresponding to the second customer node as constraints, the energy integrated control model corresponding to the second customer node is solved to obtain the energy control scheme corresponding to the second customer node. The priority of the second customer node is lower than that of the first customer node.

6. The method according to claim 1, characterized in that, The energy control scheme also includes the energy transport volume of each path in the energy transport model. Each path corresponds to a gas source node and a customer node, including multiple pipeline segments from the gas source node to the customer node. The energy integrated control model is solved using energy supply, energy demand, pipeline flow balance, and pipeline capacity as constraints to obtain energy control schemes, including: The energy integrated control model is solved by taking energy supply, energy demand, pipeline flow balance, pipeline capacity, and the correspondence between pipeline capacity and path capacity as constraints, so as to obtain the energy control scheme.

7. The method according to any one of claims 1-6, characterized in that, The energy control scheme is an optimized natural gas transportation plan with the goal of maximizing profits. The natural gas transportation plan includes the natural gas transportation volume of each pipeline segment in the energy transportation model.

8. The method according to any one of claims 1-6, characterized in that, The method is deployed as a microservice in a cloud platform. The energy regulation scheme is obtained by calling the microservice through an application programming interface.

9. A device for acquiring an energy regulation scheme, characterized in that, The device includes: The model building module is used to construct an integrated energy control model for the energy to be controlled based on the energy procurement model, energy transportation model, and energy sales model. The energy procurement model is used to determine the costs incurred in the energy procurement process, the energy transportation model is used to determine the costs incurred in the energy transportation process, and the energy sales model is used to determine the revenue obtained in the energy sales process. The objective function of the integrated energy control model is to maximize the revenue function. The planning acquisition module is used to solve the integrated energy control model under the constraints of energy supply, energy demand, pipeline flow balance, and pipeline capacity to obtain the energy control scheme.

10. A computer device, characterized in that, The computer device includes a processor and a memory, the memory being used to store at least one computer program, the at least one computer program being loaded by the processor and executing the method according to any one of claims 1 to 8.