Hydrogen energy storage optimization configuration method for green port shore power system

By combining hydrogen energy storage, wind power generation, photovoltaic power generation and hydrogen storage technology in the port energy system, and using the particle swarm optimization algorithm to optimize the configuration, the problems of single configuration and pollution emissions of the traditional port energy system are solved, and more efficient energy utilization is achieved. and environmentally friendly port integrated energy systems.

CN114914943BActive Publication Date: 2024-10-11SHANGHAI JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210589697.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-26
Publication Date
2024-10-11
Estimated Expiration
2042-05-26

AI Technical Summary

Technical Problem

Traditional port energy systems have a single configuration and low levels of energy dispatch and interconnection, resulting in high electricity bills and large amounts of pollution emissions, which limits the comprehensive development of ports.

Method used

Adopt a hydrogen energy storage optimization configuration method, combine wind power generation, photovoltaic power generation, electricity storage and hydrogen storage technology, and establish a multi-energy system optimization configuration model through particle swarm optimization algorithm to optimize the configuration of electric-hydrogen hybrid energy storage system and reduce economic costs. and carbon emissions.

Benefits of technology

It improves the utilization rate of wind and solar energy, enhances the diversity of energy supply structure, reduces the cost of power purchase, and promotes the green development and environmental benefits of the port.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114914943B_ABST
    Figure CN114914943B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for optimizing the configuration of hydrogen energy storage for a green port shore power system, comprising: step S1: configuring hydrogen energy in a port comprehensive energy system to form a multi-energy hybrid energy storage system; step S2: establishing an optimization configuration model for the green port multi-energy system; step S3: optimizing and solving the optimization configuration model using a particle swarm optimization algorithm to obtain an optimal configuration scheme; the optimization configuration model is based on a green port multi-energy system containing hydrogen energy storage, and according to a preset objective function and preset constraints, finds the optimal configuration capacity for the green port multi-energy system containing hydrogen energy storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of optimized configuration of integrated energy systems, and in particular to a method for optimizing the configuration of hydrogen energy storage for a green port shore power system. Background Art

[0002] As the connection point between sea and land transportation, ports bear huge energy consumption and pollution emissions. Among them, hydrogen energy, as the most promising secondary energy in this century, has good flexible adjustment characteristics and can achieve large-scale seasonal storage. It is a clean energy with high comprehensive performance. Therefore, the port comprehensive energy system based on hydrogen energy storage is an ideal means for its low-carbon transformation, which is conducive to improving the economic and environmental benefits of ports.

[0003] However, the current traditional port energy system has a relatively single type of energy configuration, and the overall level of energy dispatch and interconnection is low. With the huge daily electricity consumption of ports, high electricity bills and large amounts of pollution emissions have become the main factors restricting the comprehensive development of ports. With the promotion of new energy technologies, especially the application of hydrogen energy in energy systems, the characteristics of these energies can be used to optimize the port energy supply side structure and reduce economic costs and pollution emissions.

[0004] The present invention applies hydrogen energy to the port comprehensive energy system, establishes a new green port comprehensive energy system model with multiple energy storage forms, and forms an optimal configuration plan for a multi-energy system based on hydrogen energy storage based on an intelligent optimization algorithm to enhance the wind and solar power absorption capacity, reduce economic costs, and enhance the comprehensive benefits of the port.

[0005] X. Wang, W. Huang, W. Wei, N. Tai, R. Li and Y. Huang,"Day-Ahead Optimal Economic Dispatching of Integrated Port Energy Systems Considering Hydrogen," in IEEE Transactions on Industry Applications, vol. 58, no. 2, pp. 2619-2629, March-April 2022, doi: 10.1109 / TIA.2021.3095830. The main contribution of this paper is that a multi-energy coupling energy supply structure with hydrogen as a new energy carrier is proposed for the electric load, hydrogen load and thermal load of the integrated port energy system, realizing the conversion and supplement of electricity, hydrogen, thermal energy and natural gas. Based on this energy conversion mode, a day-ahead economic dispatch model is established to increase the port area's absorption of renewable energy, reduce the dependence of onshore equipment and shore power systems on fuel, and reduce carbon emissions. However, this document focuses on the scheduling of the energy supply structure it has established, and does not propose a configuration plan for the energy supply system it involves. In contrast, the present invention not only comprehensively considers the application of electric-hydrogen hybrid energy storage in the green port multi-energy system, but also proposes a hybrid energy storage optimization configuration method based on the particle swarm optimization algorithm to improve the economic and environmental benefits of system operation.

[0006] W.chutong et al.,"Optimal configuration of seasonal and short-termstorage system for an island electricity-hydrogen integrated energy system,"Tsinghua University-IET Electrical Engineering Academic Forum:Construct ingGreen and Sustainable Energy System(2021),2021,pp.81-84,doi:10.1049 / icp.2021.2084. This document studies the short-term and seasonal optimal configuration problem of the electricity-hydrogen hybrid energy storage system on an isolated island, and establishes an optimal configuration model for short-term and seasonal storage of the island electricity-hydrogen system with the goal of economy. However, the research object of this document is an isolated island, and environmental indicators such as carbon emissions are not considered. In contrast, the present invention takes into account the carbon emission cost in the optimal configuration model of the port multi-energy system, and effectively promotes the green development of the port in the form of a combination of new energy and energy storage system. Summary of the invention

[0007] In view of the defects in the prior art, the purpose of the present invention is to provide a hydrogen energy storage optimization configuration method and system for a green port shore power system.

[0008] A hydrogen energy storage optimization configuration method for a green port shore power system provided by the present invention includes:

[0009] Step S1: configuring hydrogen energy in the port integrated energy system to form a multi-energy hybrid energy storage system;

[0010] Step S2: Establishing an optimization configuration model for the green port multi-energy system;

[0011] Step S3: Optimize and solve the optimization configuration model using a particle swarm optimization algorithm to obtain the optimal configuration solution;

[0012] The optimization configuration model is based on the multi-energy system of the green port containing hydrogen energy storage, and seeks the optimal configuration capacity for the multi-energy system of the green port containing hydrogen energy storage according to the preset objective function and preset constraints.

[0013] Preferably, the multi-energy hybrid energy storage system comprises: a wind power generation system, a photovoltaic power generation system, an electricity storage device and a hydrogen storage device;

[0014] The wind power generation system adopts:

[0015]

[0016] Among them, W PT,t is the wind power generation at time t; ρ is the air density; C p is the wind energy conversion coefficient; v t is the wind speed at time t; S is the wind sweeping cross-sectional area of ​​the wind turbine;

[0017] The photovoltaic power generation system adopts:

[0018]

[0019] Among them, P PV Indicates the real-time power output of the photovoltaic panel; V N and I PV are the rated voltage and rated current of the photovoltaic panel respectively; P VN is the rated power of the photovoltaic panel, K T is the temperature coefficient, T n is the standard temperature, G n is the standard irradiance, T e , G e The working environment temperature and irradiance of the photovoltaic panel at this moment;

[0020] The power storage device adopts:

[0021]

[0022] Where: δ is the self-leakage rate of the power storage system; E ehc (t), E ehc (t-1) are the remaining power of the power storage system at time t and time t-1 respectively; η char , η dis are the charging and discharging efficiencies of the battery respectively; P char (t), P dis (t) are the total charging and discharging power of the power storage system in the tth time period; Δt is the measurement period;

[0023] The hydrogen storage device adopts:

[0024] First, the water electrolysis hydrogen production device converts electrical energy into hydrogen energy and stores it in a hydrogen storage tank, which is expressed as:

[0025]

[0026] Among them, P t H and are the output power and input power of the water electrolysis hydrogen production device at time t, η H The conversion efficiency of water electrolysis to produce hydrogen;

[0027] The hydrogen storage level of the hydrogen storage tank is The calculation formula is:

[0028]

[0029] in, is the storage amount of hydrogen at time t0; is the production of hydrogen at time t; is the hydrogen consumption at time t.

[0030] Preferably, the objective function in the optimization configuration model adopts:

[0031]

[0032] Among them, T is the total time of the plan scheduling; Cost min Cost is the minimum cost. grid P is the cost of purchasing electricity from the power grid; t GRID is the amount of electricity traded by the power grid at time t; price t Cost is the electricity purchase price corresponding to time t; e Maintenance costs for new energy equipment; are the outputs of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device at time t, γ H , γ WT , γ PV are the operation and maintenance cost coefficients of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device; Cost cut P is the cost of curtailing wind and solar power; WT,f,t , P WT,r,t are the predicted wind power output and actual wind power output of the wind turbine at time t, respectively, WT is the wind abandonment cost coefficient; P PV,f,t , P PV,r,t are the predicted power output and actual power output of photovoltaic at time t, λ PV Cost is the cost coefficient of abandoned light; ehc is the cost of the energy storage device, r and n are the depreciation rate and depreciation period; is the charging and discharging power and power consumption of the energy storage device at time t; α ehc is the unit capacity cost coefficient; μ ehc is the operation and maintenance cost coefficient; θ ehc Cost is the energy loss cost coefficient; C is the carbon emission cost, c is the carbon emission cost processing coefficient per unit of electricity;

[0033] Preferably, the constraints in the optimization configuration model are:

[0034]

[0035] Among them, P L,t is the electrical load at time t; is the maximum power output of the power grid; P t H represents the output power of the water electrolysis hydrogen production device at time t, η H represents the conversion efficiency of hydrogen production by water electrolysis, P H,max is the maximum working power of the hydrogen storage tank; is the maximum charging and discharging power of the energy storage device; S min , S max are the upper and lower limit values ​​of the planned energy storage capacity respectively; S is the rated capacity of the energy storage; They are the minimum and maximum values ​​of energy storage capacity satisfied when charging and discharging energy storage power under rated energy storage capacity; Respectively represent the energy storage capacity at time t=1 and time t=24;

[0036] The complementary constraint of energy storage limits the unification of energy storage state, and the energy storage system can only be in the state of charging or discharging at the same time; represents the energy release power of the energy storage system at time t, represents the charging power of the energy storage system, It means that the energy storage capacity returns to the initial value after 24 hours of operation.

[0037] Preferably, the step S3 adopts:

[0038] Step S3.1: Initialize the particle swarm optimization variables, including time-sharing grid output power, energy storage charging and discharging power, new energy output power, shore power exchange power and other variables, and determine the capacity of the power storage device and hydrogen storage device and the upper and lower boundary values ​​of the charging and discharging power, the upper and lower boundary values ​​of the shore power system power exchange, and the maximum value of the grid output;

[0039] Step S3.2: Randomly assign positions and velocities to each particle and set the objective function;

[0040] Step S3.3: Obtain the individual optimal index based on the objective function, and obtain the global optimal value among all the individual optimal values;

[0041] Step S3.4: Determine whether the objective function value has reached the optimum. If it has not reached the optimum, repeatedly trigger steps S3.2 to S3.3 until the objective function value reaches the optimum, output the optimal objective function, and determine the optimal configuration capacity of the multi-energy system.

[0042] A hydrogen energy storage optimization configuration system for a green port shore power system provided by the present invention includes:

[0043] Module M1: Configure hydrogen energy in the port's integrated energy system to form a multi-energy hybrid energy storage system;

[0044] Module M2: Establishing an optimization configuration model for green port multi-energy systems;

[0045] Module M3: Use the particle swarm optimization algorithm to optimize and solve the optimization configuration model to obtain the optimal configuration solution;

[0046] The optimization configuration model is based on the multi-energy system of the green port containing hydrogen energy storage, and seeks the optimal configuration capacity for the multi-energy system of the green port containing hydrogen energy storage according to the preset objective function and preset constraints.

[0047] Preferably, the multi-energy hybrid energy storage system comprises: a wind power generation system, a photovoltaic power generation system, an electricity storage device and a hydrogen storage device;

[0048] The wind power generation system adopts:

[0049]

[0050] Among them, W PT,tis the wind power generation at time t; ρ is the air density; C p is the wind energy conversion coefficient; v t is the wind speed at time t; S is the wind sweeping cross-sectional area of ​​the wind turbine;

[0051] The photovoltaic power generation system adopts:

[0052]

[0053] Among them, P PV Indicates the real-time power output of the photovoltaic panel; V N and I PV are the rated voltage and rated current of the photovoltaic panel respectively; P VN is the rated power of the photovoltaic panel, K T is the temperature coefficient, T n is the standard temperature, G n is the standard irradiance, T e , G e The working environment temperature and irradiance of the photovoltaic panel at this moment;

[0054] The power storage device adopts:

[0055]

[0056] Where: δ is the self-leakage rate of the power storage system; E ehc (t), E ehc (t-1) are the remaining power of the power storage system at time t and time t-1 respectively; η char , η dis are the charging and discharging efficiencies of the battery respectively; P char (t), P dis (t) are the total charging and discharging power of the power storage system in the tth time period; Δt is the measurement period;

[0057] The hydrogen storage device adopts:

[0058] First, the water electrolysis hydrogen production device converts electrical energy into hydrogen energy and stores it in a hydrogen storage tank, which is expressed as:

[0059]

[0060] Among them, P t H and are the output power and input power of the water electrolysis hydrogen production device at time t, η H The conversion efficiency of water electrolysis to produce hydrogen;

[0061] The hydrogen storage level of the hydrogen storage tank is The calculation formula is:

[0062]

[0063] in, is the storage amount of hydrogen at time t0; is the production of hydrogen at time t; is the hydrogen consumption at time t.

[0064] Preferably, the objective function in the optimization configuration model adopts:

[0065]

[0066] Among them, T is the total time of the plan scheduling; Cost min Cost is the minimum cost. grid P is the cost of purchasing electricity from the power grid; t GRID is the amount of electricity traded by the power grid at time t; price t Cost is the electricity purchase price corresponding to time t; e Maintenance costs for new energy equipment; are the outputs of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device at time t, γ H , γ WT , γ PV are the operation and maintenance cost coefficients of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device; Cost cut P is the cost of curtailing wind and solar power; WT,f,t , P WT,r,t are the predicted wind power output and actual wind power output of the wind turbine at time t, respectively, WT is the wind abandonment cost coefficient; P PV,f,t , P PV,r,t are the predicted power output and actual power output of photovoltaic at time t, λ PV Cost is the cost coefficient of abandoned light; ehc is the cost of the energy storage device, r and n are the depreciation rate and depreciation period; is the charging and discharging power and power consumption of the energy storage device at time t; α ehc is the unit capacity cost coefficient; μ ehc is the operation and maintenance cost coefficient; θ ehc Cost is the energy loss cost coefficient; C is the carbon emission cost, c is the carbon emission cost processing coefficient per unit of electricity;

[0067] Preferably, the constraints in the optimization configuration model are:

[0068]

[0069] Among them, PL,t is the electrical load at time t; is the maximum power output of the power grid; P t H represents the output power of the water electrolysis hydrogen production device at time t, η H represents the conversion efficiency of hydrogen production by water electrolysis, P H,max is the maximum working power of the hydrogen storage tank; is the maximum charging and discharging power of the energy storage device; S min , S max are the upper and lower limit values ​​of the planned energy storage capacity respectively; S is the rated capacity of the energy storage; They are the minimum and maximum values ​​of energy storage capacity satisfied when charging and discharging energy storage power under rated energy storage capacity; Respectively represent the energy storage capacity at time t=1 and time t=24;

[0070] The complementary constraint of energy storage limits the unification of energy storage state, and the energy storage system can only be in the state of charging or discharging at the same time; represents the energy release power of the energy storage system at time t, represents the charging power of the energy storage system, It means that the energy storage capacity returns to the initial value after 24 hours of operation.

[0071] Preferably, the module M3 adopts:

[0072] Module M3.1: Initialize the particle swarm optimization variables, including the time-sharing power output of the power grid, the energy storage charging and discharging power, the new energy output power, the shore power exchange power and other variables, and determine the capacity of the power storage device and hydrogen storage device and the upper and lower boundary values ​​of the charging and discharging power, the upper and lower boundary values ​​of the shore power system power exchange, and the maximum value of the power grid output;

[0073] Module M3.2: Randomly assign positions and velocities to each particle and set the objective function;

[0074] Module M3.3: Obtain the individual optimal index based on the objective function, and obtain the global optimal value among all the individual optimal values;

[0075] Module M3.4: Determine whether the objective function value has reached the optimum. If it has not reached the optimum, repeatedly trigger modules M3.2 to M3.3 until the objective function value reaches the optimum, output the optimal objective function, and determine the optimal configuration capacity of the multi-energy system.

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

[0077] 1. By combining energy storage technology, the fluctuation of wind and solar power output is effectively suppressed, which improves the utilization rate of wind and solar power and reduces the cost of wind and solar power abandonment;

[0078] 2. Through the optimized configuration of electric-hydrogen hybrid energy storage, the energy utilization rate of the system is effectively improved, achieving the technical effect of enhancing the diversity of energy supply structure and the overall economic efficiency of the port energy system;

[0079] 3. Through the electricity price adjustment mechanism of time-of-use electricity price, considering the balance of energy supply and demand, the technical effect of peak shaving and valley filling of the system and reducing the cost of electricity purchase is achieved;

[0080] 4. Through the technical characteristics of combining new energy technology with hydrogen energy storage system technology, the technical effect of reducing carbon emissions and promoting the healthy development of green ports has been achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0082] Figure 1 This is the structural diagram of the green port multi-energy system.

[0083] Figure 2 Schematic diagram of particle swarm optimization.

[0084] Figure 3 Output power for renewable energy generation.

[0085] Figure 4 It is the power output of the grid and shore power.

[0086] Figure 5 It is the energy storage charging and discharging power. DETAILED DESCRIPTION

[0087] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0088] Example 1

[0089] A hydrogen energy storage optimization configuration method for a green port shore power system provided by the present invention includes:

[0090] Step S1: configuring hydrogen energy in the port integrated energy system to form a multi-energy hybrid energy storage system;

[0091] Step S2: Establishing an optimization configuration model for the green port multi-energy system, comprehensively considering the characteristics of port energy supply and demand, time-of-use electricity prices and other factors, and realizing the effective use of hydrogen energy storage in the port energy system;

[0092] Step S3: Optimize and solve the optimization configuration model using a particle swarm optimization algorithm to obtain the optimal configuration solution;

[0093] The optimization configuration model is established on the basis of the multi-energy system of the green port with hydrogen energy storage proposed by the present invention, including the economic cost objective function and various constraints. The economic objective function includes the power purchase cost of the power grid, the maintenance cost of new energy equipment, the cost of abandoned wind and solar power, the energy storage cost, and the carbon emission cost. The constraints include power balance constraints, energy storage constraints, public power grid constraints, and new energy system constraints. The function is to find the optimal configuration capacity for the multi-energy system of the green port with hydrogen energy storage. Finally, economic indicators can be used to effectively evaluate the economic costs of each part of the model.

[0094] The electric-hydrogen hybrid energy storage provided by the present invention saves energy storage capacity compared to single hydrogen energy storage or electric energy storage, and is more economical. It also enriches the types and structures of energy supply, and combines the hybrid energy storage system with new energy technology and time-of-use electricity price mechanism to improve economic and environmental benefits. Therefore, the beneficial effects of the present invention in terms of systematization and integrity are significantly improved.

[0095] Specifically, the multi-energy hybrid energy storage system includes: a wind power generation system, a photovoltaic power generation system, an electricity storage device and a hydrogen storage device;

[0096] The wind power generation system adopts: Wind power generation power specifically refers to the wind energy flowing vertically through the wind sweeping cross-sectional area per unit time. Wind power generation power is related to relevant parameters such as air density, wind energy utilization and cross-sectional area of ​​power generation equipment, and has a nonlinear relationship with ambient wind speed;

[0097]

[0098] Among them, W PT,t is the wind power generation at time t; ρ is the air density; C p is the wind energy conversion coefficient; v t is the wind speed at time t; S is the wind sweeping cross-sectional area of ​​the wind turbine;

[0099] The photovoltaic power generation system adopts:

[0100]

[0101] Among them, P PV Indicates the real-time power output of the photovoltaic panel; V N and I PVare the rated voltage and rated current of the photovoltaic panel respectively; P VN is the rated power of the photovoltaic panel, K T is the temperature coefficient, T n is the standard temperature, G n is the standard irradiance, T e , G e The working environment temperature and irradiance of the photovoltaic panel at this moment;

[0102] The power storage device adopts:

[0103]

[0104] Where: δ is the self-leakage rate of the power storage system; E ehc (t), E ehc (t-1) are the remaining power of the power storage system at time t and time t-1 respectively; η char , η dis are the charging and discharging efficiencies of the battery respectively; P char (t), P dis (t) are the total charging and discharging power of the power storage system in the tth time period; Δt is the measurement period;

[0105] The hydrogen storage device adopts:

[0106] First, the water electrolysis hydrogen production device converts electrical energy into hydrogen energy and stores it in a hydrogen storage tank, which is expressed as:

[0107]

[0108] Among them, P t H and are the output power and input power of the water electrolysis hydrogen production device at time t, η H The conversion efficiency of hydrogen production by water electrolysis;

[0109] The hydrogen storage level of the hydrogen storage tank is The calculation formula is:

[0110]

[0111] in, is the storage amount of hydrogen at time t0; is the production of hydrogen at time t; is the hydrogen consumption at time t.

[0112] Specifically, the present invention constructs an economic objective function that comprehensively considers the power purchase cost of the power grid, the maintenance cost of new energy equipment, the cost of wind and solar power abandonment, the energy storage cost, and the carbon emission cost, based on the demand characteristics of the typical daily load of the port, so as to achieve the optimal configuration of the multi-energy system and improve the economy of the port's comprehensive energy system;

[0113] Specifically, the objective function in the optimization configuration model adopts:

[0114]

[0115] Among them, T is the total time of the plan scheduling; Cost min Cost is the minimum cost. grid P is the cost of purchasing electricity from the power grid; t GRID is the amount of electricity traded by the power grid at time t; price t Cost is the electricity purchase price corresponding to time t; e Maintenance costs for new energy equipment; are the outputs of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device at time t, γ H , γ WT , γ PV are the operation and maintenance cost coefficients of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device; Cost cut P is the cost of curtailing wind and solar power; WT,f,t , P WT,r,t are the predicted wind power output and actual wind power output of the wind turbine at time t, respectively, WT is the wind abandonment cost coefficient; P PV,f,t , P PV,r,t are the predicted power output and actual power output of photovoltaic at time t, λ PV Cost is the cost coefficient of abandoned light; ehc is the cost of the energy storage device, r and n are the depreciation rate and depreciation period; is the charging and discharging power and power consumption of the energy storage device at time t; α ehc is the unit capacity cost coefficient; μ ehc is the operation and maintenance cost coefficient; θ ehc Cost is the energy loss cost coefficient; C is the carbon emission cost, c is the carbon emission cost processing coefficient per unit of electricity;

[0116] Specifically, the constraints in the optimization configuration model are:

[0117]

[0118] Among them, P L,t is the electrical load at time t; is the maximum power output of the power grid; P t H represents the output power of the water electrolysis hydrogen production device at time t, η H represents the conversion efficiency of hydrogen production by water electrolysis, P H,max is the maximum working power of the hydrogen storage tank; is the maximum charging and discharging power of the energy storage device; S min , S max are the upper and lower limit values ​​of the planned energy storage capacity respectively; S is the rated capacity of the energy storage; They are the minimum and maximum values ​​of energy storage capacity satisfied when charging and discharging energy storage power under rated energy storage capacity; Respectively represent the energy storage capacity at time t=1 and time t=24;

[0119] The complementary constraint of energy storage limits the unification of energy storage state, and the energy storage system can only be in the state of charging or discharging at the same time; represents the energy release power of the energy storage system at time t, represents the charging power of the energy storage system, It means that the energy storage capacity returns to the initial value after 24 hours of operation.

[0120] Specifically, the particle swarm optimization algorithm (PSO) is a random search algorithm based on bionics theory, which simulates the predation behavior of bird flocks. In this algorithm, each particle in the space is a potential optimal solution, corresponds to a fitness, can be evaluated by the fitness function, i.e., the objective function, and has a current position value and speed value. In the overall process of the PSO algorithm, a group of particles of appropriate size are first randomly generated, and then an iterative search is performed according to a certain number of iterations. Each particle has two aspects of guidance, one is the historical optimal solution of each particle itself, and the other is the global optimal solution of all particles. Under the guidance of these two optimal solutions, each particle continuously updates its speed and position until the optimal solution is found. Among them, the speed and position updates are determined by the inertia weight, the individual current optimal solution, and the global current optimal solution, and the expression is as follows:

[0121]

[0122] Among them, c1 and c2 represent a factor of the particle learning process, that is, the acceleration constant; r1 and r2 represent random numbers, whose range is [0,1], and the goal is to increase the random characteristics of particle flight; w represents the inertia weight, v ij (t+1), v ij (t) represents the velocity of the particle at time t+1 and time t, x ij (t+1), xij (t) represents the position of the particle at time t+1 and time t; p ij (t) represents the optimal position of an individual particle from the start of the search, p gi (t) represents the overall optimal position found by the particle swarm since the search.

[0123] Therefore, the algorithm can integrate the guidance of global optimization particles and individual optimization particles, refer to the experience of individual particles, and combine the historical information of particle groups, balance the ability relationship between local search and global optimization, and effectively find the optimal solution. In this scheme, based on the particle swarm optimization algorithm, a solution is proposed for the optimal configuration of the green port multi-energy system. The optimization process is as follows: Figure 2 shown.

[0124] Specifically, the step S3 adopts:

[0125] Step S3.1: Initialize the particle swarm optimization variables, including time-sharing grid output power, energy storage charging and discharging power, new energy output power, shore power exchange power and other variables, and determine the capacity of the power storage device and hydrogen storage device and the upper and lower boundary values ​​of the charging and discharging power, the upper and lower boundary values ​​of the shore power system power exchange, and the maximum value of the grid output;

[0126] Step S3.2: Randomly assign positions and velocities to each particle and set the objective function, i.e., the objective function of the total economic cost of the port multi-energy system;

[0127] Step S3.3: Obtain the individual optimal index based on the objective function, and obtain the global optimal value among all individual optimal values; update the position and speed of the particle swarm under the given constraints, compare the updated economic fitness value with the historical economic fitness value, determine the better fitness value, and compare the individual optimal value and the global optimal value of all economic indicators, and update the current economic global optimal value;

[0128] Step S3.4: Determine whether the objective function value has reached the optimum. If it has not reached the optimum, repeatedly trigger steps S3.2 to S3.3 until the objective function value reaches the optimum, output the optimal objective function, and determine the optimal configuration capacity of the multi-energy system.

[0129] According to the present invention, a hydrogen energy storage optimization configuration system for a green port shore power system is provided. Figure 1 As shown, the electric load demand can be supplied by the power grid, wind power, and photovoltaic power. The electric-hydrogen hybrid energy storage system is affected by the load demand and the power price of the power grid in real time, and can be used as a power generation source or as a power load.

[0130] Specifically, it includes:

[0131] Module M1: Configure hydrogen energy in the port's integrated energy system to form a multi-energy hybrid energy storage system;

[0132] Module M2: Establish an optimization configuration model for the green port multi-energy system, comprehensively consider the characteristics of port energy supply and demand, time-of-use electricity prices and other factors, and realize the effective use of hydrogen energy storage in the port energy system;

[0133] Module M3: Use the particle swarm optimization algorithm to optimize and solve the optimization configuration model to obtain the optimal configuration solution;

[0134] The optimization configuration model is established on the basis of the multi-energy system of the green port with hydrogen energy storage proposed by the present invention, including the economic cost objective function and various constraints. The economic objective function includes the power purchase cost of the power grid, the maintenance cost of new energy equipment, the cost of abandoned wind and solar power, the energy storage cost, and the carbon emission cost. The constraints include power balance constraints, energy storage constraints, public power grid constraints, and new energy system constraints. The function is to find the optimal configuration capacity for the multi-energy system of the green port with hydrogen energy storage. Finally, economic indicators can be used to effectively evaluate the economic costs of each part of the model.

[0135] Specifically, the multi-energy hybrid energy storage system includes: a wind power generation system, a photovoltaic power generation system, an electricity storage device and a hydrogen storage device;

[0136] The wind power generation system adopts: Wind power generation power specifically refers to the wind energy flowing vertically through the wind sweeping cross-sectional area per unit time. Wind power generation power is related to relevant parameters such as air density, wind energy utilization and cross-sectional area of ​​power generation equipment, and has a nonlinear relationship with ambient wind speed;

[0137]

[0138] Among them, W PT,t is the wind power generation at time t; ρ is the air density; C p is the wind energy conversion coefficient; v t is the wind speed at time t; S is the wind sweeping cross-sectional area of ​​the wind turbine;

[0139] The photovoltaic power generation system adopts:

[0140]

[0141] Among them, P PV Indicates the real-time power output of the photovoltaic panel; V N and I PV are the rated voltage and rated current of the photovoltaic panel respectively; P VN is the rated power of the photovoltaic panel, K T is the temperature coefficient, T n is the standard temperature, Gn is the standard irradiance, T e , G e The working environment temperature and irradiance of the photovoltaic panel at this moment;

[0142] The power storage device adopts:

[0143]

[0144] Where: δ is the self-leakage rate of the power storage system; E ehc (t), E ehc (t-1) are the remaining power of the power storage system at time t and time t-1 respectively; η char , η dis are the charging and discharging efficiencies of the battery respectively; P char (t), P dis (t) are the total charging and discharging power of the power storage system in the tth time period; Δt is the measurement period;

[0145] The hydrogen storage device adopts:

[0146] First, the water electrolysis hydrogen production device converts electrical energy into hydrogen energy and stores it in a hydrogen storage tank, which is expressed as:

[0147]

[0148] Among them, P t H and are the output power and input power of the water electrolysis hydrogen production device at time t, η H The conversion efficiency of hydrogen production by water electrolysis;

[0149] The hydrogen storage level of the hydrogen storage tank is The calculation formula is:

[0150]

[0151] in, is the storage amount of hydrogen at time t0; is the production of hydrogen at time t; is the hydrogen consumption at time t.

[0152] Specifically, the present invention constructs an economic objective function that comprehensively considers the power purchase cost of the power grid, the maintenance cost of new energy equipment, the cost of wind and solar power abandonment, the energy storage cost, and the carbon emission cost, based on the demand characteristics of the typical daily load of the port, so as to achieve the optimal configuration of the multi-energy system and improve the economy of the port's comprehensive energy system;

[0153] Specifically, the objective function in the optimization configuration model adopts:

[0154]

[0155] Among them, T is the total time of the plan scheduling; Cost min Cost is the minimum cost. grid P is the cost of purchasing electricity from the power grid; t GRID is the amount of electricity traded by the power grid at time t; price t Cost is the electricity purchase price corresponding to time t; e Maintenance costs for new energy equipment; are the outputs of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device at time t, γ H , γ WT , γ PV are the operation and maintenance cost coefficients of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device; Cost cut P is the cost of curtailing wind and solar power; WT,f,t , P WT,r,t are the predicted wind power output and actual wind power output of the wind turbine at time t, respectively, WT is the wind abandonment cost coefficient; P PV,f,t , P PV,r,t are the predicted power output and actual power output of photovoltaic at time t, λ PV Cost is the cost coefficient of abandoned light; ehc is the cost of the energy storage device, r and n are the depreciation rate and depreciation period; is the charging and discharging power and power consumption of the energy storage device at time t; α ehc is the unit capacity cost coefficient; μ ehc is the operation and maintenance cost coefficient; θ ehc Cost is the energy loss cost coefficient; C is the carbon emission cost, c is the carbon emission cost processing coefficient per unit of electricity;

[0156] Specifically, the constraints in the optimization configuration model are:

[0157]

[0158] Among them, P L,t is the electrical load at time t; is the maximum power output of the power grid; P t H represents the output power of the water electrolysis hydrogen production device at time t, η H represents the conversion efficiency of hydrogen production by water electrolysis, P H,max is the maximum working power of the hydrogen storage tank; is the maximum charging and discharging power of the energy storage device; S min , S maxare the upper and lower limit values ​​of the planned energy storage capacity respectively; S is the rated capacity of the energy storage; They are the minimum and maximum values ​​of energy storage capacity satisfied when charging and discharging energy storage power under rated energy storage capacity; Respectively represent the energy storage capacity at time t=1 and time t=24;

[0159] The complementary constraint of energy storage limits the unification of energy storage state, and the energy storage system can only be in the state of charging or discharging at the same time; represents the energy release power of the energy storage system at time t, represents the charging power of the energy storage system, It means that the energy storage capacity returns to the initial value after 24 hours of operation.

[0160] Specifically, the particle swarm optimization algorithm (PSO) is a random search algorithm based on bionics theory, which simulates the predation behavior of bird flocks. In this algorithm, each particle in the space is a potential optimal solution, corresponds to a fitness, can be evaluated by the fitness function, i.e., the objective function, and has a current position value and speed value. In the overall process of the PSO algorithm, a group of particles of appropriate size are first randomly generated, and then an iterative search is performed according to a certain number of iterations. Each particle has two aspects of guidance, one is the historical optimal solution of each particle itself, and the other is the global optimal solution of all particles. Under the guidance of these two optimal solutions, each particle continuously updates its speed and position until the optimal solution is found. Among them, the speed and position updates are determined by the inertia weight, the individual current optimal solution, and the global current optimal solution, and the expression is as follows:

[0161]

[0162] Among them, c1 and c2 represent a factor of the particle learning process, that is, the acceleration constant; r1 and r2 represent random numbers, whose range is [0,1], and the goal is to increase the random characteristics of particle flight; w represents the inertia weight, v ij (t+1), v ij (t) represents the velocity of the particle at time t+1 and time t, x ij (t+1), x ij (t) represents the position of the particle at time t+1 and time t; p ij (t) represents the optimal position of an individual particle from the start of the search, p gi (t) represents the overall optimal position found by the particle swarm since the search.

[0163] Therefore, the algorithm can integrate the guidance of global optimization particles and individual optimization particles, refer to the experience of individual particles, and combine the historical information of particle groups, balance the ability relationship between local search and global optimization, and effectively find the optimal solution. In this scheme, based on the particle swarm optimization algorithm, a solution is proposed for the optimal configuration of the green port multi-energy system. The optimization process is as follows: Figure 2 shown.

[0164] Specifically, the module M3 adopts:

[0165] Module M3.1: Initialize the particle swarm optimization variables, including the time-sharing power output of the power grid, the energy storage charging and discharging power, the new energy output power, the shore power exchange power and other variables, and determine the capacity of the power storage device and hydrogen storage device and the upper and lower boundary values ​​of the charging and discharging power, the upper and lower boundary values ​​of the shore power system power exchange, and the maximum value of the power grid output;

[0166] Module M3.2: Randomly assign positions and velocities to each particle and set the objective function, i.e., the objective function of the total economic cost of the port multi-energy system;

[0167] Module M3.3: Obtain the individual optimal index based on the objective function, and obtain the global optimal value among all individual optimal values; update the position and speed of the particle swarm under given constraints, compare the updated economic fitness value with the historical economic fitness value, determine the better fitness value, and compare the individual optimal value and the global optimal value of all economic indicators, and update the current economic global optimal value;

[0168] Module M3.4: Determine whether the objective function value has reached the optimum. If it has not reached the optimum, repeatedly trigger modules M3.2 to M3.3 until the objective function value reaches the optimum, output the optimal objective function, and determine the optimal configuration capacity of the multi-energy system.

[0169] Example 2

[0170] Embodiment 2 is a preferred embodiment of Embodiment 1

[0171] Take the typical day wind power output and photovoltaic output and power load demand data of a port as an example. Energy storage batteries and hydrogen storage tanks are used as energy storage planning objects, with wind turbine rated power of 17.5MW, photovoltaic rated power of 15MW, electrolysis hydrogen rated power of 7MW, maximum charge and discharge power of energy storage system of 5MW, and maximum capacity of energy storage system of 200MW. The electricity price implements the time-of-use electricity price scheme, and the "peak-flat-valley" time-of-use electricity prices are 1.08 yuan / kWh, 0.73 yuan / kWh, and 0.36 yuan / kWh respectively.

[0172] In response to peak and valley electricity prices, hybrid energy storage devices can participate in grid dispatching in a "low storage and high generation" mode to reduce electricity purchase costs. During peak load periods, the stored hydrogen and electricity can ease the power supply pressure on the grid. During periods of high wind and solar power abandonment, energy storage devices can give priority to absorbing wind and solar resources and store excess energy in the form of electricity or hydrogen to reduce wind and solar power abandonment costs and ensure power quality.

[0173] In order to illustrate the effectiveness of this scheme, the economic feasibility of two configuration methods of energy storage in the port integrated energy system is analyzed and compared.

[0174] Strategy 1: The port integrated energy system is not equipped with energy storage devices;

[0175] Strategy 2: The port’s integrated energy system is equipped with an electric-hydrogen hybrid energy storage device for system optimization.

[0176] The optimization analysis results are shown in Table 1. The output of the port integrated energy system equipped with electric-hydrogen hybrid energy storage is as follows: Figure 3 , Figure 4 , Figure 5 shown.

[0177] Table 1 Typical day economic optimization analysis of port integrated energy system

[0178]

[0179] From the data in the table, it can be concluded that the economic cost of hydrogen storage is better than that of electricity storage under the same conditions, and the electric-hydrogen hybrid energy storage configuration scheme is the most economical, with its total cost economic efficiency increased by 19.1%. Therefore, the optimized configuration scheme based on electric-hydrogen hybrid energy storage further improves the economic and environmental benefits of the green port comprehensive energy system.

[0180] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.

[0181] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A hydrogen energy storage optimization configuration method for a green port shore power system, characterized in that: include: Step S1: configuring hydrogen energy in the port integrated energy system to form a multi-energy hybrid energy storage system; Step S2: Establishing an optimization configuration model for the green port multi-energy system; Step S3: Optimize and solve the optimization configuration model using a particle swarm optimization algorithm to obtain the optimal configuration solution; The optimization configuration model is based on the multi-energy system of the green port containing hydrogen energy storage, and according to the preset objective function and preset constraints, finds the optimal configuration capacity for the multi-energy system of the green port containing hydrogen energy storage; The objective function in the optimization configuration model is: Among them, T is the total time of the plan scheduling; Cost min Cost is the minimum cost. grid P is the cost of purchasing electricity from the power grid; t GRID is the amount of electricity traded by the power grid at time t; price t Cost is the electricity purchase price corresponding to time t; e Maintenance costs for new energy equipment; are the outputs of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device at time t, γ H , γ WT , γ PV are the operation and maintenance cost coefficients of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device; Cost cut P is the cost of curtailing wind and solar power; WT,f,t , P WT,r,t are the predicted wind power output and actual wind power output of the wind turbine at time t, respectively, WT is the wind abandonment cost coefficient; P PV,f,t , P PV,r,t are the predicted power output and actual power output of photovoltaic at time t, λ PV Cost is the cost coefficient of abandoned light; ehc is the cost of the energy storage device, r and n are the depreciation rate and depreciation period; P t ehc , is the charging and discharging power and power consumption of the energy storage device at time t; s ehc is the rated capacity of energy storage; α ehc is the unit capacity cost coefficient; μ ehc is the operation and maintenance cost coefficient; θ ehc Cost is the energy loss cost coefficient; C is the carbon emission cost, and c is the carbon emission cost processing coefficient per unit of electricity.

2. The hydrogen energy storage optimization configuration method for green port shore power system according to claim 1 is characterized in that: The multi-energy hybrid energy storage system includes: a wind power generation system, a photovoltaic power generation system, an electricity storage device and a hydrogen storage device; The wind power generation system adopts: Among them, W PT,t is the wind power generation at time t; ρ is the air density; C p is the wind energy conversion coefficient; v t is the wind speed at time t; S is the wind sweeping cross-sectional area of ​​the wind turbine; The photovoltaic power generation system adopts: Among them, P PV Indicates the real-time power output of the photovoltaic panel; V N and I PV are the rated voltage and rated current of the photovoltaic panel respectively; P VN is the rated power of the photovoltaic panel, K T is the temperature coefficient, T n is the standard temperature, G n is the standard irradiance, T e , G e The working environment temperature and irradiance of the photovoltaic panel at this moment; The power storage device adopts: Where: δ is the self-leakage rate of the power storage system; E ehc (t), E ehc (t-1) are the remaining power of the power storage system at time t and time t-1 respectively; η char , η dis are the charging and discharging efficiencies of the battery respectively; P char (t), P dis (t) are the total charging and discharging power of the power storage system in the tth time period; Δt is the measurement period; The hydrogen storage device adopts: First, the water electrolysis hydrogen production device converts electrical energy into hydrogen energy and stores it in a hydrogen storage tank, which is expressed as: Among them, P t H is the output power of the water electrolysis hydrogen production device at time t, η H The conversion efficiency of water electrolysis to produce hydrogen; The hydrogen storage level of the hydrogen storage tank is The calculation formula is: in, is the storage amount of hydrogen at time t0; is the production of hydrogen at time t; is the hydrogen consumption at time t.

3. The hydrogen energy storage optimization configuration method for green port shore power system according to claim 1 is characterized in that: The constraints in the optimization configuration model are: Among them, P L,t is the electrical load at time t; is the maximum power output of the power grid; P t H represents the output power of the water electrolysis hydrogen production device at time t, η H represents the conversion efficiency of hydrogen production by water electrolysis, P H,max is the maximum working power of the hydrogen storage tank; is the maximum charging and discharging power of the energy storage device; S min , S max are the upper and lower limit values ​​of energy storage planning capacity respectively; s ehc is the rated capacity of energy storage; They are the minimum and maximum values ​​of energy storage capacity satisfied when charging and discharging energy storage power under rated energy storage capacity; Respectively represent the energy storage capacity at time t=1 and time t=24; The complementary constraint of energy storage limits the unification of energy storage state, and the energy storage system can only be in the state of charging or discharging at the same time; represents the energy release power of the energy storage system at time t, represents the charging power of the energy storage system, It means that the energy storage capacity returns to the initial value after 24 hours of operation.

4. The hydrogen energy storage optimization configuration method for green port shore power system according to claim 1 is characterized in that: The step S3 adopts: Step S3.1: Initialize the particle swarm optimization variables, including time-sharing grid output power, energy storage charging and discharging power, new energy output power, shore power exchange power and other variables, and determine the capacity of the power storage device and hydrogen storage device and the upper and lower boundary values ​​of the charging and discharging power, the upper and lower boundary values ​​of the shore power system power exchange, and the maximum value of the grid output; Step S3.2: Randomly assign positions and velocities to each particle and set the objective function; Step S3.3: Obtain the individual optimal index based on the objective function, and obtain the global optimal value among all the individual optimal values; Step S3.4: Determine whether the objective function value has reached the optimum. If it has not reached the optimum, repeatedly trigger steps S3.2 to S3.3 until the objective function value reaches the optimum, output the optimal objective function, and determine the optimal configuration capacity of the multi-energy system.

5. A hydrogen energy storage optimization configuration system for green port shore power system, characterized in that: include: Module M1: Configure hydrogen energy in the port's integrated energy system to form a multi-energy hybrid energy storage system; Module M2: Establishing an optimization configuration model for green port multi-energy systems; Module M3: Use the particle swarm optimization algorithm to optimize and solve the optimization configuration model to obtain the optimal configuration solution; The optimization configuration model is based on the multi-energy system of the green port containing hydrogen energy storage, and according to the preset objective function and preset constraints, finds the optimal configuration capacity for the multi-energy system of the green port containing hydrogen energy storage; The objective function in the optimization configuration model is: Among them, T is the total time of the plan scheduling; Cost min Cost is the minimum cost. grid P is the cost of purchasing electricity from the power grid; t GRID is the amount of electricity traded by the power grid at time t; price t Cost is the electricity purchase price corresponding to time t; e Maintenance costs for new energy equipment; are the outputs of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device at time t, γ H , γ WT , γ PV are the operation and maintenance cost coefficients of the electrolytic hydrogen production device, wind power generation device, and photovoltaic power generation device; Cost cut P is the cost of curtailing wind and solar power; WT,f,t , P WT,r,t are the predicted wind power output and actual wind power output of the wind turbine at time t, respectively, WT is the wind abandonment cost coefficient; P PV,f,t , P PV,r,t are the predicted power output and actual power output of photovoltaic at time t, λ PV Cost is the cost coefficient of abandoned light; ehc is the cost of the energy storage device, r and n are the depreciation rate and depreciation period; P t ehc , is the charging and discharging power and power consumption of the energy storage device at time t; s ehc is the rated capacity of energy storage; α ehc is the unit capacity cost coefficient; μ ehc is the operation and maintenance cost coefficient; θ ehc Cost is the energy loss cost coefficient; C is the carbon emission cost, c is the carbon emission cost processing coefficient per unit of electricity; 6. The hydrogen energy storage optimization configuration system for green port shore power system according to claim 5 is characterized in that: The multi-energy hybrid energy storage system includes: a wind power generation system, a photovoltaic power generation system, an electricity storage device and a hydrogen storage device; The wind power generation system adopts: Among them, W PT,t is the wind power generation at time t; ρ is the air density; C p is the wind energy conversion coefficient; v t is the wind speed at time t; S is the wind sweeping cross-sectional area of ​​the wind turbine; The photovoltaic power generation system adopts: Among them, P PV Indicates the real-time power output of the photovoltaic panel; V N and I PV are the rated voltage and rated current of the photovoltaic panel respectively; P VN is the rated power of the photovoltaic panel, K T is the temperature coefficient, T n is the standard temperature, G n is the standard irradiance, T e , G e The working environment temperature and irradiance of the photovoltaic panel at this moment; The power storage device adopts: Where: δ is the self-leakage rate of the power storage system; E ehc (t), E ehc (t-1) are the remaining power of the power storage system at time t and time t-1 respectively; η char , η dis are the charging and discharging efficiencies of the battery respectively; P char (t), P dis (t) are the total charging and discharging power of the power storage system in the tth time period; Δt is the measurement period; The hydrogen storage device adopts: First, the water electrolysis hydrogen production device converts electrical energy into hydrogen energy and stores it in a hydrogen storage tank, which is expressed as: Among them, P t H is the output power of the water electrolysis hydrogen production device at time t, η H The conversion efficiency of water electrolysis to produce hydrogen; The hydrogen storage level of the hydrogen storage tank is The calculation formula is: in, is the storage amount of hydrogen at time t0; is the production of hydrogen at time t; is the hydrogen consumption at time t.

7. The hydrogen energy storage optimization configuration system for green port shore power system according to claim 5 is characterized in that: The constraints in the optimization configuration model are: Among them, P L,t is the electrical load at time t; is the maximum power output of the power grid; P t H represents the output power of the water electrolysis hydrogen production device at time t, η H represents the conversion efficiency of hydrogen production by water electrolysis, P H,max is the maximum working power of the hydrogen storage tank; is the maximum charging and discharging power of the energy storage device; S min , S max are the upper and lower limit values ​​of energy storage planning capacity respectively; s eh c is the rated capacity of energy storage; They are the minimum and maximum values ​​of energy storage capacity satisfied when charging and discharging energy storage power under rated energy storage capacity; Respectively represent the energy storage capacity at time t=1 and time t=24; The complementary constraint of energy storage limits the unification of energy storage state, and the energy storage system can only be in the state of charging or discharging at the same time; represents the energy release power of the energy storage system at time t, represents the charging power of the energy storage system, It means that the energy storage capacity returns to the initial value after 24 hours of operation.

8. The hydrogen energy storage optimization configuration system for green port shore power system according to claim 5 is characterized in that: The module M3 adopts: Module M3.1: Initialize the particle swarm optimization variables, including the time-sharing power output of the power grid, the energy storage charging and discharging power, the new energy output power, the shore power exchange power and other variables, and determine the capacity of the power storage device and hydrogen storage device and the upper and lower boundary values ​​of the charging and discharging power, the upper and lower boundary values ​​of the shore power system power exchange, and the maximum value of the power grid output; Module M3.2: Randomly assign positions and velocities to each particle and set the objective function; Module M3.3: Obtain the individual optimal index based on the objective function, and obtain the global optimal value among all the individual optimal values; Module M3.4: Determine whether the objective function value has reached the optimum. If it has not reached the optimum, repeatedly trigger modules M3.2 to M3.3 until the objective function value reaches the optimum, output the optimal objective function, and determine the optimal configuration capacity of the multi-energy system.