Gas pipeline network node energy optimization method and device
By constructing an energy conservation system and optimizing energy in the gas pipeline network, the problem of the energy of the gas pipeline network nodes not meeting the preset range was solved, and the stability and safety of the device were improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA PETROLEUM & CHEMICAL CORP
- Filing Date
- 2022-04-19
- Publication Date
- 2026-06-02
AI Technical Summary
Existing technologies cannot effectively guarantee that the energy at each node of the gas pipeline network meets the preset range requirements, which affects the operational stability and safety of gas-consuming devices.
By determining the gas flow direction of adjacent nodes based on the gas flow direction of the flow nodes in the gas pipeline network, an energy conservation equation is constructed, and the energy is optimized using the objective function and constraints to ensure that the energy of each node is within a reasonable range.
The energy of each gas pipeline node was optimized to meet the preset range requirements, thus improving the operational stability and safety of the gas-consuming device.
Smart Images

Figure CN116993533B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of gas pipeline technology, and in particular to a method and apparatus for optimizing the energy of gas pipeline nodes. Background Technology
[0002] Most of the fuel required for refinery production comes from the gas system; therefore, the optimized operation of the gas system is crucial for stable refinery production and efficiency. Refinery gas systems mainly consist of four components: the gas-producing unit, the gas conveying unit, the gas recovery unit, and the gas-consuming unit. Gas generated in the gas-producing unit is conveyed to the gas-consuming unit via the gas conveying unit; low-pressure gas cannot be used directly and is recovered by the gas recovery unit before being sent to the gas pipeline network and then to the gas-consuming unit.
[0003] The gas pipeline network of a refinery is very complex, with upstream and downstream units connected by multiple nodes and pipe sections. Due to the constant changes in weather factors, gas-producing and consuming units, and gas replenishment volume, the pipeline pressure and the calorific value per unit volume of gas in the pipe sections fluctuate, affecting the operational stability of gas-consuming units and creating safety hazards.
[0004] Gas flow rate and unit calorific value are the decisive parameters for the operational stability of gas-consuming devices. However, there is currently a lack of effective methods to obtain them and to schedule and optimize gas based on node energy, which makes it impossible to guarantee that the energy of each gas-consuming node meets the requirements of the preset range. Summary of the Invention
[0005] This invention provides a method and apparatus for optimizing the energy of gas pipeline network nodes, which solves the defect in the prior art that cannot guarantee that the energy of each gas-consuming node meets the preset range requirements.
[0006] This invention provides a method for optimizing the energy of gas pipeline network nodes, comprising:
[0007] Based on the gas flow direction of the flow nodes in the gas pipeline network, the gas flow direction of adjacent nodes is determined, where adjacent nodes refer to nodes connected to the flow nodes.
[0008] Based on the gas flow direction of the circulation node and the gas flow direction of the adjacent nodes, the energy conservation equation of the circulation node is determined.
[0009] Based on the objective function and constraints, the energy of the flow node and the adjacent node in the energy conservation equation is optimized. The objective function is determined based on the gas production cost of each gas-producing node in the gas pipeline network. The constraints are used to limit the upper limit and lower limit of the unit gas energy of the gas-consuming node in the gas pipeline network.
[0010] According to the present invention, a gas pipeline network node energy optimization method is provided, wherein the objective function is:
[0011] COST = K1Q1 + K2Q2 + ... + K n Q n ;
[0012] In the formula, COST represents the total gas production cost of the gas pipeline network, and K n Q represents the unit energy cost of gas production at the nth gas-producing node. n This represents the energy of the nth gas-producing node;
[0013] The constraints are as follows:
[0014] H low ≤H k ≤H high ;
[0015] In the formula, H k H represents the actual unit gas energy at the k-th gas-consuming node. low H represents the lower limit of unit gas energy at the k-th gas-consuming node. high This represents the upper limit of unit gas energy at the k-th gas-consuming node.
[0016] According to the energy optimization method for gas pipeline network nodes provided by the present invention, the actual unit gas energy of the gas-consuming node is determined based on the following formula:
[0017] H k =H1X1 + H2X2 + ... + H m X m ;
[0018] In the formula, H k H represents the actual unit gas energy at the k-th gas-consuming node. m X represents the calorific value of the m-th gas in the k-th gas-consuming node. m This represents the unit content of the m-th gas in the k-th gas-consuming node.
[0019] According to a gas pipeline network node energy optimization method provided by the present invention, determining the energy conservation equation of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes includes:
[0020] Based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes, the gas composition of the flow node and the gas composition of the adjacent nodes are determined.
[0021] Based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas, the energy conservation equation of the flow node is determined.
[0022] According to a gas pipeline network node energy optimization method provided by the present invention, the step of determining the energy conservation equation for the flow node based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas includes:
[0023] Based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas, the energy of the flow node and the energy of the adjacent nodes are determined.
[0024] Based on the energy of the circulation node and the energy of the adjacent nodes, an energy conservation equation for the circulation node is constructed.
[0025] According to a gas pipeline network node energy optimization method provided by the present invention, determining the energy of the flow node and the energy of the adjacent nodes based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas includes:
[0026] Based on the gas composition of the flow node and the gas composition of the adjacent node, the gas material content of the flow node and the gas material content of the adjacent node are determined by utilizing the law of conservation of mass.
[0027] The energy of the flow node and the energy of the adjacent node are determined based on the gas and material content of the flow node, the gas and material content of the adjacent node, and the calorific value of each gas.
[0028] The present invention also provides a gas pipeline network node energy optimization device, comprising:
[0029] The flow direction determination unit is used to determine the gas flow direction of adjacent nodes based on the gas flow direction of the flow nodes in the gas pipeline network. The adjacent nodes refer to the nodes connected to the flow nodes.
[0030] The equation determination unit is used to determine the energy conservation equation of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes.
[0031] An energy optimization unit is used to optimize the energy of the flow node and the adjacent node in the energy conservation equation based on an objective function and constraints. The objective function is determined based on the gas production cost of each gas-producing node in the gas pipeline network, and the constraints are used to limit the upper limit and lower limit of the unit gas energy of the gas-consuming node in the gas pipeline network.
[0032] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the gas pipeline network node energy optimization method as described above.
[0033] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the gas pipeline network node energy optimization method as described above.
[0034] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the energy optimization method for gas pipeline network nodes as described above.
[0035] The present invention provides a gas pipeline network node energy optimization method and apparatus, which determines the energy conservation formula of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent node, and optimizes the energy of the flow node and the adjacent node in the energy conservation formula based on the objective function and constraints, thereby ensuring that the energy of each node meets the preset range requirements. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0037] Figure 1 This is a flowchart illustrating the energy optimization method for gas pipeline network nodes provided by the present invention;
[0038] Figure 2 This is a schematic diagram of the gas pipeline network provided by the present invention;
[0039] Figure 3 This is a schematic diagram of the structure of the gas pipeline network node energy optimization method provided by the present invention;
[0040] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0042] Catalytic cracking, delayed coking, and other upstream gas-producing units can use the gas they produce as fuel gas and integrate it into the gas pipeline network, so that downstream units corresponding to the gas pipeline network nodes can recover and utilize the energy generated by the fuel gas.
[0043] However, the energy required by the downstream devices corresponding to the gas pipeline network nodes needs to meet the preset range requirements, but the energy of each node in the gas pipeline network cannot be known in the existing technology, and therefore it is impossible to guarantee that the energy of each node meets the preset range requirements.
[0044] In response, this invention provides a method for optimizing the energy of gas pipeline network nodes. Figure 1 This is a flowchart illustrating the energy optimization method for gas pipeline network nodes provided by the present invention, as shown below. Figure 1 As shown, the method includes the following steps:
[0045] Step 110: Based on the gas flow direction of the flow nodes in the gas pipeline network, determine the gas flow direction of adjacent nodes. Adjacent nodes refer to nodes connected to the flow nodes.
[0046] Step 120: Determine the energy conservation equation for the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes;
[0047] Step 130: Based on the objective function and constraints, optimize the energy of the flow nodes and adjacent nodes in the energy conservation equation. The objective function is determined based on the gas production cost of each gas-producing node in the gas pipeline network. The constraints are used to limit the upper limit and lower limit of the unit gas energy of the gas-consuming nodes in the gas pipeline network.
[0048] It should be noted that, for ease of explanation, the following embodiments are all based on... Figure 2 The gas pipeline network in the example is used for illustration, such as Figure 2 As shown, nodes 1, 7, and 8 are gas-producing nodes, nodes 2, 3, and 9 are gas-consuming nodes, and nodes 4, 5, and 6 are flow nodes. Node 4 is a flow node, and nodes 1 and 5 connected to node 4 are adjacent nodes. Node 5 is a flow node, and nodes 2, 4, 6, and 8 connected to node 5 are adjacent nodes; node 6 is a flow node, and nodes 3, 5, 7, and 9 connected to node 6 are adjacent nodes. When valve a is closed, flow nodes 5 and 6 are not adjacent nodes.
[0049] In this scenario, node 1 is a gas-producing node, meaning the gas flow direction at node 1 is known: gas flows out of node 1 and into node 4, i.e., gas outflow. Given the known gas flow direction at node 1, the gas cannot flow in the opposite direction; therefore, the gas flow direction at node 4 is the inflow of gas from node 1 into node 4, i.e., gas inflow. Similarly, nodes 2, 3, and 9 are gas-consuming nodes, with gas flowing in; nodes 7 and 8 are gas-producing nodes, with gas flowing out.
[0050] Node 1 is a gas-producing node, but at this moment, node 1 stops producing gas, so the energy of the gas flowing from node 1 to node 4 is Q. 1,4=0, therefore the energy of the gas flowing from node 4 into node 1 is Q. 4,1 =0, and correspondingly, the gaseous material content flowing from node 1 to node 4 is q. 1,4 =0, the gaseous material content flowing from node 4 into node 1 is q 4,1 =0. Similarly, node 7 is a gas-producing node, assuming the energy of the gas flowing from node 7 to node 6 is Q. 7,6 =P7, since gas cannot flow backwards, meaning gas will not flow from node 6 to node 7, the energy of the gas flowing from node 6 to node 7 is Q. 6,7 =0. Node 8 is a gas-producing node. Assume the energy of the gas flowing from node 8 to node 5 is Q. 8,5 =P8, since gas cannot flow backwards, meaning gas will not flow from node 5 to node 8, the energy of the gas flowing from node 5 to node 8 is Q. 5,8 =0.
[0051] Node 2 is a gas-consuming node, but at this moment, node 2 stops consuming gas, so the gas energy flowing from node 5 to node 2 is Q. 5,2 =0, therefore the energy of the gas flowing from node 2 into node 5 is Q. 2,5 =0, and correspondingly, the gaseous material content flowing from node 5 to node 2 is q. 5,2 =0, the gaseous material content flowing from node 2 into node 5 is q 2,5 =0. Node 3 is a gas-consuming node. Assume the gas energy flowing from node 6 to node 3 is Q. 6,3 =C3, since gas cannot flow backwards, meaning gas will not flow from node 3 to node 6, the energy of the gas flowing from node 3 to node 6 is Q. 3,6 =0. Node 9 is a gas-consuming node. Assume the gas energy flowing from node 9 to node 6 is Q. 6,9 =C9, since gas cannot flow backwards, meaning no gas will flow from node 6 to node 9, the energy of the gas flowing from node 6 to node 9 is Q. 9,6 =0.
[0052] Furthermore, according to the law of conservation of energy, the energy flowing into the gas at any node may be lost. Therefore, the energy flowing into the gas at any node is greater than or equal to the energy flowing out of the gas at that node. Thus, the energy conservation equation for each flow node can be established as follows:
[0053] Node 4: Q 1,4 +Q 5,4 ≥Q 4,1 +Q 4,5
[0054] Node 5: Q 4,5 +Q 2,5 +Q 8,5 +Q 6,5 ≥Q 5,4 +Q5,2 +Q 5,8 +Q 5,6
[0055] Node 6: Q 5,6 +Q 3,6 +Q 7,6 +Q 9,6 ≥Q 6,5 +Q 6,3 +Q 6,7 +Q 6,9
[0056] In the formula, Q m,n This represents the gas energy flowing from node m to node n.
[0057] After establishing the energy conservation equation, the energy of the flow nodes and adjacent nodes in the energy conservation equation is optimized based on the objective function and constraints. This allows us to determine the optimal energy for each node, ensuring that the flow of each node meets the preset range requirements.
[0058] The objective function is determined based on the gas production cost of each gas-producing node in the gas pipeline network. The constraints are used to limit the upper and lower limits of the unit gas energy of the gas-consuming nodes in the gas pipeline network. In other words, the unit gas energy of each gas-consuming node is constrained, and the energy of each node is optimized with the goal of minimizing the gas production cost of each gas-producing node.
[0059] The gas pipeline network node energy optimization method provided in this embodiment of the invention determines the energy conservation formula of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent node, and optimizes the energy of the flow node and the adjacent node in the energy conservation formula based on the objective function and constraints, thereby ensuring that the energy of each node meets the preset range requirements.
[0060] Based on the above embodiments, the objective function is:
[0061] COST = K1Q1 + K2Q2 + ... + K n Q n ;
[0062] In the formula, COST represents the total gas production cost of the gas pipeline network, and K n Q represents the unit energy cost of gas production at the nth gas-producing node. n This represents the energy of the nth gas-producing node.
[0063] The embodiments of the present invention take the minimum total gas production cost as the optimization objective, thereby enabling the determination of the energy of each node while minimizing the total gas production cost, and achieving energy optimization of each node.
[0064] The constraints are:
[0065] H low ≤H k ≤H high ;
[0066] In the formula, H k H represents the actual unit gas energy at the k-th gas-consuming node. low H represents the lower limit of unit gas energy at the k-th gas-consuming node. high This represents the upper limit of unit gas energy at the k-th gas-consuming node.
[0067] Combination Figure 2 For the gas pipeline network shown, the actual unit gas energy H2 at node 2 and the actual unit gas energy H3 at node 3 must both satisfy H low ≤H2≤H high .
[0068] Based on any of the above embodiments, the actual unit gas energy of the gas-consuming node is determined according to the following formula:
[0069] H k =H1X1 + H2X2 + ... + H m X m ;
[0070] In the formula, H k H represents the actual unit gas energy at the k-th gas-consuming node. m X represents the calorific value of the m-th gas in the k-th gas-consuming node. m This represents the unit content of the m-th gas in the k-th gas-consuming node.
[0071] Specifically, each gas-consuming node may contain multiple gases, each with different calorific values and unit content. Therefore, in this embodiment of the invention, the actual unit gas energy of each gas-consuming node is determined based on the calorific value and unit content of each gas.
[0072] Based on any of the above embodiments, the energy conservation equation for the flow node is determined based on the gas flow direction of the flow node and the gas flow direction of adjacent nodes, including:
[0073] Based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes, determine the gas composition of the flow node and the gas composition of the adjacent nodes.
[0074] Based on the gas composition of the flow node, the gas composition of adjacent nodes, and the calorific value of each gas, the energy conservation equation for the flow node is determined.
[0075] Among them, the energy conservation equation for the flow node is determined based on the gas composition of the flow node, the gas composition of adjacent nodes, and the calorific value of each gas, including:
[0076] Based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas, the energy of the flow node and the energy of the adjacent nodes are determined.
[0077] Based on the energy of the circulating node and the energy of its neighboring nodes, an energy conservation equation for the circulating node is constructed.
[0078] Based on the gas composition of the flow node, the gas composition of adjacent nodes, and the calorific value of each gas, the energy of the flow node and the energy of adjacent nodes are determined, including:
[0079] Based on the gas composition of the flow node and the gas composition of adjacent nodes, the gas material content of the flow node and the gas material content of adjacent nodes are determined by utilizing the law of conservation of mass.
[0080] Based on the gas and material content of the flow node, the gas and material content of adjacent nodes, and the calorific value of each gas, the energy of the flow node and the energy of adjacent nodes are determined.
[0081] Specifically, the energy conservation equation for a flow node is determined based on the energy of the flow node and its neighboring nodes. The energy of a flow node or its neighboring nodes can be determined based on the following formula:
[0082] Q i,j =q i,j ∑(H m X i,m )
[0083] In the formula, Q i,j q represents the gas energy flowing from node i to node j. i,j The gaseous material content H flowing from node i to node j. m X represents the calorific value of a gas. i,m This indicates the gas composition. Furthermore, since the gas flow is irreversible, it is possible to obtain if Q... i,j If Q > 0, then Q j,i =0,q j,i =0.
[0084] The content of gaseous materials also follows the law of conservation of mass, that is, the material conservation equation for each flow node is:
[0085] Node 4: q 1,4 +q 5,4 ≥q 4,1 +q 4,5
[0086] Node 5: q 4,5 +q 2,5 +q 8,5 +q 6,5 ≥q 5,4 +q 5,2 +q 5,8+q 5,6
[0087] Node 6: q 5,6 +q 3,6 +q 7,6 +q 9,6 ≥q 6,5 +q 6,3 +q 6,7 +q 6,9
[0088] Combination Figure 2 In the gas pipeline network shown, with valve a closed, flow node 5 and flow node 6 are not adjacent nodes, therefore q 5,6 =q 6,5 =0.
[0089] Furthermore, the individual components at each distribution node also follow the law of conservation of mass, that is, the material conservation equation for the individual components at each distribution node is:
[0090] Node 4: q 1,4 X 1,m +q 5,4 X 5,m ≥(q 4,1 +q 4,5 )X 4,m
[0091] Node 5: q 4,5 X 4,m +q 2,5 X 2,m +q 8,5 X 8,m +q 6,5 X 6,m ≥(q 5,4 +q 5,2 +q 5,8 +q 5,6 )X 5,m Node 6: q 5,6 X 5,m +q 3,6 X 3,m +q 7,6 X 7,m +q 9,6 X 9,m ≥(q 6,5 +q 6,3 +q 6,7 +q 6,9 )X 6,m
[0092] Based on the above single-component material conservation equation, the gas content of any one or more nodes can be determined, and then the gas content of the remaining nodes can be obtained according to the above material conservation equation.
[0093] Next, based on the energy determination formula of the above-mentioned flow node or adjacent node, the energy of the flow node and the energy of the adjacent node are calculated, and then the energy conservation formula can be constructed based on the energy of the flow node and the energy of the adjacent node.
[0094] The following describes the gas pipeline node energy optimization device provided by the present invention. The gas pipeline node energy optimization device described below and the gas pipeline node energy optimization method described above can be referred to in correspondence.
[0095] Based on any of the above embodiments, the present invention also provides a gas pipeline network node energy optimization device, such as... Figure 3 As shown, the device includes:
[0096] The flow direction determination unit 310 is used to determine the gas flow direction of adjacent nodes based on the gas flow direction of the flow nodes in the gas pipeline network, wherein the adjacent nodes refer to the nodes connected to the flow nodes.
[0097] Equation determination unit 320 is used to determine the energy conservation equation of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes.
[0098] The energy optimization unit 330 is used to optimize the energy of the flow node and the adjacent node in the energy conservation equation based on the objective function and the constraints. The objective function is determined based on the gas production cost of each gas production node in the gas pipeline network. The constraints are used to limit the upper limit and lower limit of the unit gas energy of the gas-consuming node in the gas pipeline network.
[0099] Based on any of the above embodiments, the objective function is:
[0100] COST = K1Q1 + K2Q2 + ... + K n Q n ;
[0101] In the formula, COST represents the total gas production cost of the gas pipeline network, and K n Q represents the unit energy cost of gas production at the nth gas-producing node. n This represents the energy of the nth gas-producing node;
[0102] The constraints are as follows:
[0103] H low ≤H k ≤H high ;
[0104] In the formula, H k H represents the actual unit gas energy at the k-th gas-consuming node. lowH represents the lower limit of unit gas energy at the k-th gas-consuming node. high This represents the upper limit of unit gas energy at the k-th gas-consuming node.
[0105] Based on any of the above embodiments, the actual unit gas energy of the gas-consuming node is determined according to the following formula:
[0106] H k =H1X1 + H2X2 + ... + H m X m ;
[0107] In the formula, H k H represents the actual unit gas energy at the k-th gas-consuming node. m X represents the calorific value of the m-th gas in the k-th gas-consuming node. m This represents the unit content of the m-th gas in the k-th gas-consuming node.
[0108] Based on any of the above embodiments, the equation determining unit 320 includes:
[0109] A gas composition determination unit is used to determine the gas composition of the flow node and the gas composition of the adjacent nodes based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes.
[0110] The conservation equation determination unit is used to determine the energy conservation equation of the flow node based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas.
[0111] Based on any of the above embodiments, the conservation determination unit includes:
[0112] An energy determination unit is used to determine the energy of the flow node and the energy of the adjacent nodes based on the gas composition of the flow node, the gas composition of the adjacent nodes, and the calorific value of each gas.
[0113] A conservation-form construction unit is used to construct an energy conservation formula for the circulation node based on the energy of the circulation node and the energy of the adjacent nodes.
[0114] Based on any of the above embodiments, the energy determination unit includes:
[0115] The content determination unit is used to determine the gas content of the flow node and the gas content of the adjacent node based on the gas composition of the flow node and the gas composition of the adjacent node, using the principle of material conservation.
[0116] An energy determination subunit is used to determine the energy of the flow node and the energy of the adjacent nodes based on the gas and material content of the flow node, the gas and material content of the adjacent nodes, and the calorific value of each gas.
[0117] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 4 As shown, the electronic device may include a processor 410, a memory 420, a communication interface 430, and a communication bus 440. The processor 410, memory 420, and communication interface 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 420 to execute a gas pipeline node energy optimization method. This method includes: determining the gas flow direction of adjacent nodes based on the gas flow direction of the flow nodes in the gas pipeline network, where adjacent nodes refer to nodes connected to the flow nodes; determining the energy conservation equation for the flow nodes based on the gas flow direction of the flow nodes and the gas flow directions of the adjacent nodes; and optimizing the energy of the flow nodes and the adjacent nodes in the energy conservation equation based on an objective function and constraints. The objective function is determined based on the gas production cost of each gas-producing node in the gas pipeline network, and the constraints are used to limit the upper and lower limits of the unit gas energy of the gas-consuming nodes in the gas pipeline network.
[0118] Furthermore, the logical instructions in the aforementioned memory 420 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0119] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein when the program instructions are executed by a computer, the computer is able to execute the gas pipeline network node energy optimization method provided by the above methods, the method comprising: determining the gas flow direction of adjacent nodes based on the gas flow direction of the flow nodes in the gas pipeline network, wherein the adjacent nodes refer to nodes connected to the flow nodes; determining the energy conservation formula of the flow nodes based on the gas flow direction of the flow nodes and the gas flow direction of the adjacent nodes; optimizing the energy of the flow nodes and the adjacent nodes in the energy conservation formula based on an objective function and constraints, wherein the objective function is determined based on the gas production cost of each gas-producing node in the gas pipeline network, and the constraints are used to limit the upper limit and lower limit of the unit gas energy of the gas-consuming nodes in the gas pipeline network.
[0120] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described gas pipeline network node energy optimization methods. The method includes: determining the gas flow direction of adjacent nodes based on the gas flow direction of the flow nodes in the gas pipeline network, wherein the adjacent nodes refer to nodes connected to the flow nodes; determining the energy conservation equation for the flow nodes based on the gas flow direction of the flow nodes and the gas flow direction of the adjacent nodes; and optimizing the energy of the flow nodes and the adjacent nodes in the energy conservation equation based on an objective function and constraints, wherein the objective function is determined based on the gas production cost of each gas-producing node in the gas pipeline network, and the constraints are used to limit the upper limit and lower limit of the unit gas energy of the gas-consuming nodes in the gas pipeline network.
[0121] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0122] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for optimizing the energy of gas pipeline network nodes, characterized in that, include: Based on the gas flow direction of the flow nodes in the gas pipeline network, the gas flow direction of adjacent nodes is determined, where adjacent nodes refer to nodes connected to the flow nodes. Based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes, the gas composition of the flow node and the gas composition of the adjacent nodes are determined. Based on the gas composition of the flow node and the gas composition of the adjacent node, the gas material content of the flow node and the gas material content of the adjacent node are determined by utilizing the law of conservation of mass. Based on the gas and material content of the flow node, the gas and material content of the adjacent node, and the calorific value of each gas, the energy of the flow node and the energy of the adjacent node are determined. Based on the energy of the circulation node and the energy of the adjacent nodes, construct the energy conservation equation for the circulation node; Based on the objective function and constraints, the energy of the flow node and the adjacent node in the energy conservation equation is optimized. The objective function is determined based on the gas production cost of each gas production node in the gas pipeline network. The constraints are used to limit the upper limit and lower limit of the unit gas energy of the gas-consuming node in the gas pipeline network. The objective function is: COST = K1Q1 + K2Q2 +... + K n Q n ; wherein COST represents the total gas production cost of the gas pipeline network, K n represents the unit energy gas production cost of the nth gas production node, Q n represents the energy of the nth gas production node; The constraints are as follows: H low ≤H k ≤H high ; In the formula, H k H represents the actual unit gas energy at the k-th gas-consuming node. low H represents the lower limit of unit gas energy at the k-th gas-consuming node. high This represents the upper limit of unit gas energy at the k-th gas-consuming node; The actual unit gas energy of the gas-consuming node is determined based on the following formula: H k =H1X1+H2X2+…+H m X m ; In the formula, H k H represents the actual unit gas energy at the k-th gas-consuming node. m X represents the calorific value of the m-th gas in the k-th gas-consuming node. m This represents the unit content of the m-th gas in the k-th gas-consuming node.
2. A gas pipeline network node energy optimization device, characterized in that, The method for optimizing the energy of gas pipeline network nodes as described in claim 1 includes: The flow direction determination unit is used to determine the gas flow direction of adjacent nodes based on the gas flow direction of the flow nodes in the gas pipeline network. The adjacent nodes refer to the nodes connected to the flow nodes. The equation determination unit is used to determine the energy conservation equation of the flow node based on the gas flow direction of the flow node and the gas flow direction of the adjacent nodes. An energy optimization unit is used to optimize the energy of the flow node and the adjacent node in the energy conservation equation based on an objective function and constraints. The objective function is determined based on the gas production cost of each gas-producing node in the gas pipeline network, and the constraints are used to limit the upper limit and lower limit of the unit gas energy of the gas-consuming node in the gas pipeline network.
3. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the gas pipeline network node energy optimization method as described in claim 1.
4. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the gas pipeline network node energy optimization method as described in claim 1.
5. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the gas pipeline network node energy optimization method as described in claim 1.