Hydrogen-blended natural gas-power coupling system optimal scheduling method

By establishing a mixed hydrogen natural gas-electricity coupling system model and adopting the compact McCormick algorithm, the nonlinear model is transformed into a mixed integer linear programming problem, which solves the problems of computational complexity and model inflexibility in the existing technology, and realizes efficient optimization scheduling and global optimal solution of the system.

CN116644928BActive Publication Date: 2026-11-24FUZHOU UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310661892.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2026-11-24
Estimated Expiration
2043-06-06

AI Technical Summary

Technical Problem

Existing optimization scheduling methods for hydrogen-mixed natural gas-electric coupling systems are computationally complex, cannot adjust the hydrogen blending ratio in real time, cannot fully utilize electrolyzer resources, and traditional models cannot accurately describe the physicochemical properties of the mixed hydrogen gas and the transport characteristics of HCNG. Furthermore, existing methods struggle to find the global optimal solution.

Method used

A model of a hydrogen-natural gas-electricity coupled system is established. The nonlinear model is transformed into a mixed-integer linear programming problem by using the compact McCormick algorithm. The changes in hydrogen concentration and the initial gas flow direction are optimized by combining the McCormick relaxation and boundary contraction algorithms. The compact McCormick method is used to improve the calculation speed and accuracy.

Benefits of technology

It achieves accurate tracking of hydrogen concentration changes and initial airflow direction, reduces computational complexity, improves solution speed and accuracy, finds the global optimal solution, and optimizes system cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116644928B_ABST
    Figure CN116644928B_ABST
Patent Text Reader

Abstract

The purpose of this invention is to provide an optimized scheduling method for a hydrogen-natural gas-electricity coupled system. First, the overall structure and working principle of the system are described, and a full-process model of hydrogen-natural gas coupling is established, encompassing hydrogen production, blending, and transportation. Specifically, a hydrogen mixing model is established to address the issues of hydrogen concentration changes and unknown initial gas flow direction during system operation. An optimized scheduling model is established with cost targets such as power generation cost and deep peak-shaving cost. To address the numerous nonlinear constraints in the model, a solution method based on a compacted McCormick algorithm is proposed, combining traditional McCormick relaxation, piecewise McCormick relaxation, and boundary contraction algorithms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the technical field of hydrogen-natural gas-electric coupling systems, and specifically relates to an optimized scheduling method for hydrogen-natural gas-electric coupling systems. Background Technology

[0002] With the increasing use of fossil fuels and carbon dioxide emissions, global concerns about environmental and climate change are rapidly intensifying. Green hydrogen, as a novel secondary energy carrier, boasts advantages such as zero carbon emissions and high energy density, and can be used for decarbonization in industries such as power, chemicals, metallurgy, and transportation. Therefore, one strategy for mitigating climate change is to produce green hydrogen from surplus renewable energy sources.

[0003] However, the lack of hydrogen infrastructure and the high cost of building hydrogen networks have hindered the widespread application of hydrogen energy. Mixing hydrogen in appropriate proportions into existing natural gas networks as hydrogen-rich compressed natural gas (HCNG) holds promise for overcoming this predicament. Furthermore, as a novel energy form, natural gas-electric coupling systems enable the coordinated operation of various heterogeneous energy sources. The application of HCNGs can increase their flexibility in multi-energy regulation and reduce carbon emissions. Therefore, the concept of a hydrogen-rich HCNG-electric coupling system has emerged. It is a new type of HCNG coupling system based on existing natural gas infrastructure, capable of meeting diverse energy demands. While HCNGs enhance the coupling characteristics of hydrogen-rich HCNG-electric coupling systems, they also make the operating mechanisms and modeling of these systems more complex. Traditional natural gas-electric coupling system models can no longer accurately describe the changes in the physicochemical properties of the gas after hydrogen mixing and the transmission characteristics of HCNGs. Moreover, the optimal scheduling of hydrogen-rich HCNG-electric coupling systems is a pooling problem. A pooling problem is a network flow problem that aims to find the minimum-cost way to mix several inputs in an intermediate pool so that the output meets or meets certain demands. The mixed inputs consist of the product of mixed flow rates and characteristics. Therefore, the pooling problem becomes a bilinear procedure. In modeling hydrogen-gas-electricity coupled systems, non-convex and nonlinear network flows hinder efficient solutions to this problem. Among the non-convex terms, the bilinear term derived from the product of mass flow rate and node temperature is one of the most difficult to handle.

[0004] Currently, there are two main methods for optimizing the scheduling of hydrogen-natural gas-electric coupling systems:

[0005] (1) Method 1 typically only considers the injection of HCNG with a fixed hydrogen doping ratio, and is generally only applicable to radial network structures, such as gas distribution networks; it cannot be applied to ring networks, such as gas transmission networks. By fixing the hydrogen doping ratio of the network, the gas constant and lower calorific value in the natural gas network are fixed to other constants, thus facilitating the use of traditional coupled system scheduling methods. However, this method cannot change the hydrogen doping ratio in real time, thus failing to fully utilize the electrolyzer resources to absorb renewable resources.

[0006] (2) Method 2: When considering fluctuating hydrogen doping ratios, nonlinear optimization methods are typically used to schedule the hydrogen-natural gas-electric coupling system. Existing commercial solvers are generally capable of solving nonlinear optimizations with continuous variables and are easy to implement. However, they can only find local solutions and cannot find the global optimum. When the network becomes large, the convergence speed may be slow or even fail to converge. Some scholars have proposed an iterative algorithm: by fixing one set of variables and solving another set of variables, and vice versa, the two sub-problems are solved iteratively until convergence is achieved. However, the solution obtained cannot be guaranteed to be globally optimal or locally optimal, and its convergence needs further study.

[0007] In summary, the main problems with the above methods are that the existing optimization scheduling methods for hydrogen-mixed natural gas-electricity coupled systems are complex in calculation or do not consider the fluctuating hydrogen blending ratio, the models are not flexible enough, and they cannot fully describe the characteristics of HCNG. Summary of the Invention

[0008] In view of the shortcomings and deficiencies of existing technologies for hydrogen absorption, considering the hydrogen-natural gas-electric coupling system as a transitional stage in building a hydrogen society is of great significance for promoting energy transformation and achieving the "dual carbon" goal.

[0009] This invention aims to provide an optimized scheduling method for a hydrogen-natural gas-electricity coupled system. First, it elucidates the overall structure and working principle of the system, establishing a complete process model for hydrogen-natural gas mixtures, encompassing hydrogen production, blending, and transportation. Specifically, a hydrogen mixing model is established to address the issues of hydrogen concentration changes and unknown initial gas flow direction during system operation. An optimized scheduling model is then established, targeting costs such as power generation cost and deep peak-shaving cost. To address the numerous nonlinear constraints in the model, a solution method based on a contracted McCormick algorithm is proposed, combining traditional McCormick relaxation, piecewise McCormick relaxation, and boundary contraction algorithms.

[0010] It solves the problem of fluctuating hydrogen doping ratios and proposes a method to transform the nonlinear model into a mixed-integer linear programming problem, reducing the solution complexity. The main components of this scheme include:

[0011] (1) A model of a hydrogen-natural gas-electric coupling system was established, and the complete HCNG process, including production, blending, transmission and utilization, was considered.

[0012] (2) Establish an HCNG model that can track the hydrogen mixing ratio and determine the unknown initial gas flow direction.

[0013] (3) A compact McCormick method was proposed for optimizing the hydrogen-natural gas-electric coupling system to improve computational speed. This method can solve the problem faster with smaller errors, reducing the difficulty of model solving and improving computational speed.

[0014] The specific technical solution adopted by this invention to solve its technical problem is as follows:

[0015] An optimal scheduling method for a hydrogen-natural gas-electric coupling system is characterized by: establishing a hydrogen-mixing model to address the issues of hydrogen concentration changes and unknown initial gas flow direction during the operation of the hydrogen-natural gas system; establishing an optimal scheduling model with cost as the objective, including power generation cost and deep peak shaving cost; and using a compacted McCormick algorithm that combines McCormick relaxation, piecewise McCormick relaxation, and boundary contraction algorithm to solve the nonlinear constraints in the model.

[0016] Furthermore, the solution process includes the following steps:

[0017] The first step is to acquire parameters and load data of the hydrogen-natural gas-electric coupling system, including renewable energy output and demand for electricity and natural gas; and to set hyperparameters including threshold, contraction rate k, and contraction level ε.

[0018] The second step is to set the initial iteration count n ← 1;

[0019] The third step is to divide the hydrogen concentration domain at the nodes, solve the piecewise McCormick model, obtain the variable results, and fix the binary variables in the model.

[0020] Fourth step, calculate the average error. The number of update iterations is n = n + 1;

[0021] Where i and j represent gas nodes, M is an auxiliary variable, q represents the pipe capacity, and c represents the hydrogen concentration; ψ pipe This refers to a collection of pipelines in a natural gas system.

[0022] Fifth step: If the average is less than the preset threshold, stop the calculation and output the result;

[0023] Step 6: Update the upper and lower bounds of the variables. q ij ←max{(1-εn )q ij , q ini},

[0024] c ij ←max{(1+ε n )c ij , c ini},

[0025]

[0026] Step 7, update parameter ε n+1 ←ε n / k, n=n+1;

[0027] Step 8: Solve the McCormick model with a compressed upper bound, a lower bound, and a fixed binary variable. Return to step 4 to make a judgment. If the average error is less than the threshold, stop the loop and output the result.

[0028] Furthermore, the compressed McCormick algorithm introduces an auxiliary variable M = cq to replace the bilinear term. To enhance the relaxation quality, the node hydrogen mass fraction in the hydrogen-natural gas-electric coupling system optimization problem is divided, and the piecewise McCormick relaxation constraint is expressed as follows:

[0029]

[0030]

[0031]

[0032]

[0033]

[0034]

[0035]

[0036] In this context, the superscript "-" indicates the upper bound, and the subscript "-" indicates the lower bound;

[0037] Under the above constraints, by introducing a 0-1 variable y i,s The lower and upper bounds of the hydrogen mass fraction at each node are divided into S partitions; if it is y i,s =1, then c i,s The value of variable c belongs to partition s; otherwise, variable c i,s Forced to zero; therefore, when ci,s When a partition belongs to this partition, the constraints in partition s will be active, while the constraints in other partitions will be inactive.

[0038] Furthermore, the optimal solution is approximated and the McCormick volume is reduced by iteratively shrinking the boundaries of the variables using a boundary shrinkage algorithm: In each iteration, the node hydrogen mass fraction, gas mass flow, and the upper and lower bounds of the hyperparameter ε are updated based on the results of the previous iteration; where ε represents the new level of boundary shrinkage, and k controls the rate of boundary shrinkage; δ is the average relative error of the bilinear constraint. If δ is less than this threshold, the iteration is terminated.

[0039] Furthermore, the objective function of the hydrogen-natural gas-electric coupling system is to minimize the total cost, which consists of four parts: the first part is the operating cost of the coal-fired power plant; the second part is the cost of the coal-fired unit participating in deep peak shaving and regulation, representing the impact of renewable energy production fluctuations on the economic operation of the coal-fired power plant and the system; the third part is the cost of purchasing natural gas from the supplier; and the last part is the cost of purchasing the carbon dioxide required for electricity-to-gas production.

[0040]

[0041] Where k and i represent the device number; and These represent the power generation cost and deep peak-shaving cost of a coal-fired power generation unit, respectively; f i S Indicates the procurement cost of the natural gas supplier; f i PtG This indicates the purchase cost of carbon dioxide; This indicates the power generation of the coal-fired generator on the busbar; This indicates the amount of electricity generated by coal-fired power units participating in deep peak shaving; Indicates the amount of natural gas supplied. This indicates the mass flow of injected gas.

[0042] Furthermore, the hydrogen-natural gas-electric coupling system consists of an electric system and a natural gas system; an electrolyzer, a methanation reactor, and a gas unit are used as coupling devices to achieve bidirectional energy conversion between different systems; when there is a surplus of renewable energy, electricity is converted into hydrogen through the electrolyzer, which is directly injected into the natural gas network or generated into methane through the methanation reactor before injection, and the hydrogen is transported in the natural gas system in the form of HCNG.

[0043] Compared to existing technologies, this invention and its preferred embodiment, by rationally setting constraints and comprehensively considering the impact of hydrogen blending on the natural gas system, establish a nonlinear HCNG model to track the hydrogen blending ratio in the network and determine the unknown initial gas flow direction. Furthermore, by employing the compressed McCormick method, the originally difficult-to-solve nonlinear model is transformed into a mixed-integer linear programming model, improving the solution speed. Compared to previous methods, this approach considers the variation in HCNG blending ratio, resulting in higher model accuracy. The transformation of the nonlinear model into a mixed-integer linear programming model leads to faster solution speed and more stable results. Attached Figure Description

[0044] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments:

[0045] Figure 1 This is a comparison chart of the errors in hydrogen concentration at each node under different linearization methods in embodiments of the present invention;

[0046] Figure 2 This is a graph showing the hydrogen concentration changes at different times in the natural gas network according to an embodiment of the present invention;

[0047] Figure 3 This is a flowchart illustrating the solution process in an embodiment of the present invention. Detailed Implementation

[0048] To make the features and advantages of this patent more apparent and understandable, specific embodiments are provided below for detailed explanation:

[0049] It should be noted that the following detailed descriptions are illustrative and intended to provide further explanation of this application. Unless otherwise specified, all technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.

[0050] The hydrogen-natural gas-electric coupling system mainly consists of an electric system and a natural gas system. Electrolyzers, methanation reactors, and gasification units are used as coupling devices to achieve bidirectional energy conversion between the different systems. When there is surplus renewable energy, electricity is converted into hydrogen through the electrolyzer, which can be directly injected into the natural gas network or used to generate methane in the methanation reactor before injection. The hydrogen is then transported in the natural gas system in the form of HCNG.

[0051] Power system modeling

[0052] The DC power flow model is used as the steady-state model of the power system:

[0053]

[0054]

[0055]

[0056]

[0057]

[0058] in and This indicates the power generation from coal-fired generators, gas-fired units, and renewable energy sources on the busbar. This indicates electricity demand. and This indicates the electricity consumed by the PtG station and compressor. and This represents the transmission power and capacity limitations of the power line kl. θ k,t The phase angle of the busbar. The upper and lower limits of the output power of the coal-fired generator are: and This is a forecast of renewable energy output. Furthermore, the deep peak-shaving constraints for coal-fired units can be limited as follows:

[0059]

[0060] Where ε k This is the ratio of the lower limit of the peak output at depth k of the unit to the unit capacity.

[0061] Natural gas system modeling

[0062] A natural gas system in actual operation includes numerous pipelines, natural gas suppliers, compressors, and gas-consuming stations. This study primarily aims to establish the transport mechanism of HCNG within the natural gas system. Therefore, this embodiment employs a steady-state gas flow model to reduce the difficulty and time required to solve the model. The mass balance equations are described as follows:

[0063]

[0064] In the formula, i, j, and k represent gas nodes; and It is the set of nodes from which gas enters or exits node i; q ij,t This represents the gas mass flow rate in pipe ij. This refers to the mass flow of injected hydrogen gas. This indicates the amount of natural gas supplied. This refers to the gas consumption of a gas-fired power plant.

[0065] The relationship between pipeline mass flow and node pressure can be described by the Weymouth equation.

[0066]

[0067] Among them, Πi,t and Π j,t Let L be the inlet and outlet pressures of the pipeline, and D, S be the pipeline length, diameter, and cross-sectional area, respectively. λ is the coefficient of friction. Z is the compressibility coefficient of the gas at the compressor inlet, and T is the inlet pressure. g It is the gas temperature. R s It is the gas constant.

[0068] The limitations on node pressure and pipeline mass flow are as follows:

[0069]

[0070]

[0071] in, and p i This represents the maximum and minimum limits of nodal pressure. Due to pipeline capacity limitations.

[0072] Electric compressor units are widely used in natural gas networks. The relationship between the compressor's inlet and outlet pressures can be expressed by the following formula.

[0073] Π j =v c Π i (11)

[0074] Among them, v c Let be the compression ratio of the compressor. Assume the compressor operates at a constant compression ratio. The power consumption of the electrically driven compressor can be calculated using the following formula:

[0075]

[0076] Where, γ x η is the polytropic coefficient of the gas. η is the compressor efficiency.

[0077] The model of the gas turbine unit is as follows:

[0078] P GT =η GT q GT H i (13)

[0079]

[0080] Where, η GT For the efficiency of the gas turbine unit. and P GT This indicates the maximum and minimum limits for gas appliances. H i It has the lowest heating value for the mixed gas.

[0081] HCNG modeling

[0082] Hydrogen production model

[0083] A PtG station consists of an electrolyzer and a methanation reactor. The hydrogen produced by the electrolyzer can be directly injected into the natural gas network or used to produce natural gas via the methanation reactor. The relationship and constraints between the mass flows of hydrogen and methane produced by PtG can be expressed in the following equation.

[0084]

[0085]

[0086]

[0087] In the formula, and This represents the mass flow of hydrogen and methane. It is important to note that... It is hydrogen injected directly into the natural gas network, not hydrogen produced by an electrolyzer. η pth and η ptm These represent the efficiency of PtG in producing hydrogen and methane, respectively. and Indicates the capacity of the electrolyzer and methanation reactor. and This indicates the lower heating value of hydrogen and methane.

[0088] Hydrogen Mixing Model

[0089] In traditional natural gas system models, the gas composition within the system is assumed to be uniform. However, when hydrogen is injected into the natural gas system, the mass ratio of hydrogen added to the pipeline is determined by the upstream inflow gas. It is assumed that the gas flowing into each node is well mixed, and the gas exiting the node after mixing has the same hydrogen concentration. The node gas mixing constraints are as follows:

[0090]

[0091] Among them, c j,t The hydrogen concentration at each node.

[0092] Furthermore, a key aspect of hydrogen mixture modeling is identifying the gas mass flows that may enter or leave gas nodes. A method for handling unknown gas flow directions is proposed. The following constraints can yield the correct inflow and outflow flow:

[0093]

[0094]

[0095] u ij,t q ij,t -δij,t q ij,t >0 (21)

[0096] Among them, u ij and δ ij This indicates the actual flow direction in the pipeline. When the actual flow direction is the same as the assumed flow direction, u... ij =1 and δ ij =0. Conversely, u ij =0 and δ ij =1.

[0097] The mass concentration of hydrogen determines the low calorific value:

[0098]

[0099] In gas system modeling, the gas constant also varies with the hydrogen concentration. The specific description is as follows:

[0100]

[0101] in, and Let be the gas constants for hydrogen and natural gas.

[0102] objective function

[0103] The objective function of the hydrogen-natural gas-electric coupling system is to minimize the total cost, which consists of four parts: the first part is the operating cost of the coal-fired power plant; the second part is the cost of the coal-fired unit participating in deep peak shaving and regulation, representing the impact of renewable energy production fluctuations on the economic operation of the coal-fired power plant and the system; the third part is the cost of purchasing natural gas from the supplier; and the last part is the cost of purchasing the carbon dioxide required for electricity-to-gas production.

[0104]

[0105] Where k and i represent the device number. and These represent the power generation cost and deep peak-shaving cost of a coal-fired power generation unit, respectively. i S This indicates the procurement cost from the natural gas supplier. i PtG This indicates the cost of purchasing carbon dioxide.

[0106] Compact McCormick Algorithm

[0107] First, an auxiliary variable M = cq is introduced to replace the bilinear term. The linearization of other bilinear terms is done in a similar way.

[0108]

[0109]

[0110] Furthermore, taking the hydrogen mass flow in the pipeline as an example, McCormick's constraints are added as follows:

[0111]

[0112] Where M is the hydrogen mass flow rate. The hydrogen doping ratio limits for node i are as follows: and c i .

[0113] To enhance relaxation quality, the hydrogen mass fraction of nodes in the hydrogen-natural gas-electric coupling system optimization problem will be divided. The piecewise McCormick relaxation constraint can be expressed as follows:

[0114]

[0115]

[0116]

[0117]

[0118]

[0119]

[0120]

[0121] Under the above constraints, by introducing a 01 variable y i,s The lower and upper bounds of the hydrogen mass fraction at each node are divided into S partitions. If y i,s =1, then c i,s The value of variable c belongs to partition s; otherwise, variable c i,s Forced to zero. Therefore, when c i,s When a partition belongs to a specific partition, the constraints in partition s will apply, while the constraints in other partitions will be inactive. The piecewise McCormick technique can construct a tighter mixed-integer linear programming (MILP) relaxation, but the computational cost increases linearly with the number of partitions.

[0122] The piecewise McCormick technique yields a more robust solution than the McCormick convex model through stricter bounds. However, this solution is still prone to violating the bilinear constraint. To further improve the quality of the solution and reduce the error, the optimal solution is approximated and the McCormick volume is reduced by iteratively shrinking the boundaries of the variables using a boundary shrinking algorithm. At each iteration, the nodal hydrogen mass fraction and gas mass flow, as well as the upper and lower bounds of the hyperparameter ε, are updated based on the results of the previous iteration. Here, ε represents the new level of boundary shrinkage, while k controls the rate of boundary shrinkage. δ is the average relative error of the bilinear constraint. If δ is less than this threshold, the iteration is terminated. The entire optimization algorithm process is as follows: Figure 3 As shown;

[0123] Solution process:

[0124] The first step is to acquire parameters and load data for the hydrogen-natural gas-electric coupling system, including renewable energy output and demand for electricity and natural gas. Hyperparameters such as threshold values, contraction rate k, and contraction level ε are then set.

[0125] The second step is to set the initial number of iterations n←1.

[0126] The third step is to divide the hydrogen concentration domain into nodes and solve the piecewise McCormick model. Obtain the variable results and fix the binary variables in the model.

[0127] Fourth step, calculate the average error. The number of update iterations is n = n + 1

[0128] Fifth step: If the average is less than a preset threshold, stop the calculation and output the result.

[0129] Step 6: Update the upper and lower bounds of the variables. q ij ←max{(1-ε n )q ij , q ini},

[0130] c ij ←max{(1+ε n )c ij , c ini},

[0131]

[0132] Step 7, update parameter ε n+1 ←ε n / k, n=n+1

[0133] Step 8: Solve the McCormick model with a compressed upper bound, a lower bound, and a fixed binary variable. Return to step 4 to make a judgment. If the average error is less than the threshold, stop the loop and output the result.

[0134] Take the IEEE 39-node and Belgian 20-node gas networks as examples.

[0135] Figure 1 This section compares the errors in hydrogen concentration at each node under different linearization methods. The machine is configured with a CPU i7-6700HQ, 2.60GHz, 8GB RAM, and Gurobi 9.5.0 software. The maximum error of the compact McCormick method is 0.172%, the average error is 0.031%, and the time is 84.83s. The nonlinear optimization time is 412.3s. The maximum error of the Piecewise McCormick method is 83.216%, the average error is 14.798%, and the maximum error of the McCormick method is 112.352%, with an average error of 32.544%. This demonstrates that the proposed method of transforming the nonlinear model into a mixed-integer linear programming model has smaller errors compared to traditional methods and a faster solution time than nonlinear optimization methods.

[0136] Figure 2 The hydrogen concentration at each moment in the natural gas network is represented by the values. Due to the influence of gas sources 1 and 4, the hydrogen concentration at nodes 1-3 and 8-10 remains zero. Hydrogen mixing at nodes 4 and 11 increases the hydrogen concentration at these nodes and their downstream nodes. Based on the above results, it can be seen that the model proposed in this embodiment has the ability to accurately track the changes in hydrogen concentration at each node and the system's operating status.

[0137] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0138] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0139] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0140] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0141] This patent is not limited to the above-described preferred embodiments. Anyone can derive other forms of optimized scheduling methods for hydrogen-gas-electric coupling systems based on the inspiration of this patent. All equivalent changes and modifications made within the scope of this patent application shall fall within the scope of this patent.

Claims

1. An optimized scheduling method for a hydrogen-natural gas-electric coupling system, characterized in that: A hydrogen-mixing model is established to address the issues of hydrogen concentration variation and unknown initial gas flow direction during the operation of a hydrogen-mixed natural gas system. An optimization scheduling model is also established with cost as the objective, including power generation cost and deep peak shaving cost. To address the nonlinear constraints in the model, a compact McCormick algorithm combining McCormick relaxation, piecewise McCormick relaxation, and boundary contraction algorithm is used for solution. The solution process includes the following steps: The first step is to acquire parameters and load data for the hydrogen-natural gas-electric coupling system, including renewable energy output and demand for electricity and natural gas; and to set parameters including thresholds and contraction rates. contraction level hyperparameters; The second step is to set the initial number of iterations. ; The third step is to divide the hydrogen concentration domain at the nodes, solve the piecewise McCormick model, obtain the variable results, and fix the binary variables in the model. Step 4: Calculate the average error Number of update iterations ; Where i and j represent gas nodes, M is an auxiliary variable, q represents pipeline capacity, and c represents hydrogen concentration; Represents a collection of pipelines in a natural gas system; Fifth step: If the average is less than the preset threshold, stop the calculation and output the result; Step 6: Update the upper and lower bounds of the variables. , , , Step 7, update parameters , ; Step 8: Solve the McCormick model with a compressed upper bound, a lower bound, and a fixed binary variable. Return to step 4 for judgment. If the average error is less than the threshold, stop the loop and output the result. The compact McCormick algorithm introduces an auxiliary variable. Instead of the bilinear term, to enhance the relaxation quality, the node hydrogen mass fraction in the optimization problem of the hydrogen-natural gas-electric coupling system is divided, and the piecewise McCormick relaxation constraint is expressed as follows: In this context, the superscript "-" indicates the upper bound, and the subscript "-" indicates the lower bound; Under the above constraints, by introducing 0-1 variables The lower and upper bounds of the hydrogen mass fraction at the nodes are divided into: Partition; if it is ,but The value belongs to the partition Otherwise, the variable Forced to zero; therefore, when When it belongs to this partition, the partition Constraints in one partition will work, while constraints in other partitions will be inactive; Furthermore, the optimal solution is approximated and the McCormick volume is reduced by iteratively shrinking the boundary of the variables using a boundary shrinking algorithm: at each iteration, the node hydrogen mass fraction, gas mass flow, and hyperparameters are considered. The upper and lower bounds will be updated based on the results of the previous iteration; where, This indicates the level of contraction at the new boundary, while Control the rate of boundary contraction; The average relative error of the bilinear constraint; if If the value is less than this threshold, the iteration will be terminated.

2. The optimized scheduling method for a hydrogen-natural gas-electric coupling system according to claim 1, characterized in that: The objective function of the hydrogen-natural gas-electric coupling system is to minimize the total cost, which consists of four parts: the first part is the operating cost of the coal-fired power plant; the second part is the cost of the coal-fired unit participating in deep peak shaving and regulation, representing the impact of renewable energy production fluctuations on the economic operation of the coal-fired power plant and the system; the third part is the cost of purchasing natural gas from the supplier; and the last part is the cost of purchasing the carbon dioxide required for electricity-to-gas production. in, and Indicates the equipment number; and These represent the power generation cost and deep peak-shaving cost of a coal-fired power generation unit, respectively. This indicates the procurement cost of the natural gas supplier; This indicates the purchase cost of carbon dioxide; This indicates the power generation of the coal-fired generator on the busbar; This indicates the amount of electricity generated by coal-fired power units participating in deep peak shaving; Indicates the amount of natural gas supplied. This indicates the mass flow of injected gas.

3. The optimized scheduling method for a hydrogen-natural gas-electric coupling system according to claim 2, characterized in that: The hydrogen-natural gas-electric coupling system consists of an electric system and a natural gas system; an electrolyzer, a methanation reactor, and a gas combustion unit are used as coupling devices to achieve bidirectional energy conversion between different systems; When there is a surplus of renewable energy, electricity is converted into hydrogen through an electrolyzer. The electrolyzer is then directly injected into the natural gas network or generated into methane through a methanation reactor before injection. The hydrogen is then transported in the natural gas system in the form of HCNG.

Citation Information

Patent Citations

  • Day-ahead economic scheduling method for electric-pneumatic coupled system based on mixed integer second-order cone programming

    CN108846507A

  • Operation optimization method for electricity-hydrogen mixed natural gas coupling comprehensive energy system

    CN115099063A