A method for evaluating gas supply reliability of a natural gas pipeline network, an electronic device, a medium and a product
By acquiring system operation data to generate an operation state transition sequence, and using a pre-trained hydraulic proxy model and gas supply optimization to solve the constraints, the problem of natural gas pipeline reliability evaluation being difficult to adapt to different operating conditions was solved, and efficient and accurate gas supply reliability evaluation was achieved.
Patent Information
- Application Number
- CN202611267790.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-20
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the reliability evaluation methods for natural gas pipeline networks are difficult to adapt to different operating conditions, resulting in poor evaluation results.
By acquiring system operation data, combining the original operating status, historical failure data, and system maintenance records, an operating state transition sequence is generated. The constraints are solved using a pre-trained hydraulic proxy model and gas supply optimization, the actual gas supply of each node is calculated, and the gas supply reliability is evaluated using a Monte Carlo simulation algorithm.
It enables dynamic reliability evaluation of natural gas pipeline networks under different operating conditions, with high computational efficiency, evaluation results that closely match actual operating conditions, and provides reliable data support.
Smart Images

Figure CN123140733A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of natural gas pipeline technology, and in particular to a method, electronic equipment, medium and product for evaluating the reliability of natural gas pipeline supply. Background Technology
[0002] Natural gas pipeline networks are critical infrastructure connecting natural gas production, transportation, and consumption, and are widely used in urban gas supply and industrial fuel transportation. With economic and social development, the scale of natural gas pipeline network construction continues to expand, making its reliability a focus of attention for the industry and the public. Improving the reliability of natural gas pipeline networks not only helps ensure the safe and stable supply of energy but also reduces the risk of accidents, protecting people's lives and property.
[0003] In existing technologies, the evaluation factors for the reliability of natural gas pipeline networks are relatively simple, making it difficult to adapt to the reliability of natural gas pipeline networks under different operating conditions, resulting in poor evaluation results. Summary of the Invention
[0004] This invention provides a method, electronic equipment, medium, and product for evaluating the reliability of natural gas pipeline networks, in order to solve the problem of the reliability of natural gas pipeline networks that are difficult to adapt to different operating conditions.
[0005] According to one aspect of the present invention, a method for evaluating the gas supply reliability of a natural gas pipeline network is provided, comprising: Acquire system operation data of the target natural gas pipeline network system, and determine the operation state transition sequence of the target natural gas pipeline network system within a preset task period based on the original operation status data, historical failure data and system maintenance records in the system operation data; wherein, the target natural gas pipeline network system includes multiple key pipeline nodes, the key pipeline nodes include upload nodes and / or download nodes, and the operation state transition sequence includes the operation status of the key pipeline nodes at multiple state transition times within the preset task period; The pre-trained hydraulic proxy model is invoked, and the hydraulic state of the pipeline network is output based on the running state transition sequence. The preset pipeline gas supply optimization solution constraint is used as the solution constraint to obtain the actual gas supply of each upload node and / or download node at each state transition time. Based on the planned gas supply volume corresponding to each key node in the system operation data, and combined with the actual gas supply volume of each upload node and / or download node at each state transition time, the gas supply reliability evaluation result of the target natural gas pipeline system is determined.
[0006] Optionally, based on the original operating status data, historical failure data, and system maintenance records in the system operation data, the operating status transition sequence of the target natural gas pipeline system within a preset task period is determined, including: based on historical failure data and system maintenance records, combined with Weibull distribution and maximum likelihood estimation algorithm, determining the state transition simulation parameters corresponding to each upload node and / or each download node respectively; according to the preset state transition simulation algorithm, using the state transition simulation parameters corresponding to each upload node and each download node, performing state evolution simulation based on the original operating status corresponding to each upload node and / or each download node of the target natural gas pipeline system within the preset task period, obtaining the operating status of each upload node and / or each download node at multiple state transition times; forming an operating status transition sequence based on the operating status of each upload node and / or each download node at multiple state transition times.
[0007] Optionally, based on historical failure data and system maintenance records, and combined with the Weibull distribution and maximum likelihood estimation algorithm, the state transition simulation parameters corresponding to each upload node and / or each download node are determined, including: fitting the historical failure data using the maximum likelihood estimation algorithm to obtain the shape and scale parameters of the Weibull distribution; calculating the failure rate of each upload node and / or each download node based on the shape and scale parameters; determining the maintenance rate of each upload node and / or each download node based on the system maintenance records; and using the failure rate and maintenance rate corresponding to each upload node and / or each download node as state transition simulation parameters for use in state evolution simulation.
[0008] Optionally, the preset state transition simulation algorithm includes a state transition time calculation module and a state update result determination module. The state transition time calculation module is used to determine the corresponding state transition time based on the state transition simulation parameters. The state update result determination module is used to perform state evolution simulation on each upload node and / or each download node to obtain the running state of each upload node and / or each download node.
[0009] Optionally, a pre-trained hydraulic proxy model is invoked to output the hydraulic state of the pipeline network based on the operational state transition sequence. Using preset constraints for optimizing the pipeline gas supply, the actual gas supply of each upload node and / or download node at each state transition moment is solved. This includes: inputting the operational state transition sequence into the pre-trained hydraulic proxy model for inference; outputting the pipeline network hydraulic state from the pre-trained hydraulic proxy model; wherein the pipeline network hydraulic state includes the node hydraulic state of each upload node and / or download node at each state transition moment, and the node hydraulic state includes predicted pressure, predicted velocity, and predicted density values; using the gas supply of each upload node and / or download node as the optimization variable, and minimizing the specified delivery task deviation as the optimization objective, under the condition of satisfying the preset constraints for optimizing the pipeline gas supply, iteratively solving the problem by combining the node hydraulic state of each upload node and / or download node at each state transition moment, to obtain the actual gas supply of each upload node and / or download node at each state transition moment.
[0010] Optionally, the pre-trained hydraulic proxy model is a physical information neural network model obtained through offline training based on the hydraulic physical constraints of the pipeline network and a preset loss function. The hydraulic physical constraints of the pipeline network are the hydraulic mechanism control equations composed of the conservation of pipeline mass and momentum. The preset loss function is constructed from data-driven loss terms, physical loss terms, boundary condition loss terms, and initial condition loss terms. The preset constraints for optimizing the pipeline gas supply include pipeline node flow balance constraints, pipeline node pressure upper and lower limit constraints, pipeline storage-flow recursion constraints, and pipeline storage upper and lower limit constraints.
[0011] Optionally, based on the planned gas supply volume corresponding to each key node in the system operation data, and combined with the actual gas supply volume of each upload node and / or download node at each state transition time, the gas supply reliability evaluation result of the target natural gas pipeline network system is determined. This includes: using a Monte Carlo simulation algorithm, based on the planned gas supply volume corresponding to each key node in the system operation data, and combined with the actual gas supply volume of each upload node and / or download node at each state transition time, calculating the system gas supply reliability index corresponding to multiple Monte Carlo sample paths; calculating the target gas supply reliability index based on the system gas supply reliability index under multiple Monte Carlo sample paths, and determining the target gas supply reliability index as the gas supply reliability evaluation result of the target natural gas pipeline network system; the target gas supply reliability index is used to characterize the gas supply reliability of the target natural gas pipeline network system.
[0012] According to another aspect of the present invention, a gas supply reliability evaluation device for a natural gas pipeline network is provided, comprising: The operation state transition sequence determination module is used to acquire system operation data of the target natural gas pipeline system, and determine the operation state transition sequence of the target natural gas pipeline system within a preset task period based on the original operation state data, historical failure data and system maintenance records in the system operation data; wherein, the target natural gas pipeline system includes multiple key pipeline nodes, the key pipeline nodes include upload nodes and / or download nodes, and the operation state transition sequence includes the operation state of the key pipeline nodes at multiple state transition times within the preset task period; The actual gas supply determination module is used to call the pre-trained hydraulic proxy model, output the hydraulic state of the pipeline network based on the running state transition sequence, and use the preset pipeline gas supply optimization solution constraint as the solution constraint to solve for the actual gas supply of each upload node and / or download node at each state transition time. The gas supply reliability evaluation result determination module is used to determine the gas supply reliability evaluation result of the target natural gas pipeline system based on the planned gas supply volume corresponding to each key node in the system operation data, combined with the actual gas supply volume of each upload node and / or download node at each state transition time.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory that is communicatively connected to at least one processor; wherein, The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the gas supply reliability evaluation method for a natural gas pipeline network according to any embodiment of the present invention.
[0014] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute and implement the gas supply reliability evaluation method for a natural gas pipeline network according to any embodiment of the present invention.
[0015] According to another aspect of the present invention, a computer program product is provided, which, when executed by a processor, implements the gas supply reliability evaluation method for a natural gas pipeline network according to any embodiment of the present invention.
[0016] The technical solution of this invention obtains system operation data of a target natural gas pipeline system, and determines the operation state transition sequence of the target natural gas pipeline system within a preset task period based on the original operation status data, historical failure data, and system maintenance records in the system operation data. The target natural gas pipeline system includes multiple key pipeline nodes, including upload nodes and / or download nodes. The operation state transition sequence includes the operation status of the key pipeline nodes at multiple state transition moments within the preset task period. By fusing three types of heterogeneous data—original operation status, historical failures, and system maintenance—to generate the operation state transition sequence, it can realistically recreate the dynamic evolution process of key pipeline nodes failing and being repaired over time. It is no longer limited to static fixed node conditions, but fully reflects the temporal impact of fault events and maintenance activities on the state of pipeline nodes, providing a temporal input basis that conforms to the actual evolution law of the pipeline network for subsequent hydraulic simulations. A pre-trained hydraulic proxy model is invoked to output the hydraulic state of the pipeline network based on the operational state transition sequence. Pre-set pipeline gas supply optimization constraints are used as solution constraints to obtain the actual gas supply of each upload node and / or download node at each state transition moment. This approach replaces traditional refined hydraulic mechanism model simulation with a pre-trained hydraulic proxy model, significantly reducing the computation time for multi-moment simulations of large-scale natural gas pipeline networks and improving computational efficiency. The introduction of pre-set pipeline gas supply optimization constraints as boundary constraints ensures that the actual gas supply of each node meets the pipeline network operation rules, avoiding solution results that deviate from actual operating conditions. This ensures that the actual gas supply of each node meets the operational rules of the pipeline network, thus preventing solution results that deviate from actual operating conditions. The system dynamically measures the actual gas supply of upload / download nodes at each state transition time. Based on the planned gas supply corresponding to each key node in the system operation data, and combined with the actual gas supply of each upload node and / or download node at each state transition time, the system determines the gas supply reliability evaluation results of the target natural gas pipeline system. This enables time-series gas supply reliability evaluation for a complete preset task cycle, which differs from single-point static reliability assessment. It can capture gas supply deviations caused by faults and hydraulic disturbances at different times, quantify the compliance level of pipeline gas supply throughout the entire cycle, and make the reliability evaluation results more objective and consistent with the actual operation performance of the pipeline network. This provides reliable data support for pipeline operation and maintenance and scheduling decisions.This solution integrates multi-source data from original operation, historical failures, and maintenance to construct a time-series operational state transition sequence, capable of reproducing the dynamic evolution process of failure repair at key pipeline nodes. It employs a pre-trained hydraulic proxy model to replace traditional mechanistic hydraulic simulation, effectively reducing the computational overhead of large-scale pipeline time-series simulations. Simultaneously, it introduces gas supply optimization constraints to ensure the solution results conform to the actual operational boundaries of the pipeline. By comparing the planned gas supply with the actual gas supply obtained through dynamic solving, a gas supply reliability evaluation is completed. This achieves time-series reliability assessment for complete pre-set task cycles, overcoming the shortcomings of static assessments that cannot reflect dynamic node state switching and gas supply changes caused by hydraulic fluctuations. The evaluation results are more closely aligned with the actual dynamic operating conditions of the natural gas pipeline network, solving the problem of difficulty in adapting to the reliability of natural gas pipelines under different operating conditions. This ensures the evaluation results closely match the dynamic operating conditions of the pipeline network, providing a reliable quantitative reference for pipeline operation and maintenance scheduling and risk analysis.
[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention, 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 the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a flowchart of a method for evaluating the gas supply reliability of a natural gas pipeline network, provided in Embodiment 1 of the present invention. Figure 2 This is a flowchart of a method for evaluating the gas supply reliability of a natural gas pipeline network, provided in Embodiment 2 of the present invention; Figure 3 This is a schematic diagram of the structure of a physical information neural network model applicable to an embodiment of the present invention; Figure 4 This is a flowchart of a method for evaluating the gas supply reliability of a natural gas pipeline network, applicable to embodiments of the present invention. Figure 5 This is a schematic diagram of the structure of a gas supply reliability evaluation device for a natural gas pipeline network provided in Embodiment 3 of the present invention; Figure 6 This is a schematic diagram of the structure of an electronic device for implementing the gas supply reliability evaluation method of the natural gas pipeline network according to embodiments of the present invention. Detailed Implementation
[0020] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0021] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0022] Example 1 Figure 1 This is a flowchart of a method for evaluating the gas supply reliability of a natural gas pipeline network according to Embodiment 1 of the present invention. This embodiment is applicable to situations where the gas supply reliability of a natural gas pipeline network is evaluated. This method can be executed by a natural gas pipeline network gas supply reliability evaluation device, which can be implemented in hardware and / or software. This device can be configured in electronic devices such as computers and servers. Figure 1 As shown, the method includes: S110. Obtain system operation data of the target natural gas pipeline network system. Based on the original operating status data, historical failure data and system maintenance records in the system operation data, determine the operating status transition sequence of the target natural gas pipeline network system within a preset task period. The target natural gas pipeline network system includes multiple key pipeline nodes, which include upload nodes and / or download nodes. The operating status transition sequence includes the operating status of the key pipeline nodes at multiple state transition times within the preset task period.
[0023] The target natural gas pipeline network system refers to the entire natural gas pipeline network system undergoing gas supply reliability evaluation. The geographical scope and pipeline facility boundaries can be defined based on the evaluation object; for example, it could be a regional natural gas pipeline network within a city's jurisdiction, including main and branch lines. System operation data is the complete set of raw data supporting pipeline status simulation and reliability evaluation. This data can be collected and aggregated from pipeline SCADA (Supervisory Control And Data Acquisition) systems, equipment fault databases, and operation and maintenance management systems. Examples include real-time raw operating status data of pipeline nodes, historical failure event logs, and equipment maintenance work order records. The preset task cycle is the time span set for pipeline reliability assessment. It can be pre-configured based on pipeline operation and maintenance planning and risk assessment requirements; for example, it could be set to a pipeline assessment cycle of the next 24 hours. Key nodes in a pipeline network are the core nodes responsible for gas input and output functions within the pipeline system. It's important to note that in a natural gas pipeline network, natural gas pipelines and compressors are the critical units affecting the network's gas supply capacity. Key nodes can be the topology access nodes corresponding to the junctions of compressors and natural gas pipelines. Based on the gas input and output relationship, key nodes include upload nodes and / or download nodes. Nodes within the pipeline responsible for gas source input and gas output can be selected and marked. For example, upload nodes are upload gate stations for gas source access, and download nodes are download distribution stations supplying gas to users. The state transition time is the discrete point in time where the operating state of a key node in the pipeline network changes within a preset task cycle. The time point of node state change can be identified based on historical failure occurrence times and maintenance completion times. The operational status transition sequence is a time sequence composed of each status transition time and the corresponding operational status of key nodes in the pipeline network. It can be obtained by organizing and arranging the operational status of each key node in the pipeline network at each status transition time in chronological order based on the original operational status data, historical failure data and system maintenance records in the system operation data. For example, the status sets corresponding to each upload gate station and distribution station at each status transition time within the 24-hour evaluation cycle can be recorded in chronological order.
[0024] Specifically, the system operation data of the target natural gas pipeline network system is acquired. State transition simulations are then performed using raw operational status data, historical failure data, and system maintenance records from this data to determine the operational state transition sequence of the target natural gas pipeline network system within a preset task period. The target natural gas pipeline network system contains multiple key pipeline nodes, which are upload nodes and / or download nodes. The operational state transition sequence records the operational status of the key pipeline nodes at multiple state transition moments within the preset task period. For example, the natural gas pipeline network system includes... Pipeline unit and The compressor station unit and pipeline unit can act as upload nodes, while the compressor station unit can act as download nodes, constantly... The system state vector can be represented as: ; In the formula, Indicates the first The pipeline at any time The status is 1, which indicates normal operation, and 0, which indicates failure. Indicates the first Seat Compressor Station Time The maximum number of units that can operate normally is .
[0025] In this embodiment, by integrating multi-source information such as the actual operating conditions of the pipeline network, historical failure events, and maintenance behaviors, a time-seriesd operating state transition sequence is generated. This can objectively depict the dynamic evolution process of key nodes in the pipeline network during the task cycle, including operation, failure, and repair switching. This overcomes the shortcomings of static operating condition settings, which cannot reflect the impact of fault and maintenance timing. It provides a time-series input basis that fits the actual engineering situation for subsequent pipeline network hydraulic simulation and reliability evaluation.
[0026] Optionally, based on the original operating status data, historical failure data, and system maintenance records in the system operation data, the operating status transition sequence of the target natural gas pipeline system within a preset task period is determined, including: based on historical failure data and system maintenance records, combined with Weibull distribution and maximum likelihood estimation algorithm, determining the state transition simulation parameters corresponding to each upload node and / or each download node respectively; according to the preset state transition simulation algorithm, using the state transition simulation parameters corresponding to each upload node and each download node, performing state evolution simulation based on the original operating status corresponding to each upload node and / or each download node of the target natural gas pipeline system within the preset task period, obtaining the operating status of each upload node and / or each download node at multiple state transition times; forming an operating status transition sequence based on the operating status of each upload node and / or each download node at multiple state transition times.
[0027] Among them, the state transition simulation parameters are model parameters used to drive the failure repair time-series evolution simulation of key nodes in the pipeline network. They mainly include the shape and scale parameters of the Weibull distribution, which can characterize the failure probability, fault duration, and repair recovery rate of each upload node and / or download node. By retrieving historical failure data and system maintenance records from the system operation data, samples of failure interval, fault duration, and repair duration of the corresponding nodes can be extracted. The maximum likelihood estimation algorithm is used to fit the parameters of the Weibull distribution, and state transition simulation parameters adapted to the operating characteristics of each upload node and / or download node are estimated respectively. This enables the description of differentiated failure repair behavior of different nodes and provides a quantitative model basis for subsequent state evolution simulation.
[0028] Specifically, the operational state transition sequence of the target natural gas pipeline system within a preset task period is determined based on the original operational state data, historical failure data, and system maintenance records in the system operation data. First, based on the historical failure data and system maintenance records, the state transition simulation parameters corresponding to each upload node and / or each download node are obtained by using the Weibull distribution combined with the maximum likelihood estimation algorithm. Then, the preset state transition simulation algorithm is called, using the original operational state of each upload node and / or each download node as the initial evolution condition. Combined with the aforementioned state transition simulation parameters, the state evolution simulation of each node is performed within the preset task period, and the operational state of each upload node and / or each download node at multiple state transition times is output. Finally, the operational states of each node corresponding to different state transition times are sorted and combined in chronological order to construct the operational state transition sequence.
[0029] In this embodiment, the Weibull distribution is used to characterize the failure lifetime of nodes, and the simulation parameters adapted to the individual characteristics of each node are obtained by fully mining historical failure and maintenance sample information through maximum likelihood estimation. This avoids model bias caused by using uniform empirical parameters. The actual original operating state of each node is used as the initial condition for simulation to simulate the time-series state evolution. This can reflect the failure repair evolution characteristics of different upload and download nodes in a differentiated manner. Discrete state transition times and corresponding node operating states can be generated. The constructed operating state transition sequence can reproduce the dynamic evolution behavior of each node alternating between normal, failure, and maintenance within the preset task cycle. This provides a time-series input basis that conforms to the statistical law of node failure for subsequent pipeline hydraulic simulation and gas supply reliability assessment, and improves the authenticity and engineering adaptability of subsequent reliability evaluation results.
[0030] Optionally, based on historical failure data and system maintenance records, and combined with the Weibull distribution and maximum likelihood estimation algorithm, the state transition simulation parameters corresponding to each upload node and / or each download node are determined, including: fitting the historical failure data using the maximum likelihood estimation algorithm to obtain the shape and scale parameters of the Weibull distribution; calculating the failure rate of each upload node and / or each download node based on the shape and scale parameters; determining the maintenance rate of each upload node and / or each download node based on the system maintenance records; and using the failure rate and maintenance rate corresponding to each upload node and / or each download node as state transition simulation parameters for use in state evolution simulation.
[0031] The shape and scale parameters are the core distribution parameters of the Weibull distribution. The shape parameter characterizes the trend of network node failure over time, while the scale parameter characterizes the characteristic lifetime of the node, reflecting the typical time scale of node failure. It can be obtained by extracting historical failure data from each upload node and / or download node and fitting the failure samples using a maximum likelihood estimation algorithm. The failure rate can be understood as the probability of a corresponding upload or download node failing per unit time under conditions where it has not yet failed. It can be calculated by substituting the shape and scale parameters of the fitted Weibull distribution into the failure rate calculation formula. The maintenance rate can be understood as the probability of a corresponding upload or download node being repaired and restored to normal operation per unit time while in a failed state. It can be calculated by extracting actual maintenance time samples after multiple failures of each node from the system maintenance records and calculating the maintenance rate using statistical sample information.
[0032] Specifically, based on historical failure data and system maintenance records, the state transition simulation parameters for each upload node and / or each download node are determined by combining the Weibull distribution and the maximum likelihood estimation algorithm. Specifically, the shape and scale parameters of the Weibull distribution are obtained by fitting the historical failure data using the maximum likelihood estimation algorithm. Based on these shape and scale parameters, the failure rate of each upload node and / or each download node is further calculated. At the same time, the maintenance rate of each upload node and / or each download node is determined by statistical analysis based on the system maintenance records. Finally, the failure rate and maintenance rate of each node are used together as the state transition simulation parameters for subsequent state evolution simulation.
[0033] For example, the failure process of natural gas pipelines and compressors is described using the Weibull distribution, and its probability density function is: ; Its reliability function is: ; Its failure rate function is: ; In the formula, Indicates runtime. Indicates shape parameters, Represents the scaling parameter. The maximum likelihood estimation method is used to... and Parameter estimation is performed, and statistical analysis is conducted using historical maintenance data to obtain the corresponding maintenance rate. Therefore, the failure rate of the natural gas pipeline unit can be obtained separately. Maintenance rate and the failure rate of the compressor unit. Maintenance rate This provides basic parameters for subsequent state transition simulations.
[0034] In this embodiment, the Weibull distribution is used to adapt the lifetime failure characteristics of pipeline network nodes. Combined with maximum likelihood estimation, the statistical information of historical failure samples is fully explored. Individualized failure rates can be obtained for different upload and download nodes, avoiding model distortion caused by using uniform empirical parameters. Furthermore, the maintenance rate that fits the actual operation and maintenance is obtained by combining actual system maintenance records. This allows the obtained state transition simulation parameters to truly reflect the failure occurrence level and fault repair capability of each node. This provides reliable quantitative input for subsequent node state evolution simulation, ensuring that the simulated node failure repair and switching behavior is more consistent with the actual operating rules of natural gas pipeline network nodes.
[0035] Optionally, the preset state transition simulation algorithm includes a state transition time calculation module and a state update result determination module. The state transition time calculation module is used to determine the corresponding state transition time based on the state transition simulation parameters. The state update result determination module is used to perform state evolution simulation on each upload node and / or each download node to obtain the running state of each upload node and / or each download node.
[0036] The preset state transition simulation algorithm is used to perform dynamic evolution simulation of failure repair for each upload node and / or each download node within a preset task cycle. It consists of a state transition time calculation module and a state update result determination module. The state transition time calculation module calculates and identifies the state transition time of each node based on state transition simulation parameters such as the failure rate and maintenance rate of each node. The state update result determination module combines the initial original operating state of the node and completes the simulation of the operating state update of each upload node and / or each download node at each state transition time, and outputs the node operating state corresponding to each state transition time. This time sequence simulates the switching behavior of the node between normal, failure, and maintenance recovery, providing algorithmic support for generating the operating state transition sequence.
[0037] Specifically, the preset state transition simulation algorithm includes a state transition time calculation module and a state update result determination module. During execution, the state transition time calculation module reads the state transition simulation parameters of each upload node and / or each download node, and calculates the state transition time corresponding to each node based on the failure rate and maintenance rate. Then, the state update result determination module combines the aforementioned output state transition time to perform state evolution simulation for each upload node and / or each download node, and outputs the running state of each node at the corresponding state transition time.
[0038] For example, a two-stage simulation method for the state transition of a complex natural gas pipeline network is established to simulate the state transition process of the natural gas pipeline network system and obtain the operating status of the natural gas pipeline network at various times. After obtaining the reliability parameters of key units, a two-stage simulation method for the state transition of a complex natural gas pipeline network is established to simulate the random failure, maintenance, and state evolution process of the natural gas pipeline network system during the task cycle. Assume the natural gas pipeline network system includes... Pipeline unit and The compressor station unit, at any time The system state vector can be represented as: ; In the formula, Indicates the first The pipeline at any time The status is 1, which indicates normal operation, and 0, which indicates failure. Indicates the first Seat Compressor Station Time The maximum number of units that can operate normally is In the current state The state transition rates for each type of basic event are as follows: ; ; ; ; In the formula, Indicates the first The pipeline at any time failure transfer rate, Indicates the first Repair and transfer rate of the pipeline Indicates the first Failure transfer rate of operating units at a gas compressor station. Indicates the first Repair and transfer rate of shut-down units at the compressor station.
[0039] Furthermore, based on the natural gas pipeline network system Pipeline unit and The failure transfer rate and repair transfer rate corresponding to each compressor station unit determine the total transfer rate of the natural gas pipeline network system. The total system transfer rate is... for: ; In the first stage, the time of the next state transition is determined using the system's total transition rate: ; In the formula, For interval Random numbers that are uniformly distributed.
[0040] In the second phase, the specific basic events that occur are identified. All possible events are numbered sequentially as follows: The events that occurred satisfy: ; In the formula, For interval Uniformly distributed random numbers Indicates the first The state transition rate corresponding to each event. Update the state vector based on the selected events. By iterating through the loop until the end of the task cycle, the state transition sequence of the natural gas pipeline network during the entire specified task cycle can be obtained: ; The aforementioned state transition sequence serves as the input to the subsequent gas supply volume solution model, which can be used as input data for the pre-trained hydraulic proxy model.
[0041] In this embodiment, the solution of state transition time and the update of node running state are decoupled by functional modularization. The two modules have clear division of labor. The state transition time calculation module is responsible for locating discrete time nodes of node failure and repair recovery, while the state update result determination module focuses on completing the deduction and update of node running state. This makes it easy to modify, debug and maintain the time solution logic or state evolution logic separately. It can accurately output the time point of state switching of each node and the running state at the corresponding time, ensuring that the state evolution simulation process is clear and logically controllable, and providing a standardized module implementation foundation for building a complete running state transition sequence.
[0042] S120. Call the pre-trained hydraulic proxy model, output the hydraulic state of the pipeline network based on the running state transition sequence, and use the preset pipeline gas supply optimization solution constraint as the solution constraint to solve for the actual gas supply of each upload node and / or download node at each state transition time.
[0043] Specifically, the pre-trained hydraulic proxy model can be understood as a machine learning proxy model that replaces the fine hydraulic mechanism simulation of the natural gas pipeline network. It can be trained and converged using historical operating condition samples of the pipeline network and simulation samples from the mechanism model, and its hydraulic response can be quickly inferred by inputting the time-series states of nodes. The pipeline network hydraulic state can be understood as a set of hydraulic characteristics representing the pipeline network operation at a specific moment, including hydraulic parameters such as pipe segment pressure, flow rate, and density. This can be obtained by inputting the operating state transition sequence into the pre-trained hydraulic proxy model and outputting the result through model inference. The preset pipeline gas supply optimization solution constraints are a set of engineering constraints used to limit the feasible region of the gas supply solution. These include, but are not limited to, pipeline node flow balance constraints, pipeline node pressure upper and lower limit constraints, pipe inventory-flow recursive constraints, and pipe inventory upper and lower limit constraints. These can be pre-configured in conjunction with the rated parameters of pipeline equipment, gas transmission process requirements, and pipeline operation specifications. The actual gas supply is the gas supply value that each upload node and / or download node can realize at each state transition time through constraint optimization solution. It can be based on the hydraulic state of the pipeline obtained by inputting the running state transition sequence into the proxy model, and perform optimization solution calculation under the boundary constraints of the preset pipeline gas supply optimization solution. The actual gas supply of each upload node and / or download node at each state transition time is calculated, realizing efficient extrapolation and calculation of hydraulic and gas supply under multiple working conditions of large-scale pipeline network.
[0044] Specifically, the pre-trained hydraulic proxy model is invoked, and the operating state transition sequence representing the time-series dynamic changes of each node is input into the pre-trained hydraulic proxy model. The model outputs the hydraulic state of the pipeline network at the corresponding state transition time. Then, the preset pipeline gas supply optimization solution constraint is used as the boundary constraint for optimization solution, and constrained optimization operation is performed to obtain the actual gas supply of each upload node and / or download node at each state transition time.
[0045] In this embodiment, a pre-trained hydraulic proxy model is used to replace the traditional complex pipeline hydraulic mechanism simulation model. This significantly reduces the hydraulic calculation overhead of large-scale natural gas pipelines under multi-time conditions and improves the calculation efficiency under time-series conditions. At the same time, a preset pipeline gas supply optimization solution constraint condition is introduced to limit the solution space, so that the solution process conforms to the actual engineering boundaries such as pipeline gas transmission technology and node gas supply capacity, avoiding the output of invalid solutions that are detached from the actual on-site operation. Based on the dynamic operating state transition sequence, the hydraulic gas supply is coupled and solved synchronously with the node failure repair state, so as to obtain the dynamic actual gas supply of each node at different state transition times. This provides accurate time-series gas supply calculation results for subsequent time-series pipeline gas supply reliability evaluation.
[0046] S130. Based on the planned gas supply volume corresponding to each key node of the pipeline network in the system operation data, and combined with the actual gas supply volume of each upload node and / or download node at each state transition time, determine the gas supply reliability evaluation result of the target natural gas pipeline network system.
[0047] Among them, the gas supply reliability evaluation result is a quantitative output of the overall gas supply guarantee capability of the target natural gas pipeline network system under the influence of random events such as node failure and maintenance within a preset task period. It includes a comprehensive reliability index at the system level. The method for determining this result is to retrieve the planned gas supply volume corresponding to each key node of the pipeline network in the system operation data as the evaluation reference, compare the actual gas supply volume of each upload node and / or each download node with the corresponding planned gas supply volume at each state transition time, and statistically analyze the gas supply compliance and shortage at each time within the preset task period. Furthermore, multiple sample paths can be generated through Monte Carlo simulation, and the system gas supply reliability index under each sample path can be statistically processed to obtain the target gas supply reliability index. This is used to integrate and form a gas supply reliability evaluation result that can reflect the dynamic random operating conditions of the pipeline network.
[0048] The quantitative evaluation output of the overall gas supply guarantee capability within the preset task period can extract the planned gas supply volume corresponding to each key node of the pipeline network in the system operation data as the evaluation benchmark. The actual gas supply volume of each upload node and / or download node at each state transition time is compared with the planned gas supply volume of the corresponding node. The occurrence of gas supply satisfaction and gas supply insufficiency at each time is statistically analyzed. By combining the comparative statistical information of all state transition times within the preset task period, the gas supply-related quantitative indicators at the node level and system level are calculated. These are then integrated to form the gas supply reliability evaluation result of the target natural gas pipeline network system.
[0049] Specifically, the planned gas supply volume corresponding to each key node in the pipeline network is read from the system operation data. Combined with the actual gas supply volume calculated by each upload node and / or download node at each state transition moment, a predefined system-level comprehensive gas supply reliability index calculation method is invoked to calculate the gas supply reliability evaluation result of the target natural gas pipeline network system. The predefined system-level comprehensive gas supply reliability index calculation formula is shown below: For the Upload node of the day Its gas supply reliability index is defined as: ; For the Download nodes for days Its gas supply reliability index is defined as: ; In the formula, Indicates the first Heavenly The actual amount of gas uploaded by each upload node to the natural gas pipeline network. Indicates the first Heavenly The daily designated upload volume of each upload node, that is, the planned gas supply volume corresponding to the upload node; Indicates the first Natural gas pipeline network to the first The actual gas supply of each download node. Indicates the first Heavenly The daily designated download volume of each download node is the planned gas supply volume corresponding to that node. Based on this, the reliability indicators of multiple nodes are statistically summarized to obtain the comprehensive gas supply reliability index at the system level. The following weighting method is used: ; In the formula, Represents the set of uploaded nodes. This represents the set of download nodes. Based on the above formula, the reliability of natural gas pipeline supply can be directly characterized as the degree of completion of the specified transportation task, providing a unified evaluation target for subsequent state simulation and gas supply calculation.
[0050] In this embodiment, the planned gas supply of the upload and download nodes is used as the task benchmark. The actual gas supply obtained at each state transition time is integrated, and a system-level quantitative index is obtained through weighted summation. The reliability of the pipeline gas supply is directly characterized as the actual completion degree of the specified delivery task. This achieves efficient aggregation of node data into the overall system index, which can intuitively reflect the completion level of the overall gas supply task of the pipeline at different times. It provides a unified and quantifiable evaluation target for pipeline state simulation and gas supply optimization, which is convenient for comparing and evaluating the gas supply guarantee capability under different operating conditions. The evaluation results have a clear physical meaning and can provide direct data support for pipeline risk assessment and scheduling decisions.
[0051] Optionally, based on the planned gas supply volume corresponding to each key node in the system operation data, and combined with the actual gas supply volume of each upload node and / or download node at each state transition time, the gas supply reliability evaluation result of the target natural gas pipeline network system is determined. This includes: using a Monte Carlo simulation algorithm, based on the planned gas supply volume corresponding to each key node in the system operation data, and combined with the actual gas supply volume of each upload node and / or download node at each state transition time, calculating the system gas supply reliability index corresponding to multiple Monte Carlo sample paths; calculating the target gas supply reliability index based on the system gas supply reliability index under multiple Monte Carlo sample paths, and determining the target gas supply reliability index as the gas supply reliability evaluation result of the target natural gas pipeline network system; the target gas supply reliability index is used to characterize the gas supply reliability of the target natural gas pipeline network system.
[0052] Specifically, the gas supply reliability evaluation result of the target natural gas pipeline system is determined based on the planned gas supply volume corresponding to each key node in the system operation data, combined with the actual gas supply volume of each upload node and / or download node at each state transition time. Specifically, a Monte Carlo simulation algorithm is used, with the planned gas supply volume of each key node as a reference benchmark, combined with the actual gas supply volume obtained by each upload node and / or download node at each state transition time, to calculate the system gas supply reliability index corresponding to multiple Monte Carlo sample paths. Then, statistical calculations are performed on the system gas supply reliability index output by multiple sample paths to obtain the target gas supply reliability index, and this target gas supply reliability index is used as the gas supply reliability evaluation result characterizing the gas supply reliability of the target natural gas pipeline system. For example, suppose a total of... In the next Monte Carlo simulation, the uploaded node and download nodes The expected gas supply reliability assessment model can be expressed as follows: ; ; The system's comprehensive gas supply reliability assessment model can be further expressed as: ; In the formula, Indicates the first Sub-Monte Carlo simulation upload node Gas supply reliability, Indicates the first Sub-Monte Carlo simulation download node Gas supply reliability, Indicates the first System overall gas supply reliability under sub-Monte Carlo simulation.
[0053] In this embodiment, Monte Carlo simulation is introduced to simulate multiple sample paths for the random uncertainty of pipeline node failure repair. This fully considers the random fluctuations in failure occurrence and maintenance time during pipeline operation, avoids the accidental bias caused by single simulation results, and obtains the target gas supply reliability index through statistical aggregation of multiple sample paths. This objectively quantifies the overall gas supply guarantee level of the pipeline under random operating condition disturbances within a preset task period, making the gas supply reliability evaluation results statistically significant, more stable, and more in line with the random failure characteristics in the actual operation of natural gas pipelines. This provides reliable quantitative support for pipeline risk assessment and operation and maintenance decisions.
[0054] The technical solution of this embodiment obtains the system operation data of the target natural gas pipeline system. Based on the original operating status data, historical failure data, and system maintenance records contained in the system operation data, it determines the operating status transition sequence of the target natural gas pipeline system within a preset task period. The pipeline system contains multiple key pipeline nodes that serve as upload nodes and / or download nodes. The operating status transition sequence records the operating status of the key pipeline nodes corresponding to multiple state transition times within the preset task period. Subsequently, a pre-trained hydraulic proxy model is invoked, and the operating status transition sequence is input into the model to output the hydraulic state of the pipeline. The preset pipeline gas supply optimization solution constraint is used as the solution constraint to obtain the actual gas supply of each upload node and / or download node at each state transition time. Finally, based on the planned gas supply corresponding to each key pipeline node in the system operation data, combined with the actual gas supply of each upload node and / or download node at each state transition time, the gas supply reliability evaluation result of the target natural gas pipeline system is determined. This solution integrates multi-source data from original operation, historical failures, and maintenance to construct a time-series operational state transition sequence, capable of reproducing the dynamic evolution process of failure repair at key pipeline nodes. It employs a pre-trained hydraulic proxy model to replace traditional mechanistic hydraulic simulation, effectively reducing the computational overhead of large-scale pipeline time-series simulations. Simultaneously, it introduces gas supply optimization constraints to ensure the solution results conform to the actual operational boundaries of the pipeline network. By comparing the planned gas supply with the actual gas supply obtained through dynamic solving, a gas supply reliability evaluation is completed. This achieves time-series reliability assessment for complete pre-set task cycles, overcoming the shortcomings of static assessments that cannot reflect dynamic node state switching and gas supply changes caused by hydraulic fluctuations. The evaluation results more closely match the actual dynamic operating conditions of the natural gas pipeline network, providing a reliable quantitative reference for pipeline operation and maintenance scheduling and risk analysis.
[0055] Example 2 Figure 2 This is a flowchart of a method for evaluating the reliability of natural gas pipeline supply provided in Embodiment 2 of the present invention. The method in this embodiment is a further optimization of the method in the above embodiments. Optionally, the operating state transition sequence is input into a pre-trained hydraulic proxy model for inference. The pre-trained hydraulic proxy model outputs the hydraulic state of the pipeline network. The hydraulic state of the pipeline network includes the node hydraulic state of each upload node and / or each download node at each state transition time. The node hydraulic state includes predicted pressure, predicted flow velocity, and predicted density. Using the gas supply volume of each upload node and / or each download node as the optimization variable, and with the minimum deviation of the specified delivery task as the optimization objective, under the condition of satisfying the preset constraints for optimizing the pipeline gas supply volume, the actual gas supply volume of each upload node and / or each download node at each state transition time is obtained by iteratively solving the problem by combining the node hydraulic state of each upload node and / or each download node at each state transition time. Figure 2 As shown, the method includes: S210. Obtain system operation data of the target natural gas pipeline network system. Based on the original operating status data, historical failure data and system maintenance records in the system operation data, determine the operating status transition sequence of the target natural gas pipeline network system within a preset task period. The target natural gas pipeline network system includes multiple key pipeline nodes, which include upload nodes and / or download nodes. The operating status transition sequence includes the operating status of the key pipeline nodes at multiple state transition times within the preset task period.
[0056] S220. Input the running state transition sequence into the pre-trained hydraulic proxy model for inference, and output the network hydraulic state by the pre-trained hydraulic proxy model. The network hydraulic state includes the node hydraulic state of each upload node and / or each download node at each state transition time. The node hydraulic state includes the pressure prediction value, the flow velocity prediction value and the density prediction value.
[0057] Specifically, the running state transition sequence is input into the pre-trained hydraulic proxy model for inference calculation, and the pre-trained hydraulic proxy model outputs the network hydraulic state. The network hydraulic state includes the node hydraulic state corresponding to each upload node and / or each download node at each state transition time. The node hydraulic state specifically includes pressure prediction value, flow velocity prediction value, and density prediction value.
[0058] In this embodiment, the operational state transition sequence representing the temporal evolution of nodes is directly used as the input of the surrogate model. Based on the pre-trained model, the multi-dimensional hydraulic prediction results of pressure, velocity, and density of each node at different state transition times are quickly obtained through reasoning. This eliminates the need for complex iterative solutions to traditional pipeline hydraulic mechanisms, significantly shortening the calculation time of hydraulic parameters under dynamic conditions at multiple times. It outputs multiple key hydraulic physical quantities at the node level at once, fully covering the hydraulic basic information required for subsequent gas supply calculation, and providing comprehensive and efficient hydraulic input conditions for subsequent constrained solutions to the actual gas supply of each node.
[0059] Optionally, the pre-trained hydraulic proxy model is a physical information neural network model obtained by offline training based on the hydraulic physical constraints of the pipeline network and a preset loss function; wherein, the hydraulic physical constraints of the pipeline network are the hydraulic mechanism control equations composed of the mass conservation and momentum conservation of the pipeline network, and the preset loss function is constructed from the data-driven loss term, the physical loss term, the boundary condition loss term, and the initial condition loss term.
[0060] Among them, the physical information neural network model, namely the PINN neural network model, is used to construct a hydraulic proxy model for natural gas pipeline networks. It takes into account both the fast reasoning ability of neural networks and the hydraulic physical laws of pipeline networks, alleviates the extrapolation failure problem caused by insufficient samples, and ensures the accuracy of pressure, flow velocity, and density prediction results.
[0061] Specifically, the pre-trained hydraulic proxy model is a physical information neural network model that combines the hydraulic physical constraints of the pipeline network with a preset loss function to complete offline training. During the training process, the hydraulic mechanism control equations composed of the mass conservation and momentum conservation of the pipeline network are introduced into the model training process as hydraulic physical constraints of the pipeline network. The preset loss function is jointly constructed by the data-driven loss term, the physical loss term, the boundary condition loss term, and the initial condition loss term. The model parameters are iteratively optimized through the joint use of multi-dimensional loss terms.
[0062] It should be noted that the physical information neural network model is assumed to be: ; In the formula, Indicates spatial location, Indicates time, This represents the boundary conditions, equipment status, operating parameters, and optimization variables. Represents the parameters of the neural network. , , These represent the predicted pressure, flow velocity, and density values output by the physical information neural network model, respectively. The transient hydraulic process of natural gas satisfies the following governing equations: ; ; ; In the formula, Indicates gas density, Indicates flow rate, Indicates pressure, Indicates the coefficient of friction. Indicates pipe diameter. Indicates the compression factor. Represents the gas constant. Indicates temperature.
[0063] Based on the governing equations satisfied by the transient hydraulic process of natural gas, the residuals of the governing equations are defined as follows: ; ; ; in, This represents the residual of the mass conservation equation. This represents the residual of the momentum conservation equation. This represents the boundary condition residual.
[0064] The data loss function expression for the PINN neural network model is: ; in, This represents the total number of tagged measured operating condition data samples, where n represents the sample number. This represents the predicted stress value of the nth sample output by the network. This represents the actual measured pressure value of the nth sample. This represents the traffic prediction value of the nth sample output by the network. This represents the actual measured flow rate of the nth sample. The actual pressure and flow rate values can be obtained in advance from the on-site SCADA system and simulation calculations. Physical loss function. The expression is: ; in, This represents the total number of sampling points (configuration points) configured within the physical domain. It does not require actual monitoring labels and represents the sampling points of the physical constraints of the physical information neural network model. This represents the index of the physical location point. The total loss function is: ; In the formula, This represents boundary condition losses, which are determined based on the actual conditions of the pipeline system, including fluctuations in pressure and flow rates. This indicates initial condition losses, including pressure fluctuations in the gas source. , , , The weighting coefficients are set through manual experience and trial and error. The total loss function is minimized using the gradient descent algorithm. This allows the physical information neural network model to simultaneously satisfy both physical equation constraints and field-acquired data constraints, thereby obtaining a hydraulic proxy model for natural gas pipeline networks suitable for complex operating conditions. A schematic diagram of the physical information neural network model is shown below. Figure 3 As shown: The model consists of an input layer, a fully connected hidden layer, an output layer, an automatic differentiation module, and a PINN loss function training module. The input layer takes the spatial feature x representing the spatial location of the pipeline network and the temporal feature t representing the simulation time as network inputs, and feeds in a module carrying trainable parameters. The multi-layer fully connected hidden layer completes the nonlinear feature transformation, and the output layer outputs the hydraulic prediction values of the pipeline network nodes. Predicted pressure values Predicted flow velocity The density prediction value is then used to calculate the partial derivative of the output hydraulic physical quantity with respect to space via an automatic differentiation module. And the partial derivative with respect to time On the one hand, a data-driven loss function is constructed based on the network output prediction results combined with the sampled real working condition samples. This process involves fitting the measured operational data to the system, and substituting the partial derivatives obtained from automatic differentiation into the governing equations of the pipe network hydraulic mechanism, which consist of the mass equation, momentum equation, and boundary conditions. The residuals of these equations are then calculated to obtain the physical driving loss function. (It can also be expressed as) The data-driven loss function and the physics-driven loss function are combined to obtain the total loss function. The trainable parameters of the network are updated iteratively through backpropagation with the goal of minimizing the total loss function. The offline training of the PINN hydraulic proxy model was completed. This model embeds the hydraulic physics mechanism of natural gas pipeline networks into the neural network training process, avoiding reliance solely on measured data fitting. This ensures both the fitting accuracy for existing operating condition samples and the constraint that the model output meets hydraulic physics laws, mitigating the problem of poor extrapolation results caused by insufficient measured samples. The trained model can achieve rapid inference output of pipeline pressure, flow velocity, and density under different spatiotemporal conditions, providing efficient hydraulic computational support for subsequent gas supply optimization solutions under multiple state transition times and multiple Monte Carlo simulation scenarios, as well as gas supply reliability evaluation. After the physical information neural network model is trained, it can be repeatedly called in the calculation of gas supply optimization to quickly output the pressure field, flow field, and boundary response under different operating states, thereby supporting the rapid solution of the optimization model. The hydraulic proxy model obtained by training the PINN neural network takes into account both physical mechanisms and measured data, significantly improving the solution speed under multiple states and scenarios while ensuring computational accuracy.
[0065] In this embodiment, the physical information neural network model embeds the control equations of the actual hydraulic mechanism of the pipeline network during the training phase, rather than simply relying on measured samples for data fitting. It uses physical loss terms to enhance the model's learning of the inherent hydraulic laws, and data-driven loss terms to ensure the fitting accuracy of measured operating condition samples. At the same time, boundary condition loss terms and initial condition loss terms are used to constrain the model output to meet the actual operating condition boundaries of the pipeline network. This effectively alleviates the problem of poor extrapolation effect and output that violates physical laws due to insufficient samples in pure data-driven neural networks. As a result, the trained hydraulic proxy model has the computational advantage of high-speed inference of neural networks during the inference phase, and can also ensure that the output hydraulic prediction results such as pressure, flow velocity, and density conform to the hydraulic mechanism of the natural gas pipeline network. This improves the reliability and generalization ability of hydraulic state prediction under multiple dynamic operating conditions, and provides a physically self-consistent hydraulic foundation for the constraint solution of the actual gas supply of subsequent nodes.
[0066] S230. Using the gas supply of each upload node and / or each download node as the optimization variable, and taking the minimum deviation of the specified delivery task as the optimization objective, under the condition of satisfying the preset pipeline gas supply optimization solution constraints, the actual gas supply of each upload node and / or each download node at each state transition time is obtained by iterative solution in combination with the node hydraulic state of each upload node and / or each download node at each state transition time.
[0067] Optionally, the preset constraints for optimizing the gas supply of the pipeline network include the flow balance constraint of the pipeline network nodes, the upper and lower limit constraints of the pressure of the pipeline network nodes, the pipeline inventory-flow recursion constraint, and the upper and lower limit constraints of the pipeline inventory.
[0068] Specifically, the gas supply of each upload node and / or each download node is set as the optimization variable. The optimization objective is to minimize the deviation of the specified delivery task. Under the premise of meeting the preset constraints of the gas supply optimization solution of the pipeline network, the actual gas supply of each upload node and / or each download node at each state transition time is obtained by iterative solution in combination with the node hydraulic state of each upload node and / or each download node at each state transition time.
[0069] It should be noted that the flow balance constraint condition at any node in the pipeline network indicates that the total inflow and outflow of gas at any node in the pipeline network satisfy the material conservation relationship. It is used to ensure the flow balance between the gas input and output at the node, and its expression is: ; in, express At any given time, pipe segment l outputs to node. Natural gas flow rate express Time, node Input to pipe section Natural gas flow rate; Indicates pointing to a node The set of incoming pipes (all pipe segments flowing into this node). Indicates from node The set of outgoing pipes from the node (all pipe segments flowing out of this node).
[0070] The upper and lower pressure limits for pipeline network nodes are constraints that restrict the operating pressure of each node from falling below the lower pressure limit to rising above the upper pressure limit, corresponding to the safe operating pressure range for pipeline equipment; the expression is: ; in, Indicates the first The minimum allowable operating pressure for each pipeline node. Indicates the first The maximum allowable operating pressure for each pipeline node. Indicates the first Each pipeline node at time The actual pressure at the nodes.
[0071] The pipeline inventory flow rate recursion constraint is a time-series recursive relationship established based on the correspondence between pipeline inventory and inflow / outflow at different times. This relationship is used to characterize the dynamic changes in pipeline inventory as gas flows in and out. The expression is: ; in, express Time Management Section The total mass of natural gas stored inside the pipeline. Indicates the previous simulation time. Pipeline section The total mass of natural gas stored inside the pipeline; This represents the simulation time step, which is the time interval between two adjacent state transition moments. express Inflow into the pipe section at all times natural gas mass flow rate, express The pipe section is constantly flowing out. The mass flow rate of natural gas.
[0072] The upper and lower limits of pipeline storage constraints are used to limit the pipeline storage volume to between the minimum and maximum storage capacity of the pipeline gas storage facilities, preventing the pipeline storage from exceeding the gas storage capacity. The expression is: ; ; in, express Time Management Section The total mass of natural gas stored inside the pipeline. Indicates pipe section Minimum permissible mass of stored gas, Indicates pipe section Maximum permissible mass of gas stored in the interior. Indicates pipe section The pipe capacity coefficient is a constant determined by the pipe's geometric parameters and the gas's physical properties. express Time Management Section Average pressure of natural gas in the pipeline.
[0073] The four types of constraints—pipeline node flow balance constraints, pipeline node pressure upper and lower limit constraints, pipeline storage-flow recursion constraints, and pipeline storage upper and lower limit constraints—constrain the optimization solution process from the perspectives of node material balance, node equipment pressure safety, pipeline storage time-series evolution, and pipeline gas storage capacity limits, respectively, to jointly ensure that the gas supply solution results conform to the physical mechanism of natural gas pipeline transmission and the reality of engineering operation.
[0074] In this embodiment, an optimization objective is constructed around the deviation of the delivery task. The node gas supply is used as an adjustable optimization variable. Iterative calculations are performed by fully combining the node hydraulic states such as node pressure, flow velocity, and density output by the physical information neural network model. At the same time, the solution process is constrained by the gas supply optimization conditions of the pipeline network, so that the solution process takes into account the needs of the delivery task, the hydraulic mechanism of the pipeline network, and the engineering operation boundary. This avoids obtaining unreasonable gas supply solutions that deviate from the hydraulic conditions of the pipeline network and the limits of the equipment. The optimization calculation can be completed separately for each state transition moment, adapting to the changes in operating conditions caused by the dynamic failure repair of nodes, and obtaining the feasible actual gas supply of each node in the time series dimension. This provides a real and achievable gas supply calculation basis for subsequent gas supply reliability evaluation.
[0075] S240. Based on the planned gas supply volume corresponding to each key node of the pipeline network in the system operation data, and combined with the actual gas supply volume of each upload node and / or download node at each state transition time, determine the gas supply reliability evaluation result of the target natural gas pipeline network system.
[0076] In a specific embodiment, such as Figure 4The attached diagram illustrates a flowchart of a gas supply reliability evaluation method for a natural gas pipeline network. This diagram shows the overall implementation process of a natural gas pipeline network supply reliability assessment method that integrates Physical Information Network (PINN) proxy hydraulic solution and Monte Carlo simulation. The entire process is divided into a main evaluation process and a PINN proxy hydraulic solution sub-process. First, basic data input is performed to obtain pipeline topology, scheduling tasks, equipment parameters, historical failure data, and SCADA monitoring data. Then, gas supply reliability indicators are defined, determining evaluation indicators such as upload task completion rate, download task completion rate, and overall system reliability. Next, key unit reliability modeling is performed, modeling the reliability of key units such as pipelines and compressors and calculating failure rate and maintenance rate parameters. Finally, a two-stage state transition simulation is performed, determining the state transition time, triggering state transition events, and... The system updates the pipeline network status and outputs a time-series system status. The natural gas pipeline network supply calculation module receives this system status and simultaneously calls the hydraulic response results output by the PINN proxy hydraulic solution sub-process to perform a supply optimization solution considering hydraulic characteristics. The PINN proxy hydraulic solution sub-process uses physical equation constraints, boundaries, initial conditions, and SCADA field monitoring data as PINN training inputs. It adopts a collaborative training method of physical loss and data loss to obtain the PINN proxy hydraulic solution model, outputs pipeline pressure, flow, and pipeline storage response, and feeds them back to the supply calculation module. After completing the supply calculation, a Monte Carlo-based reliability evaluation is performed, statistically calculating the gas supply reliability of nodes and the overall system gas supply reliability. Finally, the reliability evaluation results are output, identifying weak links in the pipeline network and providing data support for pipeline network scheduling decisions.
[0077] The technical solution of this embodiment obtains system operation data of the target natural gas pipeline system. Based on the original operating status data, historical failure data, and system maintenance records in the system operation data, it determines the operating state transition sequence of the target natural gas pipeline system within a preset task period. The pipeline system includes multiple key pipeline nodes that serve as upload nodes and / or download nodes. The operating state transition sequence records the operating status of the key pipeline nodes corresponding to multiple state transition times within the preset task period. Subsequently, the operating state transition sequence is input into a pre-trained hydraulic proxy model for inference, and the output includes the state transition times of each upload node and / or each download node. The pipeline hydraulic state is determined by the predicted pressure, flow velocity, and density values at each transition moment. Then, the gas supply of each upload node and / or each download node is used as the optimization variable. With the goal of minimizing the deviation of the specified delivery task, and under the premise of meeting the preset constraints for optimizing the pipeline gas supply, the actual gas supply of each upload node and / or each download node at each state transition moment is obtained by iterative solution in combination with the node hydraulic state. Finally, based on the planned gas supply of each key pipeline node in the system operation data and the actual gas supply at each state transition moment, the gas supply reliability evaluation result of the target natural gas pipeline system is determined. This scheme constructs an operational state transition sequence based on multi-source operational data, reflecting the dynamic switching of node failure repair. It utilizes a pre-trained hydraulic proxy model to quickly infer multi-dimensional node hydraulic parameters, avoiding the large computational burden of traditional mechanism simulation. Through constrained iterative optimization with the goal of minimizing the deviation of the delivery task, it obtains the actual time-series gas supply that conforms to the physical mechanism and engineering boundary of the pipeline network. Then, it compares the actual gas supply with the planned gas supply to complete the gas supply reliability evaluation, realizing the full-time-series pipeline gas supply capacity assessment for the preset task cycle. This solves the problem that static assessment is difficult to reflect the dynamic changes of hydraulics and gas supply under fault disturbances. The evaluation results are physically self-consistent and closely match the actual operating conditions of the pipeline network, providing reliable quantitative support for natural gas pipeline network risk assessment and operation and maintenance scheduling.
[0078] Example 3 Figure 5 This is a schematic diagram of a gas supply reliability evaluation device for a natural gas pipeline network provided in Embodiment 3 of the present invention. Figure 5 As shown, the device includes: The operation state transition sequence determination module 510 is used to acquire system operation data of the target natural gas pipeline system, and determine the operation state transition sequence of the target natural gas pipeline system within a preset task period based on the original operation state data, historical failure data and system maintenance records in the system operation data; wherein, the target natural gas pipeline system includes multiple key pipeline nodes, the key pipeline nodes include upload nodes and / or download nodes, and the operation state transition sequence includes the operation state of the key pipeline nodes at multiple state transition times within the preset task period; The actual gas supply determination module 520 is used to call the pre-trained hydraulic proxy model, output the hydraulic state of the pipeline network based on the running state transition sequence, and use the preset pipeline gas supply optimization solution constraint as the solution constraint to solve the actual gas supply of each upload node and / or download node at each state transition time. The gas supply reliability evaluation result determination module 530 is used to determine the gas supply reliability evaluation result of the target natural gas pipeline system based on the planned gas supply volume corresponding to each key node of the pipeline in the system operation data, combined with the actual gas supply volume of each upload node and / or download node at each state transition time.
[0079] The technical solution of this embodiment obtains the system operation data of the target natural gas pipeline system through the operation state transition sequence determination module. Based on the original operation state data, historical failure data, and system maintenance records in the system operation data, the operation state transition sequence of the target natural gas pipeline system within a preset task period is determined. The target natural gas pipeline system includes multiple key pipeline nodes, which include upload nodes and / or download nodes. The operation state transition sequence includes the operation state of the key pipeline nodes at multiple state transition times within the preset task period. The actual gas supply determination module calls a pre-trained hydraulic proxy model, outputs the hydraulic state of the pipeline based on the operation state transition sequence, and uses preset pipeline gas supply optimization constraints as solution constraints to obtain the actual gas supply of each upload node and / or download node at each state transition time. The gas supply reliability evaluation result determination module determines the gas supply reliability evaluation result of the target natural gas pipeline system based on the planned gas supply corresponding to each key pipeline node in the system operation data, combined with the actual gas supply of each upload node and / or download node at each state transition time. This solution integrates multi-source data from original operation, historical failures, and maintenance to construct a time-series operational state transition sequence, capable of reproducing the dynamic evolution process of failure repair at key pipeline nodes. It employs a pre-trained hydraulic proxy model to replace traditional mechanistic hydraulic simulation, effectively reducing the computational overhead of large-scale pipeline time-series simulations. Simultaneously, it introduces gas supply optimization constraints to ensure the solution results conform to the actual operational boundaries of the pipeline network. By comparing the planned gas supply with the actual gas supply obtained through dynamic solving, a gas supply reliability evaluation is completed. This achieves time-series reliability assessment for complete pre-set task cycles, overcoming the shortcomings of static assessments that cannot reflect dynamic node state switching and gas supply changes caused by hydraulic fluctuations. The evaluation results more closely match the actual dynamic operating conditions of the natural gas pipeline network, providing a reliable quantitative reference for pipeline operation and maintenance scheduling and risk analysis.
[0080] Based on the above embodiments, optionally, the operating state transition sequence determination module 510 is specifically used to determine the state transition simulation parameters corresponding to each upload node and / or each download node based on historical failure data and system maintenance records, combined with Weibull distribution and maximum likelihood estimation algorithm; according to the preset state transition simulation algorithm, using the state transition simulation parameters corresponding to each upload node and each download node, within a preset task period, perform state evolution simulation based on the original operating states corresponding to each upload node and / or each download node of the target natural gas pipeline system, to obtain the operating states of each upload node and / or each download node at multiple state transition times; and form an operating state transition sequence based on the operating states of each upload node and / or each download node at multiple state transition times.
[0081] Optionally, the state transition sequence determination module 510 is specifically used to fit historical failure data using a maximum likelihood estimation algorithm to obtain the shape and scale parameters of the Weibull distribution; calculate the failure rate of each upload node and / or each download node based on the shape and scale parameters; determine the maintenance rate of each upload node and / or each download node based on system maintenance records; and use the failure rate and maintenance rate corresponding to each upload node and / or each download node as state transition simulation parameters for use in state evolution simulation. Optionally, the preset state transition simulation algorithm includes a state transition time calculation module and a state update result determination module. The state transition time calculation module is used to determine the corresponding state transition time based on the state transition simulation parameters; the state update result determination module is used to perform state evolution simulation on each upload node and / or each download node to obtain the operating state of each upload node and / or each download node.
[0082] Optionally, the actual gas supply determination module 520 is specifically used to input the operating state transition sequence into the pre-trained hydraulic proxy model for inference, and output the network hydraulic state from the pre-trained hydraulic proxy model. The network hydraulic state includes the node hydraulic state of each upload node and / or each download node at each state transition time. The node hydraulic state includes the predicted pressure value, the predicted flow velocity value, and the predicted density value. Using the gas supply of each upload node and / or each download node as the optimization variable and the minimum deviation of the specified delivery task as the optimization objective, under the condition of satisfying the preset network gas supply optimization solution constraints, the module iteratively solves the problem by combining the node hydraulic state of each upload node and / or each download node at each state transition time to obtain the actual gas supply of each upload node and / or download node at each state transition time.
[0083] Optionally, the pre-trained hydraulic proxy model is a physical information neural network model obtained through offline training based on the hydraulic physical constraints of the pipeline network and a preset loss function. The hydraulic physical constraints of the pipeline network are the hydraulic mechanism control equations composed of the conservation of pipeline mass and momentum. The preset loss function is constructed from data-driven loss terms, physical loss terms, boundary condition loss terms, and initial condition loss terms. The preset constraints for optimizing the pipeline gas supply include pipeline node flow balance constraints, pipeline node pressure upper and lower limit constraints, pipeline storage-flow recursion constraints, and pipeline storage upper and lower limit constraints.
[0084] Optionally, the gas supply reliability evaluation result determination module 530 is specifically used to calculate the system gas supply reliability index corresponding to multiple Monte Carlo sample paths by using the Monte Carlo simulation algorithm, based on the planned gas supply volume corresponding to each key node of the pipeline network in the system operation data, combined with the actual gas supply volume of each upload node and / or download node at each state transition time; calculate the target gas supply reliability index based on the system gas supply reliability index under multiple Monte Carlo sample paths, and determine the target gas supply reliability index as the gas supply reliability evaluation result of the target natural gas pipeline network system; the target gas supply reliability index is used to characterize the gas supply reliability of the target natural gas pipeline network system.
[0085] The gas supply reliability evaluation device for natural gas pipeline networks provided in this embodiment of the invention can execute the gas supply reliability evaluation method for natural gas pipeline networks provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0086] Example 4 Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0087] like Figure 6As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded into the RAM 13 from storage unit 18. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0088] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0089] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as gas supply reliability evaluation methods for natural gas pipeline networks.
[0090] In some embodiments, the gas supply reliability evaluation method for a natural gas pipeline network can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the gas supply reliability evaluation method for a natural gas pipeline network described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the gas supply reliability evaluation method for a natural gas pipeline network by any other suitable means (e.g., by means of firmware).
[0091] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0092] Computer programs used to implement the gas supply reliability evaluation method for the natural gas pipeline network of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0093] Example 5 Embodiment 5 of the present invention also provides a computer-readable storage medium storing computer instructions for causing a processor to execute a method for evaluating the reliability of natural gas pipeline supply, the method comprising: Acquire system operation data of the target natural gas pipeline network system, and determine the operation state transition sequence of the target natural gas pipeline network system within a preset task period based on the original operation status data, historical failure data and system maintenance records in the system operation data; wherein, the target natural gas pipeline network system includes multiple key pipeline nodes, the key pipeline nodes include upload nodes and / or download nodes, and the operation state transition sequence includes the operation status of the key pipeline nodes at multiple state transition times within the preset task period; The pre-trained hydraulic proxy model is invoked, and the hydraulic state of the pipeline network is output based on the running state transition sequence. The preset pipeline gas supply optimization solution constraint is used as the solution constraint to obtain the actual gas supply of each upload node and / or download node at each state transition time. Based on the planned gas supply volume corresponding to each key node in the system operation data, and combined with the actual gas supply volume of each upload node and / or download node at each state transition time, the gas supply reliability evaluation result of the target natural gas pipeline system is determined.
[0094] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0095] To provide interaction with an object, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the object; and a keyboard and pointing device (e.g., a mouse or trackball) through which the object provides input to the electronic device. Other types of devices can also be used to provide interaction with the object; for example, feedback provided to the object can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the object can be received in any form (including sound input, voice input, or tactile input).
[0096] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., a computer with a graphical user interface or web browser through which an item can interact with the implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0097] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0098] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0099] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements a method for evaluating the gas supply reliability of a natural gas pipeline network according to any embodiment of the invention.
[0100] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0101] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for evaluating the reliability of natural gas pipeline network supply, characterized in that, include: The system operation data of the target natural gas pipeline network system is acquired. Based on the original operating status data, historical failure data, and system maintenance records in the system operation data, the operating status transition sequence of the target natural gas pipeline network system within a preset task period is determined. The target natural gas pipeline network system includes multiple key pipeline nodes, which include upload nodes and / or download nodes. The operating status transition sequence includes the operating status of the key pipeline nodes at multiple state transition times within the preset task period. The pre-trained hydraulic proxy model is invoked, and the hydraulic state of the pipeline network is output based on the running state transition sequence. The preset pipeline gas supply optimization solution constraint is used as the solution constraint to solve the actual gas supply of each of the upload nodes and / or each of the download nodes at each of the state transition times. Based on the planned gas supply volume corresponding to each of the key nodes in the pipeline network in the system operation data, and combined with the actual gas supply volume of each of the upload nodes and / or download nodes at each of the state transition times, the gas supply reliability evaluation result of the target natural gas pipeline network system is determined.
2. The method according to claim 1, characterized in that, The determination of the operational status transition sequence of the target natural gas pipeline system within a preset task cycle, based on the original operational status data, historical failure data, and system maintenance records in the system operation data, includes: Based on the historical failure data and the system maintenance records, and combined with the Weibull distribution and the maximum likelihood estimation algorithm, the state transition simulation parameters corresponding to each of the upload nodes and / or each of the download nodes are determined respectively. Based on the preset state transition simulation algorithm, using the state transition simulation parameters corresponding to each of the upload nodes and download nodes, within the preset task period, state evolution simulation is performed based on the original operating states corresponding to each of the upload nodes and / or download nodes of the target natural gas pipeline system, to obtain the operating states of each of the upload nodes and / or download nodes at multiple state transition times; The running state transition sequence is formed based on the running state of each of the upload nodes and / or each of the download nodes corresponding to the multiple state transition times.
3. The method according to claim 2, characterized in that, Based on the historical failure data and the system maintenance records, and combined with the Weibull distribution and the maximum likelihood estimation algorithm, the state transition simulation parameters corresponding to each of the upload nodes and / or each of the download nodes are determined, including: The historical failure data is fitted using the maximum likelihood estimation algorithm to obtain the shape and scale parameters of the Weibull distribution. The failure rate of each upload node and / or each download node is calculated based on the shape and scale parameters. The maintenance rate of each upload node and / or each download node is determined based on the system maintenance records. The failure rate and repair rate corresponding to each of the upload nodes and / or download nodes are used together as the state transition simulation parameters for use in state evolution simulation.
4. The method according to claim 3, characterized in that, The preset state transition simulation algorithm includes a state transition time calculation module and a state update result determination module. The state transition time calculation module is used to determine the corresponding state transition time based on the state transition simulation parameters. The state update result determination module is used to perform state evolution simulation on each of the upload nodes and / or each of the download nodes to obtain the running state of each of the upload nodes and / or each of the download nodes.
5. The method according to claim 1, characterized in that, The process involves calling a pre-trained hydraulic proxy model, outputting the network hydraulic state based on the operational state transition sequence, and using preset network gas supply optimization constraints as solution constraints to obtain the actual gas supply of each upload node and / or each download node at each state transition time, including: The running state transition sequence is input into the pre-trained hydraulic proxy model for inference, and the pre-trained hydraulic proxy model outputs the network hydraulic state, wherein the network hydraulic state includes the node hydraulic state of each of the uploading nodes and / or each of the downloading nodes at each of the state transition times, and the node hydraulic state includes pressure prediction value, flow velocity prediction value and density prediction value. Using the gas supply volume of each upload node and / or each download node as the optimization variable, and with the minimum deviation of the specified delivery task as the optimization objective, under the condition of satisfying the preset pipeline gas supply volume optimization solution constraints, the actual gas supply volume of each upload node and / or each download node at each state transition time is obtained by iterative solution in combination with the node hydraulic state of each upload node and / or each download node at each state transition time.
6. The method according to claim 5, characterized in that, The pre-trained hydraulic proxy model is a physical information neural network model obtained through offline training based on pipeline hydraulic physical constraints and a preset loss function. The pipeline hydraulic physical constraints are hydraulic mechanism control equations composed of pipeline mass conservation and momentum conservation. The preset loss function is constructed from data-driven loss terms, physical loss terms, boundary condition loss terms, and initial condition loss terms. The preset pipeline gas supply optimization solution constraints include pipeline node flow balance constraints, pipeline node pressure upper and lower limit constraints, pipeline inventory-flow recursion constraints, and pipeline inventory upper and lower limit constraints.
7. The method according to claim 1, characterized in that, The gas supply reliability evaluation result of the target natural gas pipeline system is determined by combining the planned gas supply volume corresponding to each key node of the pipeline network in the system operation data with the actual gas supply volume of each upload node and / or each download node at each state transition time, including: Using the Monte Carlo simulation algorithm, based on the planned gas supply corresponding to each of the key nodes of the pipeline network in the system operation data, and combined with the actual gas supply of each of the upload nodes and / or each of the download nodes at each of the state transition times, the system gas supply reliability index corresponding to multiple Monte Carlo sample paths is calculated. The target gas supply reliability index is calculated based on the system gas supply reliability index under the multiple Monte Carlo sample paths, and the target gas supply reliability index is determined as the gas supply reliability evaluation result of the target natural gas pipeline system; the target gas supply reliability index is used to characterize the gas supply reliability of the target natural gas pipeline system.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the gas supply reliability evaluation method for the natural gas pipeline network as described in any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the gas supply reliability evaluation method for the natural gas pipeline network as described in any one of claims 1-7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the gas supply reliability evaluation method for a natural gas pipeline network according to any one of claims 1-7.
