Analytic solution method and system for hydrogen network steady-state energy flow and electronic equipment

By constructing a multi-parameter planning model and using the parameter quadratic approximation method, the problem of low computational efficiency of hydrogen network steady-state energy flow in traditional methods is solved, and efficient analysis and solution of hydrogen network steady-state energy flow is realized, which improves the calculation efficiency and Accuracy.

CN118981589APending Publication Date: 2024-11-19XI AN JIAOTONG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410943560.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-19

AI Technical Summary

Technical Problem

Traditional numerical methods require repeated iterative calculations for each scenario in the operation analysis of hydrogen networks, resulting in low calculation efficiency and it is difficult to efficiently solve the steady-state energy flow distribution of hydrogen networks.

Method used

By constructing a multi-parameter planning model, the nonlinear steady-state energy flow equation of the hydrogen network is converted into a convex optimization problem, and the parametric quadratic approximation method is used to obtain the analytical expression of the steady-state energy flow of the hydrogen network is avoided.

Benefits of technology

It greatly improves the online computing efficiency of steady-state energy flow of the hydrogen network, reduces the calculation time, and maintains high accuracy in large-scale energy flow scenario analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118981589A_ABST
    Figure CN118981589A_ABST
Patent Text Reader

Abstract

The invention provides an analytic solution method and system for a hydrogen network steady-state energy flow and electronic equipment. The method comprises the following steps: constructing a hydrogen network nonlinear steady-state energy flow equation, wherein the hydrogen network nonlinear steady-state energy flow equation specifically comprises a hydrogen network branch gas flow equation, a node gas flow balance equation and a constant-pressure node gas pressure equation; constructing a multi-parameter planning model for solving the steady-state energy flow of the hydrogen network, and enabling the parameter optimal solution of the multi-parameter planning model to be equivalent to the solution of the nonlinear steady-state energy flow equation of the hydrogen network; and solving the multi-parameter planning model by adopting a parameter quadratic approximation method to obtain an analytic expression of the hydrogen network steady-state energy flow solution about parameters and a corresponding parameter critical domain, thereby realizing analytic solution of the hydrogen network steady-state energy flow. According to the scheme, iterative calculation is not needed, the hydrogen network steady-state energy flow calculation efficiency under mass scenes can be effectively improved, and the problems that an existing energy flow numerical analysis method needs to conduct iterative solution on a nonlinear energy flow equation, and the calculation efficiency is low are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of energy system modeling and simulation, and specifically to a method, system and electronic equipment for analytically solving steady-state energy flow of a hydrogen network. Background Art

[0002] In the context of global energy transformation, the energy structure is changing from traditional petrochemical energy to more sustainable and clean energy, such as hydrogen energy. Hydrogen pipeline network is an efficient method for large-capacity and long-distance transportation of hydrogen, and it is also an effective way to transmit hydrogen from low-cost production areas to areas with high hydrogen demand.

[0003] The calculation of steady-state energy flow of hydrogen network is the basis for further planning, operation and analysis of hydrogen network, and it is of great significance. The purpose of steady-state energy flow calculation of hydrogen network is to solve the distribution of branch airflow and node air pressure in the network under given boundary conditions. Its essence is to solve a set of nonlinear energy flow equations. Traditional numerical methods usually use iterative methods to solve the nonlinear energy flow equations of hydrogen network, such as the classic Newton-Raphson method. However, in the actual operation analysis of hydrogen network, it is usually necessary to analyze the energy flow distribution of hydrogen network under massive operation scenarios. Traditional numerical solution methods need to perform repeated iterative calculations for each scenario, which is often computationally inefficient. Summary of the invention

[0004] In view of this, the present invention provides a method, system and electronic device for analytically solving the steady-state energy flow of a hydrogen network to at least solve the above-mentioned problems. The method does not require iterative solution of the nonlinear energy flow equation. It only needs to substitute the boundary conditions corresponding to the energy flow calculation as parameter values ​​into the analytical expression of the obtained energy flow solution to obtain the steady-state energy flow solution of the hydrogen network, which can greatly improve the online calculation efficiency of the steady-state energy flow of the hydrogen network.

[0005] According to a first aspect of an embodiment of the present invention, a method for analytically solving the steady-state energy flow of a hydrogen network is provided, comprising step S1: constructing a nonlinear steady-state energy flow equation for a hydrogen network, wherein the nonlinear steady-state energy flow equation for a hydrogen network specifically comprises a branch airflow equation for a hydrogen network, a node airflow balance equation and a constant-pressure node air pressure equation; step S2: constructing a multi-parameter planning model for solving the steady-state energy flow of a hydrogen network, so that the optimal solution of parameters of the multi-parameter planning model is equivalent to the solution of the nonlinear steady-state energy flow equation for the hydrogen network; step S3: using a parameter quadratic approximation method to solve the multi-parameter planning model, and obtaining an analytical expression of the steady-state energy flow solution of the hydrogen network with respect to parameters and a corresponding parameter critical domain, thereby realizing an analytical solution to the steady-state energy flow of the hydrogen network.

[0006] In one implementation, the hydrogen network branch airflow equation in step S1 takes into account the Weymouth airflow model of the hydrogen pipeline and the absolute boost model of the compressor, and is specifically expressed as:

[0007]

[0008] Where i and j represent the starting node and terminal node of branch (i, j) respectively, π i and π j Represent the squared pressure values ​​of nodes i and j, respectively, C ij represents the pipe friction coefficient of branch (i, j), f ij represents the airflow through branch (i, j), δ ij represents the absolute boost pressure of the compressor on branch (i, j), and L represents the set of all branches of the hydrogen network;

[0009] The node airflow balance equation is expressed as:

[0010]

[0011] Among them, q i represents the airflow injection amount of node i, and They represent the set of branches of all airflows out of node i and the set of branches of all airflows into node i, N represents the set of all nodes in the hydrogen network, θ i represents the fluctuation rate of the airflow injection amount at node i;

[0012] The constant pressure node pressure equation is expressed as:

[0013]

[0014] Among them, i represents the squared pressure value of constant pressure node i, and S represents the set of all constant pressure nodes.

[0015] In another implementation, the multi-parameter planning model for solving the steady-state energy flow of the hydrogen network in step S2 is specifically expressed as:

[0016]

[0017] where θ represents all θ i A vector composed of, used as a parameter of the multi-parameter planning model, x represents all f ij and q i The vector is used as the optimization variable of the multi-parameter planning model, E(x) represents the objective function of the multi-parameter planning, z(θ) represents the function of the optimal value of the multi-parameter planning with respect to the parameter θ, and θ0 represents the feasible domain of the parameter θ.

[0018] In another implementation, the multi-parameter planning model is solved by using a parameter quadratic approximation method in step S3 to obtain an analytical expression of the steady-state energy flow solution of the hydrogen network with respect to the parameters and the corresponding critical domain of the parameters, thereby realizing an analytical solution of the steady-state energy flow of the hydrogen network, including:

[0019] Step a: Set the initial candidate parameter critical region set to R = {Θ0}, and the initial optimal parameter critical region set to The optimal solution of the initial parameters is x(θ) = 0, and the convergence threshold of the parameter quadratic approximation is ε max ;

[0020] Step b: Select any critical region of parameters in the set R and mark it as Θ, and find the geometric center of Θ as θ c , solve the multi-parameter planning model with parameter θ = θ c The optimal solution is x c ;

[0021] Step c: When x=x c The nonlinear objective function E(x) of the multi-parameter programming model is subjected to quadratic Taylor approximation to construct a parameter quadratic programming model, which is expressed as:

[0022]

[0023] Where H and U represent the value of E(x) when x=x. c The Hessian matrix and Jacobian matrix at z QP (θ) represents the function of the optimal value of the parameter quadratic programming with respect to the parameter θ, E(x c ) indicates that the objective function of multi-parameter programming is x = x c The value of , solve the parameter quadratic programming model to obtain the optimal solution x QP (θ) and the corresponding parameter critical region set R'={Θ1,…,Θ K}, use x QP (θ) Update x(θ);

[0024] Step d: For any critical region Θ in the set R' k , find Θ k The vertex set Θ k Every vertex of Solve the following convex optimization problem:

[0025]

[0026]

[0027] Calculation error If ε>ε max , and Θ k Split into two sub-parameter critical regions, and add the two sub-parameter critical regions to the set R;

[0028] If ε≤εmax , and Θ k Remove from set R and move into set R * ;

[0029] Step e: If the set R is an empty set, the algorithm ends, and the final obtained x(θ) and its corresponding optimal parameter critical region set R * Construct analytical expressions of parameters for the steady-state energy flow solution of the hydrogen network;

[0030] If the set R is not an empty set, go to step b.

[0031] According to a second aspect of an embodiment of the present invention, a system for analytically solving steady-state energy flow in a hydrogen network is provided, comprising a first construction module for constructing a nonlinear steady-state energy flow equation for a hydrogen network, wherein the nonlinear steady-state energy flow equation for a hydrogen network specifically comprises a branch airflow equation for a hydrogen network, a node airflow balance equation and a constant-pressure node air pressure equation; a second construction module for constructing a multi-parameter planning model for solving the steady-state energy flow of a hydrogen network, so that the optimal solution of parameters of the multi-parameter planning model is equivalent to the solution of the nonlinear steady-state energy flow equation for the hydrogen network; a solution module for solving the multi-parameter planning model using a parameter quadratic approximation method, and obtaining an analytical expression of the steady-state energy flow solution of the hydrogen network with respect to parameters and a corresponding parameter critical domain, thereby realizing an analytical solution of the steady-state energy flow of the hydrogen network.

[0032] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising a processor and a memory storing a program, wherein the program comprises instructions, and when the instructions are executed by the processor, the processor executes the method as described in the first aspect.

[0033] According to a fourth aspect of an embodiment of the present invention, there is provided a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect is implemented.

[0034] In summary, the solution of the present invention constructs a multi-parameter planning model so that the optimal solution of the parameters of the model is equivalent to the original nonlinear hydrogen network energy flow equation, thereby converting the nonlinear hydrogen network energy flow calculation problem into a convex multi-parameter planning model, and solving the multi-parameter planning model by the parameter quadratic approximation method to obtain the optimal solution of its parameters, i.e., the analytical expression of the steady-state energy flow solution of the hydrogen network. The present invention overcomes the problem that the traditional method requires iterative calculation and has low calculation efficiency in large-scale energy flow scenario analysis, and can effectively improve the calculation efficiency of the steady-state energy flow of the hydrogen network. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a flowchart of the steps of the analytical solution method of the steady-state energy flow of the hydrogen network of the present invention;

[0036] Figure 2 A schematic diagram of a hydrogen network structure according to an embodiment of the present invention;

[0037] Figure 3 FIG. 4 is a schematic diagram of calculation error according to another embodiment of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] See also Figure 1 The first aspect of the present invention provides an analytical solution method for steady-state energy flow of a hydrogen network, comprising:

[0040] Step S1: constructing a nonlinear steady-state energy flow equation for a hydrogen network, wherein the nonlinear steady-state energy flow equation for a hydrogen network specifically includes a hydrogen network branch airflow equation, a node airflow balance equation, and a constant-pressure node air pressure equation;

[0041] Step S2: constructing a multi-parameter planning model for solving the steady-state energy flow of the hydrogen network, so that the optimal solution of the parameters of the multi-parameter planning model is equivalent to the solution of the nonlinear steady-state energy flow equation of the hydrogen network;

[0042] Step S3: using the parameter quadratic approximation method to solve the multi-parameter planning model, obtaining the analytical expression of the steady-state energy flow solution of the hydrogen network with respect to the parameters and the corresponding critical domain of the parameters, thereby realizing the analytical solution of the steady-state energy flow of the hydrogen network.

[0043] Optionally, the hydrogen network branch airflow equation in step S1 takes into account the Weymouth airflow model of the hydrogen pipeline and the absolute boost model of the compressor, and is specifically expressed as:

[0044]

[0045] Where i and j represent the starting node and terminal node of branch (i, j) respectively, π i and π j Represent the squared pressure values ​​of nodes i and j, respectively, C ij represents the pipe friction coefficient of branch (i, j), f ij represents the airflow through branch (i, j), δ ij represents the absolute boost pressure of the compressor on branch (i, j), and L represents the set of all branches of the hydrogen network;

[0046] The node airflow balance equation is expressed as:

[0047]

[0048] Among them, qi represents the airflow injection amount of node i, and They represent the set of branches of all airflows out of node i and the set of branches of all airflows into node i, N represents the set of all nodes in the hydrogen network, θ i represents the fluctuation rate of the airflow injection amount at node i;

[0049] The constant pressure node pressure equation is expressed as:

[0050]

[0051] Among them, i represents the squared pressure value of constant pressure node i, and S represents the set of all constant pressure nodes.

[0052] Optionally, the multi-parameter planning model for solving the steady-state energy flow of the hydrogen network in step S2 is specifically expressed as:

[0053]

[0054] where θ represents all θ i A vector composed of, used as a parameter of the multi-parameter planning model, x represents all f ij and q i The vector is used as the optimization variable of the multi-parameter planning model, E(x) represents the objective function of the multi-parameter planning, z(θ) represents the function of the optimal value of the multi-parameter planning with respect to the parameter θ, and θ0 represents the feasible domain of the parameter θ.

[0055] Optionally, the method of using a parameter quadratic approximation method to solve the multi-parameter planning model in step S3 to obtain an analytical expression of the hydrogen network steady-state energy flow solution with respect to the parameters and a corresponding parameter critical region, thereby achieving an analytical solution to the hydrogen network steady-state energy flow, includes:

[0056] Step a: Set the initial candidate parameter critical region set to R = {Θ0}, and the initial optimal parameter critical region set to The optimal solution of the initial parameters is x(θ) = 0, and the convergence threshold of the parameter quadratic approximation is ε max ;

[0057] Step b: Select any critical region of parameters in the set R and mark it as Θ, and find the geometric center of Θ as θ c , solve the multi-parameter planning model with parameter θ = θ c The optimal solution is x c ;

[0058] Step c: When x=x cThe nonlinear objective function E(x) of the multi-parameter programming model is subjected to quadratic Taylor approximation to construct a parameter quadratic programming model, which is expressed as:

[0059]

[0060] Where H and U represent the value of E(x) when x=x. c The Hessian matrix and Jacobian matrix at z QP (θ) represents the function of the optimal value of the parameter quadratic programming with respect to the parameter θ, E(x c ) indicates that the objective function of multi-parameter programming is x = x c The value of , solve the parameter quadratic programming model to obtain the optimal solution x QP (θ) and the corresponding parameter critical region set R'={Θ1,…,Θ K}, use x QP (θ) Update x(θ);

[0061] Step d: For any critical region Θ in the set R' k , find Θ k The vertex set Θ k Every vertex of Solve the following convex optimization problem:

[0062]

[0063] Calculation error If ε>ε max , and Θ k Split into two sub-parameter critical regions, and add the two sub-parameter critical regions to the set R;

[0064] If ε≤ε max , and Θ k Remove from set R and move into set R * ;

[0065] Step e: If the set R is an empty set, the algorithm ends, and the final obtained x(θ) and its corresponding optimal parameter critical region set R * Construct analytical expressions of parameters for the steady-state energy flow solution of the hydrogen network;

[0066] If the set R is not an empty set, go to step b.

[0067] In summary, the solution of the present invention constructs a multi-parameter planning model so that the optimal solution of the parameters of the model is equivalent to the original nonlinear hydrogen network energy flow equation, thereby converting the nonlinear hydrogen network energy flow calculation problem into a convex multi-parameter planning model, and solving the multi-parameter planning model by the parameter quadratic approximation method to obtain the optimal solution of its parameters, i.e., the analytical expression of the steady-state energy flow solution of the hydrogen network. The present invention overcomes the problem that the traditional method requires iterative calculation and has low calculation efficiency in large-scale energy flow scenario analysis, and can effectively improve the calculation efficiency of the steady-state energy flow of the hydrogen network.

[0068] Specifically, the scheme of the present invention is further described according to the following examples:

[0069] Step S1: constructing a nonlinear steady-state energy flow equation for a hydrogen network, wherein the nonlinear steady-state energy flow equation for a hydrogen network specifically includes a hydrogen network branch airflow equation, a node airflow balance equation, and a constant-pressure node air pressure equation.

[0070] (1) Branch air flow equation

[0071] The branches of the hydrogen network are mainly composed of hydrogen pipelines and compressors. The steady-state airflow of the hydrogen pipeline needs to satisfy the classic Weymouth model. The working modes of the compressor can be mainly divided into constant relative boost ratio and constant absolute boost value. This case considers the compressor model of constant absolute boost. Therefore, the branch airflow equation of the hydrogen network considering hydrogen pipelines and compressors can be expressed as:

[0072]

[0073] In the formula, i and j represent the starting node and terminal node of branch (i, j) respectively, π i and π j Represents the squared pressure value of node i and node j respectively, C ij represents the pipe friction coefficient of branch (i, j), f ij represents the airflow through branch (i, j), δ ij represents the absolute pressure rise of the compressor on branch (i, j), and L represents the set of all branches of the hydrogen network.

[0074] (2) Node airflow balance equation

[0075] In the hydrogen network, each node must satisfy the node airflow balance equation, as follows:

[0076]

[0077] In the formula, q i represents the airflow injection amount of node i, and They represent the set of branches of all airflows out of node i and the set of branches of all airflows into node i, N represents the set of all nodes in the hydrogen network, θ i Represents the fluctuation rate of the airflow injection amount at node i.

[0078] (3) Constant pressure node pressure equation

[0079] In the hydrogen network, the gas pressure at the constant pressure node is usually controlled to a fixed value, as follows:

[0080]

[0081] In the formula, Π i represents the squared pressure value of constant pressure node i, and S represents the set of all constant pressure nodes.

[0082] In summary, equations (1)-(3) constitute the nonlinear steady-state energy flow equation of the hydrogen network.

[0083] Step S2: construct a multi-parameter planning model for solving the steady-state energy flow of the hydrogen network, so that the optimal solution of the parameters of the multi-parameter planning model is equivalent to the solution of the nonlinear steady-state energy flow equation of the hydrogen network.

[0084] The constructed multi-parameter planning model (P1) for solving the steady-state energy flow of hydrogen network is as follows:

[0085]

[0086] Formulas (4)-(6) constitute the multi-parameter planning model (P1).

[0087] In the formula, θ represents all θ i A vector composed of as the parameters of the multi-parameter planning model; x represents all f ij and q i The vector composed of is used as the optimization variable of the multi-parameter planning model; E(x) represents the objective function of the multi-parameter planning; z(θ) represents the function of the optimal value of the multi-parameter planning with respect to the parameter θ; θ0 represents the feasible domain of the parameter θ. It can be proved that the optimal solution of the parameters of the multi-parameter planning model is equivalent to the solution of the nonlinear steady-state energy flow equation of the hydrogen network, as follows:

[0088] Since the objective function (4) is a convex function and the constraint (5) is a linear constraint, the above multi-parameter programming model (4)-(6) is a convex optimization model, and its Lagrangian function is:

[0089]

[0090] Among them, λ i is the Lagrange multiplier. Assume that the optimal solution of model (4)-(6) is The Lagrange multiplier corresponding to the optimal solution is The following optimality conditions must be met:

[0091]

[0092] It is not difficult to find that the proposed multi-parameter convex programming optimality conditions (8)-(10) are equivalent to the original hydrogen network nonlinear steady-state energy flow equation (1)-(3). Therefore, the optimal solution of the parameters of the proposed parameter planning model is equivalent to the solution of the nonlinear steady-state energy flow equation of the hydrogen network.

[0093] Step S3: using the parameter quadratic approximation method to solve the multi-parameter planning model, obtaining the analytical expression of the steady-state energy flow solution of the hydrogen network with respect to the parameters and the corresponding critical domain of the parameters, thereby realizing the analytical solution of the steady-state energy flow of the hydrogen network.

[0094] The specific steps include:

[0095] Step a: Set the initial candidate parameter critical region set to R = {Θ0}, and the initial optimal parameter critical region set to The optimal solution of the initial parameters is x(θ) = 0, and the convergence threshold of the parameter quadratic approximation is ε max .

[0096] Step b: Select any critical region of parameters in the set R and mark it as Θ, and find the geometric center of Θ as θ c , solve the multi-parameter programming model (4)-(6) with parameter θ = θ c The optimal solution is x c .

[0097] Step c: When x=x c The nonlinear objective function E(x) of the original multi-parameter programming model is approximated by quadratic Taylor, thereby constructing the following parameter quadratic programming model:

[0098]

[0099] θ∈Θ(13)

[0100] In the formula, H and U represent E(x) at x=x. c The Hessian matrix and Jacobian matrix at z QP (θ) represents the function of the optimal value of the quadratic programming of the parameter with respect to the parameter θ, E(x c ) indicates that the objective function of multi-parameter programming is x = x c Solve the model to get the optimal solution x QP (θ) and the corresponding parameter critical region set R'={Θ1,…,Θ K}, use x QP (θ) Update x(θ).

[0101] Step d: For any critical region Θ in the set R'k , find Θ k The vertex set Θ k Every vertex of Solve the following convex optimization problem:

[0102]

[0103] Calculation error

[0104] If ε>ε max , and Θ k Split into two sub-parameter critical regions, and add these two sub-parameter critical regions to the set R;

[0105] If ε≤ε max , and Θ k Remove from set R and move into set R * .

[0106] Step e: If the set R is an empty set, the algorithm ends, and the final obtained x(θ) and its corresponding optimal parameter critical region set R * Construct the analytical expression of the steady-state energy flow solution of the hydrogen network with respect to the parameters; otherwise, go to step b.

[0107] Through the above steps, the analytical expression of the parameters of the steady-state energy flow solution of the hydrogen network and the corresponding parameter critical domain set can be finally obtained. When performing energy flow calculations, it is only necessary to directly substitute the parameters corresponding to the boundary conditions into the analytical expression of the obtained energy flow solution to calculate the corresponding steady-state energy flow solution of the hydrogen network, avoiding iterative calculations and greatly improving the efficiency of energy flow calculations.

[0108] The actual hydrogen network in a certain region is used as an example to verify and analyze the method in this case. The specific topological results of the hydrogen network are as follows: Figure 2 As shown in the figure, the actual hydrogen network load is taken as the mean, and 5% of the mean is taken as the variance. The Monte Carlo method is used to randomly generate 1×10 6 The load scenario is used as the boundary condition for energy flow calculation. The analytical solution method proposed in this invention is used to calculate the 1×10 6 The energy flow solution under the group load scenario is compared with the traditional numerical solution method.

[0109] See also Figure 3 , showing the relative errors of the airflow and pressure solutions obtained by the proposed method compared with the results calculated by the traditional numerical method. It can be found that for all 1×10 6 In the group load scenario, the relative error of the airflow obtained by the method of the present invention is less than 3.5×10 -4 The relative error of air pressure is less than 3.5×10 -5This shows that the method proposed in the present invention has a very high calculation accuracy.

[0110] In addition, 1×10 6 The calculation time of the traditional numerical solution method based on iteration method for sub-energy flow calculation is 702.7 seconds, while the calculation time of the method proposed in the present invention is 8.68 seconds, and the calculation efficiency is about 2 orders of magnitude higher than that of the traditional method.

[0111] In summary, the solution of the present invention constructs a multi-parameter planning model so that the optimal solution of the parameters of the model is equivalent to the original nonlinear hydrogen network energy flow equation, thereby converting the nonlinear hydrogen network energy flow calculation problem into a convex multi-parameter planning model, and solving the multi-parameter planning model by the parameter quadratic approximation method to obtain the optimal solution of its parameters, i.e., the analytical expression of the steady-state energy flow solution of the hydrogen network. The present invention overcomes the problem that the traditional method requires iterative calculation and has low calculation efficiency in large-scale energy flow scenario analysis, and can effectively improve the calculation efficiency of the steady-state energy flow of the hydrogen network.

[0112] Another aspect of an embodiment of the present invention provides an analytical solution system for steady-state energy flow of a hydrogen network, comprising:

[0113] The first construction module is used to construct a nonlinear steady-state energy flow equation for a hydrogen network, wherein the nonlinear steady-state energy flow equation for a hydrogen network specifically includes a hydrogen network branch airflow equation, a node airflow balance equation, and a constant-pressure node air pressure equation;

[0114] The second construction module is used to construct a multi-parameter planning model for solving the steady-state energy flow of the hydrogen network, so that the optimal solution of the parameters of the multi-parameter planning model is equivalent to the solution of the nonlinear steady-state energy flow equation of the hydrogen network;

[0115] The solution module is used to solve the multi-parameter planning model by using the parameter quadratic approximation method to obtain the analytical expression of the parameters of the steady-state energy flow solution of the hydrogen network and the corresponding parameter critical domain, thereby realizing the analytical solution of the steady-state energy flow of the hydrogen network.

[0116] The analytical solution system for the steady-state energy flow of the hydrogen network of this embodiment is used to implement the corresponding methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0117] Another aspect of the present invention provides an electronic device, including a processor and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes the method of the first aspect.

[0118] Another aspect of an embodiment of the present invention provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the method of the first aspect is implemented.

[0119] The present invention may be a method, system, device and / or computer program product. The computer program product may include a computer-readable storage medium on which computer-readable program instructions are loaded for causing a processor to implement various aspects of the present invention. For the present invention, software program implementation is a better embodiment in most cases.

[0120] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0121] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0122] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, Python, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.

[0123] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.

[0124] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0125] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0126] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0127] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.

Claims

1. A method for analytically solving the steady-state energy flow of a hydrogen network, characterized in that: include: Step S1: constructing a nonlinear steady-state energy flow equation for a hydrogen network, wherein the nonlinear steady-state energy flow equation for a hydrogen network specifically includes a hydrogen network branch airflow equation, a node airflow balance equation, and a constant-pressure node air pressure equation; Step S2: constructing a multi-parameter planning model for solving the steady-state energy flow of the hydrogen network, so that the optimal solution of the parameters of the multi-parameter planning model is equivalent to the solution of the nonlinear steady-state energy flow equation of the hydrogen network; Step S3: using the parameter quadratic approximation method to solve the multi-parameter planning model, obtaining the analytical expression of the steady-state energy flow solution of the hydrogen network with respect to the parameters and the corresponding critical domain of the parameters, thereby realizing the analytical solution of the steady-state energy flow of the hydrogen network.

2. The method according to claim 1, characterized in that: The hydrogen network branch airflow equation in step S1 takes into account the Weymouth airflow model of the hydrogen pipeline and the absolute boost model of the compressor, and is specifically expressed as follows: Where i and j represent the starting node and terminal node of branch (i, j) respectively, π i and π j Represent the squared pressure values ​​of nodes i and j, respectively, C ij represents the pipe friction coefficient of branch (i, j), f ij represents the airflow through branch (i, j), δ ij represents the absolute boost pressure of the compressor on branch (i, j), and L represents the set of all branches of the hydrogen network; The node airflow balance equation is expressed as: Among them, q i represents the airflow injection amount of node i, and They represent the set of branches of all airflows out of node i and the set of branches of all airflows into node i, N represents the set of all nodes in the hydrogen network, θ i represents the fluctuation rate of the airflow injection amount at node i; The constant pressure node pressure equation is expressed as: Among them, i represents the squared pressure value of constant pressure node i, and S represents the set of all constant pressure nodes.

3. The method according to claim 2, characterized in that The multi-parameter planning model for solving the steady-state energy flow of the hydrogen network in step S2 is specifically expressed as: θ∈Θ0 where θ represents all θ i A vector composed of, used as a parameter of the multi-parameter planning model, x represents all f ij and q i The vector is used as the optimization variable of the multi-parameter planning model, E(x) represents the objective function of the multi-parameter planning, z(θ) represents the function of the optimal value of the multi-parameter planning with respect to the parameter θ, and θ0 represents the feasible domain of the parameter θ.

4. The method according to claim 3, characterized in that The method of using the parameter quadratic approximation method to solve the multi-parameter planning model in step S3 to obtain the analytical expression of the parameters of the steady-state energy flow solution of the hydrogen network and the corresponding critical domain of the parameters, thereby realizing the analytical solution of the steady-state energy flow of the hydrogen network, includes: Step a: Set the initial candidate parameter critical region set to R = {Θ0}, and the initial optimal parameter critical region set to The optimal solution of the initial parameters is x(θ) = 0, and the convergence threshold of the parameter quadratic approximation is ε max ; Step b: Select any critical region of parameters in the set R and mark it as Θ, and find the geometric center of Θ as θ c , solve the multi-parameter planning model with parameter θ = θ c The optimal solution is x c ; Step c: When x=x c The nonlinear objective function E(x) of the multi-parameter programming model is subjected to quadratic Taylor approximation to construct a parameter quadratic programming model, which is expressed as: θ∈Θ Where H and U represent the value of E(x) when x=x. c The Hessian matrix and Jacobian matrix at z QP (θ) represents the function of the optimal value of the parameter quadratic programming with respect to the parameter θ, E(x c ) indicates that the objective function of multi-parameter programming is x = x c The value of , solve the parameter quadratic programming model to obtain the optimal solution x QP (θ) and the corresponding parameter critical region set R'={Θ1,…,Θ K }, use x QP (θ) Update x(θ); Step d: For any critical region Θ in the set R' k , find Θ k The vertex set Θ k Every vertex of Solve the following convex optimization problem: Calculation error If ε>ε max , and Θ k Split into two sub-parameter critical regions, and add the two sub-parameter critical regions to the set R; If ε≤ε max , and Θ k Remove from set R and move into set R * ; Step e: If the set R is an empty set, the algorithm ends, and the final obtained x(θ) and its corresponding optimal parameter critical region set R * Construct analytical expressions of parameters for the steady-state energy flow solution of the hydrogen network; If the set R is not an empty set, go to step b.

5. An analytical solution system for steady-state energy flow of hydrogen network, characterized in that: include: The first construction module is used to construct a nonlinear steady-state energy flow equation for a hydrogen network, wherein the nonlinear steady-state energy flow equation for a hydrogen network specifically includes a hydrogen network branch airflow equation, a node airflow balance equation, and a constant-pressure node air pressure equation; The second construction module is used to construct a multi-parameter planning model for solving the steady-state energy flow of the hydrogen network, so that the optimal solution of the parameters of the multi-parameter planning model is equivalent to the solution of the nonlinear steady-state energy flow equation of the hydrogen network; The solution module is used to solve the multi-parameter planning model by using the parameter quadratic approximation method to obtain the analytical expression of the parameters of the steady-state energy flow solution of the hydrogen network and the corresponding parameter critical domain, thereby realizing the analytical solution of the steady-state energy flow of the hydrogen network.

6. An electronic device, characterized in that: include: processor; A memory for storing programs; The program includes instructions, which, when executed by the processor, cause the processor to perform the steps of the method as claimed in any one of claims 1 to 4.

7. A computer storage medium, characterized in that: A computer program is stored thereon, and when the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.