Gas-electricity coordinated dispatching method and system based on hydrate blockage risk

By constructing an uncertainty model for hydrate blockage and introducing risk constraints, the problem of inaccurate quantification of hydrate blockage risk in gas-electric interconnection systems is solved, the risk perception capability of the scheduling model is improved, and the safe and economical operation of the system under extreme conditions is ensured.

CN123140640APending Publication Date: 2026-11-20NORTH CHINA ELECTRIC POWER UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611309579.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing gas-electric interconnection system scheduling models fail to accurately assess the risk of hydrate blockage under low temperature and high pressure environments, resulting in inaccurate quantification of blockage risk and affecting the safety and economy of the system.

Method used

By acquiring the operating parameters of the natural gas pipeline in the gas-electric interconnection system, an uncertainty model of pipeline hydrate blockage is constructed to quantify the degree of blockage at local locations. Based on the global blockage failure probability, risk constraints are constructed, and an optimization scheduling model for the gas-electric interconnection system is introduced to optimize the solution and minimize operating costs.

Benefits of technology

It enables precise quantification and risk perception of hydrate blockage risk, improves the safety and economy of scheduling schemes, and ensures reliable operation of the system under extreme conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140640A_ABST
    Figure CN123140640A_ABST
Patent Text Reader

Abstract

The application discloses a gas-electricity collaborative scheduling method and system based on hydrate blockage risk, and relates to the technical field of comprehensive energy system optimization scheduling. The method comprises the following steps: acquiring operation parameters of a natural gas pipeline in a gas-electricity interconnected system; constructing a pipeline hydrate blockage uncertainty model based on the operation parameters, quantifying the blockage degree of each local position of the pipeline, and determining the global blockage failure probability of the whole pipeline according to the blockage degree of each local position; constructing a hydrate blockage risk constraint based on the global blockage failure probability, and introducing the hydrate blockage risk constraint into a gas-electricity interconnected system optimization scheduling model; and based on the hydrate blockage risk constraint and the operation constraint of the gas-electricity interconnected system, taking the minimization of operation cost as an objective function, optimizing and solving the gas-electricity interconnected system optimization scheduling model, and outputting a scheduling scheme, so that the problem that the existing scheduling model lacks risk perception ability for the hydrate blockage risk is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of integrated energy system optimization and scheduling technology, and in particular to a gas-electricity coordinated scheduling method and system based on hydrate blockage risk. Background Technology

[0002] With the trend of large-scale development of gas-electric interconnected systems, the resilience of the system to extreme operating conditions has gradually become a focus of operation scheduling. In existing technologies, the scheduling of gas-electric interconnected systems is mainly based on steady-state power flow models. Transmission constraints are constructed by pre-setting pipeline geometry and hydraulic parameters, and isothermal assumptions are used to simplify temperature distribution calculations in order to meet the economic operation requirements under normal operating conditions.

[0003] In the actual operation of long-distance pipelines in cold regions, especially in low-temperature, high-pressure, and high-risk scenarios such as winter supply and deep-sea gas transmission, when natural gas pipelines are operating in low-temperature and high-pressure environments, the isothermal model may ignore the temperature drop along the pipeline, leading to misjudgment of the hydrate formation boundary. This results in deviations in the assessment of pipeline gas transmission capacity and inaccurate quantification of blockage risk. Under the constraint of fixed flow direction, the system will lose its ability to alleviate blockage through reverse gas transmission, resulting in the lack of risk perception capability of the existing scheduling model for blockage risk. Summary of the Invention

[0004] In view of this, the embodiments of this application provide at least one gas-electricity coordinated scheduling method and system based on hydrate blockage risk, which can solve the problem of the lack of risk perception capability of existing scheduling models for hydrate blockage risk.

[0005] This application mainly includes the following aspects: In a first aspect, embodiments of this application provide a gas-electricity coordinated scheduling method based on hydrate blockage risk. The gas-electricity coordinated scheduling method includes: acquiring the operating parameters of natural gas pipelines in a gas-electricity interconnection system; constructing a pipeline hydrate blockage uncertainty model based on the operating parameters, quantifying the blockage degree at each local location of the pipeline, and determining the global blockage failure probability of the entire pipeline based on the blockage degree at each local location; constructing a hydrate blockage risk constraint based on the global blockage failure probability, and introducing the hydrate blockage risk constraint into a gas-electricity interconnection system optimization scheduling model; and optimizing the gas-electricity interconnection system optimization scheduling model based on the hydrate blockage risk constraint and the gas-electricity interconnection system operating constraints, with minimizing operating cost as the objective function, and outputting a scheduling scheme.

[0006] In one possible implementation, the construction of the pipeline hydrate blockage uncertainty model based on the operating parameters specifically includes: dividing the non-isothermal natural gas pipeline into multiple micro-segments along the axial direction; extracting the pipeline friction temperature corresponding to each micro-segment as the gas temperature of the micro-segment, and calculating the hydrate phase equilibrium temperature based on the pressure and natural gas composition in the operating parameters, and recording the difference between the hydrate phase equilibrium temperature and the gas temperature of the micro-segment as the subcooling; calculating the gas-liquid interface area based on the length and inner diameter of the micro-segment; and inputting the subcooling, the gas-liquid interface area, the gas temperature, and preset empirical coefficients into the natural gas hydrate to generate a semi-empirical model, and calculating the mass change rate of natural gas within the micro-segment.

[0007] By adopting the above technical solution, the non-isothermal natural gas pipeline is divided into multiple micro-element pipe segments along the axial direction, and the mass change rate is calculated based on the subcooling degree, gas-liquid interface area and semi-empirical model of natural gas hydrate formation, thus realizing the differentiated quantification of the hydrate formation state along the pipeline.

[0008] In one possible implementation, the quantification of the blockage degree at various local locations of the pipeline specifically includes: obtaining the hydrate formation rate of the micro-pipe segment based on the mass change rate of the natural gas and the hydrate phase density parameter; calculating the volume of hydrate accumulated in the micro-pipe segment within the discrete time step based on the hydrate formation rate and the discrete time step; calculating the difference between the original pipeline cross-sectional area and the occupied cross-sectional area corresponding to the hydrate volume to obtain the flow cross-sectional area after hydrate accumulation; calculating the difference between the original cross-sectional area and the flow cross-sectional area, and recording the ratio of the difference to the original cross-sectional area as the blockage degree of the micro-pipe segment.

[0009] By adopting the above technical solution, the volume of hydrate and the cross-sectional area occupied are calculated step by step based on the mass change rate and hydrate phase density parameters, and then the blockage degree ratio is obtained. This enables a quantitative characterization of the local flow cross-section contraction of the pipeline, allowing the microscopic blockage state to be numerically represented.

[0010] In one possible implementation, determining the global blockage failure probability of the entire pipeline based on the degree of blockage at each local location specifically includes: traversing the degree of blockage at each local location and filtering to obtain the maximum value of the blockage degree; based on the maximum value of the blockage degree, determining the global blockage failure probability of the entire pipeline through a preset mapping relationship, and recording the flow radius of the local location corresponding to the maximum value of the blockage degree as the minimum flow radius of the pipeline.

[0011] By adopting the above technical solution, the probability of global blockage failure is determined by traversing the blockage degree of each local location and filtering the maximum value, and the flow radius of the corresponding location is recorded as the minimum flow radius. This realizes the mapping of distributed blockage characteristics into pipeline-level fault indicators, while locking the most dangerous section of the pipeline.

[0012] In one possible implementation, before constructing the hydrate blockage risk constraint based on the global blockage failure probability, the method further includes: constructing a single-pipeline failure scenario for each natural gas pipeline segment where the natural gas pipeline is shut down due to hydrate blockage; calculating the minimum load reduction of the system under each single-pipeline failure scenario using an optimal power flow model, wherein the minimum load reduction includes natural gas load reduction, power load reduction, and wind curtailment; and determining the minimum load reduction as the failure load reduction after the pipeline failure, wherein the load reduction is used to construct the hydrate blockage risk constraint. By adopting the above technical solution, a fault scenario of a single pipeline being shut down due to hydrate blockage is constructed, and the minimum load reduction amount including natural gas and electricity load reduction and wind curtailment is solved using the optimal power flow model. This yields the load reduction quantification parameters for constructing risk constraints and clarifies the measurement method for the consequences of the fault.

[0013] In one possible implementation, the step of constructing a hydrate blockage risk constraint based on the global blockage failure probability and introducing the hydrate blockage risk constraint into the gas-electric interconnection system optimization scheduling model specifically includes: multiplying the global blockage failure probability by the fault load reduction amount after the pipeline failure to obtain the hydrate blockage risk value of the pipeline; and introducing the condition that the hydrate blockage risk value of any natural gas pipeline does not exceed a preset risk threshold as a constraint into the gas-electric interconnection system optimization scheduling model.

[0014] By adopting the above technical solution, the hydrate blockage risk value is obtained by multiplying the global blockage failure probability by the failure load reduction after the pipeline failure. The risk value not exceeding the preset risk threshold is introduced into the scheduling model as a constraint, realizing the closed-loop embedding of hydrate blockage risk from quantification to constraint, so that the scheduling decision takes into account the risk limit.

[0015] In one possible implementation, the gas-electric interconnection system optimization scheduling model sets the gas flow direction of the natural gas pipeline as a discrete optimization variable, specifically including: setting a flow direction identifier for each natural gas pipeline; when the flow direction identifier takes a first value, determining that the gas flows from the first end node to the last end node of the pipeline, and establishing a constraint that the gas pressure at the first end node is higher than that at the last end node; when the flow direction identifier takes a second value, determining that the gas flows from the last end node to the first end node of the pipeline, and establishing a constraint that the gas pressure at the last end node is higher than that at the first end node.

[0016] By adopting the above technical solution, by setting flow direction indicators for each natural gas pipeline and establishing corresponding pressure constraints at the beginning and end nodes based on the indicator values, a discretized mathematical description of the gas flow direction is realized, providing a variable basis for flexibly adjusting the pipeline flow direction in the optimization solution.

[0017] In one possible implementation, the optimization solution of the gas-electric interconnection system scheduling model specifically includes: retrieving a preset flow calculation coefficient related to the pipeline's physical properties, the preset flow calculation coefficient including a natural gas compressibility factor and a resistance factor; calculating the squared difference of gas pressure between the first-end node and the last-end node based on the gas flow direction determined by the flow direction identifier; determining a flow direction correction factor based on the flow direction identifier; multiplying the preset flow calculation coefficient, the flow direction correction factor, the squared difference of gas pressure, and a preset power of the pipeline diameter, and dividing by the average pipeline temperature to obtain the pipeline flow square term. By adopting the above technical solution, the flow direction correction factor is determined based on the flow direction identifier, and the flow square term is obtained by combining the preset flow calculation coefficient, the square difference of gas pressure and the power of the pipeline diameter. This achieves an accurate mathematical expression of the natural gas flow characteristics under the premise of considering the change of flow direction and the physical properties of the pipeline.

[0018] In one possible implementation, the optimization solution of the gas-electric interconnection system optimization scheduling model further includes: determining the gas flow direction based on the flow direction indicator; when the flow direction indicator takes a first value, determining the temperature of the first node of the pipeline as the pipeline inlet temperature; when the flow direction indicator takes a second value, determining the temperature of the last node of the pipeline as the pipeline inlet temperature; and calculating the pipeline outlet temperature based on the pipeline inlet temperature and the pipeline heat exchange parameters.

[0019] By adopting the above technical solution, the inlet temperature of the pipeline is adaptively determined according to the flow direction mark, and the outlet temperature is calculated based on the inlet temperature and heat transfer parameters. This enables dynamic calculation of the temperature field in the pipeline as the flow direction changes, ensuring the consistency of temperature parameters in the optimization solution under non-isothermal conditions.

[0020] Secondly, embodiments of this application also provide a gas-electric coordinated scheduling system based on hydrate blockage risk, the gas-electric coordinated scheduling system comprising: The parameter acquisition module is used to acquire the operating parameters of the natural gas pipeline in the gas-electric interconnection system. The operating parameters include pipeline temperature, pressure, gas flow rate and natural gas composition. The uncertainty modeling module is used to construct an uncertainty model of pipeline hydrate blockage based on the operating parameters, quantify the degree of blockage at each local location of the pipeline, and determine the global blockage failure probability of the entire pipeline based on the degree of blockage at each local location. The risk constraint construction module is used to construct hydrate blockage risk constraints based on the global blockage failure probability and to introduce the hydrate blockage risk constraints into the gas-electric interconnection system optimization scheduling model. The optimization solution module is used to optimize and solve the gas-electric interconnection system's scheduling model based on the hydrate blockage risk constraints and the operational constraints of the gas-electric interconnection system, with the objective function of minimizing operating costs, and output a scheduling scheme.

[0021] The gas-electricity coordinated scheduling method and system based on hydrate blockage risk provided in this application obtains the operating parameters of natural gas pipelines in the gas-electricity interconnection system, constructs a pipeline hydrate blockage uncertainty model to quantify the blockage degree at various local locations of the pipeline and determine the global blockage failure probability of the entire pipeline, constructs hydrate blockage risk constraints based on the global blockage failure probability and introduces them into the gas-electricity interconnection system optimization scheduling model, and then solves the optimization scheduling model with risk constraints with the objective function of minimizing operating cost and outputs a scheduling scheme. This solves the problem of the lack of risk perception capability of existing scheduling models for hydrate blockage risk and improves the scheduling scheme's ability to control hydrate blockage risk.

[0022] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0023] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 A flowchart of a gas-electric coordinated scheduling method based on hydrate blockage risk provided in an embodiment of this application is shown; Figure 2 A flowchart of a method for quantifying the risk of hydrate blockage in natural gas pipelines, provided in an embodiment of this application, is shown. Figure 3 A flowchart illustrating an optimized scheduling model construction method based on hydrate blockage risk provided in an embodiment of this application is shown. Figure 4 This paper illustrates a functional block diagram of a gas-electric coordinated scheduling system based on hydrate blockage risk, provided in an embodiment of this application. Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown.

[0025] Explanation of key component symbols: In the diagram: 410 - Parameter acquisition module; 420 - Uncertainty modeling module; 430 - Risk constraint construction module; 440 - Optimization solution module; 500 - Electronic equipment; 510 - Processor; 520 - Memory; 530 - Bus. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.

[0027] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0028] To enable those skilled in the art to utilize the content of this application, and in conjunction with the specific application scenario of "optimized scheduling of gas-electric interconnection systems under cryogenic conditions," the following implementation methods are provided. For those skilled in the art, the general principles defined herein can be applied to other energy system scheduling scenarios with the risk of hydrate formation, such as offshore oil and gas platform power supply and polar natural gas transportation, without departing from the spirit and scope of this application.

[0029] The methods, systems, devices, and media described in the embodiments of this application can be applied to any gas-electricity coordinated dispatch scenario that requires quantitative management and control of the risk of hydrate blockage in natural gas pipelines. The embodiments of this application do not limit the specific gas source composition, power grid topology, or meteorological conditions; any dispatch scheme based on hydrate blockage uncertainty modeling provided in the embodiments of this application is within the scope of protection of this application.

[0030] It is worth noting that, prior to this application, the mainstream gas-electric interconnection system optimization scheduling schemes in the prior art generally adopted the natural gas pipeline model under the isothermal assumption, simplifying the pipeline operation state into two modes: full opening or full closing. This lack of consideration for the microscopic dynamic mechanism of hydrate formation and the non-uniform evolution characteristics of local blockage led to an underestimation of the probability of hydrate-induced failures, making it difficult to achieve a reasonable balance between operational safety and economy, and failing to support the reliable operation requirements of the energy system under extreme weather conditions.

[0031] Based on this, this application provides a gas-electricity coordinated scheduling method and system based on hydrate blockage risk. By obtaining the operating parameters of natural gas pipelines in the gas-electricity interconnection system, a pipeline hydrate blockage uncertainty model is constructed to determine the global blockage failure probability. The hydrate blockage risk constraint constructed based on the failure probability is introduced into the gas-electricity interconnection system optimization scheduling model, and the model is optimized and solved with minimizing the operating cost as the objective function to output the scheduling scheme, thus solving the problem of the lack of risk perception capability of existing scheduling models for hydrate blockage risk.

[0032] To facilitate understanding of this application, the technical solutions provided in this application will be described in detail below with reference to specific embodiments.

[0033] The gas-electric coordinated scheduling method and system based on hydrate blockage risk provided in this application are applicable to gas-electric interconnected systems that include natural gas pipelines. Such systems convert the chemical energy of natural gas into electrical energy through gas turbine units, or convert electrical energy into the chemical energy of natural gas through P2G equipment, achieving bidirectional energy coupling between the electrical subsystem and the natural gas subsystem.

[0034] The low-temperature, high-pressure environment within natural gas pipelines easily induces hydrate formation and leads to pipeline blockage, especially in winter or extremely cold regions. This risk seriously threatens the safe and stable operation of gas-electric interconnection systems. Therefore, it is necessary to introduce hydrate blockage risk constraints into the optimization scheduling model to achieve synergistic optimization of system economy and safety.

[0035] It should be understood that the method described in this application is applicable to gas-electric interconnection systems of various topologies, including but not limited to energy systems containing gas storage facilities, hydrogen blending pipelines, or multi-energy complementary microgrids. Any system architecture that includes natural gas pipelines and requires gas-electric synergistic optimization is applicable to the technical solutions provided in this application.

[0036] Figure 1 A flowchart illustrating a gas-electric coordinated scheduling method based on hydrate blockage risk, provided as an embodiment of this application. Figure 1 As shown in the embodiments of this application, the gas-electric coordinated scheduling method includes the following steps: S101. Obtain the operating parameters of the natural gas pipeline in the gas-electric interconnection system.

[0037] Here, the operating parameters are the basic input data for constructing the hydrate blockage uncertainty model, used to characterize the operating conditions of the natural gas pipeline at the current moment.

[0038] It should be understood that the specific types and acquisition methods of the above-mentioned operating parameters can be flexibly determined according to the actual system configuration requirements. Any parameter acquisition scheme that can reflect the thermal and hydraulic state of the pipeline is within the protection scope of this application.

[0039] S102. Based on the operating parameters, construct a pipeline hydrate blockage uncertainty model, quantify the degree of blockage at each local location of the pipeline, and determine the global blockage failure probability of the entire pipeline based on the degree of blockage at each local location.

[0040] Traditional techniques simplify pipeline status to a binary logic of either fully open or fully closed, while this embodiment extrapolates the continuous distribution of hydrate blockage within the pipeline through operational parameters. Traditional techniques, lacking methods for quantifying microscopic blockages, typically assume the pipeline is in an ideally unobstructed state, leading to scheduling schemes ignoring hidden blockage risks. This application, by introducing a hydrate blockage uncertainty model, transforms the blockage state into a continuous global blockage failure probability value, quantifying the actual limitation of the pipeline and providing direct numerical basis for subsequently constructing hydrate blockage risk constraints.

[0041] It should be understood that the specific implementation of the above modeling and quantification methods can be flexibly configured according to actual accuracy requirements. Any means of quantifying the degree of local congestion and determining the probability of global failure based on operating parameters are within the scope of protection of this application.

[0042] S103. Construct a hydrate blockage risk constraint based on the global blockage failure probability, and introduce the hydrate blockage risk constraint into the gas-electric interconnection system optimization scheduling model.

[0043] Here, the global congestion failure probability is transformed into an explicit constraint in the optimal scheduling model of the gas-electric interconnected system, changing the static logic of traditional technologies that rely on fixed safety margins or perform safety checks in the post-scheduling phase. Traditional scheduling methods typically perform safety checks only after the scheme is generated, and once a risk is found, the entire scheme is rejected, resulting in low solution efficiency and a tendency to fall into unsolvable dilemmas. In contrast, this application, by setting the probability index as a constraint threshold in advance, enables the scheduling scheme to have risk filtering capabilities during the generation stage, forcing the optimization process to actively avoid pipeline operation states with a high probability of congestion.

[0044] It should be understood that the specific construction logic of the above-mentioned risk constraints can be flexibly configured according to actual risk management needs. Any implementation method that constructs risk constraints based on the global congestion failure probability and embeds them into the optimization scheduling framework is within the protection scope of this application.

[0045] S104. Based on the hydrate blockage risk constraint and the gas-electric interconnection system operation constraint, with minimizing the operating cost as the objective function, optimize and solve the gas-electric interconnection system scheduling model, and output the scheduling scheme.

[0046] Here, the operational constraints of the gas-electric interconnection system cover the physical operational limitations of the power subsystem, the natural gas subsystem, and the coupling equipment, and the objective function is used to measure the economy of the scheduling scheme.

[0047] It should be understood that the specific composition of the above constraints, the specific terms of the objective function, and the specific type of the solution algorithm can all be flexibly configured according to actual scheduling needs. Any scheme that optimizes the solution under the constraint of hydrate blockage risk falls within the protection scope of this application.

[0048] In this embodiment, by acquiring the operating parameters of the natural gas pipeline and constructing an uncertainty model, the pipeline health status is transformed from traditional discrete judgment to continuous quantification. On this basis, the global blockage failure probability is introduced into the optimization scheduling model in advance to construct risk constraints, so that the scheduling scheme has risk filtering capability in the generation stage. Then, the solution is performed with the goal of minimizing the operating cost, and the scheduling scheme that simultaneously meets the requirements of safety margin and economic operation is output.

[0049] Optionally, based on the above embodiments, in order to further improve the quantitative accuracy of hydrate blockage risk and the reliability of scheduling decisions, this application also provides several specific implementation methods.

[0050] Please see Figure 2 , Figure 2 A flowchart of a method for quantifying the risk of hydrate blockage in a natural gas pipeline, provided as another embodiment of this application.

[0051] like Figure 2 As shown, the natural gas pipeline hydrate blockage risk quantification method provided in this application embodiment further includes steps S201 to S204 on the basis of the above S101 to S102.

[0052] It should be understood that the specific implementations described below are merely preferred embodiments for ease of understanding, and this application is not limited thereto.

[0053] S201. Obtain the operating parameters of the natural gas pipeline in the gas-electric interconnection system, and further obtain the model verification benchmark parameters.

[0054] Here, S201 is a further explanation and expansion of step S101 above. The operating parameters mentioned are the basic inputs for constructing the hydrate blockage uncertainty model. Their specific composition must simultaneously reflect the thermal state, hydraulic state, and gas physical properties of the pipeline to ensure that the subsequent model can accurately capture the driving conditions for hydrate formation. In addition, to verify the rationality of the model's quantification results, benchmark parameters for result verification must also be obtained simultaneously.

[0055] In one possible implementation, the operating parameters specifically include pipeline friction temperature, node pressure, gas flow rate, and natural gas composition. The pipeline friction temperature is used to define the supercooled environment for hydrate formation; the node pressure is used to determine the hydrate phase equilibrium boundary; the gas flow rate is used to characterize the pipeline's operating load; and the natural gas composition is used to calculate the kinetic response characteristics of hydrate formation.

[0056] Furthermore, in addition to operating parameters, pipeline geometry and environmental parameters can be obtained as verification benchmarks. These benchmark parameters are not directly involved in the iterative calculation of hydrate formation rate, but are used to verify the initial flow capacity of the pipeline and the ambient temperature boundary, providing a reference for subsequent comparison of model prediction results with measured pipeline pressure drop data.

[0057] For example, for pipelines already in operation, the above parameters can be collected in real time through a data acquisition and monitoring control system; for test environments, they can be obtained through a loop test platform or by consulting design documents.

[0058] It should be noted that the aforementioned verification benchmark parameters are not necessary inputs for constructing the uncertainty model in this application, but only provide a reference for verifying model accuracy or constructing an experimental environment. The core improvement of this application lies in dynamically quantifying congestion risk based on operating parameters. The setting of macroscopic benchmark parameters only serves to verify the rationality of the final output results, avoiding magnitude deviations between predicted values ​​and actual risk levels.

[0059] S202. Based on the operating parameters, construct an uncertainty model for pipeline hydrate blockage, divide the pipeline into multiple micro-segments, and calculate the mass change rate of natural gas within the corresponding micro-segment.

[0060] This step further explains and refines the uncertainty model for pipeline hydrate blockage constructed in S102. The micro-element pipe segment is the computational unit after discretization of the pipeline, used to support the distributed solution of parameters along the pipeline; the rate of change of natural gas mass is used to characterize the mass of natural gas participating in hydrate formation per unit time, and is a fundamental parameter for assessing the risk of hydrate formation.

[0061] In one possible implementation, the construction of the pipeline hydrate blockage uncertainty model based on the operating parameters specifically includes: dividing the non-isothermal natural gas pipeline into multiple micro-segments along the axial direction; extracting the pipeline friction temperature corresponding to each micro-segment as the gas temperature of the micro-segment, and calculating the hydrate phase equilibrium temperature based on the pressure and natural gas composition in the operating parameters, and recording the difference between the hydrate phase equilibrium temperature and the gas temperature of the micro-segment as the subcooling; calculating the gas-liquid interface area based on the length and inner diameter of the micro-segment; and inputting the subcooling, the gas-liquid interface area, the gas temperature, and preset empirical coefficients into the natural gas hydrate to generate a semi-empirical model, and calculating the mass change rate of natural gas within the micro-segment.

[0062] Here, considering the temperature variation characteristics along the pipeline of the non-isothermal natural gas pipeline, the actual heat exchange conditions of the pipeline are matched by dividing the pipeline into micro-element pipe sections; the subcooling is obtained by calculating the difference between the hydrate phase equilibrium temperature and the gas temperature; the gas-liquid interface area is calculated to determine the location of the phase change reaction; and the subcooling and gas-liquid interface area are mapped to the mass change rate of natural gas using the semi-empirical model of natural gas hydrate formation.

[0063] For example, the calculation formula for the hydrate phase equilibrium temperature can be obtained by using a piecewise linear regression method as follows:

[0064] in, The equilibrium temperature of the hydrate phase. The above coefficients and interval divisions are obtained based on regression analysis of pure methane components, where the pressure is the node pressure.

[0065] Furthermore, the subcooling can be calculated using the following formula:

[0066] in, For supercooling, The equilibrium temperature of the hydrate phase. Let be the gas temperature in the nth infinitesimal segment of natural gas pipeline a.

[0067] Furthermore, the gas-liquid interface area can be calculated using the following formula:

[0068] in, Let n be the gas-liquid interface area of ​​the nth micro-element pipe segment; The length of the micro-element pipe segment; Let be the gas flow path radius of the nth micro-element pipe segment before hydrate aggregation.

[0069] Furthermore, based on the aforementioned subcooling and gas-liquid interface area, the Turner equation can be used to calculate the rate of mass change of natural gas, as follows:

[0070] in, For the rate of change of mass, This is an empirical coefficient. The kinetic constant of hydrates, Here is the dynamic constant. Let be the gas temperature in the nth infinitesimal segment of natural gas pipeline a. For supercooling, This represents the gas-liquid interface area.

[0071] In this way, the rate of change of natural gas quality within each micro-element pipe segment can be obtained through the above formula, providing data support for subsequent quantification of the degree of blockage.

[0072] It should be noted that the above-mentioned hydrate phase equilibrium temperature formula, subcooling formula, gas-liquid interface area formula, and Turner equation are all specific implementation examples of this application. Those skilled in the art can adjust the thermodynamic calculation formulas according to the actual composition of natural gas, or use other equivalent hydrate kinetic models, and these equivalent transformations should all fall within the protection scope of this application.

[0073] S203. Quantify the degree of blockage at various local locations in the pipeline to determine the flow cross-sectional area after hydrate accumulation.

[0074] This step further explains and refines the quantification of the degree of blockage at various local locations in the pipeline in S102. The degree of blockage is used to quantify the proportion of hydrate encroachment on the pipeline's flow capacity, and is a direct indicator for assessing local transport risks; the flow cross-sectional area is the effective cross-section of the pipeline that can actually accommodate gas, used to reflect the extent to which hydrate accumulation encroaches on the pipeline's flow space.

[0075] In one possible implementation, the quantification of the blockage degree at various local locations of the pipeline specifically includes: obtaining the hydrate formation rate of the micro-pipe segment based on the mass change rate of the natural gas and the hydrate phase density parameter; calculating the volume of hydrate accumulated in the micro-pipe segment within the discrete time step based on the hydrate formation rate and the discrete time step; calculating the difference between the original pipeline cross-sectional area and the occupied cross-sectional area corresponding to the hydrate volume to obtain the flow cross-sectional area after hydrate accumulation; calculating the difference between the original cross-sectional area and the flow cross-sectional area, and recording the ratio of the difference to the original cross-sectional area as the blockage degree of the micro-pipe segment.

[0076] Here, the hydrate phase density parameters include the molar density of natural gas in the hydrate phase and the average molar mass of natural gas; the hydrate formation rate is derived from the mass change rate of natural gas and the hydrate phase density parameters to obtain the hydrate formation rate; the hydrate volume is calculated by multiplying the hydrate formation rate by the discrete time step; the flow cross-sectional area is determined by subtracting the area occupied by hydrate from the original cross-sectional area; and the degree of blockage of the micro-element pipe segment is obtained by recording the ratio of the cross-sectional area difference to the original cross-sectional area.

[0077] For example, the hydrate formation rate can be calculated using the following formula:

[0078] in, For the hydrate formation rate, The molar density of natural gas in the hydrate phase. The average molar mass of natural gas, This represents the rate of change in the mass of natural gas.

[0079] Here, the supercooling The difference between the equilibrium temperature of the hydrate phase and the gas temperature, when At that time, the pipe possesses the thermodynamic conditions for hydrate formation, and hydrates continue to form; when At that time, the critical conditions for hydrate formation were not met in the pipeline, and the hydrate formation rate was zero. The above formula incorporates a supercooling threshold to determine the thermodynamic feasibility of hydrate formation into the kinetic calculation, thus avoiding miscalculation of hydrate volume under non-formation conditions.

[0080] Furthermore, the hydrate accumulation volume of the micro-element pipe segment can be calculated using the following formula:

[0081] in, Discrete time step The volume of hydrates aggregated within the hydrate, For discrete time steps.

[0082] Furthermore, the remaining flow radius after hydrate aggregation can be calculated using the following formula:

[0083] in, Let n be the gas flow path radius of the nth micro-element pipe segment after hydrate aggregation. Let n be the gas flow path radius of the nth micro-element pipe segment before hydrate accumulation. The length of the micro-element pipe segment, The volume of hydrate generated within the discrete time step of the infinitesimal pipe segment.

[0084] Furthermore, the degree of blockage in the micro-element pipe segment can be calculated using the following formula:

[0085] in, Let n be the degree of blockage in the nth micro-element pipe segment. Let n be the gas flow path radius of the nth micro-element pipe segment before hydrate accumulation. Let be the gas flow path radius of the nth micro-element pipe segment after hydrate aggregation.

[0086] It should be noted that the above formulas for hydrate formation rate and clogging degree calculation are specific implementation examples of this application. Those skilled in the art can use other equivalent geometric representation methods to quantify the clogging degree, and these equivalent transformations should all fall within the protection scope of this application.

[0087] S204. Determine the overall blockage probability of the entire pipeline based on the degree of blockage at each local location.

[0088] This step further explains and refines step S102, which determines the global blockage failure probability of the entire pipeline based on the degree of blockage at each local location. The global blockage failure probability is used to characterize the system-level failure risk of the entire pipeline and is a key indicator connecting local physical blockage with system scheduling decisions; the minimum flow radius is used to identify the most dangerous weak point in the pipeline, providing a basis for risk tracing and control.

[0089] In one possible implementation, determining the global blockage failure probability of the entire pipeline based on the degree of blockage at each local location specifically includes: traversing the degree of blockage at each local location and extracting the maximum value of the degree of blockage; determining the global blockage failure probability of the entire pipeline based on the maximum value of the degree of blockage, and recording the flow radius of the local location corresponding to the maximum value as the minimum flow radius of the pipeline.

[0090] Here, the global blockage failure probability is determined based on the weakest link criterion, specifically by using the maximum value of each local blockage degree. By traversing the blockage degree of each micro-pipe segment and extracting the maximum value, extreme risk states along the pipeline are identified. The global blockage failure probability is determined based on the maximum value, thereby aggregating distributed local features into a single system-level risk indicator. By recording the flow radius corresponding to the maximum value as the minimum flow radius, the key bottleneck restricting the pipeline's transport capacity is obtained.

[0091] For example, the global congestion failure probability can be calculated using the following formula:

[0092] in, This represents the probability of a global blockage failure. Let n be the degree of blockage in the nth micro-element pipe segment. This represents the flow radius after hydrate accumulation, corresponding to the maximum degree of blockage in each micro-element pipe segment. Let be the gas flow path radius of the nth micro-element pipe segment before hydrate aggregation.

[0093] here, This represents the maximum value of the blockage degree in each micro-element pipe segment, used to characterize the most unfavorable operating condition of the pipeline; The flow radius corresponding to the maximum value of the blockage degree of each micro-element pipe segment is used to convert the geometric blockage degree into a dimensionless percentage probability index by the ratio of this radius to the original radius.

[0094] In this way, the calculation using the above formula can accurately reflect the overall reliability of the pipeline based on the weakest link criterion, avoiding the underestimation of danger caused by the averaging of local blockages, and providing reliable data support for subsequent risk constraint construction and optimized scheduling.

[0095] It should be noted that the above formula for calculating the global congestion failure probability is a specific implementation example of this application. Those skilled in the art may also use other risk assessment models to determine global risk indicators, and these equivalent transformations should all fall within the protection scope of this application.

[0096] Please see Figure 3 , Figure 3 A flowchart illustrating a method for constructing an optimized scheduling model based on hydrate blockage risk, as provided in another embodiment of this application.

[0097] like Figure 3 As shown, after the global congestion failure probability is obtained by quantization based on S201 to S204, the process further includes steps S301 to S304 of constructing and solving an optimized scheduling model.

[0098] S301. Construct an optimal scheduling model for the gas-electric interconnection system, with the objective function being to minimize the system operating cost.

[0099] Here, S301 provides a further explanation and refinement of the construction of an optimized scheduling model for the gas-electric interconnection system with the objective of minimizing operating costs. The optimized scheduling model is a mathematical programming model that includes an objective function and constraints; the system operating cost is the variable to be minimized in the objective function.

[0100] In one possible implementation, an optimized scheduling model for the gas-electric interconnection system is constructed, with the goal of minimizing the system operating cost. This includes: using the active power balance of power system nodes, the flow balance of natural gas system nodes, and the energy conversion relationship of gas-electric coupling equipment as the physical constraint basis of the model; constructing a mathematical optimization expression with the goal of minimizing the total system operating cost; and introducing the hydrate blockage risk constraint and pipeline flow direction constraint as restrictive conditions into the mathematical model.

[0101] Here, the objective function is a linear superposition of the total system operating costs; the power generation cost is obtained by incorporating the power generation cost of coal-fired units; the gas supply cost is obtained by incorporating the gas supply cost; the penalty cost is obtained by incorporating the penalty costs of power load reduction, gas load reduction and wind curtailment; and the optimal scheduling scheme is obtained by minimizing the sum of the above costs.

[0102]

[0103]

[0104] here, This is a cost item for power generation from coal-fired units; This is a cost item for power generation from gas turbine units; This is the cost of gas supply. Penalty cost item for reducing electricity load; This is a penalty cost item for reducing gas load; This is a cost item for penalties related to wind curtailment.

[0105] Thus, by using the objective function described above, the minimum total operating cost of the system can be calculated.

[0106] It should be noted that the specific composition of the objective function and the cost item settings described above are specific implementation examples of this application. Those skilled in the art can adjust the composition of the cost item or adopt other equivalent economic evaluation indicators according to the actual application scenario. All such equivalent transformations should fall within the protection scope of this application.

[0107] S302, Constructing hydrate blockage risk constraints.

[0108] This step further explains and refines the above-mentioned hydrate blockage risk constraint. The hydrate blockage risk constraint is used to limit the overall risk level of the scheduling scheme and avoid large-scale load reductions caused by pipeline blockage.

[0109] In one possible implementation, the construction of hydrate blockage risk constraints specifically includes: for each section of natural gas pipeline, constructing a single-pipeline failure scenario where the natural gas pipeline is shut down due to hydrate blockage; under each single-pipeline failure scenario, calculating the minimum load reduction of the system using an optimal power flow model, wherein the minimum load reduction includes natural gas load reduction, power load reduction, and wind curtailment; determining the minimum load reduction as the failure load reduction after the pipeline failure, wherein the load reduction is used to construct the hydrate blockage risk constraint; multiplying the global blockage failure probability by the failure load reduction after the pipeline failure to obtain the hydrate blockage risk value of the pipeline; and introducing the condition that the hydrate blockage risk value of any natural gas pipeline does not exceed a preset risk threshold as a constraint into the gas-electric interconnection system optimization scheduling model.

[0110] Here, the minimum load reduction amount is obtained in advance through offline simulation; the hydrate blockage risk value of the pipeline is obtained by multiplying the global blockage failure probability with the failure load reduction amount after the pipeline failure; a preset risk threshold is introduced to define the boundary of the risk constraint; and a scheduling scheme that meets the safety requirements is selected by comparing the risk value with the threshold.

[0111] For example, the following formula can be used to calculate the risk value of hydrate blockage in a pipeline and the corresponding constraints:

[0112]

[0113] in, The risk value for hydrate blockage in pipe a; This represents the probability of a global blockage failure. This represents the load reduction after pipeline a fails. To preset risk thresholds, these thresholds can be determined in advance based on the safety level of the gas-electric interconnection system, historical operating data, or industry standards. This application does not impose specific limitations on this.

[0114] Here, the constraints This means that the risk value of hydrate blockage in any natural gas pipeline must not exceed the preset risk threshold. When the scheduling scheme does not meet the risk constraints, the optimization model does not adopt it; when When the scheduling scheme satisfies the risk constraints, it can be used as a feasible solution to participate in the optimization solution; by introducing the constraints into the optimization scheduling model, the scheduling scheme is forced to control the risks caused by hydrate blockage within a preset acceptable range.

[0115] Furthermore, the minimum load reduction is pre-obtained through offline simulation, specifically including: for each natural gas pipeline segment, a single-pipeline failure scenario is constructed based on the N-1 safety check criterion, i.e., only a single pipeline is considered to be out of operation due to blockage, while the rest of the network topology remains unchanged; under the single-pipeline failure scenario, with the goal of minimizing system operating costs, considering the power balance of the power system, the flow balance of the natural gas system, and the operating constraints of gas-electric coupling equipment, the minimum electrical load, minimum gas load, and curtailment volume required to meet the supply and demand balance are obtained by solving the optimal power flow model; the minimum electrical load reduction, minimum gas load reduction, and curtailment volume are uniformly converted to units, and the sum of the three is recorded as the failure load reduction after the pipeline failure. .

[0116] In this way, by combining the probability of hydrate blockage with the consequences of failure through the above-mentioned risk constraints, the overall risk level of the scheduling scheme can be limited, and the high cost problem caused by completely avoiding hydrate formation can be avoided.

[0117] It should be noted that the construction method and risk value calculation method of the above-described single-pipe failure scenario are specific implementation examples of this application. Those skilled in the art can use N-1 safety checks or other failure enumeration methods to determine the consequences of the failure, and these equivalent transformations should all fall within the protection scope of this application.

[0118] S303. Construct natural gas pipeline transmission constraints that take into account variable flow direction and thermal characteristics.

[0119] Here, the natural gas pipeline transmission constraints are used to define the physical feasible region of gas flow within the natural gas pipeline and are a component of the gas-electric interconnection system optimization scheduling model; the variable flow direction characteristic is achieved by introducing a binary flow direction identifier; and the thermodynamic characteristics are achieved through the friction temperature drop equation and the node mixing temperature equation.

[0120] In one possible implementation, the construction of natural gas pipeline transmission constraints specifically includes: setting a flow direction identifier for each natural gas pipeline; when the flow direction identifier takes a first value, determining that the gas flows from the first end node to the last end node of the pipeline, and establishing a constraint that the gas pressure at the first end node is higher than that at the last end node; when the flow direction identifier takes a second value, determining that the gas flows from the last end node to the first end node of the pipeline, and establishing a constraint that the gas pressure at the last end node is higher than that at the first end node.

[0121] Here, the flow direction identifier is a discrete variable of 0-1; by configuring an independent flow direction identifier for each pipe, the gas flow state of the pipe is characterized; by setting the flow direction corresponding to the first value, the gas is defined to flow in a preset forward direction; by setting the flow direction corresponding to the second value, the gas is defined to flow in a preset reverse direction.

[0122] In one possible implementation, a preset flow calculation coefficient related to the pipeline's physical properties is retrieved, including a natural gas compressibility factor, a hydraulic friction coefficient, and a gas constant; based on the gas flow direction determined by the flow direction identifier, the squared difference in pressure between the initial and final node pressures is calculated; a flow direction correction factor is determined based on the flow direction identifier; the preset flow calculation coefficient, the flow direction correction factor, the squared difference in pressure, and a preset power of the pipeline diameter are multiplied together and divided by the average pipeline temperature to obtain the squared pipeline flow rate term.

[0123] For example, the square term of the pipeline flow rate can be calculated using the following relationship:

[0124] in, Let be the absolute value of the gas flow rate in pipe a, with i as the starting point and j as the ending point. Z is the hydraulic friction coefficient; Z is the natural gas compressibility factor; R is the gas constant; Let a be the length of pipe a; This serves as an indicator of the flow direction of pipe a. For flow direction correction factor; , The pressures at nodes i and j are respectively. Let be the diameter of pipe a; Let be the average temperature of the gas inside pipe a.

[0125] Here, the square term of the pipeline flow rate is calculated based on the pipeline's physical properties and flow direction indicators; a flow direction correction factor is introduced. To match the actual gas flow direction; by combining the square difference of gas pressure with the power of the pipe diameter and the average temperature, the square term of the pipe flow rate is obtained.

[0126] In one possible implementation, the gas flow direction is determined based on the flow direction indicator; when the flow direction indicator takes a first value, the temperature of the first node of the pipe is determined as the pipe inlet temperature; when the flow direction indicator takes a second value, the temperature of the last node of the pipe is determined as the pipe inlet temperature; and the pipe outlet temperature is calculated based on the pipe inlet temperature and the pipe heat exchange parameters.

[0127] For example, the pipe inlet temperature can be calculated using the following formula:

[0128] in, , Let i and j be the gas temperatures at nodes i and j, respectively. This serves as a flow direction indicator. When... When taking the first value, = ;when When taking the second value, = .

[0129] Here, the actual temperature at the gas inlet is dynamically determined based on the flow direction markings on the pipeline. This is achieved by introducing a 0-1 variable. By weighting and combining the temperatures of node i and node j, a unified description of the inlet temperature of bidirectional flow is achieved, avoiding the use of piecewise functions due to changes in flow direction.

[0130] For example, the pipe outlet temperature can be calculated using the following formula:

[0131] in, This refers to the specific heat capacity of a gas at constant pressure. , , where are the gas temperatures at the outflow and inflow ends of pipe a, respectively; k is the thermal conductivity coefficient of the pipe; Ambient temperature; Let be the absolute value of the gas flow rate in pipe a, with i as the starting point and j as the ending point. Let be the length of pipe a.

[0132] Here, the outlet temperature of the pipe is calculated based on the inlet temperature and heat transfer parameters; the energy balance relationship is used to reflect the gas's temperature drop characteristics along the pipe; and the ambient temperature is introduced. This is to define the heat exchange boundary between the pipeline and the outside world.

[0133] For example, the mixed node temperature can be calculated using the following relationship:

[0134] in, This refers to the output temperature of the air source. The gas production temperature of the P2G equipment; , These are the output flow rates of the gas source and the P2G device at node j, respectively. , This represents the flow rate in the corresponding direction of the pipeline; , This represents the temperature at the outlet end of the pipe in the corresponding direction.

[0135] Here, the node mixing temperature is calculated based on the temperature and flow rate of each gas stream entering the node; the final gas temperature at the node is obtained by weighted averaging of flow rates; and the temperature sources in the multi-energy flow coupling scenario are covered by incorporating the gas source and the output temperature of the P2G device.

[0136] In this way, by constructing the above-mentioned transmission model that includes constraints on flow direction, flow rate, and temperature, the physical characteristics of the natural gas network in the gas-electric interconnection system can be accurately characterized, providing accurate gas network-side constraints for optimized scheduling.

[0137] It should be noted that the values ​​of the flow direction indicator, the selection of the flow rate calculation coefficient, and the temperature calculation formula mentioned above are specific implementation examples of this application. Those skilled in the art can make adaptive adjustments to the parameter calibration method or the form of the calculation formula, and these equivalent transformations should all fall within the protection scope of this application.

[0138] S304. Construct system auxiliary constraints and solve the optimization scheduling model.

[0139] Here, the system auxiliary constraints are used to ensure the physical feasibility of the operation of the gas-electric interconnection system and are a component of the optimization scheduling model; the solution is used to obtain the optimal scheduling scheme that satisfies the objective function and all constraints.

[0140] In one possible implementation, the step of constructing system auxiliary constraints and solving the optimal scheduling model specifically includes: constructing power system operation constraints, gas-electric coupling equipment constraints, and natural gas system auxiliary constraints, and introducing them into the optimal scheduling model; linearizing the nonlinear terms in the optimal scheduling model; and calling a mathematical programming solver to solve the linearized model to obtain the optimal scheduling scheme.

[0141] Here, the power system operation constraints include, but are not limited to, power system node active power balance constraints, DC power flow constraints, line transmission power constraints, node phase angle constraints, coal-fired unit output constraints, wind turbine output constraints, and electrical load reduction constraints; the gas-electric coupling equipment constraints include, but are not limited to, gas turbine energy conversion constraints and P2G equipment energy conversion constraints; the natural gas system auxiliary constraints include, but are not limited to, natural gas node flow balance constraints, pipeline transmission capacity constraints, gas source supply constraints, node gas pressure constraints, compressor constraints, and natural gas load reduction constraints; the nonlinear term processing includes, but is not limited to, Taylor expansion processing of the hydrate formation rate exponent term and McCormick relaxation processing of the product term of 0-1 variables and continuous variables in the gas network model.

[0142] For example, mature commercial solvers can be used to solve the linearized mixed-integer linear programming model.

[0143] Here, the power system operation constraints, gas-electric coupling equipment constraints, natural gas system auxiliary constraints, nonlinear term processing methods and model solving algorithms mentioned above are all well-known technologies familiar to those skilled in the art, and will not be elaborated further here. Those skilled in the art can directly call the corresponding standard formulas and solving tools to construct and solve the optimized scheduling model according to the actual system parameters and solution requirements.

[0144] Thus, by introducing the aforementioned auxiliary constraints and completing the model solution, it can be ensured that the obtained scheduling scheme is physically feasible and technically implementable.

[0145] It should be noted that the specific forms of the constraints, the linearization methods, and the selection of the solvers mentioned above are all specific implementation examples of this application. Those skilled in the art may use other equivalent constraint expressions, linearization methods, or solvers, and these equivalent transformations should all fall within the protection scope of this application.

[0146] Please see Figure 4 , Figure 4 A functional block diagram of a gas-electric coordinated scheduling system based on hydrate blockage risk is provided for an embodiment of this application.

[0147] like Figure 4 As shown in the embodiment of this application, the gas-electric coordinated scheduling system based on hydrate blockage risk includes: a parameter acquisition module 410, an uncertainty modeling module 420, a risk constraint construction module 430, and an optimization solution module 440.

[0148] The parameter acquisition module 410 is used to acquire the operating parameters of the natural gas pipeline in the gas-electric interconnection system.

[0149] The operating parameters are the basic input data for constructing the hydrate blockage uncertainty model, and are used to characterize the operating conditions of the natural gas pipeline at the current moment.

[0150] The specific implementation method, technical details and technical effects of the parameter acquisition module 410 can be found in the relevant description of acquiring running parameters in S101 of the method embodiment, and will not be repeated here.

[0151] Uncertainty modeling module 420 is used to construct an uncertainty model of pipeline hydrate blockage based on the operating parameters, quantify the degree of blockage at each local location of the pipeline, and determine the global blockage failure probability of the entire pipeline based on the degree of blockage at each local location.

[0152] Here, the uncertainty model is used to process the operating parameters and output intermediate variables characterizing the internal state of the pipeline. By quantifying the degree of blockage at various locations within the pipeline, weak points restricting the overall pipeline's transport capacity can be identified, thereby determining the global probability of blockage failure for the entire pipeline.

[0153] The specific implementation method, technical details and technical effects of the uncertainty modeling module 420 can be referred to the relevant description of S102 in the method embodiment, and will not be repeated here.

[0154] The risk constraint construction module 430 is used to construct hydrate blockage risk constraints based on the global blockage failure probability and to introduce the hydrate blockage risk constraints into the gas-electric interconnection system optimization scheduling model.

[0155] Here, the hydrate blockage risk constraint is used to transform the physical risk of pipeline blockage into a mathematically solvable constraint. By using the hydrate blockage risk constraint, a safety margin can be reserved during the optimized scheduling process, preventing scheduling schemes from ignoring potential operational risks in pursuit of economic efficiency, thereby ensuring the overall safety and resilience of the system.

[0156] The specific implementation method, technical details and technical effects of the risk constraint construction module 430 can be referred to the relevant description of S103 in the method embodiment, and will not be repeated here.

[0157] The optimization solution module 440 is used to optimize and solve the gas-electric interconnection system's scheduling model based on the hydrate blockage risk constraints and the gas-electric interconnection system's operational constraints, with the objective function of minimizing operating costs, and output a scheduling scheme.

[0158] Here, the operational constraints of the gas-electric interconnection system cover the physical operational limitations of the power subsystem, the natural gas subsystem, and the coupling equipment, and the objective function is used to measure the economy of the scheduling scheme.

[0159] The specific implementation method, technical details and technical effects of the optimization solution module 440 can be referred to the relevant description of S104 in the method embodiment, and will not be repeated here.

[0160] In one possible implementation, such as Figure 4 As shown, in the uncertainty modeling module 420, the step of constructing a pipeline hydrate blockage uncertainty model based on the operating parameters specifically includes: dividing the non-isothermal natural gas pipeline into multiple micro-segments along the axial direction; extracting the pipeline friction temperature corresponding to each micro-segment as the gas temperature of the micro-segment, and calculating the hydrate phase equilibrium temperature based on the pressure and natural gas composition in the operating parameters, and recording the difference between the hydrate phase equilibrium temperature and the gas temperature of the micro-segment as the subcooling; calculating the gas-liquid interface area based on the length and inner diameter of the micro-segment; inputting the subcooling, the gas-liquid interface area, the gas temperature, and preset empirical coefficients into the natural gas hydrate to generate a semi-empirical model, and calculating the mass change rate of natural gas within the micro-segment.

[0161] In one possible implementation, such as Figure 4 As shown, in the uncertainty modeling module 420, the quantification of the blockage degree at various local locations of the pipeline specifically includes: obtaining the hydrate formation rate of the micro-pipe segment based on the mass change rate of the natural gas and the hydrate phase density parameters; calculating the hydrate volume accumulated in the micro-pipe segment within the discrete time step based on the hydrate formation rate and the discrete time step; calculating the difference between the original pipeline cross-sectional area and the occupied cross-sectional area corresponding to the hydrate volume to obtain the flow cross-sectional area after hydrate accumulation; calculating the difference between the original cross-sectional area and the flow cross-sectional area, and recording the ratio of the difference to the original cross-sectional area as the blockage degree of the micro-pipe segment.

[0162] In one possible implementation, such as Figure 4 As shown, in the uncertainty modeling module 420, the step of determining the global blockage failure probability of the entire pipeline based on the blockage degree of each local location specifically includes: traversing the blockage degree of each local location and filtering to obtain the maximum blockage degree; based on the maximum blockage degree, determining the global blockage failure probability of the entire pipeline through a preset mapping relationship, and recording the flow radius of the local location corresponding to the maximum blockage degree as the minimum flow radius of the pipeline.

[0163] In one possible implementation, such as Figure 4 As shown, in the risk constraint construction module 430, before constructing the hydrate blockage risk constraint based on the global blockage failure probability, the module further includes: constructing a single-pipeline failure scenario for each natural gas pipeline segment where the natural gas pipeline is shut down due to hydrate blockage; calculating the minimum load reduction of the system under each single-pipeline failure scenario using an optimal power flow model, wherein the minimum load reduction includes natural gas load reduction, power load reduction, and wind curtailment; and determining the minimum load reduction as the failure load reduction after the pipeline failure, wherein the load reduction is used to construct the hydrate blockage risk constraint.

[0164] In one possible implementation, such as Figure 4 As shown, in the risk constraint construction module 430, the step of constructing a hydrate blockage risk constraint based on the global blockage failure probability and introducing the hydrate blockage risk constraint into the gas-electric interconnection system optimization scheduling model specifically includes: multiplying the global blockage failure probability by the fault load reduction amount after the pipeline failure to obtain the hydrate blockage risk value of the pipeline; and introducing the condition that the hydrate blockage risk value of any natural gas pipeline does not exceed a preset risk threshold as a constraint into the gas-electric interconnection system optimization scheduling model.

[0165] In one possible implementation, such as Figure 4As shown, in the optimization solution module 440, the gas flow direction of the gas-electric interconnection system optimization scheduling model is set as a discrete optimization variable. Specifically, it includes: setting a flow direction identifier for each natural gas pipeline; when the flow direction identifier takes a first value, it is determined that the gas flows from the first node to the last node of the pipeline, and a constraint is established that the gas pressure at the first node is higher than that at the last node; when the flow direction identifier takes a second value, it is determined that the gas flows from the last node to the first node of the pipeline, and a constraint is established that the gas pressure at the last node is higher than that at the first node.

[0166] In one possible implementation, such as Figure 4 As shown, in the optimization solution module 440, the optimization solution of the gas-electric interconnection system optimization scheduling model specifically includes: retrieving preset flow calculation coefficients related to the pipeline physical properties, the preset flow calculation coefficients including natural gas compressibility factor and resistance coefficient; calculating the pressure square difference between the gas pressure at the first node and the gas pressure at the last node based on the gas flow direction determined by the flow direction identifier; determining the flow direction correction factor based on the flow direction identifier; multiplying the preset flow calculation coefficients, the flow direction correction factor, the pressure square difference, and the preset power of the pipeline diameter, and dividing by the average pipeline temperature to obtain the pipeline flow square term.

[0167] In one possible implementation, such as Figure 4 As shown, in the optimization solution module 440, the optimization solution of the gas-electric interconnection system optimization scheduling model further includes: determining the gas flow direction based on the flow direction indicator; when the flow direction indicator takes a first value, determining the temperature of the first node of the pipeline as the pipeline inlet temperature; when the flow direction indicator takes a second value, determining the temperature of the last node of the pipeline as the pipeline inlet temperature; and calculating the pipeline outlet temperature based on the pipeline inlet temperature and the pipeline heat exchange parameters.

[0168] Based on the same application concept, see [link / reference] Figure 5 The diagram shown is a structural schematic of an electronic device 500 provided in an embodiment of this application. It includes a processor 510, a memory 520, and a bus 530. The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 and the memory 520 communicate through the bus 530. When the machine-readable instructions are executed by the processor 510, they perform the steps of the gas-electricity coordinated scheduling method based on hydrate blockage risk as described in any of the above embodiments.

[0169] Based on the same concept, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the gas-electric coordinated scheduling method based on hydrate blockage risk provided in the above embodiments.

[0170] Specifically, the storage medium can be a general-purpose storage medium, such as a portable disk or hard disk. When the computer program on the storage medium is run, it can execute the above-mentioned gas-electric coordinated scheduling method based on hydrate blockage risk.

[0171] In this embodiment, the computer program, when run by the processor, can also execute other machine-readable instructions to perform other methods as described in the embodiments. For details on the specific execution steps and principles, please refer to the description of the embodiments, which will not be repeated here.

[0172] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0173] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0174] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0175] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0176] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0177] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A gas-electricity coordinated scheduling method based on hydrate blockage risk, characterized in that, Includes the following steps: Obtain the operating parameters of the natural gas pipeline in the gas-electric interconnection system; Based on the aforementioned operating parameters, a pipeline hydrate blockage uncertainty model is constructed to quantify the degree of blockage at each local location of the pipeline, and the global blockage failure probability of the entire pipeline is determined based on the degree of blockage at each local location. Based on the global blockage failure probability, a hydrate blockage risk constraint is constructed, and the hydrate blockage risk constraint is introduced into the gas-electric interconnection system optimization scheduling model. Based on the hydrate blockage risk constraints and the operational constraints of the gas-electric interconnection system, the optimal scheduling model of the gas-electric interconnection system is optimized and solved with the goal of minimizing operating costs, and a scheduling scheme is output.

2. The optimized scheduling method for a gas-electric interconnected system according to claim 1, characterized in that, The construction of the pipeline hydrate blockage uncertainty model based on the operating parameters specifically includes: The non-isothermal natural gas pipeline is divided into multiple micro-element pipe segments along the axial direction; The pipe friction temperature corresponding to each micro-pipe segment is extracted as the gas temperature of the micro-pipe segment, and the hydrate phase equilibrium temperature is calculated based on the pressure and natural gas composition in the operating parameters. The difference between the hydrate phase equilibrium temperature and the gas temperature of the micro-pipe segment is recorded as the subcooling. Calculate the gas-liquid interface area based on the length and inner diameter of the micro-element pipe segment. The subcooling degree, the gas-liquid interface area, the gas temperature, and the preset empirical coefficients are input into the natural gas hydrate to generate a semi-empirical model, and the mass change rate of natural gas in the micro-element pipe section is calculated.

3. The optimized scheduling method for a gas-electric interconnected system according to claim 2, characterized in that, The degree of blockage at various local locations in the quantified pipeline specifically includes: Based on the mass change rate of the natural gas and the hydrate phase density parameters, the hydrate formation rate of the micro-element pipe section is obtained; Based on the hydrate formation rate and the discrete time step, the volume of hydrate accumulated in the micro-element tube segment within the discrete time step is calculated. Calculate the difference between the original pipe cross-sectional area and the occupied cross-sectional area corresponding to the hydrate volume to obtain the flow cross-sectional area after hydrate accumulation; Calculate the difference between the original cross-sectional area and the flow cross-sectional area, and record the ratio of the difference to the original cross-sectional area as the degree of blockage of the micro-element pipe segment.

4. The optimized scheduling method for a gas-electric interconnected system according to claim 1, characterized in that, The determination of the overall blockage probability of the entire pipeline based on the degree of blockage at each local location specifically includes: Iterate through the congestion levels at each local location and filter to obtain the maximum congestion level; Based on the maximum degree of blockage, the global probability of blockage failure of the entire pipeline is determined by a preset mapping relationship, and the flow radius of the local location corresponding to the maximum degree of blockage is recorded as the minimum flow radius of the pipeline.

5. The optimized scheduling method for a gas-electric interconnected system according to claim 1, characterized in that, Before constructing the hydrate blockage risk constraint based on the global blockage failure probability, the method further includes: For each section of the natural gas pipeline, a single-pipeline failure scenario is constructed where the natural gas pipeline is taken out of service due to hydrate blockage; Under each single-pipeline failure scenario, the minimum load reduction of the system is calculated and solved by the optimal power flow model. The minimum load reduction includes the natural gas load reduction, the power load reduction, and the wind curtailment. The minimum load reduction is determined as the failure load reduction after a pipeline failure, and the failure load reduction is used to construct a hydrate blockage risk constraint.

6. The optimized scheduling method for a gas-electric interconnected system according to claim 5, characterized in that, The step of constructing a hydrate blockage risk constraint based on the global blockage failure probability and introducing the hydrate blockage risk constraint into the gas-electric interconnection system optimization scheduling model specifically includes: Multiply the global blockage failure probability by the failure load reduction after the pipeline failure to obtain the hydrate blockage risk value of the pipeline. The condition that the risk value of hydrate blockage in any natural gas pipeline does not exceed a preset risk threshold is used as a constraint and introduced into the gas-electric interconnection system optimization scheduling model.

7. The optimized scheduling method for a gas-electric interconnected system according to claim 1, characterized in that, In the gas-electric interconnection system optimization scheduling model, the gas flow direction of the natural gas pipeline is set as a discrete optimization variable, specifically including: Set flow direction indicators for each natural gas pipeline; When the flow direction indicator takes the first value, it is determined that the gas flows from the first end node to the last end node of the pipeline, and a constraint is established that the gas pressure at the first end node is higher than that at the last end node. When the flow direction indicator takes the second value, it is determined that the gas flows from the end node of the pipeline to the beginning node, and a constraint is established that the gas pressure at the end node is higher than that at the beginning node.

8. The optimized scheduling method for a gas-electric interconnected system according to claim 7, characterized in that, The optimization solution of the gas-electric interconnection system optimization scheduling model specifically includes: Retrieve preset flow calculation coefficients related to the physical properties of the pipeline, including natural gas compressibility factor and resistance coefficient; Based on the gas flow direction determined by the flow direction indicator, the pressure square difference between the first and last node pressures is calculated. The flow direction correction factor is determined based on the flow direction identifier; Multiply the preset flow rate calculation coefficient, the flow direction correction factor, the square difference of air pressure, and the preset power of the pipe diameter, and divide by the average pipe temperature to obtain the square term of pipe flow rate.

9. The optimized scheduling method for a gas-electric interconnected system according to claim 7, characterized in that, The optimization solution of the gas-electric interconnection system optimization scheduling model also includes: The direction of gas flow is determined based on the flow direction indicator; When the flow direction indicator takes the first value, the temperature of the pipe head node is determined as the pipe inlet temperature; When the flow direction indicator takes the second value, the temperature of the pipe end node is determined as the pipe inlet temperature; The pipe outlet temperature is calculated based on the pipe inlet temperature and pipe heat exchange parameters.

10. A gas-electricity coordinated dispatching system based on hydrate blockage risk, characterized in that, The gas-electric coordinated dispatch system includes: The parameter acquisition module is used to acquire the operating parameters of the natural gas pipeline in the gas-electric interconnection system; The uncertainty modeling module is used to construct an uncertainty model of pipeline hydrate blockage based on the operating parameters, quantify the degree of blockage at each local location of the pipeline, and determine the global blockage failure probability of the entire pipeline based on the degree of blockage at each local location. The risk constraint construction module is used to construct hydrate blockage risk constraints based on the global blockage failure probability and to introduce the hydrate blockage risk constraints into the gas-electric interconnection system optimization scheduling model. The optimization solution module is used to optimize and solve the gas-electric interconnection system's scheduling model based on the hydrate blockage risk constraints and the operational constraints of the gas-electric interconnection system, with the objective function of minimizing operating costs, and output a scheduling scheme.