Hydrogen production method, device, storage medium and electronic equipment based on renewable energy

By using a hydrogen production system based on a long short-term memory neural network model and an error compensation strategy, the shortcomings of existing hydrogen production systems in terms of regulation efficiency and energy efficiency have been addressed. This system has achieved adaptation to high-frequency fluctuations in renewable energy and stable control of hydrogen grid pressure, thereby improving the overall energy efficiency of the hydrogen production system.

CN123153071APending Publication Date: 2026-11-24PETROCHINA SHENZHEN NEW ENERGY RESEARCH INSTITUTE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510651890.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing hydrogen production systems have shortcomings in terms of regulation efficiency and energy efficiency. In particular, alkaline electrolyzers cannot effectively absorb the high-frequency fluctuations of renewable energy, requiring the configuration of large-capacity energy storage equipment, which is costly and has low regulation efficiency, and cannot achieve second-level dynamic compensation.

Method used

A long short-term memory neural network model is used to predict the power generation of renewable energy. By combining error compensation strategy and model predictive control to optimize the objective function, dynamic allocation of power generation from natural gas to hydrogen and from water electrolysis is achieved. Furthermore, the regulation efficiency of the hydrogen production system is improved through temperature-current dual closed-loop control and waste heat utilization of tail gas.

Benefits of technology

It effectively reduced hydrogen production reaction time, improved hydrogen production regulation efficiency, reduced system costs, enhanced overall energy efficiency, and achieved adaptation to high-frequency fluctuations in renewable energy and stable control of hydrogen grid pressure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123153071A_ABST
    Figure CN123153071A_ABST
Patent Text Reader

Abstract

This invention relates to a method, apparatus, storage medium, and electronic device for hydrogen production based on renewable energy. The method includes: obtaining a predicted power generation capacity based on collected power generation data and a long short-term memory neural network model; compensating for errors in the predicted power generation capacity using an error compensation strategy; decomposing the compensated predicted power capacity based on a model predictive control optimization objective function to obtain the hydrogen production capacity from natural gas and the hydrogen production capacity from water electrolysis, and then transporting the produced hydrogen to a hydrogen grid; monitoring the measured temperature of the operating water electrolysis hydrogen production process, and performing temperature-current dual closed-loop control on the hydrogen production capacity based on the measured temperature, a set temperature, and a set current; monitoring the tail gas temperature of the operating natural gas hydrogen production process, and obtaining the waste heat used for water electrolysis hydrogen production based on the measured temperature and tail gas temperature to preheat the water; and adjusting the amount of natural gas used for natural gas hydrogen production according to preset hydrogen grid status data. This can improve the efficiency of hydrogen production regulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hydrogen production technology, and in particular to a method, apparatus, storage medium and electronic equipment for hydrogen production based on renewable energy. Background Technology

[0002] As the global energy structure continues to shift towards low-carbon and clean energy, hydrogen energy, with its advantages of low carbon emissions, high energy density, and high conversion efficiency, is a crucial vehicle for achieving a green and low-carbon transition. Related technologies generally employ natural gas to hydrogen production or water electrolysis to produce hydrogen. Natural gas to hydrogen production utilizes steam methane reforming (SMR) or autothermal reforming of methane (ATR) technologies, converting natural gas (CH4) into hydrogen (H2) through a high-temperature catalytic reaction. A typical reaction formula is as follows:

[0003] CH4 + H2O → CO + 3H2

[0004] ATR technology integrates partial oxidation reactions, which can shorten the start-up time to 1 minute, but the carbon emission intensity is as high as 10-12 kgCO2 / kgH2.

[0005] Hydrogen production via water electrolysis utilizes renewable electricity and employs an alkaline water electrolyzer stack (ALK) to decompose water and generate hydrogen gas. The reaction formula is as follows:

[0006] 2H₂O→2H₂+O₂

[0007] The power regulation rate of the water electrolysis hydrogen production system is limited by thermal inertia and can only support a rate change of 2-3% / s. It is necessary to shorten the response time by using thermal backup (maintaining 70-90℃).

[0008] To improve hydrogen production efficiency, the improved hydrogen production system adopts a parallel hydrogen supply architecture, including: an alkaline electrolyzer, a natural gas hydrogen production unit, and a hydrogen storage tank. The alkaline electrolyzer handles the base load, the natural gas hydrogen production unit serves as a backup, and the hydrogen storage tank buffers short-term fluctuations (its capacity is typically designed to cover 10-30 minutes of demand). For cases where the exhaust gas temperature in the natural gas hydrogen production unit reaches 800-1000℃, some heat is recovered through a waste heat boiler (efficiency approximately 40-50%). The control strategy primarily uses pressure feedback. For example, the alkaline electrolyzer and the natural gas hydrogen production unit are connected in parallel, and the load distribution is adjusted using a proportional-integral-derivative (PID) controller. The hydrogen production mode is switched based on the grid electricity price signal (electrolysis hydrogen production is prioritized during low electricity prices), and the natural gas hydrogen production unit is activated to fill the gap when the hydrogen storage tank pressure exceeds its limit. However, in this hydrogen production control method, the PID power command of the alkaline electrolyzer is allocated in a fixed ratio, which means that the alkaline electrolyzer cannot absorb the high-frequency fluctuation characteristics of renewable energy. It requires the configuration of large-capacity energy storage equipment (hydrogen storage tank), which is costly and has low regulation efficiency, and cannot achieve second-level dynamic compensation. Furthermore, for the alkaline electrolyzer, the fuzzy control algorithm is used to adjust the hot standby power, and the minimum maintenance power is set at 15% of the rated value. The hot standby power depends on the external heating system and is not coupled with the tail gas recovery of the natural gas hydrogen production equipment, resulting in low overall energy efficiency. Summary of the Invention

[0009] In view of this, the present invention provides a method, apparatus, storage medium and electronic device for hydrogen production based on renewable energy.

[0010] Specifically, the present invention is achieved through the following technical solution:

[0011] According to a first aspect of the present invention, a method for producing hydrogen based on renewable energy is provided, the method comprising:

[0012] Collect renewable energy power generation data and obtain the predicted renewable energy power generation based on a pre-built long short-term memory neural network model;

[0013] Based on a pre-set error compensation strategy, error compensation is performed on the predicted power of renewable energy generation to obtain the corrected power of renewable energy generation.

[0014] Based on a pre-set model predictive control optimization objective function, the power correction power of the renewable energy generation is decomposed to obtain the power of natural gas hydrogen production for natural gas hydrogen production and the power of water electrolysis hydrogen production for water electrolysis hydrogen production.

[0015] The system controls the operation of hydrogen production from natural gas according to the power output of the natural gas hydrogen production, and controls the operation of hydrogen production from water electrolysis according to the power output of the water electrolysis hydrogen production, and delivers the produced hydrogen to the hydrogen network;

[0016] The measured temperature of the water electrolysis hydrogen production system is monitored. Based on the measured temperature, the preset set temperature and the set current, the water electrolysis hydrogen production power is controlled by a temperature-current dual closed-loop system to adjust the hydrogen production rate and the electrolyte temperature.

[0017] The system monitors the tail gas temperature of the natural gas-to-hydrogen process, obtains the waste heat for preheating the electrolyzed water based on the measured temperature and tail gas temperature, and adjusts the amount of natural gas used for the natural gas-to-hydrogen process according to pre-set hydrogen network status data.

[0018] Optionally, the step of performing error compensation on the predicted renewable energy power generation based on a pre-set error compensation strategy to obtain the corrected renewable energy power generation includes:

[0019] Obtain current renewable energy power generation data collected within the current preset time period;

[0020] The long short-term memory neural network model obtains the renewable energy power generation data input from the previous preset time period based on the current preset time period, and outputs the first predicted power generation of renewable energy.

[0021] Calculate the error between the current renewable energy power generation data and the first predicted renewable energy power generation;

[0022] If the error does not exceed the preset error tolerance constraint, the predicted renewable energy power generation power is used as the corrected renewable energy power generation power. The predicted renewable energy power generation power is obtained by the long short-term memory neural network model based on the current renewable energy power generation power data.

[0023] Optionally, the step of performing error compensation on the predicted renewable energy power generation based on a pre-set error compensation strategy to obtain the corrected renewable energy power generation includes:

[0024] Obtain current renewable energy power generation data collected within the current preset time period;

[0025] The long short-term memory neural network model obtains the renewable energy power generation data input from the previous preset time period based on the current preset time period, and outputs the first predicted power generation of renewable energy.

[0026] Obtain the second predicted power generation of renewable energy obtained by the long short-term memory neural network model based on the current data of renewable energy power generation;

[0027] The product of the first predicted power generation of the renewable energy source and the pre-set error tolerance constraint is calculated to obtain the tolerance constraint range;

[0028] If the second predicted power generation of renewable energy is within the tolerance constraint, the second predicted power generation of renewable energy shall be used as the corrected power generation of renewable energy.

[0029] Optionally, the method further includes:

[0030] If the second renewable energy power generation forecast is not within the tolerance constraint, obtain the renewable energy power generation forecast corresponding to n preset time periods before the current preset time period;

[0031] Calculate the weighted value of the predicted renewable energy power generation for the n preset time periods, and use the weighted value as the corrected renewable energy power generation.

[0032] Optionally, the objective function for model predictive control optimization is:

[0033]

[0034] Constraints:

[0035]

[0036] T ele ∈[69.5℃, 70.5℃]

[0037] In the formula, P ele For the hydrogen production power of water electrolysis, P is the rated power for hydrogen production via water electrolysis, α is the maintenance coefficient for hydrogen production via water electrolysis, and P is the rated power. ATR P represents the hydrogen production capacity from natural gas, β represents the load regulation rate of the hydrogen production from natural gas, and P represents the hydrogen production capacity from natural gas. base T is the preset hydrogen production power, λ is the preset adjustment coefficient, and T is the preset hydrogen production power. ele This refers to the preheating temperature for hydrogen production via water electrolysis.

[0038] Optionally, adjusting the amount of natural gas used for hydrogen production based on pre-set hydrogen network status data includes:

[0039] The current operating pressure of the hydrogen collection network during the current collection cycle;

[0040] Determine whether the operating pressure of the current acquisition cycle is between the upper limit pressure and the lower limit pressure of the hydrogen network in the hydrogen network status data; and,

[0041] Calculate the pressure difference between the current operating pressure and the operating pressure of the hydrogen network in the previous collection cycle, and determine whether the pressure difference is not greater than the pressure fluctuation value between adjacent preset time periods of the hydrogen network status data.

[0042] If the current sampling cycle operating pressure is between the upper limit pressure and the lower limit pressure of the hydrogen network, and the pressure difference is not greater than the pressure fluctuation value between adjacent preset time periods, the current amount of natural gas used for hydrogen production from natural gas will be maintained.

[0043] Optionally, the method further includes:

[0044] If the operating pressure of the current collection cycle is greater than the upper limit pressure of the hydrogen network, or the pressure difference is greater than the pressure fluctuation value between adjacent preset time periods, the amount of natural gas currently used for hydrogen production from natural gas will be reduced.

[0045] The renewable energy-based hydrogen production method in this technical solution involves collecting renewable energy power generation data, obtaining predicted renewable energy power generation based on a pre-built long short-term memory neural network model, compensating for errors in the predicted renewable energy power generation based on a pre-set error compensation strategy to obtain corrected renewable energy power generation, and decomposing the corrected renewable energy power generation based on a pre-set model predictive control optimization objective function to obtain natural gas hydrogen production power for natural gas-to-hydrogen production and electrolysis hydrogen production power for water electrolysis hydrogen production. The method then controls natural gas-to-hydrogen production according to the predicted renewable energy power generation data. The system operates at high power for gas-to-hydrogen production, and controls the operation of water electrolysis hydrogen production according to the aforementioned power output, delivering the produced hydrogen to the hydrogen grid. It monitors the measured temperature of the operating water electrolysis hydrogen production, and based on the measured temperature, a pre-set temperature, and a set current, performs temperature-current dual closed-loop control on the power output to adjust the hydrogen production rate and electrolyte temperature. It also monitors the tail gas temperature of the operating natural gas-to-hydrogen production, and obtains the waste heat used for water electrolysis hydrogen production based on the measured temperature and tail gas temperature to preheat the electrolyzed water. Furthermore, it adjusts the amount of natural gas used for natural gas-to-hydrogen production based on pre-set hydrogen grid status data. By using a neural network model to predict power generation, performing power compensation based on an error compensation strategy, and using a model predictive control optimization objective function to allocate the compensated power generation, and performing temperature-current dual closed-loop control in water electrolysis hydrogen production, the system can reduce the reaction time for hydrogen production regulation, effectively improve the regulation efficiency of hydrogen production, and thus improve overall hydrogen production efficiency.

[0046] According to a second aspect of the present invention, a hydrogen production apparatus based on renewable energy is provided, the renewable energy-based hydrogen production apparatus comprising:

[0047] The data acquisition module is used to collect renewable energy power generation data and obtain the predicted power generation of renewable energy based on a pre-built long short-term memory neural network model.

[0048] The power compensation module is used to perform error compensation on the predicted power of renewable energy generation based on a pre-set error compensation strategy, so as to obtain the corrected power of renewable energy generation.

[0049] The power optimization decomposition module is used to decompose the renewable energy power generation correction power based on a pre-set model prediction control optimization objective function to obtain the natural gas hydrogen production power for natural gas hydrogen production and the water electrolysis hydrogen production power for water electrolysis hydrogen production.

[0050] The hydrogen production control module is used to control the operation of natural gas hydrogen production according to the natural gas hydrogen production power, and to control the operation of water electrolysis hydrogen production according to the water electrolysis hydrogen production power, and to transport the produced hydrogen to the hydrogen network.

[0051] The electrolysis hydrogen production regulation module is used to monitor the measured temperature of the water electrolysis hydrogen production process. Based on the measured temperature, the preset set temperature and the set current, the module performs temperature-current dual closed-loop control on the water electrolysis hydrogen production power to regulate the hydrogen production rate and the electrolyte temperature.

[0052] The natural gas hydrogen production regulation module is used to monitor the tail gas temperature of the operating natural gas hydrogen production system, obtain the waste heat for water electrolysis hydrogen production based on the measured temperature and tail gas temperature to preheat the electrolyzed water, and adjust the amount of natural gas used for the natural gas hydrogen production according to the preset hydrogen network status data.

[0053] According to a third aspect of the invention, a storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the hydrogen production method based on renewable energy in any possible implementation of the first aspect.

[0054] According to a fourth aspect of the present invention, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the hydrogen production method based on renewable energy in any possible implementation of the first aspect. Attached Figure Description

[0055] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0056] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.

[0057] Figure 1 A schematic flowchart of a hydrogen production method based on renewable energy provided in an embodiment of the present invention;

[0058] Figure 2 Another schematic diagram of a hydrogen production method based on renewable energy provided in an embodiment of the present invention;

[0059] Figure 3 A schematic diagram of a hydrogen production device based on renewable energy provided in an embodiment of the present invention;

[0060] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0061] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0062] In related technologies, hydrogen production systems employ a parallel hydrogen supply architecture where the alkaline electrolyzer bears the base load, the natural gas hydrogen production equipment serves as a backup, and the hydrogen storage tank is used to buffer short-term fluctuations (capacity design typically covers 10-30 minutes of demand). The system recovers heat from the exhaust gas (temperatures up to 800-1000℃) in the natural gas hydrogen production unit via a waste heat boiler (efficiency approximately 40-50%). This means the heat from the exhaust gas cannot be used as thermal backup power for the alkaline electrolyzer, resulting in low overall energy efficiency for hydrogen production. Furthermore, the use of fixed-ratio PID power commands to regulate the alkaline electrolyzer means it cannot absorb high-frequency fluctuations from renewable energy sources, necessitating the configuration of large-capacity energy storage equipment (hydrogen storage tanks), which is costly, has low regulation efficiency, and cannot achieve second-level dynamic compensation.

[0063] In refining and chemical equipment systems, achieving dynamic and coordinated control across multiple time scales for hydrogen production via natural gas autothermal reforming (minute-level adjustment) and hydrogen production via water electrolysis from fluctuating renewable energy sources (second-level response) is the most effective measure to improve hydrogen production efficiency and reduce overall energy efficiency while ensuring stable hydrogen grid pressure (fluctuations ≤ ±3%) and maximizing the proportion of green hydrogen consumption. In this embodiment, by designing a cross-time coordinated mechanism for second-level electrolyzer compensation and minute-level natural gas hydrogen production regulation, the need for large-capacity energy storage can be eliminated, thus solving the dynamic response defects in existing refining and chemical equipment systems and effectively reducing costs. Furthermore, by using tail gas temperature threshold-based utilization—for example, using tail gas at temperatures > 400°C for alkaline electrolyzer heat backup and tail gas at temperatures > 70°C for feedstock preheating—the waste heat utilization rate of tail gas can be increased to 90%+, improving overall energy efficiency.

[0064] See Figure 1 This invention provides a method for hydrogen production based on renewable energy, which may include the following steps:

[0065] S101. Collect renewable energy power generation data and obtain the predicted power generation of renewable energy based on a pre-built long short-term memory neural network model;

[0066] In this embodiment, renewable energy includes, but is not limited to, wind power, photovoltaic power, and solar power. A Long Short Term Memory (LSTM) neural network model is constructed, and its prediction layer is used to predict and compensate for errors in renewable energy power generation. As an optional embodiment, an LSTM neural network model is constructed based on pre-acquired historical renewable energy power generation data using a neural network algorithm. The neural network algorithm includes, but is not limited to, feedforward neural network algorithms, recurrent neural network algorithms, symmetric connection network algorithms, and recurrent neural network algorithms. As an optional embodiment, the recurrent neural network algorithm includes, but is not limited to, the LSTM neural network algorithm.

[0067] In this embodiment, as an optional embodiment, the renewable energy power generation data includes, but is not limited to: wind and solar power generation data, which includes, but is not limited to: historical wind and solar power generation data and meteorological data. In an optional embodiment, the meteorological data includes, but is not limited to: wind speed, irradiance, and temperature. The historical wind and solar power generation data includes historical power generation data with a preset time period and a preset interval. A historical wind and solar power generation sequence is constructed based on multiple historical power generation data. For example, in the historical wind and solar power generation sequence, each historical power generation data is 15 minutes of wind and solar power, and there is a 1-minute interval between adjacent historical power generation data.

[0068] In this embodiment, the hydrogen production method based on renewable energy is applied to a hydrogen production system including natural gas hydrogen production equipment, water electrolysis hydrogen production equipment, hydrogen storage tanks, a hydrogen grid, and refining equipment. To improve hydrogen production efficiency, as an optional embodiment, the renewable energy power generation data further includes hydrogen storage tank status data, which includes, but is not limited to, pressure, temperature, and liquid level. Thus, by considering the hydrogen storage tank status data and coordinating the control of water electrolysis hydrogen production and natural gas hydrogen production, hydrogen production efficiency can be effectively improved.

[0069] In this embodiment, as an optional implementation, the input vector of the LSTM neural network model is as follows:

[0070] X t =[P re (t-Δt),W(t),S tank (t)]

[0071] Among them, P re The data represents the historical power generation of renewable energy, where t is a preset time period and Δt is a preset interval. Taking wind and solar energy as examples of renewable energy, the historical power generation data is a sequence of historical power generation of wind and solar. In the historical power generation sequence of wind and solar, each historical power generation is the power generation of wind and solar for 15 minutes, and the interval between adjacent historical power generation is 1 minute, i.e., Δt = 1 minute.

[0072] W(t) represents meteorological data, including but not limited to: wind speed, irradiance, and temperature.

[0073] S tank (t) represents the status data of the hydrogen storage tank, including but not limited to: pressure, temperature, and liquid level.

[0074] In this embodiment, as an optional embodiment, the network structure of the LSTM neural network model includes 3 LSTM (128 neurons) layers and a fully connected layer.

[0075] In this embodiment, the output of the LSTM neural network model is the predicted power generation of renewable energy, i.e., the predicted power generation value. For example, with a 1-minute interval between adjacent power generation prediction values, each power generation prediction value is the predicted power generation value for the next 15 minutes.

[0076]

[0077] Among them, f LSTM (X t () represents the predicted power generation capacity of renewable energy.

[0078] S102. Based on a pre-set error compensation strategy, perform error compensation on the predicted power of renewable energy generation to obtain the corrected power of renewable energy generation;

[0079] In this embodiment, since the fluctuations in renewable energy will not change drastically within a preset time period, an error compensation strategy for the long short-term memory neural network model is set to process abnormal renewable energy power generation predictions and improve the accuracy of the data used in subsequent processes. As an optional embodiment, an error tolerance constraint is set as the error compensation strategy, and as an optional embodiment, the error tolerance constraint is ±15%.

[0080] In this embodiment, as an optional embodiment, error compensation is performed on the predicted power of renewable energy generation based on a pre-set error compensation strategy to obtain the corrected power of renewable energy generation, including:

[0081] Obtain current renewable energy power generation data collected within the current preset time period;

[0082] The long short-term memory neural network model obtains the renewable energy power generation data input from the previous preset time period based on the current preset time period, and outputs the first predicted power generation of renewable energy.

[0083] Calculate the error between the current renewable energy power generation data and the first predicted renewable energy power generation;

[0084] If the error does not exceed the preset error tolerance constraint, the predicted renewable energy power generation power is used as the corrected renewable energy power generation power. The predicted renewable energy power generation power is obtained by the long short-term memory neural network model based on the current renewable energy power generation power data.

[0085] In this embodiment, as another optional embodiment, error compensation is performed on the predicted power of renewable energy generation based on a pre-set error compensation strategy to obtain the corrected power of renewable energy generation, including:

[0086] Obtain current renewable energy power generation data collected within the current preset time period;

[0087] The long short-term memory neural network model obtains the renewable energy power generation data input from the previous preset time period based on the current preset time period, and outputs the first predicted power generation of renewable energy.

[0088] Obtain the second predicted power generation of renewable energy obtained by the long short-term memory neural network model based on the current data of renewable energy power generation;

[0089] The product of the first predicted power generation of the renewable energy source and the pre-set error tolerance constraint is calculated to obtain the tolerance constraint range;

[0090] If the second predicted power generation of renewable energy is within the tolerance constraint, the second predicted power generation of renewable energy shall be used as the corrected power generation of renewable energy.

[0091] In this embodiment, as an optional embodiment, the method further includes:

[0092] If the second renewable energy power generation forecast is not within the tolerance constraint, obtain the renewable energy power generation forecast corresponding to n preset time periods before the current preset time period;

[0093] Calculate the weighted value of the predicted renewable energy power generation for the n preset time periods, and use the weighted value as the corrected renewable energy power generation.

[0094] In this embodiment, n is an integer. As an optional embodiment, the error tolerance constraint is set to ±15%, and the tolerance constraint range is determined using the following formula:

[0095]

[0096] In the formula, For the second generation forecast of renewable energy, This represents the lower limit of the tolerance constraint range. This represents the upper limit of the tolerance constraint range.

[0097] In this embodiment, when the error tolerance constraint is exceeded, i.e., when the limit is exceeded, the system switches to the moving average mode:

[0098]

[0099] In the formula, All of these are corrected power outputs from renewable energy generation.

[0100] S103. Based on the pre-set model prediction control optimization objective function, the power correction power of the renewable energy generation is decomposed to obtain the power of natural gas hydrogen production for natural gas hydrogen production and the power of water electrolysis hydrogen production for water electrolysis hydrogen production.

[0101] In this embodiment, the objective function is optimized based on Model Predictive Control (MPC) to perform power decomposition and dual closed-loop control on the renewable energy power generation correction power.

[0102] In this embodiment, the MPC optimization objective function aims to minimize the power output of hydrogen production from natural gas and hydrogen production from water electrolysis, while satisfying a pre-set hydrogen production rate (power). The MPC optimization objective function is as follows:

[0103]

[0104] Constraints:

[0105]

[0106] T ele ∈[69.5℃, 70.5℃]

[0107] In the formula, P ele For the hydrogen production power of water electrolysis, P is the rated power for hydrogen production via water electrolysis, α is the maintenance coefficient for hydrogen production via water electrolysis, and P is the rated power. ATR P represents the hydrogen production capacity from natural gas, β represents the load regulation rate of the hydrogen production from natural gas, and P represents the hydrogen production capacity from natural gas. base T is the preset hydrogen production power, λ is the preset adjustment coefficient, and T is the preset hydrogen production power. ele This refers to the preheating temperature for hydrogen production via water electrolysis.

[0108] In this embodiment, the maintenance coefficient is set to 0.3, meaning the minimum maintenance power is 30% of the rated power. The rated power of water electrolysis for hydrogen production is 125MW, and the load regulation rate of natural gas-to-hydrogen production is set to fluctuate by 50% within 5 minutes. Therefore:

[0109]

[0110] S104. Control the operation of natural gas hydrogen production according to the natural gas hydrogen production power, and control the operation of water electrolysis hydrogen production according to the water electrolysis hydrogen production power, and transport the produced hydrogen to the hydrogen network.

[0111] S105. Monitor the measured temperature of the water electrolysis hydrogen production process, and based on the measured temperature, the preset set temperature and the set current, perform temperature-current dual closed-loop control on the water electrolysis hydrogen production power to adjust the hydrogen production rate and electrolyte temperature.

[0112] In this embodiment, the hydrogen production power in water electrolysis is used for hydrogen production and electrolyte temperature regulation. As an optional embodiment, the hydrogen production process employs a temperature-current dual closed-loop control, including inner-loop current control and outer-loop power control.

[0113] The inner loop (current loop) current control satisfies:

[0114] I set =0.8(T) set -T meas )+0.2∫(T set -T meas )dt

[0115] In the formula, T set For the preset set temperature, T meas I represents the measured temperature in the electrolyte.set The equivalent current for hydrogen production via water electrolysis.

[0116] The outer loop (power loop) power control satisfies:

[0117]

[0118] In the formula, P ele Ω represents the power corresponding to the equivalent current, and Ω represents the effective resistance corresponding to the hydrogen production via water electrolysis.

[0119] In this embodiment, by monitoring the measured temperature of the water electrolysis hydrogen production process, the hydrogen production power and electrolyte temperature regulation power are adjusted based on the measured temperature. This adjusts the equivalent current during operation to a set current characterizing the hydrogen production rate, thereby achieving temperature-current dual closed-loop control for water electrolysis hydrogen production. In this way, by simply monitoring the measured temperature during operation, it is possible to ensure that hydrogen production proceeds according to the specified power and set current, maintaining stable hydrogen production.

[0120] S106. Monitor the tail gas temperature of the natural gas to hydrogen production process, obtain the waste heat for water electrolysis to preheat the water based on the measured temperature and tail gas temperature, and adjust the amount of natural gas used for the natural gas to hydrogen production according to the preset hydrogen network status data.

[0121] In this embodiment, thermal coupling and dynamic control of carbon emissions are performed based on the hydrogen production capacity from natural gas. As an optional embodiment, a waste heat recovery model is constructed, and the waste heat from natural gas hydrogen production is obtained using this model as follows:

[0122] Q rec =0.92×850×A1×ΔT lm1 (T≥400℃)

[0123] Q rec =0.85×650×A2×ΔT lm2 (200℃≤T<400℃)

[0124] In the formula, Q rec The waste heat is 850 and 650, which are the corresponding hydrogen production capacities, respectively. A1 and A2 are the heat exchanger areas corresponding to natural gas-to-hydrogen production. ΔT lm1 ΔT lm2 The temperature difference between the hydrogen production temperature from natural gas and the hydrogen production temperature from water electrolysis is given by T, where T is the hydrogen production temperature from natural gas.

[0125] In this embodiment, as an optional embodiment, the amount of natural gas used for hydrogen production is adjusted according to pre-set hydrogen network status data, including:

[0126] The current operating pressure of the hydrogen collection network during the current collection cycle;

[0127] Determine whether the operating pressure of the current acquisition cycle is between the upper limit pressure and the lower limit pressure of the hydrogen network in the hydrogen network status data; and,

[0128] Calculate the pressure difference between the current operating pressure and the operating pressure of the hydrogen network in the previous collection cycle, and determine whether the pressure difference is not greater than the pressure fluctuation value between adjacent preset time periods of the hydrogen network status data.

[0129] If the current sampling cycle operating pressure is between the upper limit pressure and the lower limit pressure of the hydrogen network, and the pressure difference is not greater than the pressure fluctuation value between adjacent preset time periods, the current amount of natural gas used for hydrogen production from natural gas will be maintained.

[0130] In this embodiment, as an optional embodiment, the method further includes:

[0131] If the operating pressure of the current collection cycle is greater than the upper limit pressure of the hydrogen network, or the pressure difference is greater than the pressure fluctuation value between adjacent preset time periods, the amount of natural gas currently used for hydrogen production from natural gas will be reduced.

[0132] In this embodiment, as another optional embodiment, the method further includes:

[0133] If the operating pressure of the current collection cycle is less than the upper limit pressure of the hydrogen network, or the pressure difference is less than the negative pressure fluctuation value between adjacent preset time periods, the amount of natural gas currently used for hydrogen production from natural gas will be increased.

[0134] In this embodiment, the refining equipment is used to obtain hydrogen load from the hydrogen network. As an optional embodiment, the hydrogen network status data includes, but is not limited to: the upper limit pressure of the hydrogen network, the lower limit pressure of the hydrogen network, and the pressure fluctuation value between adjacent preset time periods. The upper limit pressure of the hydrogen network, the lower limit pressure of the hydrogen network, and the pressure fluctuation value between adjacent preset time periods are also referred to as pressure dead zone constraints, as follows:

[0135] P net ≥2.3MPa

[0136] P net ≤2.5MPa

[0137] |P net (t)-P net (t-1)|≤0.1MPa

[0138] In this embodiment, if the hydrogen grid pressure meets the above conditions, no adjustment is made. If the hydrogen grid pressure is lower than the lower limit of the hydrogen grid pressure, the natural gas supply (natural gas quantity) in the natural gas-to-hydrogen process is adjusted using the following formula to supplement the hydrogen in the hydrogen grid, thereby maintaining the hydrogen grid pressure. That is, according to the pre-set emergency response strategy, the natural gas supply in the natural gas-to-hydrogen process is increased.

[0139] In this embodiment, the emergency response strategy is set as follows:

[0140]

[0141] In the formula, For the adjusted natural gas supply, For the current natural gas supply, The power corresponding to hydrogen production for natural gas quotas, P net This represents the current power output for hydrogen production from natural gas.

[0142] Figure 2 This is another schematic diagram of a hydrogen production method based on renewable energy provided in an embodiment of the present invention. Figure 2 As shown, the method includes:

[0143] S201, Collect wind and solar power data;

[0144] In this embodiment, renewable energy is wind and solar power generation, and renewable energy power generation data is wind and solar power data.

[0145] S202. Input the wind and solar power data into the LSTM neural network model;

[0146] In this embodiment, the LSTM neural network model is a prediction model built based on the LSTM neural network algorithm.

[0147] S203. Determine whether the error of the output result of the LSTM neural network model is less than the preset error threshold. If yes, execute S205; otherwise, execute S204.

[0148] In this embodiment, the error compensation strategy is based on an error threshold, and the output result is the predicted power of renewable energy generation.

[0149] S204. Perform sliding average compensation, then execute S205;

[0150] In this embodiment, the moving average compensation is performed using the following formula:

[0151]

[0152] S205. Input the output results into the MPC optimizer;

[0153] In this embodiment, the MPC optimizer uses model predictive control to optimize the objective function.

[0154] S206. Obtain the electrolytic cell power command output by the MPC optimizer and execute S208;

[0155] In this embodiment, the electrolyzer power command is used to instruct the water electrolysis hydrogen production to operate at the water electrolysis hydrogen production power.

[0156] S207. Obtain the ATR base value instruction output by the MPC optimizer and execute S210;

[0157] In this embodiment, the ATR base value instruction is used to instruct natural gas hydrogen production to operate at the natural gas hydrogen production power.

[0158] S208. Temperature-current dual closed-loop regulation of the alkaline electrolyzer used for water electrolysis to produce hydrogen is performed based on the electrolyzer power command.

[0159] S209. Control the power of the alkaline electrolyzer based on temperature-current dual closed-loop regulation to produce hydrogen, and execute S211.

[0160] S210, Control natural gas to produce hydrogen by adjusting the ATR load based on the ATR baseline command, and produce hydrogen based on the adjusted ATR load, execute S211;

[0161] In this embodiment, the ATR load is the amount of natural gas.

[0162] S211, Transport the produced hydrogen to the hydrogen network;

[0163] S212. Perform hydrogen network pressure monitoring;

[0164] S213. Determine whether the hydrogen network pressure is within the preset pressure range. If yes, proceed to S214; otherwise, proceed to S215.

[0165] S214. Adjust according to normal mode;

[0166] S215. Emergency load adjustment for hydrogen production from natural gas.

[0167] In this embodiment, the load is the amount of natural gas.

[0168] The following is a specific embodiment to illustrate the method of this embodiment.

[0169] In this embodiment, the total duration is set to 120 minutes (2 hours), the time step (preset interval) is 2 minutes, and a total of 60 data points (wind and solar power generation data) are acquired.

[0170] In this embodiment, the refining and chemical equipment uses a hydrogen load of 50,000 Nm³. 3 / h, hydrogen network pressure (hydrogen network pressure) 2.4MPa, hydrogen network capacity 100000Nm 3 The allowable fluctuation range is ±5%;

[0171] Natural gas to hydrogen production equipment: hydrogen production rate 50,000 Nm 3 / h, temperature 800 degrees Celsius, carbon quota is 10.97 kgCO2 / kgH2, load regulation rate of natural gas to hydrogen production equipment is set to 50% / 5 minutes;

[0172] Alkaline electrolyzer: Hydrogen production rate: 25000 Nm 3 / h, operating temperature 90 degrees Celsius, hot standby temperature 70 degrees Celsius, minimum sustaining power is 30% of rated power, carbon quota is 0.233 kgCO2 / kgH2, rated power is 125 MW, temperature control accuracy is 0.1 degrees Celsius;

[0173] Photovoltaic installed capacity: 125MW, wind power installed capacity: 100MW. The installed capacity of both photovoltaic and wind power is given priority to alkaline electrolyzers, and any surplus is used for refining and chemical equipment. There is no problem of capacity imbalance.

[0174] Hydrogen storage tank capacity: 20000 Nm 3 Working pressure 20MPa, maximum buffer time 24 minutes;

[0175] The cost of gray hydrogen is 15 yuan / kg, and the cost of green hydrogen is 18 yuan / kg.

[0176] Carbon allowance: 92.93 yuan / ton.

[0177] Key events:

[0178] 0-40 minutes: Stable wind and solar power output (125MW PV + 100MW wind).

[0179] 40-80 minutes: Wind power output drops sharply by 60MW (simulating extreme weather);

[0180] 80-120 minutes: Photovoltaic output fluctuation ±30MW (simulating intermittent cloud cover);

[0181] In this embodiment, under extreme conditions, the electro-hydrogen production equipment (alkaline electrolyzer) provides 81.3 tons of hydrogen, and the natural gas hydrogen production equipment provides 322.3 tons of hydrogen. Compared with the traditional natural gas hydrogen production method, carbon emissions can be reduced by 19.7%.

[0182] With the connection of fluctuating green hydrogen, the hydrogen production equipment based on the fast-response natural gas self-heating reforming system can keep the pressure fluctuation of the pipeline network within 3%, achieving zero power curtailment and zero load regulation in extreme scenarios.

[0183] In this embodiment, for fluctuations in wind and solar power, the electrolyzer can achieve a second-level response, the hydrogen storage tank is used for pressure buffering, and the ATR can achieve minute-level compensation to ensure the stability of the hydrogen network pressure and achieve cross-time scale coordinated control of the hydrogen storage tank pressure change rate. At the same time, the waste heat of the ATR tail gas is recovered and used to supply the alkaline electrolyzer for hot standby, which can effectively reduce the hot standby energy consumption by 40%.

[0184] Based on the same inventive concept, such as Figure 3 As shown, this embodiment of the invention also provides a hydrogen production device based on renewable energy, the device comprising:

[0185] The data acquisition module 301 is used to collect renewable energy power generation data and obtain the predicted power generation of renewable energy based on a pre-built long short-term memory neural network model.

[0186] In this embodiment, as an optional embodiment, the renewable energy power generation data includes, but is not limited to: wind and solar power generation data, which includes, but is not limited to: historical wind and solar power generation data and meteorological data. In an optional embodiment, the meteorological data includes, but is not limited to: wind speed, irradiance, and temperature.

[0187] The power compensation module 302 is used to perform error compensation on the predicted power of renewable energy generation based on a pre-set error compensation strategy to obtain the corrected power of renewable energy generation.

[0188] In this embodiment, as an optional embodiment, the power compensation module 302 is specifically used for:

[0189] Obtain current renewable energy power generation data collected within the current preset time period;

[0190] The long short-term memory neural network model obtains the renewable energy power generation data input from the previous preset time period based on the current preset time period, and outputs the first predicted power generation of renewable energy.

[0191] Calculate the error between the current renewable energy power generation data and the first predicted renewable energy power generation;

[0192] If the error does not exceed the preset error tolerance constraint, the predicted renewable energy power generation power is used as the corrected renewable energy power generation power. The predicted renewable energy power generation power is obtained by the long short-term memory neural network model based on the current renewable energy power generation power data.

[0193] In this embodiment, as another optional embodiment, the power compensation module 302 is specifically used for:

[0194] Obtain current renewable energy power generation data collected within the current preset time period;

[0195] The long short-term memory neural network model obtains the renewable energy power generation data input from the previous preset time period based on the current preset time period, and outputs the first predicted power generation of renewable energy.

[0196] Obtain the second predicted power generation of renewable energy obtained by the long short-term memory neural network model based on the current data of renewable energy power generation;

[0197] The product of the first predicted power generation of the renewable energy source and the pre-set error tolerance constraint is calculated to obtain the tolerance constraint range;

[0198] If the second predicted power generation of renewable energy is within the tolerance constraint, the second predicted power generation of renewable energy shall be used as the corrected power generation of renewable energy.

[0199] In this embodiment, as an optional embodiment, the power compensation module 302 is further used for:

[0200] If the second renewable energy power generation forecast is not within the tolerance constraint, obtain the renewable energy power generation forecast corresponding to n preset time periods before the current preset time period;

[0201] Calculate the weighted value of the predicted renewable energy power generation for the n preset time periods, and use the weighted value as the corrected renewable energy power generation.

[0202] The power optimization decomposition module 303 is used to decompose the power of the renewable energy power generation correction based on a pre-set model prediction control optimization objective function to obtain the power of natural gas hydrogen production and the power of water electrolysis hydrogen production.

[0203] In this embodiment, as an optional implementation, the objective function for model predictive control optimization is:

[0204]

[0205] Constraints:

[0206]

[0207] T ele ∈[69.5℃, 70.5℃]

[0208] In the formula, P ele For the hydrogen production power of water electrolysis, P is the rated power for hydrogen production via water electrolysis, α is the maintenance coefficient for hydrogen production via water electrolysis, and P is the rated power.ATR P represents the hydrogen production capacity from natural gas, β represents the load regulation rate of the hydrogen production from natural gas, and P represents the hydrogen production capacity from natural gas. base T is the preset hydrogen production power, λ is the preset adjustment coefficient, and T is the preset hydrogen production power. ele This refers to the preheating temperature for hydrogen production via water electrolysis.

[0209] The hydrogen production control module 304 is used to control the operation of natural gas hydrogen production according to the natural gas hydrogen production power, and to control the operation of water electrolysis hydrogen production according to the water electrolysis hydrogen production power, and to transport the produced hydrogen to the hydrogen network.

[0210] The electrolysis hydrogen production regulating module 305 is used to monitor the measured temperature of the electrolysis hydrogen production process. Based on the measured temperature, the preset set temperature and the set current, the module performs temperature-current dual closed-loop control on the electrolysis hydrogen production power to regulate the hydrogen production rate and the electrolyte temperature.

[0211] In this embodiment, the temperature-current dual closed-loop control includes: inner loop current control and outer loop power control, wherein...

[0212] The inner loop (current loop) current control satisfies:

[0213] I set =0.8(T) set -T meas )+0.2∫(T set -T meas )dt

[0214] In the formula, T set For the preset set temperature, T meas I represents the measured temperature in the electrolyte. set The equivalent current for hydrogen production via water electrolysis.

[0215] The outer loop (power loop) power control satisfies:

[0216]

[0217] In the formula, P ele Ω represents the power corresponding to the equivalent current, and Ω represents the effective resistance corresponding to the hydrogen production via water electrolysis.

[0218] The natural gas hydrogen production regulation module 306 is used to monitor the tail gas temperature of the operating natural gas hydrogen production, obtain the waste heat for water electrolysis hydrogen production based on the measured temperature and tail gas temperature to preheat the water, and adjust the amount of natural gas used for the natural gas hydrogen production according to the preset hydrogen network status data.

[0219] In this embodiment, as an optional embodiment, the natural gas hydrogen production regulation module 306 is specifically used for:

[0220] The current operating pressure of the hydrogen collection network during the current collection cycle;

[0221] Determine whether the operating pressure of the current acquisition cycle is between the upper limit pressure and the lower limit pressure of the hydrogen network in the hydrogen network status data; and,

[0222] Calculate the pressure difference between the current operating pressure and the operating pressure of the hydrogen network in the previous collection cycle, and determine whether the pressure difference is not greater than the pressure fluctuation value between adjacent preset time periods of the hydrogen network status data.

[0223] If the current sampling cycle operating pressure is between the upper limit pressure and the lower limit pressure of the hydrogen network, and the pressure difference is not greater than the pressure fluctuation value between adjacent preset time periods, the current amount of natural gas used for hydrogen production from natural gas will be maintained.

[0224] In this embodiment, as another optional embodiment, the natural gas hydrogen production regulation module 306 is further used for:

[0225] If the operating pressure of the current collection cycle is greater than the upper limit pressure of the hydrogen network, or the pressure difference is greater than the pressure fluctuation value between adjacent preset time periods, the amount of natural gas currently used for hydrogen production from natural gas will be reduced.

[0226] Based on the same inventive concept, embodiments of the present invention also provide a storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the hydrogen production method based on renewable energy in any of the above possible implementations.

[0227] Alternatively, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.

[0228] Based on the same inventive concept, see [link to inventive concept] Figure 4 This invention also provides an electronic device, including a memory 101 (e.g., non-volatile memory), a processor 102, and a computer program stored on the memory 101 and executable on the processor 102. When the processor 102 executes the program, it implements the steps of the renewable energy-based hydrogen production method described in any of the above possible implementations, which is equivalent to the aforementioned renewable energy-based hydrogen production device. Of course, the processor can also be used to process other data or perform calculations. This electronic device can be a PC, server, terminal, or other similar device.

[0229] like Figure 4 As shown, the electronic device may also include: memory 103, network interface 104, and internal bus 105. In addition to these components, other hardware may also be included, which will not be described in detail here.

[0230] It should be noted that the aforementioned hydrogen production device based on renewable energy can be implemented through software. As a logical device, it is formed by the processor 102 of the electronic device in which it is located reading the computer program instructions stored in the non-volatile memory into the memory 103 for execution.

[0231] The embodiments of the subject matter and functional operation described in this specification can be implemented in the following ways: digital electronic circuits, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or combinations thereof. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions encoded on a tangible, non-transitory program carrier for execution by a data processing apparatus or for controlling the operation of a data processing apparatus. Alternatively or additionally, the program instructions may be encoded on artificially generated propagation signals, such as machine-generated electrical, optical, or electromagnetic signals, which are generated to encode information and transmit it to a suitable receiving device for execution by the data processing apparatus. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or combinations thereof.

[0232] The processing and logic flow described in this specification can be executed by one or more programmable computers that execute one or more computer programs to perform corresponding functions by operating on input data and generating output. The processing and logic flow can also be executed by special-purpose logic circuitry—such as FPGAs (Field-Programmable Gate Arrays) or ASICs (Application-Specific Integrated Circuits), and the device can also be implemented as special-purpose logic circuitry.

[0233] Suitable computers for executing computer programs include, for example, general-purpose and / or special-purpose microprocessors, or any other type of central processing unit. Typically, the central processing unit receives instructions and data from read-only memory and / or random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include one or more mass storage devices for storing data, such as disks, magneto-optical disks, or optical disks, or the computer will be operatively coupled to such mass storage devices to receive data from or transfer data to them, or both. However, a computer is not required to have such devices. Furthermore, a computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device such as a universal serial bus (USB) flash drive, to name a few.

[0234] Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, such as semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal hard disks or removable disks), magneto-optical disks, and CD-ROM and DVD-ROM disks. Processors and memory may be supplemented by or incorporated into dedicated logic circuitry.

[0235] While this specification contains numerous specific implementation details, these should not be construed as limiting the scope of any invention or the scope of the claims, but rather are primarily used to describe features of specific embodiments of a particular invention. Certain features described in the various embodiments herein may also be implemented in combination in a single embodiment. Conversely, various features described in a single embodiment may also be implemented separately in various embodiments or in any suitable sub-combination. Furthermore, while features may function in certain combinations as described above and even initially claimed in this way, one or more features from a claimed combination may be removed from that combination in some cases, and a claimed combination may refer to a sub-combination or a variation thereof.

[0236] Similarly, although the operations are depicted in a specific order in the accompanying drawings, this should not be construed as requiring these operations to be performed in the specific order shown or sequentially, or requiring all illustrated operations to be performed to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system modules and components in the above embodiments should not be construed as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.

[0237] Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired result. Furthermore, the processes depicted in the drawings are not necessarily shown in a specific order or sequence to achieve the desired result. In some implementations, multitasking and parallel processing may be advantageous.

[0238] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element.

[0239] The above are merely specific embodiments of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for producing hydrogen based on renewable energy, characterized in that, include: Collect renewable energy power generation data and obtain the predicted renewable energy power generation based on a pre-built long short-term memory neural network model; Based on a pre-set error compensation strategy, error compensation is performed on the predicted power of renewable energy generation to obtain the corrected power of renewable energy generation. Based on a pre-set model predictive control optimization objective function, the power correction power of the renewable energy generation is decomposed to obtain the power of natural gas hydrogen production for natural gas hydrogen production and the power of water electrolysis hydrogen production for water electrolysis hydrogen production. The system controls the operation of hydrogen production from natural gas according to the power output of the natural gas hydrogen production, and controls the operation of hydrogen production from water electrolysis according to the power output of the water electrolysis hydrogen production, and delivers the produced hydrogen to the hydrogen network; The measured temperature of the water electrolysis hydrogen production system is monitored. Based on the measured temperature, the preset set temperature and the set current, the water electrolysis hydrogen production power is controlled by a temperature-current dual closed-loop system to adjust the hydrogen production rate and the electrolyte temperature. The system monitors the tail gas temperature of the natural gas-to-hydrogen process, obtains the waste heat for preheating the electrolyzed water based on the measured temperature and tail gas temperature, and adjusts the amount of natural gas used for the natural gas-to-hydrogen process according to pre-set hydrogen network status data.

2. The hydrogen production method based on renewable energy according to claim 1, characterized in that, The method of performing error compensation on the predicted renewable energy power generation based on a pre-set error compensation strategy to obtain the corrected renewable energy power generation includes: Obtain current renewable energy power generation data collected within the current preset time period; The long short-term memory neural network model obtains the renewable energy power generation data input from the previous preset time period based on the current preset time period, and outputs the first predicted power generation of renewable energy. Calculate the error between the current renewable energy power generation data and the first predicted renewable energy power generation; If the error does not exceed the preset error tolerance constraint, the predicted renewable energy power generation power is used as the corrected renewable energy power generation power. The predicted renewable energy power generation power is obtained by the long short-term memory neural network model based on the current renewable energy power generation power data.

3. The hydrogen production method based on renewable energy according to claim 1, characterized in that, The method of performing error compensation on the predicted renewable energy power generation based on a pre-set error compensation strategy to obtain the corrected renewable energy power generation includes: Obtain current renewable energy power generation data collected within the current preset time period; The long short-term memory neural network model obtains the renewable energy power generation data input from the previous preset time period based on the current preset time period, and outputs the first predicted power generation of renewable energy. Obtain the second predicted power generation of renewable energy obtained by the long short-term memory neural network model based on the current data of renewable energy power generation; The product of the first predicted power generation of the renewable energy source and the pre-set error tolerance constraint is calculated to obtain the tolerance constraint range; If the second predicted power generation of renewable energy is within the tolerance constraint, the second predicted power generation of renewable energy shall be used as the corrected power generation of renewable energy.

4. The hydrogen production method based on renewable energy according to claim 2 or 3, characterized in that, The method further includes: If the second renewable energy power generation forecast is not within the tolerance constraint, obtain the renewable energy power generation forecast corresponding to n preset time periods before the current preset time period; Calculate the weighted value of the predicted renewable energy power generation for the n preset time periods, and use the weighted value as the corrected renewable energy power generation.

5. The hydrogen production method based on renewable energy according to claim 1, characterized in that, The objective function for model predictive control optimization is: Constraints: T ele ∈[69.5℃,70.5℃] In the formula, P ele For the hydrogen production power of water electrolysis, P is the rated power for hydrogen production via water electrolysis, α is the maintenance coefficient for hydrogen production via water electrolysis, and P is the rated power. ATR P represents the hydrogen production capacity from natural gas, β represents the load regulation rate of the hydrogen production from natural gas, and P represents the hydrogen production capacity from natural gas. base T is the preset hydrogen production power, λ is the preset adjustment coefficient, and T is the preset hydrogen production power. ele This refers to the preheating temperature for hydrogen production via water electrolysis.

6. The hydrogen production method based on renewable energy according to claim 1, characterized in that, The step of adjusting the amount of natural gas used for hydrogen production based on pre-set hydrogen network status data includes: The current operating pressure of the hydrogen collection network during the current collection cycle; Determine whether the operating pressure of the current acquisition cycle is between the upper limit pressure and the lower limit pressure of the hydrogen network in the hydrogen network status data; and, Calculate the pressure difference between the current operating pressure and the operating pressure of the hydrogen network in the previous collection cycle, and determine whether the pressure difference is not greater than the pressure fluctuation value between adjacent preset time periods of the hydrogen network status data. If the current sampling cycle operating pressure is between the upper limit pressure and the lower limit pressure of the hydrogen network, and the pressure difference is not greater than the pressure fluctuation value between adjacent preset time periods, the current amount of natural gas used for hydrogen production from natural gas will be maintained.

7. The hydrogen production method based on renewable energy according to claim 6, characterized in that, The method further includes: If the operating pressure of the current collection cycle is greater than the upper limit pressure of the hydrogen network, or the pressure difference is greater than the pressure fluctuation value between adjacent preset time periods, the amount of natural gas currently used for hydrogen production from natural gas will be reduced.

8. A hydrogen production device based on renewable energy, characterized in that, The renewable energy-based hydrogen production device includes: The data acquisition module is used to collect renewable energy power generation data and obtain the predicted power generation of renewable energy based on a pre-built long short-term memory neural network model. The power compensation module is used to perform error compensation on the predicted power of renewable energy generation based on a pre-set error compensation strategy, so as to obtain the corrected power of renewable energy generation. The power optimization decomposition module is used to decompose the renewable energy power generation correction power based on a pre-set model prediction control optimization objective function to obtain the natural gas hydrogen production power for natural gas hydrogen production and the water electrolysis hydrogen production power for water electrolysis hydrogen production. The hydrogen production control module is used to control the operation of natural gas hydrogen production according to the natural gas hydrogen production power, and to control the operation of water electrolysis hydrogen production according to the water electrolysis hydrogen production power, and to transport the produced hydrogen to the hydrogen network. The electrolysis hydrogen production regulation module is used to monitor the measured temperature of the water electrolysis hydrogen production process. Based on the measured temperature, the preset set temperature and the set current, the module performs temperature-current dual closed-loop control on the water electrolysis hydrogen production power to regulate the hydrogen production rate and the electrolyte temperature. The natural gas hydrogen production regulation module is used to monitor the tail gas temperature of the operating natural gas hydrogen production system, obtain the waste heat for water electrolysis hydrogen production based on the measured temperature and tail gas temperature to preheat the electrolyzed water, and adjust the amount of natural gas used for the natural gas hydrogen production according to the preset hydrogen network status data.

9. A storage medium, characterized in that, A program or instruction is stored on a storage medium, and the program or instruction is executed by a processor to implement the steps of the hydrogen production method based on renewable energy as described in any one of claims 1 to 7.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the hydrogen production method based on renewable energy as described in any one of claims 1 to 7.