Power distribution method and device for electricity-hydrogen hybrid energy storage system in micro-grid and medium

By combining variational mode decomposition algorithm, gray wolf algorithm and improved genetic algorithm in the microgrid, optimizing the power distribution of electrochemical energy storage systems and hydrogen energy storage systems, the inflexible power distribution of energy storage systems in the prior art is solved. The problem has improved the overall performance of the power system and the stability of the equipment.

CN118971085AActive Publication Date: 2024-11-15FOSHAN XIANHU LAB
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411032641.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-11-15
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

The existing power distribution methods of energy storage systems lack flexibility and efficiency, and fail to fully consider the real-time operating status of energy storage equipment, such as the SOC value of electrochemical energy storage equipment and the SOH value of hydrogen energy storage equipment, resulting in insufficient power distribution. Flexible and difficult to achieve optimal performance of power systems.

Method used

A power distribution method of electric hydrogen hybrid energy storage system in microgrid is adopted. By obtaining the current operating power, SOC value and SOH value, the variational modal decomposition algorithm and the gray wolf algorithm are used for power decomposition, and combined with improved genetic algorithm, With the goal of minimizing operating costs, optimize the charging and discharging power distribution of electrochemical energy storage systems and hydrogen energy storage systems, and determine protection strategies to adjust the SOC status.

Benefits of technology

It realizes flexible and efficient power distribution of electric and hydrogen hybrid energy storage systems, meets the energy needs of different scenarios of the microgrid, improves overall performance, extends the life of lithium batteries, and reduces the frequent start-up of hydrogen energy storage systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118971085A_ABST
    Figure CN118971085A_ABST
Patent Text Reader

Abstract

The invention discloses a power distribution method and device for an electricity-hydrogen hybrid energy storage system in a micro-grid and a medium, the electricity-hydrogen hybrid energy storage system comprises an electrochemical energy storage system and a hydrogen energy storage system, and the method comprises the following steps: decomposing the current operation power of the micro-grid meeting a set requirement into a to-be-stabilized power and a grid-connected power required for controlling grid connection of the micro-grid; with the purpose of minimizing the operation cost, combining the current SOC value of the electrochemical energy storage system and the current SOH value of the hydrogen energy storage system, distributing the power to be stabilized into first optimal charging and discharging power required for controlling the operation of the electrochemical energy storage system and second optimal charging and discharging power required for controlling the operation of the hydrogen energy storage system; and adjusting the SOC state of the electrochemical energy storage system according to a protection strategy determined by the to-be-stabilized power, the preset SOC working range of the electrochemical energy storage system and the current SOC value while controlling the overall operation state of the micro-grid. According to the invention, the energy requirements of the micro-grid in different scenes can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of microgrids, and in particular to a power distribution method, equipment and medium for an electric-hydrogen hybrid energy storage system in a microgrid. Background Art

[0002] In the new power system with renewable energy as the main body, the use of various energy storage technologies (such as electrochemical energy storage technology, hydrogen energy storage technology, etc.) can enhance the flexibility and stability of the power grid, solve the problems of intermittent and unstable renewable energy such as wind power, improve energy utilization efficiency and reduce energy waste.

[0003] During the operation of the power system, it is necessary to flexibly allocate power to different types of energy storage devices according to the real-time energy demand. However, the existing power allocation method of the energy storage system is usually based on simple rules or static strategies, such as fixed ratio allocation or priority-based allocation, which does not fully consider the real-time operating status of the energy storage equipment, such as the SOC value of the electrochemical energy storage device and the SOH value of the hydrogen energy storage device. As a result, the power allocation is not flexible and efficient enough, and it is difficult to optimize the overall performance of the power system. Summary of the invention

[0004] The present invention provides a power distribution method, device and medium for an electric-hydrogen hybrid energy storage system in a microgrid to solve one or more technical problems existing in the prior art and at least provide a beneficial option or create conditions.

[0005] In a first aspect, a power distribution method for an electric-hydrogen hybrid energy storage system in a microgrid is provided, wherein the electric-hydrogen hybrid energy storage system includes an electrochemical energy storage system and a hydrogen energy storage system, and the method includes:

[0006] Obtaining the current operating power of the microgrid, the current SOC value of the electrochemical energy storage system, and the current SOH value of the hydrogen energy storage system;

[0007] When the absolute value of the current operating power is greater than a preset power threshold, the current operating power is decomposed according to the grid connection demand to obtain the grid connection power and the power to be smoothed;

[0008] With the goal of minimizing the operating cost, the power to be smoothed is allocated in combination with the current SOC value and the current SOH value to obtain a first optimal charge and discharge power of the electrochemical energy storage system and a second optimal charge and discharge power of the hydrogen energy storage system;

[0009] Determining a protection strategy according to the power to be smoothed and a preset SOC operating range and a current SOC value of the electrochemical energy storage system;

[0010] Control the microgrid to be connected to the grid according to the grid-connected power, control the electrochemical energy storage system to operate according to the first optimal charge and discharge power, control the hydrogen energy storage system to operate according to the second optimal charge and discharge power, and adjust the SOC state of the electrochemical energy storage system according to the protection strategy.

[0011] Furthermore, the current operating power of the microgrid is obtained by:

[0012] The power generation power of the photovoltaic system in the microgrid and the power consumption power of the DC load in the microgrid are obtained, and the difference between the power generation power and the power consumption power is used as the current operating power of the microgrid.

[0013] Furthermore, the decomposing the current operating power according to the grid connection demand to obtain the grid connection power and the power to be smoothed includes:

[0014] The current operating power is processed using a variational modal decomposition algorithm, and during the processing, the modal decomposition number and penalty factor required by the variational modal decomposition algorithm are optimized using a gray wolf algorithm to obtain a plurality of optimal modal components;

[0015] Dividing the plurality of optimal modal components according to grid connection requirements to obtain a plurality of low-frequency optimal modal components and a plurality of high-frequency optimal modal components;

[0016] synthesizing the multiple low-frequency optimal modal components to obtain grid-connected power;

[0017] The multiple high-frequency optimal modal components are synthesized to obtain the power to be smoothed.

[0018] Furthermore, the goal of minimizing the operating cost is to allocate the power to be smoothed in combination with the current SOC value and the current SOH value to obtain the first optimal charge and discharge power of the electrochemical energy storage system and the second optimal charge and discharge power of the hydrogen energy storage system, including:

[0019] Determine the fitness function with the goal of minimizing the operating cost;

[0020] Taking the first charge and discharge power of the electrochemical energy storage system and the second charge and discharge power of the hydrogen energy storage system as target variables to be optimized;

[0021] Determining a power balance constraint condition according to the target variable and the power to be leveled;

[0022] Determining an SOC constraint condition according to the target variable and the current SOC value;

[0023] Determining a SOH constraint condition according to the target variable and the current SOH value;

[0024] According to the fitness function, the power balance constraint, the SOC constraint and the SOH constraint, an improved genetic algorithm is used to iteratively optimize the target variable, and an adaptive probability function is introduced in each iteration process to perform crossover and mutation operations to obtain a first optimal charge and discharge power of the electrochemical energy storage system and a second optimal charge and discharge power of the hydrogen energy storage system.

[0025] Furthermore, the power balance constraint condition includes: limiting the sum of the first charge and discharge power of the electrochemical energy storage system and the second charge and discharge power of the hydrogen energy storage system to be the power to be smoothed.

[0026] Furthermore, the operating cost is solved by the following expression:

[0027]

[0028] In the formula, C use is the operating cost, is the unit power cost of the electrochemical energy storage system, is the unit capacity cost of the electrochemical energy storage system, is the unit power cost of the hydrogen energy storage system, is the unit capacity cost of the hydrogen energy storage system, T s is the sampling period, P ba_set (t) is the first charge and discharge power of the electrochemical energy storage system, P he_set (t) is the second charging and discharging power of the hydrogen energy storage system.

[0029] Furthermore, the preset SOC operating range of the electrochemical energy storage system is composed of a high SOC range, a normal SOC range and a low SOC range, and the protection strategy is determined according to the power to be smoothed and the preset SOC operating range and the current SOC value of the electrochemical energy storage system, including:

[0030] When the power to be smoothed is greater than zero and the current SOC value falls within the high SOC range, determining a protection strategy as follows: controlling the electrochemical energy storage system to discharge until the SOC value drops to the normal SOC range, and supplying the electric energy generated by the electrochemical energy storage system to the hydrogen energy storage system;

[0031] When the power to be smoothed is less than zero and the current SOC value falls within the low SOC range, the protection strategy is determined as: controlling the electrochemical energy storage system to charge until the SOC value rises to the normal SOC range, and the electric energy required by the electrochemical energy storage system is provided by the hydrogen energy storage system.

[0032] Furthermore, the method also includes: when the absolute value of the current operating power is less than or equal to a preset power threshold, maintaining the operating state of the microgrid unchanged.

[0033] In a second aspect, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid as described in the first aspect.

[0034] In a third aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid as described in the first aspect is implemented.

[0035] The present invention has at least the following beneficial effects: by using the variational mode decomposition algorithm optimized by the gray wolf algorithm to reasonably decompose the current operating power of the microgrid, the missing of important frequency characteristic information can be avoided. By fully considering the SOC value of the electrochemical energy storage system and the SOH value of the hydrogen energy storage system, the power to be smoothed of the electric-hydrogen hybrid energy storage system is flexibly and efficiently allocated, and in this process, an improved genetic algorithm is introduced and the power allocation accuracy is improved with the minimization of operating costs as the optimization goal, so as to maximize the energy demand of the microgrid in different scenarios, so that the overall performance of the microgrid is optimized. By enabling the protection strategy while adjusting the overall operating state of the microgrid, the real-time SOC value of the electrochemical energy storage system is always within the normal SOC range to maintain the life and working stability of the lithium battery as much as possible, and at the same time, the frequent startup of the PEM electrolyzer and hydrogen fuel cell in the hydrogen energy storage system can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0037] Figure 1 is a schematic diagram of the composition of a microgrid in an embodiment of the present invention;

[0038] Figure 2 It is a flow chart of a power distribution method of an electric-hydrogen hybrid energy storage system in a microgrid in an embodiment of the present invention;

[0039] Figure 3 It is a schematic diagram of the hardware structure of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0041] It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that in the flowchart. The terms "first", "second", etc. in the specification and claims and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0043] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0044] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all content and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0045] First, some of the terms involved in the present invention are explained as follows:

[0046] The variational mode decomposition (VMD) algorithm is an adaptive signal decomposition method that can decompose a time series data into multiple intrinsic mode functions (IMFs) with specific center frequencies and specific bandwidths. Each IMF can be regarded as an oscillation mode of the original signal, and they together constitute a complete representation of the original signal.

[0047] Grey Wolf Optimizer (GWO) is an optimization algorithm inspired by the behavior of grey wolves in nature. It mainly simulates the social hierarchy and hunting strategy of grey wolf groups. Grey wolf groups are divided into four roles: wolf leader (Alpha), wolf deputy (Beta), wolf advisor (Delta), and worker wolf (Omega). This hierarchical structure helps the grey wolf group organize hunting and resource allocation in an efficient way. In the algorithm, the wolf leader represents the optimal solution, the wolf deputy represents the second-best solution, and the wolf advisor represents the third-best solution. The worker wolves follow the guidance of these leaders to explore the search space. The operation process of the entire algorithm mainly refers to the collaborative hunting method of the grey wolf group, and gradually approaches the optimal solution by tracking, encircling, and attacking prey.

[0048] Genetic Algorithm (GA) is a type of optimization algorithm that simulates biological evolution to find the optimal solution. It mainly relies on the mechanisms of inheritance, mutation and natural selection to perform efficient iterative search for problem solutions. The basic idea of ​​the entire algorithm is to represent the solution of the problem as multiple different individuals, and then evaluate the adaptability of each individual and determine its probability in reproduction according to the definition of the fitness function. After operations such as crossover and mutation, the new individual replaces the original individual and continues to compete with other generated individuals. This process is continuously iterated until the optimal solution is found or the upper limit of the number of iterations is reached.

[0049] Please refer to Figure 1 , Figure 1 It is a schematic diagram of the composition of a microgrid in an embodiment of the present invention. The microgrid specifically includes an energy router, a DC bus, and a photovoltaic system, an electric-hydrogen hybrid energy storage system and a DC load connected to the DC bus via the energy router. The electric-hydrogen hybrid energy storage system includes a hydrogen energy storage system and an electrochemical energy storage system. The hydrogen energy storage system includes a PEM (Proton Exchange Membrane) electrolyzer, a hydrogen storage tank and a hydrogen fuel cell. Lithium batteries are generally used in the electrochemical energy storage system.

[0050] Basically, the energy router includes a first DC / DC converter, a second DC / DC converter, a third DC / DC converter, a fourth DC / DC converter, a bidirectional DC / DC converter and a bidirectional DC / AC converter. The photovoltaic system is connected to the DC bus through the first DC / DC converter, the PEM electrolyzer is connected to the DC bus through the second DC / DC converter, the PEM electrolyzer is connected to the hydrogen storage tank, the hydrogen storage tank is connected to the hydrogen fuel cell, the hydrogen fuel cell is connected to the DC bus through the third DC / DC converter, the DC load is connected to the DC bus through the fourth DC / DC converter, the electrochemical energy storage system is connected to the DC bus through the bidirectional DC / DC converter, and the DC bus is connected to the external AC bus through the bidirectional DC / AC converter; the energy router can realize electrical isolation, voltage conversion and bidirectional flow of electric energy, provide a "plug-and-play" standardized interface for sources and loads of different levels and forms, and can adjust the voltage and current of each converter in real time.

[0051] In practical applications, the photovoltaic system uses the photovoltaic effect to convert the solar energy it captures into electrical energy. The electrical energy is directly incorporated into the DC bus after being converted by the first DC / DC converter, and can then power the PEM electrolyzer, the DC load, and the electrochemical energy storage system. The electrical energy provided by the DC bus is converted into a voltage level by the second DC / DC converter and then used to power the PEM electrolyzer for consumption. The hydrogen produced by the PEM electrolyzer during operation will be stored in a hydrogen storage tank. The hydrogen fuel cell can convert the hydrogen stored in the hydrogen storage tank into electrical energy, and the electrical energy is converted into electrical energy by the third DC / DC converter. The converter converts the voltage level and then integrates it into the DC bus to achieve compensation; the electric energy provided by the DC bus is converted into a voltage level by a bidirectional DC / DC converter and then input into the electrochemical energy storage system for storage to achieve consumption; the electrochemical energy storage system converts the stored electric energy into a DC bus after the voltage level is converted by a bidirectional DC / DC converter to achieve compensation; the electric energy provided by the DC bus is converted into a voltage level by a fourth DC / DC converter and then used to supply power to the DC load to achieve consumption; the bidirectional DC / AC converter can be understood as a grid-connected port, which is used to achieve AC / DC conversion and bidirectional flow of electric energy between the DC bus and the external AC bus. It should be noted that the microgrid can be configured in industrial parks, residential areas, isolated power consumption sites and backup sites or other places.

[0052] On this basis, Figure 2 1 is a flow chart of a power distribution method of an electric-hydrogen hybrid energy storage system in a microgrid provided by an embodiment of the present invention, the method comprising the following steps:

[0053] Step S110, obtaining the current operating power of the microgrid, the current SOC value of the electrochemical energy storage system, and the current SOH value of the hydrogen energy storage system;

[0054] Step S120, determining whether the absolute value of the current operating power of the microgrid is greater than a preset power threshold; if so, executing step S130; if not, executing step S170;

[0055] Step S130: Decompose the current operating power of the microgrid according to the grid connection demand to obtain the grid connection power and the power to be smoothed;

[0056] Step S140, with the goal of minimizing the operating cost, combining the current SOC value of the electrochemical energy storage system and the current SOH value of the hydrogen energy storage system, allocating the power to be smoothed, and obtaining the first optimal charge and discharge power of the electrochemical energy storage system and the second optimal charge and discharge power of the hydrogen energy storage system;

[0057] Step S150, determining a protection strategy according to the power to be smoothed, the preset SOC working range of the electrochemical energy storage system, and the current SOC value;

[0058] Step S160, controlling the microgrid to be connected to the grid according to the grid-connected power, controlling the electrochemical energy storage system to operate according to the first optimal charge and discharge power, controlling the hydrogen energy storage system to operate according to the second optimal charge and discharge power, and adjusting the SOC state of the electrochemical energy storage system according to the protection strategy;

[0059] Step S170: Keep the operating state of the microgrid unchanged.

[0060] In some embodiments, the method for obtaining the current operating power of the microgrid mentioned in the above step S110 is: obtain the power generation power of the photovoltaic system and the power consumption power of the DC load, and then subtract the power generation power of the photovoltaic system and the power consumption power of the DC load to obtain the current operating power of the microgrid.

[0061] By determining the current operating power of the microgrid and comparing it with the preset power threshold, it can be determined whether the microgrid needs to be connected to the grid and whether the current operating status of the electric-hydrogen hybrid energy storage system needs to be adjusted, further ensuring the overall operating stability of the microgrid.

[0062] In some embodiments, the implementation process of the above step S130 includes but is not limited to the following:

[0063] Step S131, the current operating power of the microgrid is processed by the variational modal decomposition algorithm, and the penalty factor and modal decomposition number used in the variational modal decomposition algorithm are optimized by the gray wolf algorithm during the processing, and finally a number of optimal modal components are generated, wherein each optimal modal component represents different frequency component information in the current operating power of the microgrid;

[0064] Step S132: dividing a plurality of optimal modal components according to grid connection requirements to obtain a plurality of high-frequency optimal modal components and a plurality of low-frequency optimal modal components; wherein the grid connection requirements include provisions on the frequency range of signals allowed to be received by the external main power grid for grid connection stability considerations;

[0065] Step S133, synthesizing multiple low-frequency optimal modal components to obtain grid-connected power;

[0066] Step S134: synthesize multiple high-frequency optimal modal components to obtain power to be smoothed.

[0067] In the above step S131, by introducing the gray wolf algorithm to perform parameter optimization to obtain the optimal penalty factor and the optimal modal decomposition number, the bandwidth and center frequency of each decomposed modal component can be better controlled, thereby more accurately mining the intrinsic characteristics of the current operating power of the microgrid.

[0068] More specifically, regarding the processing of the current operating power of the microgrid by the variational mode decomposition algorithm mentioned in the above step S131, the corresponding implementation process includes but is not limited to the following:

[0069] Step A1, setting the basic parameters used in the variational mode decomposition algorithm, including sampling window width, sampling window type, sampling frequency, penalty factor and mode decomposition number;

[0070] Step A2: Perform Hilbert transform on the current operating power of the microgrid to obtain the single-sided spectrum of each modal function:

[0071]

[0072] In the formula, p k (t) is the mode function, A is the one-sided spectrum, δ(t) is the Dirac function, j is the imaginary number symbol, t is time, and * is the convolution operation symbol;

[0073] Step A3: Adjust the estimated center frequency of the analytical signal corresponding to each modal function, and modulate the spectrum of each modal function to the corresponding baseband:

[0074]

[0075] Where B is the baseband, ω k is the center frequency, e is the exponential function;

[0076] Step A4: To ensure that the sum of the estimated bandwidths of all modal functions is minimized, the sum of all modal functions should be constrained to be equal to the current operating power of the microgrid, that is, the constrained variational problem is determined as:

[0077]

[0078] Where: {p k}={p1,p2,...,p K},{ω k}={ω1,ω2,...,ω K};

[0079] Where K is the modal decomposition number, that is, the number of all modal functions, is the gradient of the demodulated signal, f is the current operating power of the microgrid, is the norm symbol;

[0080] Step A5: Introduce the Lagrangian multiplication operator and combine it with the penalty factor to transform the above constrained variational problem into an unconstrained variational problem, which can be expressed using the augmented Lagrangian expression:

[0081]

[0082] Where L is the augmented Lagrangian function, λ is the Lagrangian multiplication operator, γ is the penalty factor, and <·> is the vector inner product;

[0083] Step A6: Use the ADMM algorithm (Alternate Direction Method of Multipliers) to solve the above unconstrained variational problem by alternating updates. and λ n+1 To determine the extreme points in the above-mentioned augmented Lagrangian expression, and then decompose the current operating power of the microgrid into several optimal modal components.

[0084] It should be noted that in the above step A6, the Parseval / Plancherel Fourier isometric transformation method is used to transform the above unconstrained variational problem into the ω frequency domain, and then combined with the Hermitian (Hermitian conjugate) symmetry principle, the simplified ω frequency domain is determined and The updated value of is:

[0085]

[0086] In the formula, The current remaining quantity The Wiener filter, for The center frequency of

[0087] More specifically, regarding the optimization of the penalty factor and the modal decomposition number used in the variational modal decomposition algorithm by the grey wolf algorithm mentioned in the above step S131, the corresponding implementation process includes but is not limited to the following:

[0088] Step B1, setting the basic parameters required for the gray wolf algorithm, including the population size and the maximum number of iterations, taking the penalty factor and the modal decomposition number as the target variables to be optimized by the gray wolf algorithm, and determining the fitness function used in the iterative optimization process, wherein the fitness function is preferably set to the average correlation coefficient between all modal components and the current operating power of the microgrid;

[0089] Step B2, randomly initializing the gray wolf population so that the initial positions of different gray wolf individuals refer to different initial target variable values;

[0090] Step B3: Perform variational mode decomposition on the current operating power of the microgrid according to the initial position of each gray wolf, calculate the initial fitness value corresponding to each gray wolf, obtain the initial positions of the three gray wolves with the best initial fitness values ​​and save them, and define these three gray wolves as the optimal wolf leader, the optimal wolf deputy and the optimal wolf advisor respectively;

[0091] Step B4: During the tth iteration, the following mathematical expression is used to update the position of the current gray wolf population:

[0092]

[0093] In the formula, is the position of the gray wolf individual after the t+1th iteration, is the position of the gray wolf individual after the tth iteration, is the position of the prey after the tth iteration, and is the coefficient vector, To refer to the parameters, and is a random number in the interval [0,1], t max is the maximum number of iterations;

[0094] Step B5: performing variational mode decomposition on the current operating power of the microgrid according to the current position of each gray wolf, and then calculating the current fitness value corresponding to each gray wolf to re-determine the optimal wolf leader, the optimal wolf deputy and the optimal wolf advisor and save their current positions and corresponding current fitness values;

[0095] Step B6, determine whether the maximum number of iterations has been reached; if so, output the latest saved current position of the optimal wolf leader as the optimal target variable value, which includes the optimal penalty factor and the optimal modal decomposition number; if not, assign t+1 to t, and then return to the above step B4;

[0096] It should be noted that the above step B4 is executed starting from t=1.

[0097] In some embodiments, the implementation process of the above step S140 includes but is not limited to the following:

[0098] Step S141: Minimizing the operating cost is taken as the optimization goal, and the fitness function is defined as:

[0099]

[0100] In the formula, C use For operating costs, is the unit power cost of the electrochemical energy storage system, is the unit power cost of the hydrogen energy storage system, is the unit capacity cost of the electrochemical energy storage system, is the unit capacity cost of the hydrogen energy storage system, T s is the sampling period, P ba_set (t) is the first charge and discharge power of the electrochemical energy storage system, P he_set (t) is the second charge and discharge power of the hydrogen energy storage system, and f(t) is the fitness function;

[0101] Step S142, using the first charge and discharge power of the electrochemical energy storage system and the second charge and discharge power of the hydrogen energy storage system as target variables to be optimized for the improved genetic algorithm;

[0102] Step S143: Based on the target variable and the power to be stabilized, define the power balance constraint condition as follows:

[0103]

[0104]

[0105] Where P hess (t) is the power to be smoothed, P ba_set (t) is the first charge and discharge power of the electrochemical energy storage system, P he_set (t) is the second charging and discharging power of the hydrogen energy storage system, is the charging power of the lithium battery, is the discharge power of the lithium battery, is the power generated by the hydrogen fuel cell, is the power consumption of the PEM electrolyzer, is the minimum charging power of lithium battery, is the maximum charging power of the lithium battery, is the minimum discharge power of lithium battery, is the maximum discharge power of the lithium battery, is the minimum power generation of hydrogen fuel cells, is the maximum power generation of hydrogen fuel cells, is the minimum power consumption of the PEM electrolyzer, is the maximum power consumption of the PEM electrolyzer;

[0106] Step S144: Based on the target variable and the current SOC value of the electrochemical energy storage system, define the SOC constraint condition as:

[0107]

[0108] Where SOC(t) is the SOC value of the electrochemical energy storage system after operating at the first charge and discharge power, [SOC min ,SOC max ] is the preset SOC working range of the electrochemical energy storage system, SOC min is the minimum SOC value of the electrochemical energy storage system, SOC max is the maximum SOC value of the electrochemical energy storage system, SOC(t-1) is the current SOC value of the electrochemical energy storage system, and E ba_r is the rated capacity of the lithium battery;

[0109] Step S145: Based on the target variable and the current SOH value of the hydrogen energy storage system, define the SOH constraint condition as:

[0110]

[0111] Where SOH(t) is the SOH value of the hydrogen energy storage system after operating at the second charge and discharge power, [SOH min ,SOH max ] is the preset SOH working range of the hydrogen energy storage system, SOH min is the minimum SOH value of the hydrogen energy storage system, SOH max is the maximum SOH value of the hydrogen energy storage system, SOH(t-1) is the current SOH value of the hydrogen energy storage system, is the air intake volume of the hydrogen storage tank, is the gas output of the hydrogen storage tank, m H2_rated is the maximum hydrogen storage capacity of the hydrogen storage tank, V H2 is the volume of hydrogen under the ideal gas equation, I elis the working current of the PEM electrolyzer, F is the Faraday constant, R is the ideal gas constant, T is the working temperature of the PEM electrolyzer, p is the working pressure of the PEM electrolyzer, U ideal_el is the ideal operating voltage of the PEM electrolyzer, U fc is the operating voltage of the hydrogen fuel cell;

[0112] Step S146: Based on the power balance constraint, the SOC constraint, the SOH constraint and the fitness function, the target variable is iteratively optimized by using an improved genetic algorithm, and an adaptive probability function is introduced in each iterative optimization process to perform crossover and mutation, so as to obtain the first optimal charge and discharge power of the electrochemical energy storage system and the second optimal charge and discharge power of the hydrogen energy storage system.

[0113] In the above step S146, by introducing an adaptive probability function to perform crossover and mutation, the algorithm can avoid local optimality and allow subtle search to improve the quality of the solution.

[0114] More specifically, regarding the iterative optimization of the target variable by using the improved genetic algorithm mentioned in the above step S146, the corresponding implementation process includes but is not limited to the following:

[0115] Step S146.1, setting basic parameters required for application of the improved genetic algorithm, including the population size and the maximum number of iterations, and taking the first charge and discharge power of the electrochemical energy storage system and the second charge and discharge power of the hydrogen energy storage system as target variables required for optimization of the improved genetic algorithm;

[0116] Step S146.2, randomly initialize the population so that the initial positions of different individuals refer to different initial target variable values ​​and simultaneously satisfy the power balance constraint, SOC constraint and SOH constraint;

[0117] Step S146.3, in the tth iteration process, the fitness value corresponding to each individual is calculated according to the position of each individual and sorted, and the individuals with the largest fitness value accounting for 10% of the total number are selected as elite individuals and are restricted from participating in crossover and mutation, and the remaining 90% of the total number of individuals are regarded as non-elite individuals;

[0118] Step S146.4: Introduce the following adaptive probability function to perform crossover and mutation on non-elite individuals to obtain new individuals:

[0119]

[0120] Where P c is the crossover probability, is the upper limit of the crossover probability, is the lower limit of the crossover probability, P mis the mutation probability, is the upper limit of mutation probability, is the lower limit of mutation probability, e is a natural constant, approximately equal to 2.718, f(t) is the fitness value of the individual after the tth iteration, is the average fitness value of the population after the tth iteration, f max (t) is the maximum fitness value corresponding to the population after the tth iteration;

[0121] Step S146.5, elite individuals and new individuals are formed into a new generation population, and then all individuals that simultaneously meet the power balance constraint condition, the SOC constraint condition and the SOH constraint condition are selected to form a feasible optimal new generation population;

[0122] Step S146.6, determine whether the maximum number of iterations has been reached; if so, select the individual with the largest fitness value from the current optimal new generation population, and output the current position of the individual as the optimal target variable value, which includes the first optimal charge and discharge power of the electrochemical energy storage system and the second optimal charge and discharge power of the hydrogen energy storage system; if not, assign t+1 to t, and return to the above step S146.3;

[0123] It should be noted that the above step S146.3 is executed starting from t=1.

[0124] In some embodiments, the present invention proposes to prioritize the preset SOC operating range [SOC min ,SOC max ] is further divided into three non-intersecting ranges, namely the low SOC range [SOC min ,SOC he-fc ), normal SOC range [SOC he-fc ,SOC he-el ] and high SOC range (SOC he-el ,SOC max ], SOC he-el is the maximum critical SOC value, SOC he-fc The minimum critical SOC value is combined with the power to be smoothed and the current SOC value of the electrochemical energy storage system to formulate a protection strategy to be enabled when adjusting the overall operating state of the microgrid, that is, the implementation content of the above step S150 is as follows:

[0125] (1) When it is recognized that the power to be smoothed is greater than zero and the current SOC value of the electrochemical energy storage system is in the high SOC range (SOC he-el ,SOC max], it is determined that the electrochemical energy storage system is currently in a charging state and the PEM electrolyzer is currently in an operating state. At this time, the corresponding protection strategy is formulated as follows: control the electrochemical energy storage system to perform a discharge operation until its SOC value drops to the normal SOC range [SOC he-fc ,SOC he-el ], it can be understood that the SOC value of the electrochemical energy storage system drops to SOC he-el The discharge can be stopped, and the electricity generated by the electrochemical energy storage system will be supplied to the hydrogen energy storage system in real time to maintain the operation of the PEM electrolyzer;

[0126] (2) When it is recognized that the power to be smoothed is less than zero and the current SOC value of the electrochemical energy storage system is in the low SOC range [SOC min ,SOC he-fc ), it is determined that the electrochemical energy storage system is currently in a discharging state and the hydrogen fuel cell is currently in an operating state. At this time, the corresponding protection strategy is formulated as follows: controlling the electrochemical energy storage system to perform a charging operation until its SOC value rises to a normal SOC range [SOC he-fc ,SOC he-el ], it can be understood that the SOC value of the electrochemical energy storage system rises to SOC he-fc Charging can be stopped, and while maintaining the operation of the hydrogen fuel cell, the electricity required for the operation of the electrochemical energy storage system will be supplied in real time by the hydrogen energy storage system.

[0127] In an embodiment of the present invention, by using the variational mode decomposition algorithm optimized by the gray wolf algorithm to reasonably decompose the current operating power of the microgrid, the missing of important frequency characteristic information can be avoided. By fully considering the SOC value of the electrochemical energy storage system and the SOH value of the hydrogen energy storage system, the power to be smoothed of the electric-hydrogen hybrid energy storage system is flexibly and efficiently allocated, and in this process, an improved genetic algorithm is introduced and the power allocation accuracy is improved with the minimization of operating costs as the optimization goal, so as to maximize the energy demand of the microgrid in different scenarios, so that the overall performance of the microgrid is optimized. By enabling the protection strategy while adjusting the overall operating state of the microgrid, the real-time SOC value of the electrochemical energy storage system is always within the normal SOC range to maintain the life and working stability of the lithium battery as much as possible, and at the same time, the frequent startup of the PEM electrolyzer and hydrogen fuel cell in the hydrogen energy storage system can be reduced.

[0128] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, a power distribution method of an electric-hydrogen hybrid energy storage system in a microgrid in the above embodiment is implemented. Among them, the computer-readable storage medium includes but is not limited to any type of disk (including floppy disk, hard disk, optical disk, CD-ROM and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. In other words, the storage device includes any medium that stores or transmits information in a readable form by a device (such as a computer, a mobile phone, etc.), which can be a read-only memory, a disk or an optical disk, etc.

[0129] also, Figure 3 2 is a schematic diagram of the hardware structure of a computer device provided in an embodiment of the present invention. The computer device includes a processor 220, a memory 230, an input unit 240, a display unit 250 and other devices. Those skilled in the art can understand that Figure 3 The device structure device shown does not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 230 can be used to store the computer program 210 and various functional modules, and the processor 220 runs the computer program 210 stored in the memory 230, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include an internal memory and an external memory. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a U disk, a magnetic tape, etc. The memory 230 disclosed in the embodiment of the present invention includes but is not limited to the above-mentioned types of memory. The memory 230 disclosed in the embodiment of the present invention is only an example and not a limitation.

[0130] The input unit 240 is used to receive the input of the signal and the keyword input by the user. The input unit 240 may include a touch panel and other input devices. The touch panel can collect the user's touch operation on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a playback control key, a switch key, etc.), a trackball, a mouse, a joystick, etc. The display unit 250 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 250 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 220 is the control center of the terminal device, which uses various interfaces and lines to connect various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 230, and calling data stored in the memory 230.

[0131] As an embodiment, the computer device includes a processor 220, a memory 230 and a computer program 210, wherein the computer program 210 is stored in the memory 230 and is configured to be executed by the processor 220, and the computer program 210 is configured to execute a power distribution method of an electric-hydrogen hybrid energy storage system in a microgrid in the above-mentioned embodiment.

[0132] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0133] The terms "including" and "having" and any variations thereof in the specification of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0134] In the present application, it should be understood that "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0135] Although the present application has been described in considerable detail and specifically with respect to several of the above-mentioned embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be considered to be effectively covered by the intended scope of the present application by referring to the appended claims and taking into account the prior art to provide a broad possible interpretation for these claims. In addition, the present application is described above with the embodiments foreseeable by the inventor for the purpose of providing a useful description, and those non-substantial changes to the present application that have not yet been foreseen may still represent equivalent changes to the present application.

Claims

1. A power distribution method for an electric-hydrogen hybrid energy storage system in a microgrid, wherein the electric-hydrogen hybrid energy storage system comprises an electrochemical energy storage system and a hydrogen energy storage system, characterized in that: The method comprises: Obtaining the current operating power of the microgrid, the current SOC value of the electrochemical energy storage system, and the current SOH value of the hydrogen energy storage system; When the absolute value of the current operating power is greater than a preset power threshold, the current operating power is decomposed according to the grid connection demand to obtain the grid connection power and the power to be smoothed; With the goal of minimizing the operating cost, the power to be smoothed is allocated in combination with the current SOC value and the current SOH value to obtain a first optimal charge and discharge power of the electrochemical energy storage system and a second optimal charge and discharge power of the hydrogen energy storage system; Determining a protection strategy according to the power to be smoothed and a preset SOC operating range and a current SOC value of the electrochemical energy storage system; Control the microgrid to be connected to the grid according to the grid-connected power, control the electrochemical energy storage system to operate according to the first optimal charge and discharge power, control the hydrogen energy storage system to operate according to the second optimal charge and discharge power, and adjust the SOC state of the electrochemical energy storage system according to the protection strategy.

2. The power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid according to claim 1 is characterized in that: The current operating power of the microgrid is obtained by: The power generation power of the photovoltaic system in the microgrid and the power consumption power of the DC load in the microgrid are obtained, and the difference between the power generation power and the power consumption power is used as the current operating power of the microgrid.

3. The power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid according to claim 1 is characterized in that: Decomposing the current operating power according to the grid connection demand to obtain the grid connection power and the power to be smoothed includes: The current operating power is processed using a variational modal decomposition algorithm, and during the processing, the modal decomposition number and penalty factor required by the variational modal decomposition algorithm are optimized using a gray wolf algorithm to obtain a plurality of optimal modal components; Dividing the plurality of optimal modal components according to grid connection requirements to obtain a plurality of low-frequency optimal modal components and a plurality of high-frequency optimal modal components; synthesizing the multiple low-frequency optimal modal components to obtain grid-connected power; The multiple high-frequency optimal modal components are synthesized to obtain the power to be smoothed.

4. The power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid according to claim 1 is characterized in that: The method of allocating the power to be smoothed based on the current SOC value and the current SOH value with the goal of minimizing the operating cost to obtain the first optimal charge and discharge power of the electrochemical energy storage system and the second optimal charge and discharge power of the hydrogen energy storage system includes: With the goal of minimizing the operating cost, determine the fitness function; Taking the first charge and discharge power of the electrochemical energy storage system and the second charge and discharge power of the hydrogen energy storage system as target variables to be optimized; Determining a power balance constraint condition according to the target variable and the power to be leveled; Determining an SOC constraint condition according to the target variable and the current SOC value; Determining a SOH constraint condition according to the target variable and the current SOH value; According to the fitness function, the power balance constraint, the SOC constraint and the SOH constraint, an improved genetic algorithm is used to iteratively optimize the target variable, and an adaptive probability function is introduced in each iteration process to perform crossover and mutation operations to obtain a first optimal charge and discharge power of the electrochemical energy storage system and a second optimal charge and discharge power of the hydrogen energy storage system.

5. The power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid according to claim 4 is characterized in that: The power balance constraint condition includes: limiting the sum of the first charge and discharge power of the electrochemical energy storage system and the second charge and discharge power of the hydrogen energy storage system to be the power to be smoothed.

6. The power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid according to claim 1 is characterized in that: The operating cost is solved by the following expression: Among them, C use is the operating cost, is the unit power cost of the electrochemical energy storage system, is the unit capacity cost of the electrochemical energy storage system, is the unit power cost of the hydrogen energy storage system, is the unit capacity cost of the hydrogen energy storage system, T s is the sampling period, P ba_set (t) is the first charge and discharge power of the electrochemical energy storage system, P he_set (t) is the second charging and discharging power of the hydrogen energy storage system.

7. The power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid according to claim 1 is characterized in that: The preset SOC operating range of the electrochemical energy storage system is composed of a high SOC range, a normal SOC range and a low SOC range. The protection strategy is determined according to the power to be smoothed and the preset SOC operating range and the current SOC value of the electrochemical energy storage system, including: When the power to be smoothed is greater than zero and the current SOC value falls within the high SOC range, determining a protection strategy as follows: controlling the electrochemical energy storage system to discharge until the SOC value drops to the normal SOC range, and supplying the electric energy generated by the electrochemical energy storage system to the hydrogen energy storage system; When the power to be smoothed is less than zero and the current SOC value falls within the low SOC range, the protection strategy is determined as: controlling the electrochemical energy storage system to charge until the SOC value rises to the normal SOC range, and the electric energy required by the electrochemical energy storage system is provided by the hydrogen energy storage system.

8. The power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid according to claim 1 is characterized in that: The method further includes: when the absolute value of the current operating power is less than or equal to a preset power threshold, maintaining the operating state of the microgrid unchanged.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: The processor executes the computer program to implement the power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid as described in any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the power distribution method of the electric-hydrogen hybrid energy storage system in the microgrid according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • An energy management method and system for cascaded battery energy storage power stations based on set empirical mode decomposition

    CN109167391A

  • Double-level synchronous control method for parallel weak power grid type electricity-hydrogen coupling direct current micro-grid

    CN113595135A

  • Micro-grid optimization scheduling method, device and equipment based on photovoltaic generating capacity prediction

    CN115189377A

  • Capacity configuration method of hydrogen-electricity coupling system for stabilizing fluctuation power

    CN116131291A

  • Hydrogen fuel cell vehicle energy management method and system based on pigeon inspired optimization algorithm

    CN116278987A