A power allocation method for electric-hydrogen energy storage microgrid based on hysteresis loop
By adopting a hysteretic microgrid power distribution method in the hydrogen energy storage system, the number of starts and stops of electrolyzers and fuel cells is reduced, and alkaline and PEM electrolyzers are used to work together to solve the shortened lifespan caused by frequent starts and stops in traditional systems. and cost increase issues, achieving higher reliability and economy.
Patent Information
- Application Number
- CN202410774821.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-17
Smart Images

Figure CN118336795B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of hybrid energy storage, and in particular relates to a hysteresis-based electric-hydrogen energy storage microgrid power distribution method. Background Art
[0002] Wind power and photovoltaic power generation are currently the most mature renewable energy generation technologies, but their intermittent, volatile and uncertain nature limits the reliability of continuous power supply. Therefore, it is necessary to use energy storage components to store the generated electricity. At present, energy storage components can be mainly divided into two categories: one is an energy storage component that can quickly respond to real-time changes in power, and the other is a component that is more suitable for long-term energy storage by comprehensively considering losses and costs. Energy storage batteries such as lithium batteries have faster response speeds and charge and discharge rates, mature technology, low cost, and are more suitable for short-term energy storage needs. Hydrogen energy storage (including electrolyzers, hydrogen storage tanks and fuel cells) has been technically proven to be feasible. Due to the low hydrogen loss rate, it is more suitable for long-term energy storage applications. Alkaline electrolysis is the most mature, widely used and lowest cost, but its cold start time is long, usually taking one hour; proton exchange membrane electrolysis has the characteristics of high efficiency and fast response compared to alkaline electrolysis, but its cost is much higher than alkaline electrolysis. Traditional hydrogen energy storage generally only considers a single alkaline electrolyzer or proton exchange membrane electrolyzer to produce hydrogen, which cannot take into account both the advantages of fast response and low cost.
[0003] Electrolyzers and fuel cells are expensive, and frequent start-stop operations can affect their service life. With traditional hybrid energy storage system power allocation methods, electrolyzers and fuel cells will start and stop frequently, which will reduce their life and increase system costs. Therefore, it is particularly important to have an efficient power allocation method for the two electrolyzers to work together and take into account the alkalinity, PEM electrolyzer and fuel cell start and stop times. Summary of the invention
[0004] In view of the problems of the prior art, the present invention provides a hysteresis-based electric-hydrogen energy storage microgrid power distribution method, which reduces the start and stop times of the electrolyzer and fuel cell and improves the power supply reliability by selecting a reasonable microgrid structure and adopting a suitable power distribution model.
[0005] The technical solution adopted by the present invention is as follows: The present invention provides a power distribution method for an electric-hydrogen energy storage microgrid based on a hysteresis loop, comprising:
[0006] Step 1, constructing a microgrid, wherein the microgrid includes a wind power generation module, a photovoltaic power generation module, a lithium battery, a load module and a hydrogen energy storage module connected to the power grid, wherein the hydrogen energy storage module includes an alkaline electrolyzer, a PEM electrolyzer, a hydrogen storage tank and a fuel cell;
[0007] Step 2, collecting the power of the wind power generation module, the power of the photovoltaic power generation module, the power of the load module in the constructed microgrid at the current moment and the state of charge of the lithium battery at the previous moment;
[0008] Step 3, respectively obtaining the maximum and minimum charge states allowed by the lithium battery, the charge states of the alkaline electrolyzer and the PEM electrolyzer when they are started, the charge states when both electrolyzers are shut down, and the charge states when the fuel cell is started and shut down;
[0009] Step 4: record the difference between the total power of the wind power generation module and the photovoltaic power generation module at the current moment and the power of the load module as Δ P , Δ P ≥0, the microgrid is judged to be in energy storage mode, and step 5 is executed, Δ P When <0, the microgrid is judged to be in power supply mode and step 6 is executed;
[0010] Step 5, using the charge state of the alkaline electrolyzer startup, the charge state of the PEM electrolyzer startup, the charge state of both electrolyzers shut down, the charge state of the fuel cell shut down, and the charge state of the fuel cell startup, the range of the charge state allowed by the lithium battery is divided into six sub-ranges from large to small, and according to the position of the charge state value of the lithium battery falling into the six sub-ranges at the last moment and the states of the alkaline electrolyzer and the PEM electrolyzer, the hydrogen production power of the PEM electrolyzer and the alkaline electrolyzer and the working power of the fuel cell are set;
[0011] Step 6, first determine the remaining power of the lithium battery and -Δ P If the remaining power of the lithium battery is ≥-Δ P , the range of the charge state allowed by the lithium battery is divided into four sub-ranges from large to small using the charge state of both electrolyzers being closed, the charge state of the fuel cell being closed, and the charge state of the fuel cell being opened, and the working power of the lithium battery and the fuel cell and the hydrogen production power of the PEM electrolyzer and the alkaline electrolyzer are set according to the position of the charge state value of the lithium battery falling into the four sub-ranges at the last moment, the remaining power of the lithium battery, and the operating state of the fuel cell at the last moment;
[0012] Among them, the expression of the remaining power of the lithium battery is ( SOC ( t- 1) -SOC min ) *P rated,bat , P rated,bat Indicates the rated capacity of the lithium battery. SOC ( t-1 ) is the state of charge value of the lithium battery at the last moment, SOC min It is the minimum state of charge allowed for lithium batteries.
[0013] The basic principle of power distribution is: when the power generation of renewable energy (total power of wind power generation module and photovoltaic power generation module) is greater than the power required by the load (power of the load module), the lithium battery and hydrogen energy storage equipment adopt different models to absorb the excess power according to the size of the excess power and the operating status of the alkaline and PEM electrolyzers at the previous moment; when the power generation of renewable energy is not enough to provide the power required by the load, according to -Δ P Depending on the size of the battery and the operating status of the fuel cell at the last moment, lithium batteries and hydrogen energy storage devices use different models to provide power.
[0014] In the present application, the current state of energy storage or power supply is determined by first determining the positive or negative difference between the total power of wind power generation and photovoltaic power generation at the current moment and the power of the load module. When in the energy storage state, the energy storage mode is selected. According to the characteristics of alkaline electrolyzers that have low cost but require a certain amount of time for cold start and PEM electrolyzers that have high efficiency and fast response but high cost, the state of charge of the lithium battery is divided into intervals. Then, according to the operating state of the alkaline and PEM electrolyzers and the fuel cell at the previous moment and the range of the state of charge of the lithium battery, each module executes the corresponding power allocation model to convert excess electricity into electrical energy or hydrogen energy of the lithium battery. When in the power supply state, the power supply mode is selected, and different power allocation models are executed according to whether the remaining electrical energy of the lithium battery can provide -ΔP and the operating state of the fuel cell at the previous moment to convert the electrical energy or hydrogen energy of the lithium battery into electrical energy. Compared with the hydrogen energy storage configuration of a single alkaline or PEM electrolyzer, the microgrid constructed in this application adopts a configuration in which alkaline and PEM work together, which has higher reliability and better economy; at the same time, this application can effectively reduce the number of starts and stops of alkaline, PEM electrolyzers and fuel cells, ensure service life, and reduce system costs.
[0015] Furthermore, the specific process of step 5 is as follows:
[0016] Step 5.1, when the state of charge value of the lithium battery at the last moment is collected and is between the start-up state of charge of the alkaline electrolytic cell and the maximum state of charge of the lithium battery, first determine whether the alkaline electrolytic cell was started at the last moment;
[0017] Step 5.1.1, if the alkaline electrolytic cell was not started at the last moment, first allocate the power required for the cold start of the alkaline electrolytic cell to the alkaline electrolytic cell, so that the alkaline electrolytic cell is in a cold start state, and then execute the first power allocation model;
[0018] Step 5.1.2, if the alkaline electrolyzer was in the startup state at the last moment, then determine whether the PEM electrolyzer was started at the last moment;
[0019] Step 5.1.2.1, if the PEM electrolyzer is in the off state at the last moment, execute the second power allocation model;
[0020] Step 5.1.2.2, if the PEM electrolyzer is in the startup state at the last moment, execute the third power allocation model;
[0021] Step 5.2, when the state of charge value of the lithium battery at the last moment is collected and is between the start-up state of charge of the PEM electrolyzer and the start-up state of charge of the alkaline electrolyzer, first determine whether the alkaline electrolyzer was started at the last moment;
[0022] Step 5.2.1, if the alkaline electrolyzer is in the startup state at the last moment, execute the third power allocation model;
[0023] Step 5.2.2, if the alkaline electrolyzer is in the off state at the last moment, execute the fourth power allocation model;
[0024] Step 5.3, when the state of charge value of the lithium battery at the last moment is collected and is between the state of charge when both electrolyzers are closed and the state of charge when the PEM electrolyzer is started, first determine whether the alkaline electrolyzer was started at the last moment;
[0025] Step 5.3.1, if the alkaline electrolyzer is in the startup state at the last moment, execute the third power allocation model;
[0026] Step 5.3.2, if the alkaline electrolyzer was in the off state at the last moment, determine whether the PEM electrolyzer was in the on state at the last moment;
[0027] Step 5.3.2.1, if the PEM electrolyzer is in the startup state at the last moment, execute the fourth power allocation model;
[0028] Step 5.3.2.2, if the PEM electrolyzer is in the off state at the last moment, execute the fifth power allocation model;
[0029] Step 5.4, when the state of charge value of the lithium battery at the last moment is collected and is between the state of charge of the fuel cell being turned off and the state of charge of both electrolyzers being turned off, the fifth power allocation model is executed;
[0030] Step 5.5, when the state of charge value of the lithium battery at the last moment is collected and is between the fuel cell on state of charge and the fuel cell off state of charge, first determine whether the fuel cell was started at the last moment;
[0031] Step 5.5.1, if the fuel cell was in operation at the last moment, execute the sixth power allocation model;
[0032] Step 5.5.2, if the fuel cell was not running at the last moment, execute the fifth power allocation model;
[0033] Step 5.6: When the state of charge value of the lithium battery at the last moment is collected and is between the minimum state of charge of the lithium battery and the start-up state of charge of the fuel cell, the fifth power allocation model is executed.
[0034] Furthermore, the first power allocation model expression is:
[0035] (1);
[0036] in, P PEM_1 ( t ) is the hydrogen production power of the PEM electrolyzer under the first power allocation model, P alk_1 is the hydrogen production power of the alkaline electrolyzer under the first power allocation model; P on,alk is the power required to start the alkaline electrolyzer, P max,PEM is the maximum operating power of the PEM electrolyzer.
[0037] Furthermore, the second power allocation model expression is:
[0038] (2);
[0039] Where: P PEM_2 ( t ) is the hydrogen production power of the PEM electrolyzer under the second power allocation model, P alk_2 ( t ) is the hydrogen production power of the alkaline electrolyzer under the second power allocation model, P max,alk It is the maximum working power of alkaline electrolyzer.
[0040] Furthermore, the third power allocation model expression is:
[0041] (3);
[0042] Where: P PEM_3 ( t ) is the hydrogen production power of the PEM electrolyzer under the third power allocation model, P alk_3 ( t ) is the hydrogen production power of the alkaline electrolyzer under the third power allocation model, P on,PEM is the power required to start the PEM electrolyzer, P min,PEM is the minimum operating power of the PEM electrolyzer, P on,PEM Numerical andP min,PEM equal.
[0043] Furthermore, the fourth power allocation model expression is:
[0044] (4);
[0045] Where: P PEM_4 ( t ) is the hydrogen production power of the PEM electrolyzer under the fourth power allocation model, P alk_4 ( t ) is the hydrogen production power of the alkaline electrolyzer under the fourth power allocation model.
[0046] Furthermore, the fifth power allocation model expression is:
[0047] (5);
[0048] Where: P PEM_5 is the hydrogen production power of the PEM electrolyzer under the fifth power allocation model, P alk_5 It is the hydrogen production power of the alkaline electrolyzer under the fifth power allocation model.
[0049] Furthermore, the sixth power allocation model expression is:
[0050] (6);
[0051] Where: P PEM_6 is the hydrogen production power of the PEM electrolyzer under the sixth power allocation model, P alk_6 is the hydrogen production power of the alkaline electrolyzer under the sixth power allocation model, P fc_6 is the operating power of the fuel cell under the sixth power allocation model, P min,fc is the minimum operating power of the fuel cell.
[0052] Furthermore, the specific process of step 6 is as follows:
[0053] Step 6.1, when the remaining power of the lithium battery is ≥-Δ P When the remaining power of the lithium battery is less than -Δ P When the remaining power of the lithium battery is fully used for power supply, the seventh power allocation model is executed;
[0054] Step 6.2: When the state of charge of the lithium battery at the last moment is between the state of charge when both electrolytic cells are closed and the maximum state of charge of the lithium battery, the lithium battery discharges, and its discharge power is -Δ P+P alk ( t ) + P PEM ( t ), the fuel cell is not running; the working state of the two electrolyzers is the same as the previous moment, and hydrogen is produced at their respective minimum hydrogen production power, where, P alk ( t )and P PEM ( t ) are the hydrogen production powers of the alkaline electrolyzer and the PEM electrolyzer at the current state respectively;
[0055] Step 6.3, when the charge state of the lithium battery at the previous moment is between the charge state of the fuel cell being turned off and the charge state of both electrolyzers being turned off, the lithium battery discharges, and its discharge power is -ΔP, and the fuel cell does not operate;
[0056] Step 6.4, when the lithium battery charge state at the last moment is between the fuel cell on charge state and the fuel cell off charge state, first determine the fuel cell operation state at the last moment;
[0057] Step 6.4.1, if the fuel cell was not running at the last moment, the lithium battery is discharged, and its discharge power is -ΔP, and the fuel cell does not run;
[0058] Step 6.4.2: If the fuel cell was running at the last moment, record the smaller value of the remaining hydrogen storage at the current moment and the maximum power of the fuel cell as P 0 ,judge P 0 and -ΔP; where the remaining hydrogen storage at the current moment is P hy (t), P hy (t)= P hy (t-1)* η eff,fc , P hy ( t-1 ) represents the power that can be converted by the remaining hydrogen storage at the previous moment, η eff,fc Indicates the efficiency of the fuel cell;
[0059] Step 6.4.2.1, when P 0 ≤-ΔP, the fuel cell P0 The lithium battery makes up the remaining power to -( P 0+ Δ P ) Large and small discharge operation;
[0060] Step 6.4.2.2, when P 0 >-ΔP, the fuel cell operates at -ΔP and the lithium battery does not operate;
[0061] Step 6.5: When the last moment the lithium battery state of charge is between the minimum state of charge of the lithium battery and the fuel cell start-up state of charge, determine P 0 With the size of -ΔP, when P 0 >-ΔP, the execution process is the same as step 6.4.2.2; when P 0 When ≤-ΔP, execute the same process as step 6.4.2.1.
[0062] Furthermore, the seventh power allocation model expression is:
[0063] (7);
[0064] in P fc_7 ( t ) is the operating power of the fuel cell under the seventh power allocation model; P max,fc is the maximum operating power of the fuel cell, P hy ( t-1 ) represents the power that can be converted by the remaining hydrogen storage; η eff,fc Indicates the efficiency of the fuel cell; P req,fc Indicates the remaining power that the fuel cell needs to provide.
[0065] The present invention has the following beneficial effects: Compared with the conventional power distribution method and system of the hydrogen-electricity coupled microgrid system, the present invention has the following advantages:
[0066] (1) The hydrogen energy storage module in the microgrid of the present application adopts an alkaline and PEM electrolyzer collaborative working structure, which can give full play to the advantages of low cost of alkaline electrolyzer and high efficiency and fast response of PEM electrolyzer;
[0067] (2) The hysteresis-based power allocation method of the present invention is formulated with full consideration of the cold start time of the alkaline electrolyzer and the high efficiency of the PEM electrolyzer;
[0068] (3) The hysteresis-based power allocation method proposed in the present invention can effectively reduce the start and stop times of the electrolyzer and the fuel cell, ensure their service life, and improve the economy of the microgrid system. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 is a schematic diagram of the microgrid structure;
[0070] Figure 2 It is a schematic diagram of the flow chart of an embodiment;
[0071] Figure 3 It is a schematic diagram of the energy storage mode process;
[0072] Figure 4 It is a schematic diagram of the power supply mode flow;
[0073] Figure 5 is a schematic diagram of the control process of the first power allocation model;
[0074] Figure 6 is a control process schematic diagram of the second power allocation model;
[0075] Figure 7 is a control process schematic diagram of the third power allocation model;
[0076] Figure 8 is a schematic diagram of the control process of the fourth power allocation model;
[0077] Figure 9 is a control process schematic diagram of the fifth power allocation model;
[0078] Figure 10 is a control process schematic diagram of the sixth power allocation model;
[0079] Figure 11 is a control process schematic diagram of the seventh power allocation model;
[0080] Figure 12 This is the power distribution control schematic diagram of the electric-hydrogen energy storage microgrid based on hysteresis loop. DETAILED DESCRIPTION
[0081] The following is an explanation and description of the technical solutions of the embodiments of the present invention in conjunction with the accompanying drawings of the present invention, but the following embodiments are only preferred embodiments of the present invention, not all. Based on the embodiments in the implementation mode, other embodiments obtained by those skilled in the art without creative work are all within the protection scope of the present invention.
[0082] like Figure 1As shown in the figure, the microgrid consists of photovoltaic power generation modules, wind power generation modules, lithium batteries, hydrogen energy storage modules (alkaline electrolyzer, PEM electrolyzer, hydrogen storage tank, fuel cell), converter modules and load modules. The photovoltaic components are connected to the DC bus through the DC / DC module, and their function is to convert light energy into electrical energy; the wind turbine components are connected to the DC bus through the AC / DC module, and their function is to convert wind energy into electrical energy; the lithium battery is connected to the DC bus to absorb excess electrical energy when renewable energy is in excess, and to make up for the lack of electrical energy when renewable energy is insufficient to ensure power supply reliability; the alkaline electrolyzer and PEM electrolyzer in the hydrogen energy storage module are connected to the DC bus and the hydrogen storage tank, and their function is to convert electrical energy into hydrogen energy and store it in the tank; the fuel cell is connected to the DC bus and the hydrogen storage tank, and its function is to convert hydrogen energy into electrical energy. The mathematical model of each module will be established below.
[0083] Photovoltaic power generation module: The formula for the change in output power of a single PV module over time is:
[0084] (8);
[0085] in P PV (t) is the output power of a single PV module at time t; P rate Rated power of a single PV module; r in ( t ) is the radiation intensity input for the photovoltaic module; d is the derating factor; r st is the incident radiation intensity, which is 1000W / m 2 ; c is the temperature coefficient, and its value is -0.35% / ℃; T st is the standard operating temperature, which is 25°C; T ce is the PV cell temperature, and its expression is;
[0086] (9);
[0087] in T a is the ambient temperature; NOCT The normal operating temperature of the battery is 45°C.
[0088] Wind power generation module: The formula for the change of output power of a single WT component over time is:
[0089] (10);
[0090] inP WT ( t ) is the output power of a single WT component at time t; v ( t )for t Wind speed at the moment; P ra Rated power for a single WT component; v ra is the rated wind speed; v in is the cut-in wind speed; v out To cut out wind speed.
[0091] The principle of alkaline electrolyzer is similar to that of PEM electrolyzer, but the two have different characteristics such as electrolysis efficiency, power modulation range, cold start time, etc. Table 1 gives a comparison of the parameters of the two.
[0092] Table 1
[0093]
[0094] Converter module: DC and AC components require converter connection. WT and AC load are connected to the AC bus, and photovoltaic, lithium battery, and hydrogen chain equipment are connected to the DC bus. The power converter includes a rectifier and an inverter, with efficiencies of 85% and 90% respectively.
[0095] This embodiment provides a power allocation method for an electric-hydrogen energy storage microgrid based on a hysteresis loop, such as Figure 2 As shown, including:
[0096] Step 1: Build a microgrid, the structure of which is as follows: Figure 1 As shown, the microgrid includes a wind power generation module, a photovoltaic power generation module, a lithium battery, a load module and a hydrogen energy storage module connected to the power grid, and the hydrogen energy storage module includes an alkaline electrolyzer, a PEM electrolyzer, a hydrogen storage tank and a fuel cell;
[0097] Step 2: Collect the wind power generation power, photovoltaic power generation module power, load module power and lithium battery charge state at the last moment in the constructed microgrid. SOC ( t- 1);
[0098] Step 3: Obtain the maximum state of charge allowed by the lithium battery SOC max , minimum state of charge SOC min , the charge state of alkaline electrolyzer and PEM electrolyzer startup SOC on,alk , SOC on,PEM, the state of charge when both electrolyzers are closed SOC off,elz , and the fuel cell startup state of charge SOC on,fc , turn off the state of charge SOC off,fc ;
[0099] Step 4: record the difference between the total power of the wind power generation module and the photovoltaic power generation module at the current moment and the power of the load module as Δ P , Δ P ≥0, the microgrid is judged to be in energy storage mode (such as Figure 3 As shown), and execute step 5, Δ P <0, the microgrid is judged to be in power supply mode (such as Figure 4 As shown), and proceed to step 6;
[0100] Step 5, using the state of charge of the alkaline electrolyzer startup SOC on,alk , Charge state of PEM electrolyzer startup SOC on,PEM , the state of charge when both electrolyzers are closed SOC off,elz , Fuel cell shutdown state of charge SOC off,fc and fuel cell startup state of charge SOC on,fc , the range of the state of charge allowed for lithium batteries (i.e. SOC min ~ SOC max ); divided into six sub-ranges from large to small (i.e. SOC on,alk ~ SOC max 、SOC on,PEM ~ SOC on,alk 、SOC off,elz ~ SOC on,PEM 、SOC off,fc ~ SOC off,elz 、SOC on,fc ~SOC off,fc 、SOC min ~ SOC on,fc ), based on the state of charge value of the lithium battery at the last moment SOC ( t-1) The positions falling into the four sub-ranges and the states of the alkaline electrolyzer and the PEM electrolyzer are used to set the hydrogen production power of the PEM electrolyzer and the alkaline electrolyzer and the operating power of the fuel cell.
[0101] When in energy storage mode, the hydrogen production power and fuel cell power supply power of the alkaline electrolyzer and PEM electrolyzer can be summarized as follows:
[0102]
[0103] in X alk ( t-1 ), X PEM ( t-1 ) indicates the operating status of the alkaline and PEM electrolyzers at the last moment. A value of 1 indicates that the electrolyzer was running or the alkaline electrolyzer was in a cold start state at the last moment, and a value of 0 indicates that the electrolyzer was not running at the last moment. express X alk ( t-1 ), X alk ( t-1 ) is 1 is 0; for X PEM ( t-1 ), X PEM ( t-1 ) is 1 The value is 0.
[0104] like Figure 3 As shown, the specific process is:
[0105] Step 5.1, when SOC on,alk < SOC ( t-1 )≤ SOC max When the alkaline electrolytic cell is started at the last moment, first determine whether it is started (i.e. determine X alk ( t-1 )=0 is true);
[0106] Step 5.1.1, if the alkaline electrolyzer was not started at the last moment (i.e. X alk ( t-1 )=0), the power required for the cold start of the alkaline electrolytic cell is first allocated to the alkaline electrolytic cell, so that the alkaline electrolytic cell is in a cold start state, and then the first power allocation model is executed;
[0107] Step 5.1.2, if the alkaline electrolytic cell is in the startup state (i.e. X alk ( t-1 )=1), and then determine whether the PEM electrolyzer was started at the previous moment;
[0108] Step 5.1.2.1, if the PEM electrolyzer is in the off state at the last moment (i.e. X PEM ( t-1 )=0), then execute the second power allocation model;
[0109] Step 5.1.2.2, if the PEM electrolyzer was in the startup state at the last moment (i.e. X PEM ( t-1 )=1), the third power allocation model is executed.
[0110] Specifically, the first power allocation model expression is:
[0111] (1);
[0112] in, P PEM_1 ( t ) is the hydrogen production power of the PEM electrolyzer under the first power allocation model, P alk_1 It is the hydrogen production power of the alkaline electrolyzer under the first power allocation model.
[0113] P on,alk is the power required to start the alkaline electrolyzer, P on,alk Values and minimum hydrogen production power of alkaline electrolyzer P min,alk equal, P max,alk is the maximum working power of the alkaline electrolyzer, P max,PEM is the maximum operating power of the PEM electrolyzer, P min,PEM is the minimum operating power of the PEM electrolyzer, P on,PEM is the power required to start the PEM electrolyzer, P on,PEM Numerical and P min,PEM equal, P min,fc is the minimum operating power of the fuel cell.
[0114] like Figure 5 As shown, the first power allocation model expression process is:
[0115] (1) When Δ P ≤ P on,alk + P min,PEM , the alkaline electrolyzer is cold started at minimum power, but its hydrogen production power is 0 (i.e. P alk_1 (t) = 0), the PEM electrolyzer produces hydrogen at the minimum operating power, that is P PEM_1 (t)= P min,PEM At this time, the lithium battery is charged, and its charging power P bat,ch_1 (t) = Δ P- ( P on,alk + P min,PEM );
[0116] (2) When P on,alk + P min,PEM <Δ P ≤ P on,alk + P max,PEM When the alkaline electrolyzer is cold-started at minimum power, its hydrogen production power is 0 (i.e. P alk_1 (t) = 0), at this time P PEM_1 (t) = Δ PP on,alk ;
[0117] (3) When P on,alk + P max,PEM <Δ P When the alkaline electrolyzer is cold-started at minimum power, its hydrogen production power is 0 (i.e. P alk_1 (t) = 0), at this time P PEM_1 (t)= P max,PEM , lithium battery charging, its charging power P bat,ch_1 (t) is pain (( SOC max - SOC ( t- 1)) *P rated_bat , Δ P- (P on,alk +P max,PEM )), the excess power after the lithium battery is fully charged is recorded as the abandoned wind and solar power. P rated_bat Rated capacity of lithium battery.
[0118] The second power allocation model expression is:
[0119] (2);
[0120] Where: P PEM_2 ( t ) is the hydrogen production power of the PEM electrolyzer under the second power allocation model, P alk_2 ( t ) is the hydrogen production power of the alkaline electrolyzer under the second power allocation model. From small to large, there are four points ( P on,alk / P min,alk , P max,alk , P min,PEM and P max,PEM ), these four points form five interval ranges.
[0121] like Figure 6 As shown, the second power allocation model expression process is:
[0122] (1) When Δ P ≤ P on,alk hour, P alk_2 (t)= P on,alk , at this time the lithium battery charging power P bat,ch_2 (t) = Δ P- P on,alk ;
[0123] (2) When P on,alk <Δ P ≤ P max,alk hour, P alk_2 (t) = Δ P ;
[0124] (3) When P max,alk <Δ P ≤ Pmax,alk +P min,PEM hour, P alk_2 (t)= P max,alk , P PEM_2 (t)=0, the remaining power is used to charge the lithium battery, that is, the charging power of the lithium battery under this model P bat,ch_2 (t) = Δ PP max,alk ;
[0125] (4) When P max,alk +P min,PEM <Δ P ≤ P max,alk +P max,PEM hour, P alk_2 (t)= P max,alk , the PEM electrolyzer produces hydrogen with surplus power, that is P PEM_2 (t) = Δ PP max,alk ;
[0126] (5) When P max,alk +P max,PEM <Δ P When , both the alkaline electrolyzer and the PEM electrolyzer produce hydrogen at their respective maximum operating powers, i.e. P alk_2 (t)= P max,alk , P PEM_2 (t)= P max,PEM , at this time the lithium battery charging power P bat,ch_2 (t)= pain (( SOC max -SOC ( t- 1)) *P rated_bat , Δ P- ( P max,alk +P max,PEM )), the excess power after the lithium battery is fully charged is recorded as the abandoned wind and solar power.
[0127] The third power allocation model expression is:
[0128] (3);
[0129] Where: P PEM_3 ( t ) is the hydrogen production power of the PEM electrolyzer under the third power allocation model, P alk_3 ( t ) is the hydrogen production power of the alkaline electrolyzer under the third power allocation model.
[0130] like Figure 7 As shown, the third power allocation model expression process is:
[0131] (1) When Δ P ≤ P on,alk + P min,PEM hour, P alk_3 (t)= P on,alk , P PEM_3 (t)= P min,PEM , at this time the lithium battery charging power P bat,ch_3 (t) = Δ P- ( P on,alk + P min,PEM );
[0132] (2) When P on,alk + P min,PEM <Δ P ≤ P on,alk + P max,PEM When the alkaline electrolyzer produces hydrogen at minimum power P alk_3 (t)= P on,alk , the PEM electrolyzer produces hydrogen with the remaining power, that is, at this time P PEM_3 (t) = Δ PP on,alk ;
[0133] (3) When P on,alk + P max,PEM <Δ P ≤P max,alk + P max,PEM When the PEM electrolyzer produces hydrogen at maximum power P PEM_3 (t)= P max,PEM , the alkaline electrolyzer produces hydrogen with the remaining power P alk_3 (t) = Δ PP max,PEM ;
[0134] (4) When P max,alk + P max,PEM <Δ P When the alkaline electrolyzer and PEM electrolyzer produce hydrogen at their respective maximum operating powers, P PEM_3 (t)= P max,PEM , P alk_3 (t)= P max,alk , at this time the lithium battery charging power is P bat,ch_3 (t)= pain (( SOC max -SOC ( t- 1 )) *P rated_bat , Δ P- ( P max,alk +P max,PEM )) Charging, the excess power after the lithium battery is fully charged is recorded as abandoned wind and solar power.
[0135] Step 5.2, when SOC on,PEM < SOC ( t-1 )≤ SOC on,alk When the alkaline electrolytic cell is started at the last moment, first determine whether it is started;
[0136] Step 5.2.1, if the alkaline electrolyzer is in the startup state at the last moment, execute the third power allocation model;
[0137] Step 5.2.2: If the alkaline electrolyzer is in the off state at the last moment, the fourth power allocation model is executed.
[0138] The fourth power allocation model expression is:
[0139] (4);
[0140] Where: P PEM_4 ( t ) is the hydrogen production power of the PEM electrolyzer under the fourth power allocation model, P alk_4 ( t ) is the hydrogen production power of the alkaline electrolyzer under the fourth power allocation model.
[0141] like Figure 8 As shown, the fourth power allocation model expression process is:
[0142] (1) When Δ P ≤ P min.PEM (Also P on.PEM )hour, P PEM_4 (t)= P on.PEM , at this time the lithium battery charging power P bat,ch_4 (t) = Δ PP on.PEM ;
[0143] (2) When P min.PEM <Δ P ≤ P max.PEM hour, P PEM_4 (t) = Δ P ;
[0144] (3) When P max.PEM <Δ P hour, P PEM_4 (t)= P max.PEM , lithium battery charging, at this time the lithium battery charging power P bat,ch_4 (t)= pain (( SOC max -SOC ( t-1 )) *P rated_bat , Δ PP max,PEM ), the excess power after the lithium battery is fully charged is recorded as the abandoned wind and solar power.
[0145] Step 5.3, when SOC off,el< SOC ( t-1 )≤ SOC on,PEM When the alkaline electrolytic cell is started at the last moment, first determine whether it is started;
[0146] Step 5.3.1, if it is determined that the alkaline electrolyzer is in the startup state at the previous moment, the third power allocation model is executed;
[0147] Step 5.3.2, if the alkaline electrolyzer was in the off state at the last moment, determine whether the PEM electrolyzer was in the on state at the last moment;
[0148] Step 5.3.2.1, if the PEM electrolyzer is in the startup state at the last moment, execute the fourth power allocation model;
[0149] Step 5.3.2.2, if the PEM electrolyzer is in the off state at the last moment, execute the fifth power allocation model;
[0150] The fifth power allocation model expression is:
[0151] (5);
[0152] Where: P PEM_5 is the hydrogen production power of the PEM electrolyzer under the fifth power allocation model, P alk_5 It is the hydrogen production power of the alkaline electrolyzer under the fifth power allocation model.
[0153] like Figure 9 As shown in FIG. 1 , the fifth power allocation model describes the process as follows: neither the alkaline nor the PEM electrolyzer is in operation, and all the excess power is used to charge the lithium battery. The excess power after the lithium battery is fully charged is recorded as the abandoned wind and solar power. P bat,ch_5 (t)= pain (( SOC max - SOC ( t-1 )) *P rated_bat , Δ P ).
[0154] Step 5.4, when SOC off,fc < SOC ( t-1 )≤ SOC off,elz When , the fifth power allocation model is executed.
[0155] Step 5.5, when SOCon,fc < SOC ( t-1 )≤ SOC off,fc When the fuel cell is started, first determine whether it was started at the last moment;
[0156] Step 5.5.1: If the fuel cell was in operation at the last moment (i.e. X fc (t-1)=0 does not hold), then the sixth power allocation model is executed;
[0157] Step 5.5.2, if the fuel cell was not running at the last moment (i.e. X fc (t-1)=0), then the fifth power allocation model is executed;
[0158] The sixth power allocation model expression is:
[0159] (6);
[0160] Where: P PEM_6 is the hydrogen production power of the PEM electrolyzer under the sixth power allocation model, P alk_6 is the hydrogen production power of the alkaline electrolyzer under the sixth power allocation model, P fc_6 is the working power of the fuel cell under the sixth power allocation model, and the charging power of the lithium battery is P bat,ch_6 (t) = Δ PP min.fc The sixth power allocation model is as follows: Figure 10 shown.
[0161] Step 5.6, when SOC min < SOC ( t-1 )≤ SOC on,fc When , the fifth power allocation model is executed.
[0162] Step 6, first determine the remaining power of the lithium battery and -Δ P If the remaining power of the lithium battery is ≥-Δ P , the state of charge of the fuel cell when it is turned off and the state of charge when it is turned on are used to divide the range of the state of charge allowed by the lithium battery into four sub-ranges from large to small, namely SOC off,elz ~SOC max 、SOC off,fc ~SOC off,elz SOC on,fc ~SOC off,fc 、SOC min ~ SOC on,fc Four ranges, according to the position of the state of charge value of the lithium battery at the last moment falling into the four sub-ranges, the remaining power of the lithium battery and the operating state of the fuel cell at the last moment, the hydrogen production power of the PEM electrolyzer and the hydrogen production power of the alkaline electrolyzer are set;
[0163] When in power supply mode, the fuel cell supplies power as follows:
[0164]
[0165] in P fc ( t ) is the working power of the fuel cell at the current moment, P alk ( t ) is the hydrogen production power of the alkaline electrolyzer at the current moment, P PEM ( t ) is the hydrogen production power of the PEM electrolyzer at the current moment, X fc ( t-1 ) is a state variable indicating the operating state of the fuel cell at the last moment, a value of 1 indicates that the fuel cell was operating at the last moment, and a value of 0 indicates that the fuel cell was not operating at the last moment; F ( t-1 ) is a state variable used to determine whether the lithium battery can provide -ΔP. Its value is 1, indicating that the remaining power of the lithium battery can provide -ΔP, and its value is 0, indicating that the remaining power of the lithium battery cannot provide -ΔP; for F ( t-1 ), F ( t-1 ) is 1, its value is 0. F ( t-1 ) is 0, its value is 1; G ( t-1 ) is an indicator for determining whether the smaller value of the remaining hydrogen storage and the maximum power of the fuel cell can provide -ΔP, for G ( t-1 ), G ( t-1 ) is 1, its value is 0. F ( t-1 ) is 0, its value is 1; its expression is as follows:
[0166]
[0167] in P hy ( t-1 ) represents the power that can be converted by the remaining hydrogen storage; η eff,fc Indicates the efficiency of the fuel cell; P rated,bat Indicates the rated capacity of the lithium battery.
[0168] The specific process is:
[0169] Step 6.1, when the remaining power of the lithium battery is ≥-Δ P When the remaining power of the lithium battery is less than -Δ P When the remaining power of the lithium battery is all used for power supply, the seventh power allocation model is executed:
[0170] (7);
[0171] in P fc_7 ( t ) is the operating power of the fuel cell under the seventh power allocation model; P max,fc is the maximum operating power of the fuel cell, P hy ( t-1 ) represents the power that can be converted by the remaining hydrogen storage; η eff,fc Indicates the efficiency of the fuel cell; P req,fc Indicates the remaining power that the fuel cell needs to provide.
[0172] like Figure 11 As shown, the seventh power allocation model expression process is: first -Δ P Subtract the total power that the lithium battery can provide to get P req,fc ,Right now P req,fc =-Δ P- ( SOC(t- 1 )-SOC min ) *P rated,bat ;if P req,fc ≥ P hy ( t-1 ) * η eff,fc , the fuel cell is Pfc_7 (t)= pain ( P max,fc ,P hy ( t-1 ) *η eff,fc ) power operation, LPS= 1, P hy ( t )= P hy ( t-1 )- P fc (t) / η eff,fc ,in P hy ( t ) is the power that can be converted by the remaining hydrogen storage at the current moment, P hy ( t-1 ) represents the power that can be converted by the remaining hydrogen storage at the previous moment, η eff,fc represents the efficiency of the fuel cell. If P req,fc < ,like ≤P max,fc ,but P fc_7 ( t )= P req,fc , the moment LPS= 0; if > P max,fc ,judge P req,fc < P max,fc hour, P fc_7 ( t )= P req,fc , the moment LPS= 0, P hy ( t )= P hy ( t-1 )- P fc (t) / η eff,fc ,judge P req,fc ≥ P max,fc WhenP fc_7 ( t )= P max,fc , the moment LPS= 1, P hy ( t )= P hy ( t-1 )- P fc (t) / η eff,fc .
[0173] Step 6.2, when SOC off,elz < SOC ( t-1 )≤ SOC max When the lithium battery discharges, its discharge power is -Δ P +P alk ( t ) + P PEM ( t ), the fuel cell is not running; the working state of the two electrolyzers is the same as the previous moment, and hydrogen is produced at their respective minimum hydrogen production power, where, P alk ( t )and P PEM ( t ) are the hydrogen production powers of the alkaline electrolyzer and the PEM electrolyzer at the current state; for example, if the alkaline electrolyzer was running at the last moment, then at the current moment P min,alk Hydrogen production: if the alkaline electrolyzer was not running at the last moment, then the alkaline electrolyzer will not be running at the current moment; if the PEM electrolyzer was running at the last moment, then it will be running at the current moment. P min,PEM For hydrogen production, if the alkaline electrolyzer was not operating at the previous moment, the alkaline electrolyzer will not be operating at the current moment.
[0174] Step 6.3, when SOC off,fc < SOC ( t-1 )≤ SOC off,elz When the lithium battery discharges, its discharge power P bat,dis (t)=-Δ P , the fuel cell does not operate 。
[0175] Step 6.4, when SOC on,fc < SOC ( t-1 )≤ SOC off,fc When the fuel cell operation status at the previous moment is determined,
[0176] Step 6.4.1, if the fuel cell was not running at the last moment (i.e. X fc ( t -1)=0), the lithium battery discharges, and its discharge power P bat,dis (t)=-Δ P , the fuel cell does not operate;
[0177] Step 6.4.2: If the fuel cell was running at the last moment, record the smaller value of the remaining hydrogen storage at the current moment and the maximum power of the fuel cell as P 0 ,judge P 0 With -Δ P The size of; Among them, the remaining hydrogen storage at the current moment is P hy (t), P hy (t)= P hy (t-1)* η eff,fc , P hy ( t-1 ) represents the power that can be converted by the remaining hydrogen storage at the previous moment, η eff,fc Indicates the efficiency of the fuel cell;
[0178] Step 6.4.2.1, when P 0 ≤-Δ P When the fuel cell P 0 Size operation, i.e. P fc (t)= P 0 , lithium battery discharge, its discharge power P bat,dis (t)=-( P 0+ Δ P );
[0179] Step 6.4.2.2, when P 0 >-Δ P When the fuel cell is -Δ P Size operation, i.e.P fc (t)=-Δ P , lithium battery does not operate P bat,dis (t) = 0;
[0180] Step 6.5, when SOC min < SOC ( t- 1)≤ SOC on,fc When judging P 0 With -Δ P The size of P 0 >-Δ P When , the execution process is the same as step 6.4.2.2; when P 0 ≤-Δ P The execution process is the same as step 6.4.2.1.
[0181] As shown in Table 2, compared with the traditional power allocation model under the same configuration, the hysteresis-based power allocation model proposed in this paper reduces the start and stop times of the alkaline electrolyzer by 69.0%; the start and stop times of the PEM electrolyzer by 61.0%; the start and stop times of the fuel cell by 36.2%; and the power shortage probability is also reduced from 0.35% to 0.01%.
[0182] Table 2
[0183]
[0184] The principle of power distribution of electric-hydrogen energy storage microgrid based on hysteresis loop is as follows: Figure 12 shown.
[0185] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Those skilled in the art should understand that the present invention includes but is not limited to the contents described in the drawings and the above specific embodiments. Any modification that does not deviate from the functional and structural principles of the present invention will be included in the scope of the claims.
Claims
1. A power allocation method for an electric-hydrogen energy storage microgrid based on a hysteresis loop, characterized in that: include: Step 1, constructing a microgrid, wherein the microgrid includes a wind power generation module, a photovoltaic power generation module, a lithium battery, a load module and a hydrogen energy storage module connected to the power grid, wherein the hydrogen energy storage module includes an alkaline electrolyzer, a PEM electrolyzer, a hydrogen storage tank and a fuel cell; Step 2: Collect the power of the wind power generation module, the power of the photovoltaic power generation module, the power of the load module in the constructed microgrid at the current moment, and the state of charge value of the lithium battery at the previous moment SOC ( t- 1); Step 3: Obtain the maximum state of charge allowed by the lithium battery SOC max , minimum state of charge SOC min , the charge state of alkaline electrolyzer and PEM electrolyzer startup SOC on,alk , SOC on,PEM , the state of charge when both electrolyzers are closed SOC off,elz , and the fuel cell startup state of charge SOC on,fc , turn off the state of charge SOC off,fc ; Step 4: record the difference between the total power of the wind power generation module and the photovoltaic power generation module at the current moment and the power of the load module as Δ P , Δ P ≥0, the microgrid is judged to be in energy storage mode, and step 5 is executed, Δ P When <0, the microgrid is judged to be in power supply mode and step 6 is executed; Step 5, using the state of charge of the alkaline electrolyzer startup SOC on,alk , Charge state of PEM electrolyzer startup SOC on,PEM , the state of charge when both electrolyzers are closed SOC off,elz , Fuel cell shutdown state of charge SOC off,fc and fuel cell startup state of charge SOC on,fc , the range of the state of charge allowed for lithium batteries, that is SOC min ~ SOC max It is divided into six sub-ranges from large to small, namely SOC on,alk ~ SOC max , SOC on,PEM ~ SOC on,alk , SOC off,elz ~ SOC on,PEM , SOC off,fc ~ SOC off,elz , SOC on,fc ~SOC off,fc , SOC min ~ SOC on,fc , the specific process is: Step 5.1, when the state of charge value of the lithium battery at the last moment is collected, it is between the starting state of charge of the alkaline electrolytic cell and the maximum state of charge of the lithium battery. SOC on,alk < SOC ( t-1 )≤ SOC max When the alkaline electrolytic cell is started at the last moment, first determine whether it is started; Step 5.1.1, if the alkaline electrolytic cell was not started at the last moment, first allocate the power required for the cold start of the alkaline electrolytic cell to the alkaline electrolytic cell, so that the alkaline electrolytic cell is in a cold start state, and then execute the first power allocation model; Step 5.1.2, if the alkaline electrolyzer was in the startup state at the last moment, determine whether the PEM electrolyzer was started at the last moment; Step 5.1.2.1, if the PEM electrolyzer is in the off state at the last moment, execute the second power allocation model; Step 5.1.2.2, if the PEM electrolyzer is in the startup state at the last moment, execute the third power allocation model; Step 5.2, when the state of charge value of the lithium battery at the last moment is collected, it is between the starting state of charge of the PEM electrolyzer and the starting state of charge of the alkaline electrolyzer, that is, SOC on,PEM < SOC ( t-1 )≤ SOC on,alk When the alkaline electrolytic cell is started at the last moment, first determine whether it is started; Step 5.2.1, if the alkaline electrolyzer is in the startup state at the last moment, execute the third power allocation model; Step 5.2.2, if the alkaline electrolyzer is in the off state at the last moment, execute the fourth power allocation model; Step 5.3, when the state of charge value of the lithium battery at the last moment is collected, it is between the state of charge when both electrolyzers are closed and the state of charge when the PEM electrolyzer is started, that is, SOC off,elz < SOC ( t-1 )≤ SOC on,PEM When the alkaline electrolytic cell is started at the last moment, first determine whether it is started; Step 5.3.1, if the alkaline electrolyzer is in the startup state at the last moment, execute the third power allocation model; Step 5.3.2, if the alkaline electrolyzer was in the off state at the last moment, determine whether the PEM electrolyzer was in the on state at the last moment; Step 5.3.2.1, if the PEM electrolyzer is in the startup state at the last moment, execute the fourth power allocation model; Step 5.3.2.2, if the PEM electrolyzer is in the off state at the last moment, execute the fifth power allocation model; Step 5.4, when the state of charge value of the lithium battery at the last moment is collected, it is between the state of charge when the fuel cell is turned off and the state of charge when both electrolyzers are turned off, that is, SOC off,fc < SOC ( t-1 )≤ SOC off,elz When , the fifth power allocation model is executed; Step 5.5, when the state of charge value of the lithium battery at the previous moment is collected, it is between the state of charge of the fuel cell on and the state of charge of the fuel cell off. SOC on,fc < SOC ( t-1 )≤ SOC off,fc When the fuel cell is started at the last moment, first determine whether it is started; Step 5.5.1, if the fuel cell was in operation at the last moment, execute the sixth power allocation model; Step 5.5.2, if the fuel cell was not running at the last moment, execute the fifth power allocation model; Step 5.6, when the state of charge value of the lithium battery at the previous moment is collected, it is between the minimum state of charge of the lithium battery and the start-up state of charge of the fuel cell, that is, SOC min < SOC ( t-1 )≤ SOC on,fc When , the fifth power allocation model is executed; The first power allocation model is expressed as follows: (1) When Δ P ≤ P on,alk + P min,PEM , the alkaline electrolyzer is cold started at minimum power, but its hydrogen production power is 0, and the PEM electrolyzer produces hydrogen at minimum operating power, that is, P PEM_1 (t)= P min,PEM At this time, the lithium battery is charged, and its charging power P bat,ch_1 (t) = Δ P- ( P on,alk + P min,PEM ); P PEM_1 ( t ) is the hydrogen production power of the PEM electrolyzer under the first power allocation model, P alk_1 is the hydrogen production power of the alkaline electrolyzer under the first power allocation model; P on,alk is the power required to start the alkaline electrolyzer, P min,PEM is the minimum operating power of the PEM electrolyzer; (2) When P on,alk + P min,PEM <Δ P ≤ P on,alk + P max,PEM When the alkaline electrolyzer is cold-started at minimum power, its hydrogen production power is 0. P PEM_1 (t) = Δ PP on,alk ; P max,PEM The maximum operating power of the PEM electrolyzer (3) When P on,alk + P max,PEM <Δ P When the alkaline electrolyzer is cold-started at minimum power, its hydrogen production power is 0. P PEM_1 (t)= P max,PEM , lithium battery charging, its charging power P bat,ch_1 (t) is min (( SOC max -SOC ( t- 1)) *P rated_bat , Δ P- ( P on,alk +P max,PEM )), the excess power after the lithium battery is fully charged is recorded as the abandoned wind and solar power; P rated_bat is the rated capacity of the lithium battery; The second power allocation model is expressed as follows: (1) When Δ P ≤ P on,alk hour, P alk_2 (t)= P on,alk , at this time the lithium battery charging power P bat,ch_2 (t) = Δ PP on,alk ; (2) When P on,alk <Δ P ≤ P max,alk When P alk_2 (t) = Δ P ; (3) When P max,alk <Δ P ≤ P max,alk +P min,PEM hour, P alk_2 (t)= P max,alk , P PEM_2 (t)=0, the remaining power is used to charge the lithium battery, that is, the charging power of the lithium battery under this model P bat,ch_2 (t) = Δ PP max,alk ; (4) When P max,alk +P min,PEM <Δ P ≤ P max,alk +P max,PEM hour, P alk_2 (t)= P max,alk , the PEM electrolyzer produces hydrogen with surplus power, that is P PEM_2 (t) = Δ PP max,alk ; (5) When P max,alk +P max,PEM <Δ P When , both the alkaline electrolyzer and the PEM electrolyzer produce hydrogen at their respective maximum operating powers, i.e. P alk_2 (t)= P max,alk , P PEM_2 (t)= P max,PEM , at this time the lithium battery charging power P bat,ch_2 (t)= min (( SOC max -SOC ( t- 1)) *P rated_bat , Δ P- ( P max,alk +P max,PEM )), the excess power after the lithium battery is fully charged is recorded as the abandoned wind and solar power; P PEM_2 ( t ) is the hydrogen production power of the PEM electrolyzer under the second power allocation model, P alk_2 ( t ) is the hydrogen production power of the alkaline electrolyzer under the second power allocation model, P max,alk is the maximum operating power of the alkaline electrolyzer; The third power allocation model expression process is: (1) When Δ P ≤ P on,alk + P min,PEM hour, P alk_3 (t)= P on,alk , P PEM_3 (t)= P min,PEM , at this time the lithium battery charging power P bat,ch_3 (t) = Δ P- ( P on,alk + P min,PEM ); (2) When P on,alk + P min,PEM <Δ P ≤ P on,alk + P max,PEM When the alkaline electrolyzer produces hydrogen at minimum power P alk_3 (t)= P on,alk , the PEM electrolyzer produces hydrogen with the remaining power, that is, at this time P PEM_3 (t) = Δ PP on,alk ; (3) When P on,alk + P max,PEM <Δ P ≤ P max,alk + P max,PEM When the PEM electrolyzer produces hydrogen at maximum power P PEM_3 (t)= P max,PEM , the alkaline electrolyzer produces hydrogen with the remaining power P alk_3 (t) = Δ PP max,PEM ; (4) When P max,alk + P max,PEM <Δ P When the alkaline electrolyzer and PEM electrolyzer produce hydrogen at their respective maximum operating powers, P PEM_3 (t)= P max,PEM , P alk_3 (t)= P max,alk , at this time the lithium battery charging power is P bat,ch_3 (t)= min (( SOC max -SOC ( t-1 )) * P rated_bat , Δ P- ( P max,alk +P max,PEM )) Charging, the excess power after the lithium battery is fully charged is recorded as abandoned wind and solar power; P PEM_3 ( t ) is the hydrogen production power of the PEM electrolyzer under the third power allocation model, P alk_3 ( t ) is the hydrogen production power of the alkaline electrolyzer under the third power allocation model, P on,PEM is the power required to start the PEM electrolyzer, P min,PEM is the minimum operating power of the PEM electrolyzer, P on,PEM Numerical and P min,PEM equal; The fourth power allocation model expression process is: (1) When Δ P ≤ P min.PEM hour, P PEM_4 (t)= P on.PEM , at this time the lithium battery charging power P bat,ch_4 (t) = Δ PP on.PEM ; (2) When P min.PEM <Δ P ≤ P max.PEM When P PEM_4 (t)=Δ P ; (3) When P max.PEM <Δ P hour, P PEM_4 (t)= P max.PEM , lithium battery charging, at this time the lithium battery charging power P bat,ch_4 (t)= min (( SOC max -SOC ( t-1 )) *P rated_bat , Δ PP max,PEM ), the excess power after the lithium battery is fully charged is recorded as the abandoned wind and solar power; P PEM_4 ( t ) is the hydrogen production power of the PEM electrolyzer under the fourth power allocation model, P alk_4 ( t ) is the hydrogen production power of the alkaline electrolyzer under the fourth power allocation model; The fifth power allocation model describes the process as follows: neither the alkaline nor the PEM electrolyzer is in operation, and all the excess power is used to charge the lithium battery. The excess power after the lithium battery is fully charged is recorded as the abandoned wind and solar power. The sixth power allocation model expression is: (6); Where: P PEM_6 is the hydrogen production power of the PEM electrolyzer under the sixth power allocation model, P alk_6 is the hydrogen production power of the alkaline electrolyzer under the sixth power allocation model, P fc_6 is the operating power of the fuel cell under the sixth power allocation model, P min,fc is the minimum operating power of the fuel cell; Step 6, first determine the remaining power of the lithium battery and -Δ P If the remaining power of the lithium battery is ≥-Δ P , then the two electrolytic cells are in the closed charging state SOC off,elz and the state of charge when the fuel cell is turned off SOC off,fc , Enabled state of charge SOC on,fc , the range of the state of charge allowed by the lithium battery is divided into four sub-ranges from large to small, namely SOC off,elz ~ SOC max , SOC off,fc ~SOC off,elz , SOC on,fc ~SOC off,fc , SOC min ~ SOC on,fc Four ranges, according to the position of the state of charge value of the lithium battery at the last moment falling into the four sub-ranges, the remaining power of the lithium battery and the operating state of the fuel cell at the last moment, the working power of the lithium battery and the fuel cell and the hydrogen production power of the PEM electrolyzer and the alkaline electrolyzer are set; Among them, the expression of the remaining power of the lithium battery is ( SOC ( t- 1) -SOC min ) *P rated,bat , P rated,bat Indicates the rated capacity of the lithium battery. SOC ( t- 1) is the state of charge value of the lithium battery at the last moment, SOC min It is the minimum state of charge allowed for lithium batteries; the specific process is: Step 6.1, when the remaining power of the lithium battery is ≥-Δ P When the remaining power of the lithium battery is less than -Δ P When the remaining power of the lithium battery is fully used for power supply, the seventh power allocation model is executed; Step 6.2, when the state of charge of the lithium battery at the last moment is between the state of charge when both electrolytic cells are closed and the maximum state of charge of the lithium battery, that is, SOC off,elz < SOC ( t-1 )≤ SOC max At this time, the lithium battery is discharged and the fuel cell is not running; the working status of the two electrolyzers is the same as the previous moment, and hydrogen is produced at their respective minimum hydrogen production power; Step 6.3, when the state of charge of the lithium battery at the last moment is between the state of charge of the fuel cell being turned off and the state of charge of both electrolyzers being turned off, that is, SOC off,fc < SOC ( t-1 )≤ SOC off,elz When the lithium battery discharges, its discharge power is -Δ P , the fuel cell does not operate; Step 6.4, when the lithium battery charge state at the last moment is between the fuel cell on charge state and the fuel off charge state, that is SOC on,fc < SOC ( t-1 )≤ SOC off,fc When the fuel cell operation status at the previous moment is determined, Step 6.4.1, if the fuel cell was not running at the last moment, the lithium battery is discharged, and its discharge power is -ΔP, and the fuel cell does not run; Step 6.4.2: If the fuel cell was running at the last moment, record the smaller value of the remaining hydrogen storage at the current moment and the maximum power of the fuel cell as P 0, judge P 0 and -Δ P The size of; Among them, the remaining hydrogen storage at the current moment is P hy (t), P hy (t)= P hy (t-1)* η eff,fc , P hy ( t-1 ) represents the power that can be converted by the remaining hydrogen storage at the previous moment, η eff,fc Indicates the efficiency of the fuel cell; Step 6.4.2.1, when P 0≤-Δ P When the fuel cell P 0 size operation, the lithium battery makes up the remaining power, with -( P 0+ Δ P ) Large and small discharge operation; Step 6.4.2.2, when P 0>-Δ P When the fuel cell is -Δ P Size runs, lithium battery does not run; Step 6.5, when the last moment the lithium battery state of charge is between the minimum state of charge of the lithium battery and the fuel cell start-up state of charge, that is, SOC min < SOC ( t- 1)≤ SOC on,fc When judging P 0 and -Δ P The size of P 0>-Δ P When , the execution process is the same as step 6.4.2.2; when P 0≤-Δ P When , the execution process is the same as step 6.4.2.1; The seventh power allocation model expression process is: first -Δ P Subtract the total power that the lithium battery can provide to get P req,fc ,Right now P req,fc =-Δ P- ( SOC(t- 1 )-SOC min ) *P rated,bat ;if P req,fc ≥ P hy ( t-1 ) *η eff,fc , the fuel cell is P fc_7 (t)= min ( P max,fc ,P hy ( t-1 ) *η eff,fc ) power operation, LPS= 1, P hy ( t )= P hy ( t-1 )- P fc (t) / η eff,fc ,in P hy ( t ) is the power that can be converted by the remaining hydrogen storage at the current moment, P hy ( t-1 ) represents the power that can be converted by the remaining hydrogen storage at the previous moment, η eff,fc represents the efficiency of the fuel cell; if P req,fc < P hy ( t-1 ) *η eff,fc ,like P hy ( t-1 ) * η eff,fc ≤P max,fc ,but P fc_7 ( t )= P req,fc , the moment LPS= 0; if P hy ( t-1 ) *η eff,fc > P max,fc ,judge P req,fc < P max,fc hour, P fc_7 ( t )= P req,fc , the moment LPS= 0, P hy ( t )= P hy ( t-1 )- P fc (t) / η eff,fc ,judge P req,fc ≥ P max,fc When P fc_7 ( t )= P max,fc , the moment LPS= 1, P hy ( t )= P hy ( t-1 )- P fc (t) / η eff,fc in P fc_7 ( t ) is the operating power of the fuel cell under the seventh power allocation model, P max,fc is the maximum operating power of the fuel cell; P req,fc Indicates the remaining power that the fuel cell needs to provide.
2. According to the hysteresis-based electric-hydrogen energy storage microgrid power allocation method of claim 1, the first power allocation model expression is: (1); in, P PEM_1 ( t ) is the hydrogen production power of the PEM electrolyzer under the first power allocation model, P alk_1 is the hydrogen production power of the alkaline electrolyzer under the first power allocation model; P on,alk is the power required to start the alkaline electrolyzer, P min,PEM is the minimum operating power of the PEM electrolyzer, P max,PEM is the maximum operating power of the PEM electrolyzer.
3. The hysteresis-based electric-hydrogen energy storage microgrid power allocation method according to claim 2 is characterized in that: The second power allocation model expression is: (2); Where: P PEM_2 ( t ) is the hydrogen production power of the PEM electrolyzer under the second power allocation model, P alk_2 ( t ) is the hydrogen production power of the alkaline electrolyzer under the second power allocation model, P max,alk It is the maximum working power of alkaline electrolyzer.
4. The hysteresis-based electric-hydrogen energy storage microgrid power allocation method according to claim 3 is characterized in that: The third power allocation model expression is: (3); Where: P PEM_3 ( t ) is the hydrogen production power of the PEM electrolyzer under the third power allocation model, P alk_3 ( t ) is the hydrogen production power of the alkaline electrolyzer under the third power allocation model, P on,PEM is the power required to start the PEM electrolyzer, P min,PEM is the minimum operating power of the PEM electrolyzer, P on,PEM Numerical and P min,PEM equal.
5. The hysteresis-based electric-hydrogen energy storage microgrid power allocation method according to claim 4 is characterized in that: The fourth power allocation model expression is: (4); Where: P PEM_4 ( t ) is the hydrogen production power of the PEM electrolyzer under the fourth power allocation model, P alk_4 ( t ) is the hydrogen production power of the alkaline electrolyzer under the fourth power allocation model.
6. The hysteresis-based electric-hydrogen energy storage microgrid power allocation method according to claim 2 is characterized in that: The fifth power allocation model expression is: (5); Where: P PEM_5 is the hydrogen production power of the PEM electrolyzer under the fifth power allocation model, P alk_5 It is the hydrogen production power of the alkaline electrolyzer under the fifth power allocation model.
7. The hysteresis-based electric-hydrogen energy storage microgrid power allocation method according to claim 1 is characterized in that: The seventh power allocation model expression is: (7); in P fc_7 ( t ) is the operating power of the fuel cell under the seventh power allocation model; P max,fc is the maximum operating power of the fuel cell; P req,fc Indicates the remaining power that the fuel cell needs to provide.
