Double-layer optimization method for electro-hydrogen comprehensive energy system based on full life cycle

By building a flexible complementary architecture and double-layer optimization model between hydrogen energy system and electricity storage in an integrated electric hydrogen energy system, the problem of absorption difficulties of renewable energy access to the power grid is solved, and load stability and system economy are improved. .

CN118971175APending Publication Date: 2024-11-15GUANGXI POWER GRID CORP
View PDF 0 Cites 3 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, renewable energy access grids have difficulty in absorbing the energy consumption. The energy conversion efficiency of hydrogen energy storage systems is not high, and the power density of battery energy storage technology is insufficient and has a short life, making it difficult to effectively adjust the grid performance.

Method used

Using the double-layer optimization method of the integrated electric and hydrogen energy system based on the whole life cycle, we will build a flexible complementary architecture between the hydrogen energy system and the electric energy storage, and establish a cost-benefit mathematical model, and use the improved squid group algorithm and Gurobi solver to optimize hydrogen. The capacity configuration and operation mode of the energy system and the electric energy storage device form an optimal operation plan.

Benefits of technology

It effectively alleviates the difficulty of absorbing renewable energy, improves the coordination and interaction between the hydrogen energy system and the electric energy storage device, ensures stable load supply, and improves the economic and energy conversion efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118971175A_ABST
    Figure CN118971175A_ABST
Patent Text Reader

Abstract

The invention discloses a double-layer optimization method for an electricity-hydrogen comprehensive energy system based on a full life cycle, and relates to the technical field of comprehensive energy system application, and the method comprises the steps: constructing an electricity-hydrogen comprehensive energy system architecture; based on the full life cycle theory, the cost and benefit of the electricity-hydrogen comprehensive energy system are analyzed, and a cost-benefit mathematical model is obtained; on the basis of a double-layer optimization theory, operation output optimization of the hybrid energy storage system is determined, an optimal operation mode is formed, and optimal output is fed back to the upper-layer model; coupling the two layers of optimization models, and establishing a double-layer optimization model of the electro-hydrogen comprehensive energy system; based on an improved doliolaria group solving algorithm and a Gurobi commercial solver, the double-layer optimization model of the electro-hydrogen comprehensive energy system is rapidly and accurately solved. According to the invention, the coordination interaction capability of the fish electrochemical energy storage device of the hydrogen energy system can be improved, the problem that renewable energy of the comprehensive energy system is difficult to consume is effectively relieved, and stable supply of loads is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of application technology of integrated energy systems, and in particular to a double-layer optimization method for an electric-hydrogen integrated energy system based on the entire life cycle. Background Art

[0002] In order to cope with the energy crisis and environmental problems, the global consensus is to vigorously develop renewable energy. At present, it is advocated to vigorously develop a green and low-carbon economy, and the new energy industry will usher in a booming development. However, the output of renewable energy is highly uncertain and poorly controllable. In order to achieve the goal of friendly grid connection of new energy, energy storage systems need to be configured to solve this problem.

[0003] As a new energy storage technology, the hydrogen energy storage system consists of an electrolyzer, a fuel cell and a hydrogen storage tank. When the load is low, the excess electricity is produced by electrolyzing water to produce hydrogen, which is then injected into the hydrogen storage tank for storage. When the load is high, the hydrogen is connected to the grid through the fuel cell to achieve the purpose of regulating the performance of the power grid. Hydrogen energy storage has the advantages of being environmentally friendly and having a long operating life, and the fuel cell has a fast response speed but low energy conversion efficiency; while the battery energy storage technology is mature and has a high energy density, but the power density is insufficient and the life is short, and there are difficulties in absorbing renewable energy when it is connected to the power grid.

[0004] In view of this, a two-layer optimization method for the electric-hydrogen integrated energy system based on the entire life cycle is needed. Summary of the invention

[0005] In view of the problems existing in the prior art, the present invention provides a two-layer optimization method for an electric-hydrogen integrated energy system based on the entire life cycle, which can improve the coordination and interaction capabilities of the hydrogen energy system and the electrochemical energy storage device, effectively alleviate the problem of the difficulty in absorbing renewable energy in the integrated energy system, and ensure the stable supply of loads. The specific technical scheme is as follows:

[0006] A two-layer optimization method for an electric-hydrogen integrated energy system based on the entire life cycle includes the following steps:

[0007] S1. Based on the flexible and complementary characteristics of hydrogen energy system and electric energy storage, build an electric-hydrogen integrated energy system architecture;

[0008] S2. Based on the full life cycle theory, analyze the cost and benefit of the electric-hydrogen integrated energy system, and establish a cost-benefit mathematical model of the electric-hydrogen integrated energy system based on the full life cycle;

[0009] S3. Based on the double-layer optimization theory, the upper-layer hydrogen energy system and electric energy storage configuration model is used to determine the initialization capacity setting of the hybrid energy storage system, and the output result is used as the lower-layer parameter; the lower-layer operation optimization model is used to determine the operation output optimization of the hybrid energy storage system, form the optimal operation mode, and the optimal output is fed back to the upper-layer model;

[0010] The two-layer optimization model is coupled to establish a two-layer optimization model for the electric-hydrogen integrated energy system;

[0011] S4. Based on the improved salp swarm solving algorithm and Gurobi commercial solver, the two-level optimization model of the electric-hydrogen integrated energy system is solved quickly and accurately.

[0012] Preferably, in step S1, the method steps for constructing the electric-hydrogen integrated energy system architecture are as follows:

[0013] The electrolyzer, new energy and power grid form the hydrogen production link, the hydrogen storage tank forms the hydrogen storage link, and the hydrogen refueling station and hydrogen fuel cell device form the hydrogen use link, together forming a regional hydrogen energy system for hydrogen production, storage and use;

[0014] And through the coordination of hydrogen energy systems and electric energy storage on multiple time scales.

[0015] Preferably, in step S2, the life cycle cost of the electric-hydrogen integrated energy system includes the equipment investment cost C inv , Equipment maintenance cost C om , Equipment aging cost C de And the system operating cost C buy The benefits of the electric-hydrogen integrated energy system over its entire life cycle include the electricity sales income E SH 、Hydrogen sales revenue E SE and residual value income

[0016] Preferably, the method for establishing a two-layer optimization model of the electric-hydrogen integrated energy system in step S3 is as follows:

[0017] The planned equipment includes electrolyzers, hydrogen fuel cells, hydrogen storage tanks and electric energy storage devices. The capacity is configured with the goal of maximizing comprehensive benefits. The specific economic evaluation function is as follows:

[0018]

[0019] In the above formula, X is the economic evaluation function value of the electric-hydrogen integrated energy system. The larger it is, the better the economy of the corresponding construction plan.

[0020] According to the above capacity configuration scheme, the dispatching scheme that minimizes the objective function is obtained based on the known wind power and photovoltaic output per unit value and load. The objective function is as follows:

[0021] C ope =C buy +C om +C de -E SH -E SE .

[0022] Preferably, the method of establishing a two-layer optimization model of an electric-hydrogen integrated energy system also includes operating constraints of the electrolyzer, operating constraints of the hydrogen fuel cell, operating constraints of the hydrogen storage tank, hydrogen energy balance constraints, grid flow constraints, electric energy storage device constraints, and planning equipment capacity constraints.

[0023] Preferably, in step S4, the upper layer optimization adopts the improved salp swarm algorithm to solve the optimal configuration of the system, and the lower layer optimization adopts the Gurobi solver to solve the optimal scheduling solution under the upper layer configuration solution.

[0024] Preferably, the operation constraints of the electrolyzer are:

[0025]

[0026] In the formula, Planning capacity for electrolyzer equipment; are the minimum and maximum operating power ratios respectively; P t ED is the power of the electrolytic cell at time t, m ED,H LHV is the hydrogen production quality of the electrolyzer; H is the lower calorific value of hydrogen; η ED The efficiency of hydrogen production by electrolysis equipment;

[0027] The operating constraints of the hydrogen fuel cell are:

[0028]

[0029] In the formula, Planning capacity for hydrogen fuel cell equipment; are the minimum and maximum operating power ratios respectively; P t FC is the power of the hydrogen fuel cell; η FC Output efficiency for hydrogen fuel cells;

[0030] The operating constraints of the hydrogen storage tank are:

[0031]

[0032] Where, mHS t is the hydrogen storage mass of HS at time t; η HS,loss , η HS,in , η HS,out They are HS hydrogen storage self-loss rate, hydrogen charging loss and hydrogen release loss respectively; are the hydrogen storage and release amounts of HS at time t, respectively; τ HS,in , τ HS,out are the maximum hydrogen storage and release rate ratio of HS, S HS,rated The planned capacity for HS; They are 0-1 state variables for HS charging and releasing hydrogen respectively;

[0033] The electric energy storage device is constrained to:

[0034]

[0035] In the formula, is the energy storage capacity of energy storage j at time t on a typical day k; η j,loss is the self-release coefficient of energy storage j; η j,ch , η j,dis are the charging and discharging coefficients of energy storage device j respectively; are the minimum and maximum capacity ratios of energy storage device j, respectively; are the charging and discharging powers of energy storage device j at time t on a typical day, k j is the capacity-power ratio of energy storage j; are the charging and discharging states 0-1 state variables of energy storage j at time t on a typical day k, respectively; They are respectively the energy storage energy at the initial moment / the end moment of the operation cycle of energy storage j.

[0036] Preferably, the mathematical model of the equipment investment cost is as follows:

[0037]

[0038] In the formula, C inv is the investment cost; Set I includes electrolyzer and hydrogen fuel cell; P i,rated is the installed capacity of equipment i; set J includes hydrogen storage tanks and electrical energy storage devices; S j,rated is the installed capacity of energy storage device j; r is the inflation rate; τ is the project cycle.

[0039] Preferably, the mathematical model of hydrogen sales revenue is:

[0040]

[0041] In the formula, E SH The income from electricity sales for the hydrogen energy system; H The revenue from selling hydrogen per unit mass; is the hydrogen sales mass at time t on the kth typical day.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] The present invention takes into account the flexible complementary characteristics of hydrogen energy systems and electric energy storage, and establishes an electric-hydrogen integrated energy system architecture; based on the full life cycle theory, a cost-benefit mathematical model of the electric-hydrogen integrated energy system based on the full life cycle is established; based on the double-layer optimization theory, a double-layer optimization model of the electric-hydrogen integrated energy system is established; based on the improved Salp Group Solving Algorithm and Gurobi Commercial Solver, an efficient solution algorithm for the double-layer optimization model of the electric-hydrogen integrated energy system is proposed. This method can fully tap the coordinated interaction capabilities of the hydrogen energy system and the electric energy storage device, accurately and comprehensively evaluate the economic efficiency of the electric-hydrogen integrated energy system, and effectively alleviate the problem of difficulty in absorbing the high proportion of renewable energy access. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.

[0045] Figure 1 This is the architecture diagram of the electric hydrogen integrated energy system of the present invention;

[0046] Figure 2 It is a double-layer optimization flow chart of the present invention.

[0047] Figure 3 This is the IEEE33-node distribution network architecture diagram.

[0048] Figure 4 This is a typical day source-load curve. DETAILED DESCRIPTION

[0049] 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 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.

[0050] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0051] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0052] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0053] Example

[0054] The present invention discloses a double-layer optimization method for an electric-hydrogen integrated energy system based on a full life cycle, which specifically comprises the following steps:

[0055] S1. Based on the flexible and complementary characteristics of hydrogen energy system and electric energy storage, build an electric-hydrogen integrated energy system architecture;

[0056] Specifically, Figure 1 As shown, the electrolyzer, new energy and power grid constitute the hydrogen production link, the hydrogen storage tank is the hydrogen storage link, and the hydrogen refueling station and hydrogen fuel cell device constitute the hydrogen use link, which together constitute a regional hydrogen energy system for hydrogen production, storage and use. In addition, the electric energy storage device can be coordinated with the hydrogen energy system. The hydrogen energy system has large energy storage and long storage time, but the electricity-hydrogen-electricity conversion efficiency is low; the electric energy storage device has high charging and discharging efficiency, but cannot store energy on a large scale for a long time. Therefore, through the coordination of the hydrogen energy system and the electric energy storage on multiple time scales, it is beneficial to give full play to the advantages of the hydrogen energy system and the electric energy storage device.

[0057] S2. Based on the full life cycle theory, analyze the cost-benefit of the electric-hydrogen integrated energy system and establish a cost-benefit mathematical model of the electric-hydrogen integrated energy system based on the full life cycle;

[0058] Specifically, the life cycle cost of the above-mentioned electric-hydrogen integrated energy system includes: investment cost, maintenance cost, aging cost, and operation cost, among which the specific mathematical model is as follows:

[0059] Equipment investment cost:

[0060]

[0061] In the formula, C inv is the investment cost; Set I includes electrolyzer and hydrogen fuel cell; P i,rated is the installed capacity of equipment i; set J includes hydrogen storage tanks and electrical energy storage devices; S j,rated is the installed capacity of energy storage device j; r is the inflation rate; τ is the project cycle.

[0062] Equipment maintenance cost:

[0063]

[0064] In the formula, C om is the equipment operation and maintenance cost; D0, N k 、N t They are the total number of days in a year, the number of typical days, and the number of hours in a day; is the probability of the kth typical day; N is the equipment set, including water electrolysis, hydrogen fuel cells, hydrogen storage tanks, electricity storage, wind power, photovoltaics, etc.; is the unit power maintenance cost corresponding to the nth device; P k,t,n The power of the nth device at time t on the kth typical day.

[0065] Cost of equipment aging:

[0066]

[0067] In the formula, C de is the equipment aging cost; C ED,inv , C FC,inv are the investment costs of electrolyzer and hydrogen fuel cell respectively; T ED,tot 、T FC,tot are the total operating life of the electrolyzer and hydrogen fuel cell respectively; c BS Assigning a price to a unit capacity of electric energy storage; are the charging power and discharging power of the energy storage at time t on a typical day k; η BS,ch , η BS,dis are the charging efficiency and discharging efficiency of electric energy storage respectively; d i is the discharge depth at point i on the life curve; f i is the failure cycle value related to point i on the life curve; n b is the total number of nodes on the life-related curve. is the aging cost of the electrolytic cell at time t on the kth typical day, is the aging cost of the hydrogen fuel cell at time t on the kth typical day, is the aging cost of electrochemical energy storage at time t on the kth typical day, is the operating status of the electrolytic cell at time t on the kth typical day, is the operating status of the hydrogen fuel cell at time t on the kth typical day.

[0068] Running costs:

[0069]

[0070] In the formula, C buy is the system operating cost, is the price of electricity purchased by the system from the upper power grid at time t; is the power purchased by the system from the upper grid at time t on a typical day k.

[0071] In addition, the benefits of the electric-hydrogen integrated energy system over its entire life cycle include: electricity sales revenue, hydrogen sales revenue, and residual value revenue. The specific mathematical model is as follows:

[0072] Revenue from hydrogen sales:

[0073]

[0074] In the formula, E SH The income from electricity sales for the hydrogen energy system; H The revenue from selling hydrogen per unit mass; is the hydrogen sales mass at time t on the kth typical day.

[0075] Revenue from electricity sales:

[0076]

[0077] In the formula, E SE Proceeds from electricity sales for hydrogen energy systems; is the unit electricity price at time t on a typical day k; The power generated by the hydrogen fuel cell at time t on the kth typical day; is the discharge power of the energy storage at time t on the kth typical day.

[0078] Residual value income:

[0079]

[0080] In the formula, Cost planning for electrolyzer and hydrogen fuel cell equipment; Equipment planning costs for hydrogen storage tanks and electrical energy storage devices; The residual value of the hydrogen energy system equipment is converted to the value of the tth year. In this project, it is converted to the first year, that is, t = 1. The residual value calculation in this project is based on the straight-line conversion method, β NS is the conversion ratio, which is 5% here; r1 is the discount rate, which is 10% here.

[0081] S3. Based on the double-layer optimization theory, the upper-layer hydrogen energy system and electric energy storage configuration model is used to determine the initialization capacity setting of the hybrid energy storage system, and the output result is used as the lower-layer parameter; the lower-layer operation optimization model is used to determine the operation output optimization of the hybrid energy storage system, form the optimal operation mode, and the optimal output is fed back to the upper-layer model;

[0082] The two-layer optimization models are coupled to establish a two-layer optimization model for the electric-hydrogen integrated energy system.

[0083] Specifically, in this embodiment, the planned equipment includes electrolyzers, hydrogen fuel cells, hydrogen storage tanks and electric energy storage devices, giving full play to the advantages of hydrogen energy systems and electric energy storage devices, starting from the whole society, taking all factors into consideration, and configuring capacity with the goal of maximizing comprehensive benefits. The specific economic evaluation function is as follows:

[0084]

[0085] Where X is the economic evaluation function value of the electric-hydrogen integrated energy system. The larger it is, the better the economy of the corresponding construction plan.

[0086] In this embodiment, the dispatch of the electric-hydrogen integrated energy system adopts Gurobi commercial software, and the dispatch cycle is 24 hours. According to the capacity configuration plan of hydrogen energy equipment and electric energy storage device given by the upper layer, the dispatch plan that minimizes the objective function is calculated based on the known wind power and photovoltaic output per unit value and load. Here, the objective function considers the maintenance cost of hydrogen energy equipment and batteries, the energy purchase cost of the electric-hydrogen integrated energy system, and the energy sales income of the electric-hydrogen integrated energy system:

[0087] C ope =C buy +C om +C de -E SH -E SE (12)

[0088] The operating constraints of the electrolyzer are:

[0089]

[0090] In the formula, Planning capacity for electrolyzer equipment; Respectively minimum and maximum operating power ratio; P t ED is the power of the electrolytic cell at time t, m ED,H LHV is the hydrogen production quality of the electrolyzer; H is the lower calorific value of hydrogen; η ED It is the hydrogen production efficiency of electrolysis equipment.

[0091] The operating constraints of hydrogen fuel cells are:

[0092]

[0093] In the formula, Planning capacity for hydrogen fuel cell equipment; are the minimum and maximum operating power ratios respectively; P t FC is the power of the hydrogen fuel cell; η FC Output efficiency of hydrogen fuel cells.

[0094] Hydrogen storage tank operation constraints:

[0095]

[0096] Where, mHS t is the hydrogen storage mass of HS at time t; η HS,loss , η HS,in , η HS,out They are HS hydrogen storage self-loss rate, hydrogen charging loss and hydrogen release loss respectively; are the hydrogen storage and release amounts of HS at time t, respectively; τ HS,in , τ HS,out are the maximum hydrogen storage and release rate ratio of HS, S HS,rated The planned capacity for HS; They are HS charging and releasing hydrogen 0-1 state variables respectively.

[0097] Hydrogen energy balance constraints:

[0098] Hydrogen needs to meet the constraints of hydrogen energy production and use balance at every moment. The produced hydrogen can be used in multiple modes, namely, satisfying:

[0099]

[0100] In the formula, is the system hydrogen load at time t.

[0101] Grid flow constraints:

[0102]

[0103] In the formula, are the squares of the voltages at nodes i and j respectively; P ij , Q ij are the active and reactive power of branch ij respectively; P i , Q i are the net inflow active and reactive power of nodes i and j respectively; r ij 、x ij are the resistance and reactance of branch ij respectively; are the squares of the minimum and maximum node voltages, respectively; V0 is the square of the equilibrium node voltage; S ij,max is the maximum transmission capacity of the line of branch ij.

[0104] Constraints on electric energy storage devices:

[0105]

[0106] In the formula, is the energy storage capacity of energy storage j at time t on a typical day k; η j,loss is the self-release coefficient of energy storage j; ηj,ch , η j,dis are the charging and discharging coefficients of energy storage device j, respectively. The energy storage energies at time t+1 and time t satisfy equation (33); are the minimum and maximum capacity ratios of energy storage device j, respectively; are the charging and discharging powers of energy storage device j at time t on a typical day k, respectively. They satisfy equation (34) with the energy storage installed capacity, k j is the capacity-power ratio of energy storage j; They are the charging and discharging state 0-1 state variables of energy storage j at time t on a typical day k. are the energy storage energies at the initial moment / end moment of the operation cycle of energy storage j, respectively, and must satisfy equation (35).

[0107] Planning equipment capacity constraints:

[0108]

[0109] In the formula, are the minimum and maximum capacities that can be planned for device i, respectively; are the minimum and maximum capacities that can be planned for energy storage j, respectively.

[0110] S4. Based on the improved salp swarm solving algorithm and Gurobi commercial solver, the two-level optimization model of the electric-hydrogen integrated energy system is solved quickly and accurately.

[0111] Specifically, modern heuristic optimization methods are powerful and effective tools that can be used to solve non-well-conditioned optimization problems, and their effectiveness has been proven in many fields. Some modern heuristic algorithms are also frequently used in the field of power system optimization, such as particle swarm optimization (PSO), genetic algorithm (GA), salp swarm algorithm (SSA), etc. Although modern heuristic optimization algorithms cannot guarantee that the global optimal solution can always be searched in a limited time, this does not prevent it from having application value in practical problems. For complex problems, finding the global optimal solution is often a difficult and time-consuming task. Modern heuristic optimization algorithms can find a better solution in a reasonable time through fast search and iteration, providing an efficient method for solving problems. Compared with other heuristic algorithms, the salp swarm algorithm (SSA) is a heuristic algorithm suitable for continuous and discrete optimization problems. It shows good adaptability in practical problems and can effectively search for a better solution. However, in order to further improve the performance of the algorithm, it is necessary to improve its convergence performance.

[0112] The basic salp swarm algorithm consists of two types of salps: leaders and followers. The leader guides the rest of the swarm to move toward the target. It plays an important role at the front end of the algorithm, guiding and influencing the movement of other salps to lead the entire swarm toward a specific food source X. The dimension of the search space is represented by dim, and the number of salps is n. In order to record the position information of the salps, a two-dimensional matrix SP is introduced. This matrix represents the position of all salps in the search space, where SP i,j Represents the position of the i-th salp individual in the j-dimensional search space. Through this matrix, the algorithm can guide their movement and collaboration based on the individual's position information.

[0113] In the process of searching for food sources, the position of the leader individual in the salp group chain is updated according to the food source. The updating method is:

[0114]

[0115] Where, X j is the location of the food source in the jth dimension; u j and l j are the upper and lower limits of the j-th dimension respectively; γ1, γ2, and γ3 are coefficients, where γ2 and γ3 are uniformly distributed random numbers in the interval [0,1], and the update method of γ1 is:

[0116]

[0117] Where, It is the current iteration number; It max is the maximum number of iterations.

[0118] In the process of optimizing the search space, the position update method of the follower in the salp group chain is:

[0119]

[0120] Where, SP i,j is the position of the ith follower in the jth dimension; SP i-1,j is the position of the previous generation of followers in the jth dimension.

[0121] However, in the traditional salp swarm algorithm, when the leader position is updated, γ2, one of the inertia weight coefficients, is a random number that obeys the [0,1] distribution, and this uniform value is very blind, which can easily lead to inaccurate updates of the salp leader position in the global search. In addition, the position update of the follower in the original salp swarm algorithm is determined by the current individual and the previous individual at the same time. This update only accepts the position information of the previous individual, which greatly limits the local search ability of the algorithm. Therefore, in order to improve the solution efficiency of the salp swarm algorithm and enable it to handle more complex long-term optimization problems in hydrogen energy systems, this embodiment makes the following two improvements:

[0122] This embodiment introduces a Cauchy mutation factor when updating the leader position of the salp group, increases the update range of the leader position, and thus jumps out of the local optimum. The Cauchy mutation originates from the Cauchy distribution, and the one-dimensional Cauchy distribution probability density function is as follows:

[0123]

[0124] Wherein, when b=1, the above formula is the standard Cauchy distribution probability density function.

[0125] The inertia weight coefficient γ2 after the introduction of Cauchy mutation is as follows:

[0126]

[0127] Nonlinear update factor and difference improvement:

[0128] For the position update of the follower, this study introduces the first two individuals, i.e., individual i-1 and individual i-2, to increase the transmission of position information, thereby increasing the local optimization search range. At the same time, in order to speed up the convergence of the algorithm, this paper also introduces a nonlinear update factor at the follower position update to improve the local optimization ability and convergence performance of the algorithm. The improved follower position update formula is as follows:

[0129]

[0130] Where σ is the nonlinear update factor; SP i,j , SP i-1,j , SP i-2, j are the positions of the i-th, i-1-th, and i-2-th individuals in the j dimension respectively.

[0131] From formula (45), we can see that It is the current iteration number; It maxis the maximum number of iterations. By adjusting the nonlinear update factor σ, the global search and local search capabilities can be balanced in the iterations of different stages to improve the effect of the optimization algorithm. Using a larger σ in the initial stage can expand the search range, enhance the global search capability, and avoid falling into the local optimal solution. In the later stage, gradually reducing σ can enhance the local search capability and facilitate the optimal solution. In this way, the optimization algorithm can search the solution space more effectively and achieve better optimization results. This strategy has important application value in optimization problems and can improve the performance and efficiency of the algorithm.

[0132] This paper establishes a two-level optimization model for the electric-hydrogen integrated energy system. The upper-level optimization uses the improved Salp Swarm algorithm to solve the optimal configuration of the system, and the lower-level optimization uses the Gurobi solver to solve the optimal scheduling solution under the upper-level configuration solution. The two-level optimization process is as follows: Figure 2 shown.

[0133] In summary, the present invention establishes a two-layer optimization model for an electric-hydrogen integrated energy system. The upper layer optimization uses an improved salp swarm algorithm to solve the optimal configuration of the system, and the lower layer optimization uses a Gurobi solver to solve the optimal scheduling solution under the upper layer configuration solution. The present invention has the following advantages:

[0134] This embodiment proposes a two-layer optimization method for an electric-hydrogen integrated energy system based on the entire life cycle. The architecture of the electric-hydrogen integrated energy system is established based on the flexible complementary characteristics of the hydrogen energy system and electric energy storage. Based on the full life cycle theory, a cost-benefit mathematical model of the electric-hydrogen integrated energy system is established. Based on the two-layer optimization theory, a two-layer optimization model of the electric-hydrogen integrated energy system is established by comprehensively considering constraints such as system topology constraints, equipment operation constraints, and energy balance. Then, based on the improved Salp Unica swarm solving algorithm and the Gurobi commercial solver, an efficient solution to the above model is achieved. This method can fully tap the coordinated interaction capabilities of the hydrogen energy system and the electric energy storage device, accurately and comprehensively evaluate the economic efficiency of the electric-hydrogen integrated energy system, and effectively alleviate the problem of difficulty in absorbing the high proportion of renewable energy access.

[0135] The following regional integrated energy system consisting of IEEE33 node distribution network is selected as the verification, such as Figure 3 As shown. By using the K-means clustering algorithm, the source-load data of 8760 hours throughout the year are clustered to obtain the source-load curves of 12 typical days in 4 seasons as shown Figure 4 shown.

[0136] Table 1 Annual peak and valley time-of-use electricity prices

[0137]

[0138] Table 2 Example parameters

[0139]

[0140] In this embodiment, three scenarios are set:

[0141] Scenario 1: Only electric energy storage devices are planned;

[0142] Scenario 2: Only planning the hydrogen energy system;

[0143] Scenario 3: The method in this paper considers the flexible complementary characteristics of electric energy storage devices and hydrogen energy systems, and plans electric energy storage devices and hydrogen energy systems at the same time.

[0144] According to the source-load data and related equipment parameters of the integrated energy system, a two-level optimization model of the electric-hydrogen integrated energy system is established by adopting the mixed integer linear programming method. The model is solved with the full life cycle economy as the optimization goal to obtain a solution set with a more economical system and a more reasonable equipment configuration. This example is solved in MATLAB using the improved Salp Group Solving Algorithm and the GUROBI solver.

[0145] Table 3 Equipment configuration results in three scenarios

[0146]

[0147] Table 4 Total operating costs in three scenarios

[0148]

[0149] *Unit: 10 6 Yuan

[0150] The system operation costs under different scenarios are shown in Table 3. It can be seen from the table that the full life cycle benefits of scenarios 1, 2, and 3 are 11.89×10 6 Yuan, 14.67×10 6 Yuan, 18.46×10 6Yuan. The full life cycle benefits of scenario 2 increased by 23.4% compared with scenario 1. The main reason is that the hydrogen energy system has the characteristics of long-term and large-scale energy transfer compared with electric energy storage. In the peak season of renewable energy output, the storage limit of electric energy storage leads to limited renewable energy consumption, and thus the energy transferred and sold is also limited. Since the electrolyzer and hydrogen storage tank are decoupled, the hydrogen energy system can store hydrogen on a large scale for a long time, and can be transferred and sold in real time through a long tube trailer. The full life cycle benefits of scenario 3 increased by 21.6% compared with scenario 2. This is because the hydrogen energy system has a low electricity-hydrogen-electric cycle efficiency of only 40%, while the charge and discharge cycle efficiency of the electric energy storage device can be above 90%. Therefore, through the complementary advantages of the hydrogen energy system and the electric energy storage device, flexible coordination can maximize the suppression of the difficulty of renewable energy consumption caused by the access of a high proportion of renewable energy, and improve the full life cycle economy of the electric-hydrogen integrated energy system.

[0151] Therefore, it can be seen from the above that the complementary advantages and flexible coordination between hydrogen energy systems and electric energy storage devices can minimize the difficulty in absorbing renewable energy caused by the access of a high proportion of renewable energy. Therefore, this paper proposes a two-layer optimization method for the electric-hydrogen integrated energy system based on the entire life cycle, which can fully explore the coordinated interaction capabilities of hydrogen energy systems and electric energy storage in the integrated energy system, and can accurately evaluate the economic feasibility of the planning scheme throughout its life cycle, thereby ensuring the effectiveness of the planning scheme.

[0152] Those of ordinary skill in the art will appreciate that the units of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition of each example has been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0153] In the embodiments provided by the present invention, it should be understood that the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units can be combined into one unit, one unit can be split into multiple units, or some features can be ignored, etc.

[0154] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0155] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-0nlyMemory), random access memory (RAM, RandomAccessMemory), mobile hard disk, magnetic disk or optical disk, etc., which can store program code.

[0156] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. A two-layer optimization method for an electric-hydrogen integrated energy system based on the entire life cycle. It is characterized in that The following steps are involved: S1. Based on the flexible and complementary characteristics of hydrogen energy system and electric energy storage, build an electric-hydrogen integrated energy system architecture; S2. Based on the full life cycle theory, analyze the cost and benefit of the electric-hydrogen integrated energy system, and establish a cost-benefit mathematical model of the electric-hydrogen integrated energy system based on the full life cycle; S3. Based on the double-layer optimization theory, the upper-layer hydrogen energy system and electric energy storage configuration model is used to determine the initialization capacity setting of the hybrid energy storage system, and the output result is used as the lower-layer parameter; the lower-layer operation optimization model is used to determine the operation output optimization of the hybrid energy storage system, form the optimal operation mode, and the optimal output is fed back to the upper-layer model; The two-layer optimization model is coupled to establish a two-layer optimization model for the electric-hydrogen integrated energy system; S4. Based on the improved salp swarm solving algorithm and Gurobi commercial solver, the two-level optimization model of the electric-hydrogen integrated energy system is solved quickly and accurately.

2. According to the double-layer optimization method of the electric-hydrogen integrated energy system based on the whole life cycle of claim 1, It is characterized in that In step S1, the method steps for constructing the electric-hydrogen integrated energy system architecture are as follows: The electrolyzer, new energy and power grid form the hydrogen production link, the hydrogen storage tank forms the hydrogen storage link, and the hydrogen refueling station and hydrogen fuel cell device form the hydrogen use link, together forming a regional hydrogen energy system for hydrogen production, storage and use; And through the coordination of hydrogen energy systems and electric energy storage on multiple time scales.

3. According to the double-layer optimization method of the electric-hydrogen integrated energy system based on the whole life cycle of claim 1, It is characterized in that In step S2, the life cycle cost of the electric-hydrogen integrated energy system includes the equipment investment cost C inv , Equipment maintenance cost C om , Equipment aging cost C de And the system operating cost C buy ; The benefits of the electric-hydrogen integrated energy system over its entire life cycle include electricity sales revenue E SH 、Hydrogen sales revenue E SE and residual value income 4. According to the double-layer optimization method of the electric-hydrogen integrated energy system based on the whole life cycle of claim 3, It is characterized in that The method for establishing the two-layer optimization model of the electric-hydrogen integrated energy system in step S3 is as follows: The planned equipment includes electrolyzers, hydrogen fuel cells, hydrogen storage tanks and electric energy storage devices. The capacity is configured with the goal of maximizing comprehensive benefits. The specific economic evaluation function is as follows: In the above formula, X is the economic evaluation function value of the electric-hydrogen integrated energy system. The larger it is, the better the economy of the corresponding construction plan. According to the above capacity configuration scheme, the dispatching scheme that minimizes the objective function is obtained based on the known wind power and photovoltaic output per unit value and load. The objective function is as follows: C ope =C buy +C om +C de -E SH -E SE 。 5. According to claim 4, a two-layer optimization method for an electric-hydrogen integrated energy system based on the entire life cycle, It is characterized in that The method for establishing a two-layer optimization model of an electric-hydrogen integrated energy system also includes operating constraints of electrolyzers, operating constraints of hydrogen fuel cells, operating constraints of hydrogen storage tanks, hydrogen energy balance constraints, grid flow constraints, electric energy storage device constraints, and planning equipment capacity constraints.

6. According to the double-layer optimization method of the electric-hydrogen integrated energy system based on the whole life cycle of claim 1, It is characterized in that In step S4, the upper layer optimization adopts the improved salp swarm algorithm to solve the optimal configuration of the system, and the lower layer optimization adopts the Gurobi solver to solve the optimal scheduling solution under the upper layer configuration solution.

7. According to claim 5, a two-layer optimization method for an electric-hydrogen integrated energy system based on the entire life cycle, It is characterized in that The operating constraints of the electrolyzer are: In the formula, Planning capacity for electrolyzer equipment; are the minimum and maximum operating power ratios respectively; P t ED is the power of the electrolytic cell at time t, m ED,H LHV is the hydrogen production quality of the electrolyzer; H is the lower calorific value of hydrogen; η ED The efficiency of hydrogen production by electrolysis equipment; The operating constraints of the hydrogen fuel cell are: In the formula, Planning capacity for hydrogen fuel cell equipment; are the minimum and maximum operating power ratios respectively; P t FC is the power of the hydrogen fuel cell; η FC Output efficiency for hydrogen fuel cells; The operating constraints of the hydrogen storage tank are: Where, mHS t is the hydrogen storage mass of HS at time t; η HS,loss , η HS,in , η HS,out They are HS hydrogen storage self-loss rate, hydrogen charging loss and hydrogen release loss respectively; are the hydrogen storage and release amounts of HS at time t, respectively; τ HS,in , τ HS,out are the maximum hydrogen storage and release rate ratio of HS, S HS,rated The planned capacity for HS; They are 0-1 state variables for HS charging and releasing hydrogen respectively; The electric energy storage device is constrained to: In the formula, is the energy storage capacity of energy storage j at time t on a typical day k; η j,loss is the self-release coefficient of energy storage j; η j,ch , η j,dis are the charging and discharging coefficients of energy storage device j respectively; are the minimum and maximum capacity ratios of energy storage device j, respectively; are the charging and discharging powers of energy storage device j at time t on a typical day, k j is the capacity-power ratio of energy storage j; are the charging and discharging states 0-1 state variables of energy storage j at time t on a typical day k, respectively; They are the energy storage energies at the initial moment / end moment of the operation cycle of energy storage j respectively.

8. According to claim 3, a two-layer optimization method for an electric-hydrogen integrated energy system based on the entire life cycle, It is characterized in that The mathematical model of the equipment investment cost is as follows: In the formula, C inv is the investment cost; Set I includes electrolyzer and hydrogen fuel cell; P i,rated is the installed capacity of equipment i; set J includes hydrogen storage tanks and electrical energy storage devices; S j,rated is the installed capacity of energy storage device j; r is the inflation rate; τ is the project cycle.

9. According to the double-layer optimization method of the electric-hydrogen integrated energy system based on the whole life cycle of claim 1, It is characterized in that The mathematical model of hydrogen sales revenue is: In the formula, E SH The income from electricity sales for the hydrogen energy system; H The revenue from selling hydrogen per unit mass; is the hydrogen sales mass at time t on the kth typical day.

Citation Information

Cited By

  • Electricity-hydrogen hybrid energy storage configuration method and system based on improved mode search algorithm

    CN120511717A

  • Energy storage configuration and operation scheduling optimization method for electrothermal hydrogen comprehensive energy system

    CN120893747A

  • Electro-hydrogen coupling system double-layer random optimization operation method, system, equipment and medium

    CN121965581A