Optimized operation method, device and equipment for electric hydrogen production ammonia synthesis system

By using the sparrow search algorithm to optimize the mould flow and ammonia production in the electric mould synthesis ammonia synthesis system, the problem of difficulty in optimizing the wind-light mould synthesis ammonia system in the existing technology is solved, and the profits of the system are maximized and flexibility improved.

CN119528177APending Publication Date: 2025-02-28JILIN ELECTRIC POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411553070.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-01
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the prior art, the optimization of the wind and light hydrogen synthesis ammonia system still has problems such as slow convergence speed, too precocious algorithms and falling into local optimal solutions, resulting in limited system performance improvement and economic benefits optimization.

Method used

The target variables of the electrical hydrogen production synthesis ammonia system are optimized by using the sparrow search algorithm. By obtaining the system model, predicting meteorological data, and combining the system model, we can achieve the optimal values ​​of hydrogen production flow and ammonia production.

Benefits of technology

Through the energy prediction of real-time meteorological data and the adjustment of optimization algorithms, the system's ammonia sales profit can be maximized, and the system's flexibility and economic benefits can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119528177A_ABST
    Figure CN119528177A_ABST
Patent Text Reader

Abstract

The invention provides an optimized operation method, device and equipment of an electric hydrogen production ammonia synthesis system. The method comprises the following steps: acquiring a system model of the electric hydrogen production ammonia synthesis system; collecting meteorological data at the current moment, and predicting wind power output and photovoltaic output at the current moment according to the photovoltaic power station model and the wind power station model in the system model in combination with the meteorological data at the current moment to obtain predicted wind power output and predicted photovoltaic output; based on the predicted wind power output and the predicted photovoltaic output, in combination with the system model, a sparrow search algorithm is adopted to optimize the target variable, and a target value of the target variable at the current moment is obtained; and controlling the electro-hydrogen production ammonia synthesis system to operate according to the target value of the target variable, so that the ammonia selling profit of the electro-hydrogen production ammonia synthesis system at the current moment is the highest. Therefore, the electric hydrogen production ammonia synthesis system can be controlled to operate in real time according to the economic optimization operation strategy, so that the system always operates in the optimal state, and maximization of economic benefits is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of hydrogen production and ammonia synthesis from renewable energy, and in particular to an optimized operation method, device and equipment for an electric hydrogen production and ammonia synthesis system. Background Art

[0002] Renewable energy electric hydrogen production and ammonia synthesis is an emerging and environmentally friendly chemical production method. It uses renewable energy (such as solar energy, wind energy, etc.) to generate electricity, produces hydrogen by electrolyzing water, and then synthesizes hydrogen and nitrogen into ammonia. This technology has significant advantages in carbon emission reduction, energy storage and transportation, and is an important way to achieve green energy transformation and sustainable development.

[0003] Renewable energy electric hydrogen production and ammonia synthesis have broad application prospects in many fields. For example, ammonia can be used as a clean raw material to make nitrogen fertilizer and compound fertilizer, and hydrogen can be used as a clean fuel in power systems and shipbuilding. However, there are still some challenges to realize the industrial application of this technology. For example, although the technology of water electrolysis to produce hydrogen and synthetic ammonia is relatively mature, the integration and optimization of the whole system still need further research and improvement. For another example, the cost of renewable energy electric hydrogen production and ammonia synthesis is still higher than the cost of traditional fossil energy hydrogen production, and technological innovation is needed to reduce costs and increase profits. Summary of the invention

[0004] The present application provides an optimized operation method, device and equipment for an electric hydrogen production and ammonia synthesis system, so as to solve one of the technical problems in the related art at least to a certain extent. The technical solution of the present application is as follows:

[0005] According to one aspect of the present application, a method for optimizing the operation of an electric hydrogen production and ammonia synthesis system is provided, comprising:

[0006] Obtaining a system model of an electric hydrogen production and ammonia synthesis system; wherein the system model includes a photovoltaic power station model, a wind power station model, a water electrolysis hydrogen production model of a hydrogen production device, a gas storage device model, a hydrogen ammonia synthesis device model, and an energy storage device model;

[0007] Collecting meteorological data at the current moment, and predicting the wind power output and the photovoltaic output at the current moment according to the photovoltaic power station model and the wind power station model in combination with the meteorological data at the current moment, to obtain predicted wind power output and predicted photovoltaic output;

[0008] Based on the predicted wind power output and the predicted photovoltaic output, combined with the system model, the target variable is optimized using a sparrow search algorithm to obtain the target value of the target variable at the current moment; wherein the target variable includes the hydrogen production flow of the hydrogen production device and the ammonia production of the hydrogen synthesis ammonia device;

[0009] The electric hydrogen production and ammonia synthesis system is controlled to operate according to the target value of the target variable so that the electric hydrogen production and ammonia synthesis system has the highest ammonia sales profit at the current moment.

[0010] According to another aspect of the present application, there is provided an optimized operation device for an electric hydrogen production and ammonia synthesis system, the device comprising:

[0011] An acquisition module is used to acquire a system model of an electric hydrogen production and ammonia synthesis system; wherein the system model includes a photovoltaic power station model, a wind power station model, a water electrolysis hydrogen production model of a hydrogen production device, a gas storage device model, a hydrogen synthesis ammonia device model, and an energy storage device model;

[0012] A processing module, used for collecting meteorological data at the current moment, and predicting the wind power output and photovoltaic output at the current moment according to the photovoltaic power station model and the wind power station model in combination with the meteorological data at the current moment, to obtain predicted wind power output and predicted photovoltaic output;

[0013] An optimization module, configured to optimize the target variable based on the predicted wind power output and the predicted photovoltaic output, in combination with the system model, using a sparrow search algorithm to obtain a target value of the target variable at the current moment; wherein the target variable includes the hydrogen production flow of the hydrogen production device and the ammonia production of the hydrogen synthesis ammonia device;

[0014] The control module is used to control the electric hydrogen production and ammonia synthesis system to operate according to the target value of the target variable so that the electric hydrogen production and ammonia synthesis system can achieve the highest ammonia sales profit at the current moment.

[0015] According to another aspect of the present application, a non-transitory computer-readable storage medium of computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the optimized operation method of the electric hydrogen production and ammonia synthesis system proposed in the above-mentioned aspect of the present application.

[0016] According to another aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the optimized operation method of the electric hydrogen production and ammonia synthesis system proposed in the above-mentioned aspect of the present application.

[0017] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0018] Obtain a system model of the electric hydrogen production and ammonia synthesis system; wherein the system model includes a photovoltaic power station model, a wind power station model, a water electrolysis hydrogen production model of the hydrogen production device, a gas storage equipment model, a hydrogen synthesis ammonia device model, and an energy storage equipment model; collect meteorological data at the current moment, and predict the wind power output and photovoltaic output at the current moment according to the photovoltaic power station model and the wind power station model in combination with the meteorological data at the current moment, so as to obtain predicted wind power output and predicted photovoltaic output; based on the predicted wind power output and predicted photovoltaic output, in combination with the system model, use a sparrow search algorithm to optimize the target variables, so as to obtain target values ​​of the target variables at the current moment; wherein the target variables include the hydrogen production flow rate of the hydrogen production device and the ammonia production of the hydrogen synthesis ammonia device; control the electric hydrogen production and ammonia synthesis system to operate according to the target values ​​of the target variables, so as to maximize the ammonia sales profit of the electric hydrogen production and ammonia synthesis system at the current moment. Therefore, based on energy forecasts of real-time meteorological data, optimization algorithms are used to adjust system parameters to maximize the system's ammonia sales profits, thereby constructing and optimizing the operation strategy of the hydrogen-to-ammonia synthesis system in real time. While optimizing energy utilization, the flexibility of the hydrogen-to-ammonia synthesis system is improved, effectively improving the profit level of the hydrogen-to-ammonia synthesis system.

[0019] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0021] Figure 1 A schematic flow chart of an optimized operation method of an electric hydrogen production and ammonia synthesis system provided in Example 1 of the present application;

[0022] Figure 2 A schematic flow chart of an optimized operation method of an electric hydrogen production and ammonia synthesis system provided in Example 2 of the present application;

[0023] Figure 3 A schematic flow chart of an optimized operation method of an electric hydrogen production and ammonia synthesis system provided in Example 3 of the present application;

[0024] Figure 4 A schematic flow chart of an optimized operation method of an electric hydrogen production and ammonia synthesis system provided in this application;

[0025] Figure 5 This is a schematic diagram of the structure of the optimized operation device of the electric hydrogen production and ammonia synthesis system provided in Example 4 of the present application. DETAILED DESCRIPTION

[0026] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0027] At present, there are relatively few explorations and studies on the use of renewable energy to electrolyze water to synthesize ammonia from hydrogen to improve overall economic benefits, especially in the field of wind and solar hydrogen and ammonia. In addition, in the relevant technologies, the algorithms currently used for the optimization of wind and solar hydrogen and ammonia systems, such as particle swarm algorithms, genetic algorithms, and gray wolf algorithms, still have problems in practical applications. These algorithms may have problems such as slow convergence speed, premature algorithms, and falling into local optimal solutions during the optimization process. Especially in the late Jinhua period, the search efficiency of these algorithms tends to decrease and the convergence speed slows down, which to a certain extent limits the performance improvement and economic benefit optimization of wind and solar hydrogen and ammonia systems.

[0028] Therefore, in order to fully tap the potential of the wind-solar hydrogen production and ammonia synthesis system, we should not only focus on the hydrogen production process itself, but also explore how to use the produced hydrogen for efficient ammonia synthesis and find more advanced optimization algorithms to improve the operating efficiency and economic benefits of the entire system.

[0029] In response to the above problems, the present application proposes an optimized operation method, device and equipment for an electric hydrogen production and ammonia synthesis system.

[0030] The following describes the optimized operation method, device and equipment of the electric hydrogen production and ammonia synthesis system of the embodiment of the present application with reference to the accompanying drawings.

[0031] Figure 1 This is a flow chart of the optimized operation method of the electric hydrogen production and ammonia synthesis system provided in Example 1 of the present application.

[0032] The embodiment of the present application takes the optimization operation method of the hydrogen-electric ammonia synthesis system as an example, in which the optimization operation device of the hydrogen-electric ammonia synthesis system is configured. The optimization operation device of the hydrogen-electric ammonia synthesis system can be applied to any electronic device so that the electronic device can perform the optimization operation function of the hydrogen-electric ammonia synthesis system.

[0033] Among them, the electronic device can be any device with computing capabilities, such as a personal computer, a mobile terminal, a server, etc. The mobile terminal can be, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and other hardware devices with various operating systems, touch screens and / or display screens.

[0034] like Figure 1 As shown, the optimized operation method of the electric hydrogen production and ammonia synthesis system may include the following steps:

[0035] Step 101, obtaining a system model of a system for synthesizing ammonia by producing hydrogen from electricity.

[0036] The system model may include, but is not limited to, a photovoltaic power station model, a wind power station model, a water electrolysis hydrogen production model of a hydrogen production device, a gas storage device model, a hydrogen ammonia synthesis device model, and an energy storage device model.

[0037] As a possible implementation, the hydrogen production device may include but is not limited to a hydrogen production equipment, wherein the hydrogen production equipment may be, for example, an electrolyzer.

[0038] In a possible implementation of the embodiment of the present application, when the hydrogen production device includes at least one hydrogen production equipment, the system model is specifically expressed as:

[0039] (1) The photovoltaic power station model is expressed as:

[0040]

[0041] Among them, P t pv represents the photovoltaic output at time t, P pv,r Indicates the rated power of photovoltaic under standard conditions, T c Represents the temperature of the photovoltaic panel cell, R c To set the light intensity to a specific intensity, I std is the light intensity per unit area under standard conditions, T stc is the battery temperature under standard conditions, I t It represents the solar radiation intensity received by the clear space above the photovoltaic panel at time t, Indicates the temperature coefficient of the photovoltaic panel;

[0042] It should be noted that the temperature coefficient value range is [0.03, 0.05];

[0043] (2) The wind power station model is expressed as:

[0044]

[0045] in,

[0046]

[0047] v is the real-time wind speed in the area, v ci is the cut-in wind speed, v co is the cut-out wind speed, v r is the rated wind speed, P wt Represents the wind power output of the wind turbine, P wt,r Indicates the rated power of the wind turbine under standard conditions;

[0048] (3) The model of hydrogen production by water electrolysis is expressed as:

[0049] P el,单 =U el I el ; (5)

[0050] in,

[0051] U rev =U r0 -K rev (T el -298.15); (7)

[0052]

[0053] P el,单 Indicates the hydrogen production power of a single hydrogen production equipment, U el is the output voltage of a single hydrogen production device, I el Indicates the current of a single hydrogen production equipment, U rev Represents the reversible voltage of the hydrogen production equipment, S el Indicates the electrode surface area of ​​the hydrogen production equipment, T el Indicates the operating temperature of the hydrogen production equipment, K el Indicates the electrode overvoltage coefficient, K T Indicates the empirical overpressure coefficient of hydrogen production equipment, U r0 Indicates the reversible voltage of hydrogen production equipment under standard conditions, K rev is the temperature empirical coefficient, Indicates the hydrogen production of a single hydrogen production equipment, P t el,单 is the hydrogen production power of a single hydrogen production equipment at time t;

[0054] The operating power constraints of the hydrogen production equipment are:

[0055]

[0056] Indicates the rated operating power of a single hydrogen production equipment. A binary variable representing the start and stop of a single hydrogen production unit;

[0057] The power ramp constraint of the hydrogen production equipment is:

[0058]

[0059] A binary variable representing the status of the hydrogen production equipment, r c is the ramp rate when the hydrogen production equipment is in a cold state, r wIt is the ramp rate when the hydrogen production equipment is in warm state.

[0060] (4) Gas storage equipment model

[0061]

[0062] in, Indicates the maximum hydrogen production per unit time in one year in historical data. represents the actual hydrogen production of the hydrogen production device at time t, η hs,max Indicates the maximum hydrogen storage capacity, η hs,单 Indicates the rated capacity of a single gas storage device, N hs Indicates the number of gas storage devices required.

[0063] (5) The model of hydrogen synthesis ammonia unit is expressed as:

[0064] Constraints on the load ramp rate of the hydrogen-to-ammonia synthesis unit:

[0065]

[0066] in, represents the ammonia production rate of the hydrogen-to-ammonia synthesis unit at time t, h is the scheduling step length, Indicates the synthetic ammonia load ramp rate, Indicates the lower limit of the load ramp rate. Indicates the upper limit of the load ramp rate;

[0067] Constraints on ammonia yield:

[0068]

[0069] in, represents the lower limit of ammonia yield, represents the upper limit of ammonia yield;

[0070] (6) Energy storage equipment model

[0071]

[0072] in, is the charging power of the energy storage device at time t, is the discharge power of the energy storage device at time t, A binary variable representing the charging flag of the energy storage device, Binary variable representing the discharge flag of the energy storage device, S t represents the capacity of the energy storage device at time t, η cha Represents the charging coefficient of the energy storage device, η dis Indicates the discharge coefficient of the energy storage device, SOC maxrepresents the maximum capacity of the energy storage device, ρ min Represents the lower limit of charge and discharge of energy storage equipment, ρ max Indicates the upper limit of charging and discharging of energy storage equipment.

[0073] Step 102, collect the current meteorological data, and predict the wind power output and photovoltaic output at the current moment according to the photovoltaic power station model and the wind power station model in combination with the current meteorological data to obtain the predicted wind power output and the predicted photovoltaic output.

[0074] It should be noted that the current time in this application is in hours.

[0075] Among them, meteorological data includes wind speed, light intensity, etc.

[0076] In an embodiment of the present application, a sensor may be used to collect meteorological data at the current moment. For example, a gyroscope may be used to measure and obtain wind speed, and a light intensity detector may be used to measure and obtain light intensity.

[0077] In an embodiment of the present application, after collecting the meteorological data at the current moment, the wind speed in the meteorological data can be input into the wind power station model to predict the photovoltaic output at the current moment and obtain the predicted wind power output, and the light intensity in the meteorological data can be input into the photovoltaic power station model to predict the wind power output at the current moment and obtain the predicted photovoltaic output.

[0078] Step 103 , based on the predicted wind power output and the predicted photovoltaic output, combined with the system model, the target variable is optimized using the sparrow search algorithm to obtain the target value of the target variable at the current moment.

[0079] Among them, the target variables include the hydrogen production flow of the hydrogen production unit and the ammonia production of the hydrogen synthesis ammonia unit.

[0080] Optionally, the target variable may also include the absorbable wind power and absorbable photovoltaic power of the electric hydrogen production and ammonia synthesis system.

[0081] Step 104, controlling the electric hydrogen production and ammonia synthesis system to operate according to the target value of the target variable, so that the electric hydrogen production and ammonia synthesis system can achieve the highest ammonia sales profit at the current moment.

[0082] The optimized operation method of the electric hydrogen synthesis ammonia system of the embodiment of the present application is obtained by obtaining the system model of the electric hydrogen synthesis ammonia system; wherein the system model includes a photovoltaic power station model, a wind power station model, a water electrolysis hydrogen production model of a hydrogen production device, a gas storage device model, a hydrogen synthesis ammonia device model, and an energy storage device model; collecting meteorological data at the current moment, and predicting the wind power output and photovoltaic output at the current moment according to the photovoltaic power station model and the wind power station model, combined with the meteorological data at the current moment, to obtain predicted wind power output and predicted photovoltaic output; based on the predicted wind power output and predicted photovoltaic output, combined with the system model, the sparrow search algorithm is used to optimize the target variable to obtain the target value of the target variable at the current moment; wherein the target variable includes the hydrogen production flow of the hydrogen production device and the ammonia production of the hydrogen synthesis ammonia device; controlling the electric hydrogen synthesis ammonia system to operate according to the target value of the target variable, so that the electric hydrogen synthesis ammonia system has the highest ammonia sales profit at the current moment. Thus, the electric hydrogen synthesis ammonia system can be controlled to operate in real time according to the economic optimization operation strategy, so that the system always operates in the optimal state and maximizes economic benefits.

[0083] In order to clearly explain how, in the above embodiments of the present application, the target variable is optimized based on the predicted wind power output and the predicted photovoltaic output, combined with the system model, and the sparrow search algorithm is used to obtain the target value of the target variable at the current moment, the present application also proposes an optimized operation method for an electric hydrogen production and ammonia synthesis system.

[0084] Figure 2 This is a flow chart of the optimized operation method of the electric hydrogen production and ammonia synthesis system provided in Example 2 of the present application.

[0085] like Figure 2 As shown, the optimized operation method of the electric hydrogen production and ammonia synthesis system may include the following steps:

[0086] Step 201, obtaining a system model of a system for synthesizing ammonia from hydrogen produced by electricity.

[0087] Step 202, collect the current meteorological data, and predict the wind power output and photovoltaic output at the current moment according to the photovoltaic power station model and the wind power station model in combination with the current meteorological data to obtain the predicted wind power output and the predicted photovoltaic output.

[0088] It should be noted that the execution process of step 201 to step 202 can refer to the execution process of any embodiment of the present application and will not be repeated here.

[0089] Step 203, initializing the sparrow population of the sparrow search algorithm to obtain an initial population; wherein the position value of each sparrow in the sparrow population represents the value of the target variable.

[0090] When initializing the sparrow population of the sparrow search algorithm, the position of the sparrow population can be initialized and the key parameters of the sparrow population can be set, wherein the key parameters may include, for example, the population size, the warning value, and the safety value. The population size indicates the number of individual sparrows participating in the search, and the warning value and the safety value are both used for the behavior strategy of the sparrows during the search process.

[0091] It should be noted that the explanation of the target variable in step 103 is also applicable to this embodiment and will not be repeated here.

[0092] Step 204 , based on the predicted wind power output and the predicted photovoltaic output, and the initial population, an iterative process of no more than a set number of iterations based on a sparrow search algorithm is performed on the target variable to obtain a target value of the target variable at the current moment.

[0093] The number of iterations may be preset, for example, 500, 1000, etc., and this application does not impose any restrictions on this.

[0094] Among them, in any round of iteration, the global optimal sparrow in the sparrow population is updated based on the fitness value of each sparrow, and the global optimal sparrow is determined based on the fitness value of each sparrow in the sparrow population. For example, in any round of iteration, the sparrow with the highest fitness value in the sparrow population of this round can be determined as the global optimal sparrow of this round.

[0095] It should be noted that, in any round of iteration, the local optimal sparrow can be updated based on the fitness value of the explorer in the sparrow population, and the global worst sparrow in the sparrow population can be updated based on the fitness value of each sparrow in the sparrow population. For example, in any round of iteration, the explorer with the highest fitness value among the sparrows in this round is determined as the local optimal sparrow in this round, and the sparrow with the lowest fitness value among the sparrow population in this round is determined as the global worst sparrow in this round.

[0096] During any round of iteration, the position of each sparrow in the sparrow population can also be updated. Specifically, for any explorer in the sparrow population, the explorer position update mechanism is used to update the explorer's position value in this round to obtain the explorer's position value in the next round; for any follower in the sparrow population, the follower's position in this round is updated based on the position value of the global worst sparrow in this round and the position value of the local optimal sparrow in the next round to obtain the follower's position value in the next round; for any early warning in the sparrow population, the early warning's position value in this round is updated based on the position value and fitness value of the global optimal sparrow in this round, the position value and fitness value of the global worst sparrow in this round, and the early warning's fitness value in this round.

[0097] As an example, for any explorer in the sparrow population, the explorer position update mechanism adopted is as follows:

[0098]

[0099] Among them, represents the position value of the explorer with serial number i in the sparrow population during the n-th iteration. α is a random value in the interval (0, 1]. Q is a random number subject to a normal distribution. L is a 1*d matrix with all elements being 1, and d is the dimension of the target variable to be optimized. R2 is the early warning threshold, and ST is the safety value. When R2 < ST, it means there is no predator in the current foraging environment, and the explorer can conduct a large-scale search. When R2 ≥ ST, it means the early warning bird has detected a predator and issued an alarm, and at this time all sparrows will move to a safe area to forage.

[0100] For any follower in the sparrow population, the position update method of the follower is as follows:

[0101]

[0102] Among them, represents the position value of the follower with serial number i in the sparrow population during the n-th iteration. represents the position value of the globally worst sparrow in the n-th round. represents the position value of the locally optimal sparrow during the (n + 1)-th iteration. N represents the population size, and A + = A(AA T ) -1 , A is a 1*d matrix, and each element in matrix A is randomly assigned as 1 or -1. d is the dimension of the target variable to be optimized. Q is a random number subject to a normal distribution. L is a 1*d matrix with all elements being 1. When , it indicates that the follower has not obtained food and has a low fitness value, and needs to urgently fly to other places to forage. When , it indicates that the follower will forage near the optimal position.

[0103] For any early warning bird in the sparrow population, the position update method of the follower is as follows:

[0104]

[0105] Among them, represents the position value of the early warning bird with serial number i in the sparrow population during the n-th iteration. represents the position value of the globally worst sparrow in the n-th round. represents the position value of the globally optimal sparrow in the n-th round. β is a step size control parameter and follows a normal distribution (mean is 0, variance is 1), and K is a random value in [-1, 1]. fi n It represents the fitness value of the warning person with sequence number i in the sparrow population during the nth round of iteration. It represents the fitness value of the global optimal sparrow in the nth round of iteration. represents the fitness value of the global worst sparrow in the nth round of iteration, and ε is a very small constant to prevent the denominator from being zero. When , it indicates that the sparrow is at the edge of the population and is vulnerable to predators; when , it means that the sparrow in the middle of the population is aware of the danger and needs to move closer to other sparrows to avoid the attack.

[0106] In an embodiment of the present application, for any sparrow, first, the allocated power corresponding to the sparrow can be determined based on the position value of the sparrow; secondly, the fitness value of the sparrow can be determined based on the allocated power corresponding to the sparrow, the predicted wind power output and the predicted photovoltaic output, combined with the system model, and the ammonia sales profit objective function of the electric hydrogen production and ammonia synthesis system.

[0107] The allocated power may include hydrogen production power and ammonia synthesis power. The hydrogen production power is used to indicate the power consumed by water electrolysis to produce hydrogen, that is, the power that needs to be allocated to the hydrogen production device; the ammonia synthesis power is used to indicate the power consumed by hydrogen synthesis to produce ammonia, that is, the power that needs to be allocated to the hydrogen synthesis to produce ammonia device.

[0108] In order to clearly explain how to determine the allocated power corresponding to any sparrow, as a possible implementation method, for any sparrow, the hydrogen production power corresponding to the sparrow is determined based on the hydrogen production flow rate in the sparrow's position value, the ground state power of the hydrogen production device and the hydrogen production power consumption coefficient; the ammonia synthesis power corresponding to the sparrow is determined based on the ammonia yield in the sparrow's position value, the ground state power of the hydrogen synthesis ammonia device and the ammonia synthesis power consumption coefficient.

[0109] In an embodiment of the present application, for any sparrow, the hydrogen production power corresponding to the sparrow can be determined based on the hydrogen production flow rate in the sparrow's position value (i.e., the value of the target variable), the ground state power of the hydrogen production device, and the hydrogen production power consumption coefficient, and the synthetic ammonia power corresponding to the sparrow can be determined based on the ammonia yield in the sparrow's position value, the ground state power of the hydrogen synthesis ammonia device, and the synthetic ammonia power consumption coefficient.

[0110] As an example, assume that for sparrow A, the hydrogen production flow rate in the position value of the sparrow is The ammonia yield is The hydrogen production power P corresponding to the sparrow can be determined according to the following formula: el :

[0111]

[0112] Among them, P el_0is the base power of the hydrogen production device, is the electricity consumption coefficient for hydrogen production;

[0113] The synthetic ammonia power corresponding to the sparrow can be determined according to the following formula

[0114]

[0115] in, is the base power of the hydrogen-to-ammonia synthesis unit, is the power consumption coefficient of synthetic ammonia.

[0116] Therefore, the hydrogen production power and ammonia synthesis power can be effectively determined.

[0117] In the case where the hydrogen production device includes at least one hydrogen production device, in a possible implementation of the present application, the expression of the ammonia sales profit objective function is:

[0118] J = SC; (25)

[0119] in,

[0120]

[0121]

[0122] C sal =M×Y ave ; (33)

[0123] C dep =K dep ×C inv ; (34)

[0124]

[0125] J represents the profit of selling ammonia for the electric hydrogen production ammonia synthesis system, S represents the revenue from selling ammonia, C represents the operating cost of the electric hydrogen production ammonia synthesis system, and C A Represents the process electricity cost, C B represents the operation and maintenance cost, t represents the current time, represents the water consumption cost of hydrogen production equipment at time t, C sal Indicates employee wages and benefits, C dep represents the equipment depreciation cost, represents the cost of hydrogen production by electrolysis of water at time t, represents the cost of hydrogen-to-ammonia synthesis at time t, represents the hydrogen storage cost at time t, h is the scheduling step length, represents the wind power price at time t, P t elrepresents the hydrogen production power at time t, represents the synthetic ammonia power at time t, represents the electricity used to compress hydrogen at time t, represents the operation and maintenance cost of the hydrogen production unit, represents the operation and maintenance cost of the hydrogen-to-ammonia unit, represents the operation and maintenance cost of the hydrogen compression device, represents the operation and maintenance cost of the grid interaction device, K water Indicates the water consumption of hydrogen production equipment per unit of hydrogen. represents the price of a unit of water, represents the hydrogen production flow rate of the hydrogen production device at time t, M represents the number of people in the electric hydrogen production and ammonia synthesis system, and Y ave represents the average wage and benefits per capita, K dep Represents the equipment depreciation cost ratio coefficient, C inv represents the equipment investment cost, Indicates the unit selling price of ammonia, It represents the ammonia production rate of the hydrogen synthesis ammonia unit at time t.

[0126] Therefore, in this application, based on the predicted wind power output and the predicted photovoltaic output, as well as the initial population, the target variable can be iterated for no more than a set number of iterations based on the sparrow search algorithm, and the position value corresponding to the global optimal sparrow determined in the last round of iterations can be determined as the target value of the target variable at the current moment.

[0127] Step 205, controlling the electric hydrogen production and ammonia synthesis system to operate according to the target value of the target variable, so that the electric hydrogen production and ammonia synthesis system can achieve the highest ammonia sales profit at the current moment.

[0128] The execution process of step 205 can refer to the execution process of any embodiment of the present application, and will not be repeated here.

[0129] In a possible implementation of the embodiment of the present application, the target variable may also include the absorbable wind power and absorbable photovoltaic power of the electric hydrogen production and ammonia synthesis system.

[0130] Optionally, when the target variables also include the amenable wind power and amenable photovoltaic power of the hydrogen-to-ammonia synthesis system, the abandoned power at the current moment is determined based on the predicted wind power output, the predicted photovoltaic output, the target value of the amenable wind power at the current moment, and the target value of the amenable photovoltaic power at the current moment; based on the abandoned power at the current moment, it is determined whether the hydrogen-to-ammonia synthesis system meets the abandonment rate constraint at the current moment.

[0131] As an example, suppose the predicted wind power output at the current time t is P twt , the predicted photovoltaic output is P t pv The target value of wind power that can be absorbed at the current moment is P t wt,s 、The target value of the photovoltaic power that can be absorbed at the current moment P t pv,s , the abandoned power P at the current moment can be determined according to the following formula t loss :

[0132] P t loss =P t wt +P t pv -P t wt,s -P t pv,s ; (36)

[0133] Therefore, based on the abandoned power at the current moment, it can be determined whether the electric hydrogen production and ammonia synthesis system meets the abandoned power rate constraint at the current moment. For example, the abandoned power corresponding to each moment before the current moment of the day and the corresponding total wind and solar power generation power can be obtained. Based on the abandoned power at the current moment, the predicted total wind and solar output at the current moment, the abandoned power corresponding to each moment before the current moment of the day, and the corresponding total wind and solar power generation power, it is determined whether the abandoned power at the current moment meets the abandoned power rate constraint. For example, assuming that the abandoned power at the current moment t is P t loss , the total predicted wind and solar power output at the current moment is (P t wt +P t pv ), where the predicted wind power output at the current time t is P t wt , the predicted photovoltaic output is P t pv , there are n moments before the current moment of the day, and the power abandonment power corresponding to the moment (ti) before the current moment of the day is The total wind and solar power generation power corresponding to the moment (ti) before the current moment of the day is Then it can be determined whether the abandoned power at the current moment satisfies the following formula:

[0134]

[0135] When it is determined that the abandoned power at the current moment satisfies formulas (37) and (38), it is determined that the abandoned power at the current moment satisfies the abandoned power rate constraint.

[0136] Therefore, by optimizing the hydrogen production flow of the hydrogen production unit, the ammonia output of the hydrogen-to-ammonia synthesis unit, the amenable wind power and amenable photovoltaic power of the electric hydrogen-to-ammonia synthesis system at the same time, it is possible to minimize the amount of abandoned electricity while ensuring the maximum hydrogen production power.

[0137] The optimization operation method of the electric hydrogen production and ammonia synthesis system of the embodiment of the present application is to initialize the sparrow population of the sparrow search algorithm to obtain the initial population; wherein, the position value of each sparrow in the sparrow population represents the value of the target variable; based on the predicted wind power output and the predicted photovoltaic output, and the initial population, the target variable is iterated based on the sparrow search algorithm for no more than the set number of iterations to obtain the target value of the target variable at the current moment; wherein, in any round of iteration, the global optimal sparrow in the sparrow population is updated based on the fitness value of each sparrow, the global optimal sparrow is determined based on the fitness value of each sparrow in the sparrow population, the fitness value of any sparrow is based on the position value of the corresponding sparrow to determine the corresponding allocated power, according to the corresponding allocated power, predicted wind power output and predicted photovoltaic output, combined with the system model, the ammonia sales profit objective function of the electric hydrogen production and ammonia synthesis system is used to determine. Therefore, by optimizing the target variable through the sparrow search algorithm, with the goal of maximizing the ammonia sales profit, the convergence speed and operation efficiency can be improved, and the global optimization capability can be improved.

[0138] It is understandable that the electric hydrogen production and ammonia synthesis system has an energy storage device, which can control the energy storage device to charge and discharge the electricity generated by renewable energy, that is, the energy storage device can store and release the electricity generated by renewable energy. Based on this, in order to clearly explain how to control the operation of the energy storage device, this application also proposes an optimized operation method of the hydrogen production and ammonia synthesis system.

[0139] Figure 3 This is a flow chart of the optimized operation method of the electric hydrogen production and ammonia synthesis system provided in Example 3 of the present application.

[0140] like Figure 3 As shown, based on the previous embodiment of the present application, the optimized operation method of the electric hydrogen production and ammonia synthesis system may also include the following steps:

[0141] Step 301, based on the target value of the target variable, determine the corresponding target allocated power; wherein the target allocated power includes the target hydrogen production power and the target ammonia synthesis power.

[0142] It should be noted that the method for determining the target allocated power is similar to the method for determining the allocated power corresponding to the sparrow in step 204, and will not be described in detail here.

[0143] In an embodiment of the present application, when the target variable of the electric hydrogen production and ammonia synthesis system adopts the target value at the current moment, the corresponding allocation power used for allocation is recorded as the target allocation power, wherein the target allocation power includes the target hydrogen production power and the target ammonia synthesis power, that is, the power that needs to be allocated to the hydrogen production device is the target hydrogen production power, and the power allocated to the hydrogen ammonia synthesis device is the target ammonia synthesis power.

[0144] Step 302, inputting the target hydrogen production power into the hydrogen production device so that the hydrogen production device performs the water electrolysis hydrogen production operation, and inputting the target ammonia synthesis power into the hydrogen ammonia synthesis device so that the hydrogen ammonia synthesis device performs the hydrogen ammonia synthesis operation.

[0145] Step 303, determine the new energy power at the current moment according to the predicted wind power output and the predicted photovoltaic output, and determine the load power at the current moment based on the target hydrogen production power and the target synthetic ammonia power.

[0146] As an example, assume that the predicted wind power output at the current time t is P t wt , the predicted photovoltaic output is P t pv The new energy power P at the current moment can be determined according to the following formula t new for:

[0147] P t new =P t wt +P t pv ; (39)

[0148] Assume that the target hydrogen production power at the current time t is P t el , the target ammonia synthesis power is The current load power P can be determined according to the following formula: t 负 for:

[0149]

[0150] Step 304 , in response to the new energy power being greater than the load power, based on the energy storage capacity of the energy storage device at the current moment and the maximum energy storage capacity of the energy storage device, determining whether the energy storage device is in a state to be charged at the current moment.

[0151] As an example, when the new energy power is greater than the load power, the product of the first set ratio and the maximum energy storage capacity of the energy storage device is determined as the first value; it is determined whether the energy storage capacity of the energy storage device at the current moment is less than the first value; when the energy storage capacity of the energy storage device at the current moment is less than the first value, it can be determined that the energy storage device is in a charging state at the current moment, otherwise it is in a power abandonment state.

[0152] The first set ratio may be pre-set, such as 80%, 85%, etc., and this application does not impose any limitation on this.

[0153] For example, assuming that the first set ratio is 85%, when the new energy power is greater than the load power, and the energy storage capacity of the energy storage device at the current moment is less than 85% of the maximum energy storage capacity of the energy storage device, it can be determined that the energy storage device is in a charging state at the current moment.

[0154] Step 305 : When it is determined that the energy storage device is in a state to be charged at the current moment, control the energy storage device to perform a charging operation.

[0155] In the embodiment of the present application, when it is determined that the energy storage device is in a state to be charged at the current moment, the energy storage device can be controlled to perform a charging operation.

[0156] Step 306 , in response to the new energy power being less than the load power, based on the energy storage capacity of the energy storage device at the current moment and the maximum energy storage capacity of the energy storage device, determining whether the energy storage device is in a ready-to-discharge state at the current moment.

[0157] As an example, when the new energy power is less than the load power, the product of the second set ratio and the maximum energy storage capacity of the energy storage device is determined as the second value; it is determined whether the energy storage capacity of the energy storage device at the current moment is greater than the second value; when the energy storage capacity of the energy storage device at the current moment is greater than the second value, it can be determined that the energy storage device is in a discharge state at the current moment, otherwise it ends.

[0158] The second set ratio may be pre-set, such as 15%, 20%, etc., and this application does not impose any limitation on this.

[0159] For example, assuming that the second set ratio is 15%, when the new energy power is less than the load power, and the energy storage capacity of the energy storage device at the current moment is greater than 15% of the maximum energy storage capacity of the energy storage device, it can be determined that the energy storage device is in a discharge state at the current moment.

[0160] Step 307 : When it is determined that the energy storage device is in a ready-to-discharge state at the current moment, control the energy storage device to perform a discharge operation.

[0161] In the embodiment of the present application, when it is determined that the energy storage device is in a ready-to-discharge state at the current moment, the energy storage device can be controlled to perform a discharging operation.

[0162] It should be noted that steps 304 to 305 and steps 306 to 307 may be performed alternatively.

[0163] The optimized operation method of the electric hydrogen production and ammonia synthesis system of the embodiment of the present application determines the corresponding target allocated power by taking a target value based on the target variable; wherein the target allocated power includes a target hydrogen production power and a target ammonia synthesis power; the electric quantity of the target hydrogen production power is input into the hydrogen production device so that the hydrogen production device performs a water electrolysis hydrogen production operation, and the electric quantity of the target ammonia synthesis power is input into the hydrogen ammonia synthesis device so that the hydrogen ammonia synthesis device performs a hydrogen ammonia synthesis operation; the new energy power at the current moment is determined based on the predicted wind power output and the predicted photovoltaic output, and the load power at the current moment is determined based on the target hydrogen production power and the target ammonia synthesis power ; In response to the new energy power being greater than the load power, based on the energy storage capacity of the energy storage device at the current moment and the maximum energy storage capacity of the energy storage device, determine whether the energy storage device is in a state to be charged at the current moment; in the case of determining that the energy storage device is in a state to be charged at the current moment, control the energy storage device to perform a charging operation at the current moment; in response to the new energy power being less than the load power, based on the energy storage capacity of the energy storage device at the current moment and the maximum energy storage capacity of the energy storage device, determine whether the energy storage device is in a state to be discharged at the current moment; in the case of determining that the energy storage device is in a state to be discharged at the current moment, control the energy storage device to perform a discharge operation at the current moment. In this way, the operation of the electric hydrogen production and ammonia synthesis system can be effectively controlled. On the one hand, the economic optimization scheduling of electricity can be realized, and on the other hand, the charging and discharging of the energy storage device can be used to maintain the power balance of the system and improve the flexibility of the system operation.

[0164] In order to clearly illustrate the optimized operation method of the electric hydrogen production and ammonia synthesis system of the present application, a detailed description is given below with reference to examples.

[0165] As an example, Figure 4 As shown, the following steps can be used to implement the optimized operation method of the electric hydrogen production and ammonia synthesis system of the present application:

[0166] Step 1: Construct a system model of a renewable energy electric hydrogen production and ammonia synthesis system (referred to as an electric hydrogen production and ammonia synthesis system in this application)

[0167] The system model includes:

[0168] (1) Photovoltaic power station model

[0169] (2) Wind power station model

[0170] (3) Hydrogen production model of alkaline water electrolysis of hydrogen production device (referred to as water electrolysis hydrogen production model in this application)

[0171] The hydrogen production device includes at least one alkaline electrolyzer (referred to as hydrogen production equipment in this application)

[0172] (4) Gas storage equipment model

[0173] (5) Hydrogen synthesis ammonia plant model

[0174] (6) Energy storage equipment model

[0175] It should be noted that the core goal of the renewable energy electric hydrogen production and ammonia synthesis system configuration can be to fully utilize and efficiently absorb local wind and solar resources in areas where the grid coverage is relatively weak or the construction cost is high, maximize the potential of renewable energy, and minimize the power abandonment rate. By optimizing resource allocation, the transfer of hydrogen production and ammonia synthesis target products can be achieved, and this new method can replace the traditional high-investment and high-cost grid laying.

[0176] By building wind power and photovoltaic units to generate electricity from renewable energy, and deploying highly flexible hydrogen production equipment locally, excess electricity is converted into hydrogen for storage and utilization. At the same time, in order to balance the fluctuations in power supply and demand, corresponding energy storage equipment and hydrogen storage equipment are equipped to adjust the power difference between the source and the load, thereby assisting in the efficient and stable consumption of wind and solar power, providing strong support for the region's energy security and sustainable development.

[0177] Step 2: Constructing the profit objective function of selling ammonia

[0178] The renewable energy electric hydrogen production and ammonia synthesis system takes the economically optimal profit from selling ammonia as its objective function. The system cost can be composed of process electricity cost, operation and maintenance cost, electrolyzer water consumption cost, employee wages and benefits, equipment depreciation cost, etc.

[0179] Step 3: Build system constraints

[0180] The renewable energy hydrogen production and ammonia synthesis system needs to meet constraints such as system power balance, new energy power abandonment restrictions, and green electricity consumption rate restrictions.

[0181] Step 4: Obtain the current meteorological data, where the meteorological data includes wind speed and light intensity.

[0182] Step 5: Input the current wind speed into the wind power station model to obtain the predicted wind power output, and input the current light intensity into the photovoltaic power station model to obtain the predicted photovoltaic output.

[0183] Step 6: Initialize the sparrow population to obtain the initial population

[0184] Among them, the position value of each sparrow represents the value of the target variable, and the target variables include hydrogen production flow, ammonia yield, absorbable wind power, and absorbable photovoltaic power.

[0185] Step 7: Based on the initial population, the target variable is iterated based on the sparrow search algorithm for no more than a set number of iterations to obtain the target value of the target variable at the current moment.

[0186] Among them, when the renewable energy hydrogen production and ammonia synthesis system operates according to the target value of the target variable, the system's ammonia sales profit is optimal.

[0187] In any round of iteration, for any sparrow in this round, the allocated power corresponding to the sparrow in this round can be determined based on the position value of the sparrow according to formulas (23) and (24), wherein the allocated power includes hydrogen production power and ammonia synthesis power; the fitness value of the sparrow in this round can be determined based on the allocated power corresponding to the sparrow, the predicted wind power output and the predicted photovoltaic output, combined with the system model, and the ammonia sales profit objective function of the electric hydrogen production and ammonia synthesis system;

[0188] According to the fitness value of each explorer in the sparrow population in this round, the local optimal sparrow of this round is determined; according to the fitness value of each sparrow in the sparrow population in this round, the global optimal sparrow and the global worst sparrow of this round are determined;

[0189] For any explorer in the sparrow population in this round, the explorer position update mechanism is used to update the position value of the explorer in the sparrow population in this round to obtain the position value of the explorer in the next round; for any follower in the sparrow population in this round, the position of the follower in this round is updated based on the position value of the global worst sparrow in this round and the position value of the local optimal sparrow in the next round to obtain the position value of the follower in the next round; for any early warning person in the sparrow population, the position value of the early warning person in this round is updated based on the position value and fitness value of the global optimal sparrow in this round, the position value and fitness value of the global worst sparrow in this round, and the fitness value of the early warning person in this round;

[0190] When executing the last round of iteration, the position value of the global optimal sparrow in this round is determined as the target value of the target variable at the current moment;

[0191] Step 8: Control the renewable energy electric hydrogen production and ammonia synthesis system to operate according to the target value of the target variable so as to optimize the ammonia sales profit of the system at the current moment.

[0192] Optionally, based on the target value of the target variable, the corresponding target allocated power is determined; wherein the target allocated power includes the target hydrogen production power and the target synthetic ammonia power; based on the predicted wind power output and the predicted photovoltaic output, the new energy power at the current moment is determined, and based on the target hydrogen production power and the target synthetic ammonia power, the load power at the current moment is determined; in response to the new energy power being greater than the load power, based on the energy storage capacity of the energy storage device at the current moment and the maximum energy storage capacity of the energy storage device, it is determined whether the energy storage device is in a state to be charged at the current moment; if it is determined that the energy storage device is in a state to be charged at the current moment, the energy storage device is controlled to perform a charging operation at the current moment. In response to the new energy power being less than the load power, based on the energy storage capacity of the energy storage device at the current moment and the maximum energy storage capacity of the energy storage device, it is determined whether the energy storage device is in a state to be discharged at the current moment; if it is determined that the energy storage device is in a state to be discharged at the current moment, the energy storage device is controlled to perform a discharge operation at the current moment.

[0193] Optionally, based on the predicted wind power output, the predicted photovoltaic output, the target value of the absorbable wind power at the current moment and the target value of the absorbable photovoltaic power at the current moment, the abandoned power at the current moment is determined; based on the abandoned power at the current moment, it is determined whether the hydrogen production and ammonia synthesis system meets the abandoned power rate constraint at the current moment.

[0194] Optionally, based on the target value of the target variable, the corresponding target allocated power is determined; wherein the target allocated power includes the target hydrogen production power and the target ammonia synthesis power; based on the predicted wind power output, the predicted photovoltaic output, the target hydrogen production power and the target ammonia synthesis power, the energy storage power of the electricity to be stored is determined.

[0195] Optionally, the number of alkaline electrolyzers can be predicted based on the ratio of the target hydrogen production power to the rated power of a single alkaline electrolyzer to obtain a first number; the first number of alkaline electrolyzers can be started so that each started alkaline electrolyzer performs electric hydrogen production operations.

[0196] This application builds a system model of a renewable energy hydrogen-to-ammonia system based on meteorological data, electrolyzer equipment parameters (such as the rated power of the electrolyzer), energy storage equipment parameters, ammonia load production, and economic data. Under the constraints of satisfying the power balance of the renewable energy hydrogen-to-ammonia system, the new energy abandonment rate, the electrolyzer operating characteristics, and the energy storage equipment operating characteristics, the objective function is to maximize the profit of the hydrogen-to-ammonia system. Based on the sparrow search algorithm, the wind-solar hydrogen-to-ammonia system is optimized for scheduling and operation analysis, and the energy storage output at each moment, the number of electrolyzers activated, the hydrogen and ammonia production, the gas storage capacity of the gas storage equipment (i.e., the hydrogen storage tank), and the cost and profit of the system are obtained.

[0197] In the long term, electricity-hydrogen synergy will work simultaneously from the source end and the receiving end to smooth the large-scale imbalance between renewable energy power generation and user electricity consumption in time and space. Among them, the source-end electricity-hydrogen synergy mode will be widely used in renewable energy power generation bases, and the receiving-end electricity-hydrogen synergy mode will be applied on a large scale in distributed energy systems and microgrids. Through the deep coupling and interaction of electricity and hydrogen energy, the grid regulation capacity will be greatly improved under the scenario of high proportion of renewable energy.

[0198] In addition, through the form of electricity-to-hydrogen-to-ammonia, hydrogen energy will become an important medium connecting the power industry with other end-consumer industries, which is conducive to strengthening the energy hub role of the power grid and promoting the close coupling of the power industry with industries such as industry, construction, and transportation. On the basis of giving full play to the flexible adjustment performance of hydrogen production from electricity, by installing CCUS (Carbon Capture, Utilization and Storage) equipment on coal-fired power units, carbon dioxide can be captured while retaining the rotational inertia of the system, and widely combined with green hydrogen to produce a variety of chemical raw materials or high-quality fuels such as methane or methanol on a large scale. Based on distributed energy and microgrids as diversified energy supply forms such as hydrogen fuel cells, hydrogen heating, and hydrogen-blended gas multi-generation, combined with multi-energy coupling technology and source-grid-load-storage coordinated control technology, the uncontrollability and random volatility of new energy under high penetration rates can be suppressed locally, and hydrogen fuel cell vehicles can be used as carriers to effectively support the green development of the transportation field.

[0199] In summary, the optimization operation method of the electric hydrogen production and ammonia synthesis system of the present application takes the profit from selling ammonia as the objective function, and solves the renewable energy electric hydrogen production and ammonia synthesis system based on the sparrow search algorithm with strong optimization ability. The solution can meet the real-time power balance of the renewable energy electric hydrogen production and ammonia synthesis system, and achieve the optimal engineering cost and profit. At the same time, it can improve the utilization and consumption of renewable energy, reduce the abandonment rate of new energy, and is conducive to the green and low-carbon transformation of chemical processes.

[0200] With the above Figures 1 to 3 Corresponding to the optimized operation method of the electric hydrogen production and ammonia synthesis system provided in the embodiment, the present application also provides an optimized operation device of the electric hydrogen production and ammonia synthesis system. Figures 1 to 3 The optimized operation method of the electric hydrogen production and ammonia synthesis system provided in the embodiment corresponds to the embodiment, so the implementation method of the optimized operation method of the electric hydrogen production and ammonia synthesis system is also applicable to the optimized operation device of the electric hydrogen production and ammonia synthesis system provided in the embodiment of the present application, and will not be described in detail in the embodiment of the present application.

[0201] Figure 5 This is a schematic diagram of the structure of the optimized operation device of the electric hydrogen production and ammonia synthesis system provided in Example 4 of the present application.

[0202] like Figure 5 As shown, the optimized operation device 500 of the electric hydrogen production and ammonia synthesis system may include: an acquisition module 501, a processing module 502, an optimization module 503 and a control module 504.

[0203] Among them, the acquisition module 501 is used to obtain the system model of the electric hydrogen production and ammonia synthesis system; wherein the system model includes a photovoltaic power station model, a wind power station model, a water electrolysis hydrogen production model of the hydrogen production device, a gas storage equipment model, a hydrogen synthesis ammonia device model, and an energy storage equipment model.

[0204] The processing module 502 is used to collect the current meteorological data, and predict the wind power output and photovoltaic output at the current moment according to the photovoltaic power station model and the wind power station model in combination with the current meteorological data to obtain the predicted wind power output and the predicted photovoltaic output.

[0205] The optimization module 503 is used to optimize the target variables based on the predicted wind power output and the predicted photovoltaic output, combined with the system model, using the sparrow search algorithm to obtain the target value of the target variable at the current moment; wherein the target variables include the hydrogen production flow of the hydrogen production device and the ammonia production of the hydrogen synthesis ammonia device.

[0206] The control module 504 is used to control the electric hydrogen production and ammonia synthesis system to operate according to the target value of the target variable, so that the electric hydrogen production and ammonia synthesis system can achieve the highest ammonia sales profit at the current moment.

[0207] In a possible implementation of the embodiment of the present application, the optimization module 503 is used to: initialize the sparrow population of the sparrow search algorithm to obtain an initial population; wherein the position value of each sparrow in the sparrow population represents the value of the target variable; based on the predicted wind power output and the predicted photovoltaic output, and the initial population, the target variable is iterated for no more than a set number of iterations based on the sparrow search algorithm to obtain the target value of the target variable at the current moment; wherein, in any round of iteration, the global optimal sparrow in the sparrow population is updated based on the fitness value of each sparrow, the global optimal sparrow is determined based on the fitness value of each sparrow in the sparrow population, the fitness value of any sparrow is based on the position value of the corresponding sparrow to determine the corresponding allocated power, and according to the corresponding allocated power, the predicted wind power output and the predicted photovoltaic output, combined with the system model, the ammonia sales profit objective function of the electric hydrogen production and ammonia synthesis system is used to determine it.

[0208] In a possible implementation of an embodiment of the present application, the allocated power includes hydrogen production power and ammonia synthesis power; the optimization module 503 is used to: for any sparrow, determine the hydrogen production power corresponding to the sparrow based on the hydrogen production flow rate in the sparrow's position value, the ground state power of the hydrogen production device and the hydrogen production power consumption coefficient; determine the ammonia synthesis power corresponding to the sparrow based on the ammonia yield in the sparrow's position value, the ground state power of the hydrogen synthesis ammonia device and the ammonia synthesis power consumption coefficient.

[0209] In a possible implementation of the embodiment of the present application, the electric hydrogen production and ammonia synthesis system has an energy storage device; a control module 504 is used to: determine the corresponding target allocated power based on the target value of the target variable; wherein the target allocated power includes a target hydrogen production power and a target ammonia synthesis power; input the electric quantity of the target hydrogen production power into the hydrogen production device so that the hydrogen production device performs a water electrolysis hydrogen production operation, and input the electric quantity of the target ammonia synthesis power into the hydrogen ammonia synthesis device so that the hydrogen ammonia synthesis device performs a hydrogen ammonia synthesis operation; determine the new energy power at the current moment according to the predicted wind power output and the predicted photovoltaic output, and determine the load power at the current moment based on the target hydrogen production power and the target ammonia synthesis power; in response to the new energy power being greater than the load power, determine whether the energy storage device is in a state to be charged at the current moment based on the energy storage capacity of the energy storage device at the current moment and the maximum energy storage capacity of the energy storage device; and when it is determined that the energy storage device is in a state to be charged at the current moment, control the energy storage device to perform a charging operation at the current moment.

[0210] In a possible implementation of the embodiment of the present application, the control module 504 is also used to: in response to the new energy power being less than the load power, determine whether the energy storage device is in a state to be discharged at the current moment based on the energy storage capacity of the energy storage device at the current moment and the maximum energy storage capacity of the energy storage device; when it is determined that the energy storage device is in a state to be discharged at the current moment, control the energy storage device to perform a discharge operation at the current moment.

[0211] In a possible implementation of the embodiment of the present application, the hydrogen production device includes at least one hydrogen production equipment, and the expression of the ammonia sales profit objective function is:

[0212] J = SC;

[0213] in,

[0214]

[0215]

[0216] C sal =M×Y ave ;

[0217] C dep =Kdep ×C inv ;

[0218]

[0219] J represents the profit of selling ammonia for the electric hydrogen production ammonia synthesis system, S represents the revenue from selling ammonia, C represents the operating cost of the electric hydrogen production ammonia synthesis system, and C A Represents the process electricity cost, C B represents the operation and maintenance cost, t represents the current time, represents the water consumption cost of hydrogen production equipment at time t, C sal Indicates employee wages and benefits, C dep represents the equipment depreciation cost, represents the cost of hydrogen production by electrolysis of water at time t, represents the cost of hydrogen-to-ammonia synthesis at time t, represents the hydrogen storage cost at time t, h is the scheduling step length, represents the wind power price at time t, P t el represents the hydrogen production power at time t, represents the synthetic ammonia power at time t, represents the electricity used to compress hydrogen at time t, represents the operation and maintenance cost of the hydrogen production unit, represents the operation and maintenance cost of the hydrogen-to-ammonia unit, represents the operation and maintenance cost of the hydrogen compression device, represents the operation and maintenance cost of the grid interaction device, K water Indicates the water consumption of hydrogen production equipment per unit of hydrogen. represents the price of a unit of water, represents the hydrogen production flow rate of the hydrogen production device at time t, M represents the number of people in the electric hydrogen production and ammonia synthesis system, and Y ave represents the average wage and benefits per capita, K dep Represents the equipment depreciation cost ratio coefficient, C inv represents the equipment investment cost, Indicates the unit selling price of ammonia, It represents the ammonia production rate of the hydrogen synthesis ammonia unit at time t.

[0220] In a possible implementation of the embodiment of the present application, the hydrogen production device includes at least one hydrogen production equipment; the system model is specifically expressed as:

[0221] (1) The photovoltaic power station model is expressed as:

[0222]

[0223] Among them, P tpv represents the photovoltaic output at time t, P pv,r Indicates the rated power of photovoltaic under standard conditions, T c Represents the temperature of the photovoltaic panel cell, R c To set the light intensity to a specific intensity, I std is the light intensity per unit area under standard conditions, T stc is the battery temperature under standard conditions, I t It represents the solar radiation intensity received by the clear space above the photovoltaic panel at time t, Indicates the temperature coefficient of the photovoltaic panel;

[0224] (2) The wind power station model is expressed as:

[0225]

[0226] in,

[0227]

[0228] v is the real-time wind speed in the area, v ci is the cut-in wind speed, v co is the cut-out wind speed, v r is the rated wind speed, P wt Represents the wind power output of the wind turbine, P wt,r Indicates the rated power of the wind turbine under standard conditions;

[0229] (3) The model of hydrogen production by water electrolysis is expressed as:

[0230] P el,单 =U el I el ;

[0231] in,

[0232] U rev =U r0 -K rev (T el -298.15);

[0233]

[0234] P el,单 Indicates the hydrogen production power of a single hydrogen production equipment, U el is the output voltage of a single hydrogen production device, I el Indicates the current of a single hydrogen production equipment, U rev Represents the reversible voltage of the hydrogen production equipment, S el Indicates the electrode surface area of ​​the hydrogen production equipment, T elIndicates the operating temperature of the hydrogen production equipment, K el Indicates the electrode overvoltage coefficient, K T Indicates the empirical overpressure coefficient of hydrogen production equipment, U r0 Indicates the reversible voltage of hydrogen production equipment under standard conditions, K rev is the temperature empirical coefficient, Indicates the hydrogen production of a single hydrogen production equipment, P t el,单 is the hydrogen production power of a single hydrogen production equipment at time t;

[0235] The operating power constraints of the hydrogen production equipment are:

[0236]

[0237] Indicates the rated operating power of a single hydrogen production equipment. A binary variable representing the start and stop of a single hydrogen production unit;

[0238] The power ramp constraint of the hydrogen production equipment is:

[0239]

[0240] A binary variable representing the status of the hydrogen production equipment, r c is the ramp rate when the hydrogen production equipment is in a cold state, r w It is the ramp rate when the hydrogen production equipment is in warm state.

[0241] (4) Gas storage equipment model

[0242]

[0243] in, Indicates the maximum hydrogen production per unit time in one year in historical data. represents the actual hydrogen production of the hydrogen production device at time t, η hs,max Indicates the maximum hydrogen storage capacity, η hs,单 Indicates the rated capacity of a single gas storage device, N hs Indicates the number of gas storage devices required.

[0244] (5) The model of hydrogen synthesis ammonia unit is expressed as:

[0245] Constraints on the load ramp rate of the hydrogen-to-ammonia synthesis unit:

[0246]

[0247] in, represents the ammonia production rate of the hydrogen-to-ammonia synthesis unit at time t, h is the scheduling step length, Indicates the synthetic ammonia load ramp rate, Indicates the lower limit of the load ramp rate. Indicates the upper limit of the load ramp rate;

[0248] Constraints on ammonia yield:

[0249]

[0250] in, represents the lower limit of ammonia yield, represents the upper limit of ammonia yield;

[0251] (6) Energy storage equipment model

[0252]

[0253] in, is the charging power of the energy storage device at time t, is the discharge power of the energy storage device at time t, A binary variable representing the charging flag of the energy storage device, Binary variable representing the discharge flag of the energy storage device, S t represents the capacity of the energy storage device at time t, η cha Represents the charging coefficient of the energy storage device, η dis Indicates the discharge coefficient of the energy storage device, SOC max represents the maximum capacity of the energy storage device, ρ min Represents the lower limit of charge and discharge of energy storage equipment, ρ max Indicates the upper limit of charging and discharging of energy storage equipment.

[0254] In a possible implementation of the embodiment of the present application, the target variable also includes the absorbable wind power and absorbable photovoltaic power of the electric hydrogen production and ammonia synthesis system; the optimization operation device 500 of the electric hydrogen production and ammonia synthesis system may also include:

[0255] The first determination module is used to determine the abandoned power at the current moment based on the predicted wind power output, the predicted photovoltaic output, the target value of the absorbable wind power at the current moment, and the target value of the absorbable photovoltaic power at the current moment.

[0256] The second determination module is used to determine whether the electric hydrogen production and ammonia synthesis system meets the power abandonment rate constraint condition at the current moment based on the power abandonment at the current moment.

[0257] The optimized operation device of the electric hydrogen synthesis ammonia system of the embodiment of the present application is obtained by obtaining the system model of the electric hydrogen synthesis ammonia system; wherein the system model includes a photovoltaic power station model, a wind power station model, a water electrolysis hydrogen production model of the hydrogen production device, a gas storage equipment model, a hydrogen synthesis ammonia device model, and an energy storage equipment model; collecting meteorological data at the current moment, according to the photovoltaic power station model and the wind power station model, combined with the meteorological data at the current moment, predicting the wind power output and photovoltaic output at the current moment, and obtaining the predicted wind power output and the predicted photovoltaic output; based on the predicted wind power output and the predicted photovoltaic output, combined with the system model, the sparrow search algorithm is used to optimize the target variable to obtain the target value of the target variable at the current moment; wherein the target variable includes the hydrogen production flow of the hydrogen production device and the ammonia production of the hydrogen synthesis ammonia device; controlling the electric hydrogen synthesis ammonia system to operate according to the target value of the target variable, so that the electric hydrogen synthesis ammonia system has the highest ammonia sales profit at the current moment. Thus, the electric hydrogen synthesis ammonia system can be controlled to operate in real time according to the economic optimization operation strategy, so that the system always operates in the optimal state and maximizes economic benefits.

[0258] In order to implement the above embodiments, the present application also proposes an electronic device, wherein the electronic device can be the server or detection device in the aforementioned embodiments; it includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, it implements the optimized operation method of the electric hydrogen production and ammonia synthesis system proposed in any of the aforementioned embodiments of the present application.

[0259] In order to implement the above embodiments, the present application also proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, it implements the optimized operation method of the electric hydrogen production and ammonia synthesis system proposed in any of the aforementioned embodiments of the present application.

[0260] In order to implement the above embodiments, the present application also proposes a computer program product. When the instructions in the computer program product are executed by a processor, the optimization operation method of the electric hydrogen production and ammonia synthesis system proposed in any of the above embodiments of the present application is executed.

[0261] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0262] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0263] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0264] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0265] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0266] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0267] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0268] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. An optimized operation method of an electric hydrogen production and ammonia synthesis system, characterized in that: The method comprises: Obtaining a system model of an electric hydrogen production and ammonia synthesis system; wherein the system model includes a photovoltaic power station model, a wind power station model, a water electrolysis hydrogen production model of a hydrogen production device, a gas storage device model, a hydrogen ammonia synthesis device model, and an energy storage device model; Collecting meteorological data at the current moment, and predicting the wind power output and the photovoltaic output at the current moment according to the photovoltaic power station model and the wind power station model in combination with the meteorological data at the current moment, to obtain predicted wind power output and predicted photovoltaic output; Based on the predicted wind power output and the predicted photovoltaic output, combined with the system model, the target variable is optimized using a sparrow search algorithm to obtain the target value of the target variable at the current moment; wherein the target variable includes the hydrogen production flow of the hydrogen production device and the ammonia production of the hydrogen synthesis ammonia device; The electric hydrogen production and ammonia synthesis system is controlled to operate according to the target value of the target variable so that the electric hydrogen production and ammonia synthesis system has the highest ammonia sales profit at the current moment.

2. The method according to claim 1, characterized in that The method of optimizing the target variable based on the predicted wind power output and the predicted photovoltaic output in combination with the system model by using a sparrow search algorithm to obtain a target value of the target variable at the current moment includes: Initializing the sparrow population of the sparrow search algorithm to obtain an initial population; wherein the position value of each sparrow in the sparrow population represents the value of the target variable; Based on the predicted wind power output and the predicted photovoltaic output, and the initial population, performing an iterative process based on the sparrow search algorithm for no more than a set number of iterations on the target variable to obtain a target value of the target variable at a current moment; Among them, in any round of the iteration process, the global optimal sparrow in the sparrow population is updated based on the fitness value of each sparrow, the global optimal sparrow is determined based on the fitness value of each sparrow in the sparrow population, the fitness value of any sparrow is determined based on the position value of the corresponding sparrow to determine the corresponding allocated power, according to the corresponding allocated power, the predicted wind power output and the predicted photovoltaic output, combined with the system model, the ammonia sales profit objective function of the electric hydrogen production and ammonia synthesis system is adopted to determine it.

3. The method according to claim 2, characterized in that The allocated power includes hydrogen production power and ammonia synthesis power; The determination of the allocated power corresponding to any of the sparrows includes: For any of the sparrows, based on the hydrogen production flow rate in the position value of the sparrow, the base state power of the hydrogen production device and the hydrogen production power consumption coefficient, determine the hydrogen production power corresponding to the sparrow; The synthetic ammonia power corresponding to the sparrow is determined based on the ammonia yield in the position value of the sparrow, the ground state power of the hydrogen-to-ammonia synthesis device and the synthetic ammonia power consumption coefficient.

4. The method according to claim 2, characterized in that: The electric hydrogen production and ammonia synthesis system has an energy storage device; The step of controlling the electric hydrogen production and ammonia synthesis system to operate according to the target value of the target variable includes: Based on the target value of the target variable, a corresponding target allocated power is determined; wherein the target allocated power includes a target hydrogen production power and a target ammonia synthesis power; The target hydrogen production power is input into the hydrogen production device so that the hydrogen production device performs a water electrolysis hydrogen production operation, and the target ammonia synthesis power is input into the hydrogen ammonia synthesis device so that the hydrogen ammonia synthesis device performs a hydrogen ammonia synthesis operation; Determine the new energy power at the current moment according to the predicted wind power output and the predicted photovoltaic output, and determine the load power at the current moment based on the target hydrogen production power and the target synthetic ammonia power; In response to the new energy power being greater than the load power, determining whether the energy storage device is in a state to be charged at the current moment based on the energy storage capacity of the energy storage device at the current moment and the maximum energy storage capacity of the energy storage device; When it is determined that the energy storage device is in a state to be charged at the current moment, the energy storage device is controlled to perform a charging operation at the current moment.

5. The method according to claim 4, characterized in that The method further comprises: In response to the new energy power being less than the load power, determining whether the energy storage device is in a ready-to-discharge state at the current moment based on the energy storage capacity of the energy storage device at the current moment and the maximum energy storage capacity of the energy storage device; In the case where it is determined that the energy storage device is in a ready-to-discharge state at the current moment, the energy storage device is controlled to perform a discharging operation at the current moment.

6. The method according to claim 2, characterized in that The hydrogen production device includes at least one hydrogen production device, and the expression of the ammonia sales profit objective function is: J = SC; in, C sal =M×Y ave ; C dep =K dep ×C inv ; J represents the profit of selling ammonia for the electric hydrogen production ammonia synthesis system, S represents the revenue from selling ammonia, C represents the operating cost of the electric hydrogen production ammonia synthesis system, and C A Represents the process electricity cost, C B represents the operation and maintenance cost, t represents the current time, represents the water consumption cost of hydrogen production equipment at time t, C sal Indicates employee wages and benefits, C dep represents the equipment depreciation cost, represents the cost of hydrogen production by electrolysis of water at time t, represents the cost of hydrogen-to-ammonia synthesis at time t, represents the hydrogen storage cost at time t, h is the scheduling step length, represents the wind power price at time t, P t el represents the hydrogen production power at time t, represents the synthetic ammonia power at time t, represents the electricity used to compress hydrogen at time t, represents the operation and maintenance cost of the hydrogen production device, represents the operation and maintenance cost of the hydrogen-to-ammonia synthesis device, represents the operation and maintenance cost of the hydrogen compression device, represents the operation and maintenance cost of the grid interaction device, K water Indicates the water consumption of hydrogen production equipment per unit of hydrogen. represents the price of a unit of water, represents the hydrogen production flow rate of the hydrogen production device at time t, M represents the number of employees of the electric hydrogen production and ammonia synthesis system, and Y ave represents the average wage and benefits per capita, K dep Represents the equipment depreciation cost ratio coefficient, C inv represents the equipment investment cost, Indicates the unit selling price of ammonia, It represents the ammonia production rate of the hydrogen-to-ammonia synthesis device at time t.

7. The method according to claim 1, characterized in that The hydrogen production device includes at least one hydrogen production equipment; the system model is specifically expressed as: (1) The photovoltaic power station model is expressed as: Among them, P t pv represents the photovoltaic output at time t, P pv,r Indicates the rated power of photovoltaic under standard conditions, T c Represents the temperature of the photovoltaic panel cell, R c To set the light intensity to a specific intensity, I std is the light intensity per unit area under standard conditions, T stc is the battery temperature under standard conditions, I t It represents the solar radiation intensity received by the clear space above the photovoltaic panel at time t, Indicates the temperature coefficient of the photovoltaic panel; (2) The wind power station model is expressed as: in, v is the real-time wind speed in the area, v ci is the cut-in wind speed, v co is the cut-out wind speed, v r is the rated wind speed, P wt Represents the wind power output of the wind turbine, P wt,r Indicates the rated power of the wind turbine under standard conditions; (3) The model of hydrogen production by water electrolysis is expressed as: P el,单 =U el AND el ; in, U rev =U r0 -K rev (T el -298.15); P el,单 Indicates the hydrogen production power of a single hydrogen production equipment, U el is the output voltage of a single hydrogen production device, I el Indicates the current of a single hydrogen production equipment, U rev Represents the reversible voltage of the hydrogen production equipment, S el Indicates the electrode surface area of ​​the hydrogen production equipment, T el Indicates the operating temperature of the hydrogen production equipment, K el Indicates the electrode overvoltage coefficient, K T Indicates the empirical overpressure coefficient of hydrogen production equipment, U r0 Indicates the reversible voltage of hydrogen production equipment under standard conditions, K rev is the temperature empirical coefficient, Indicates the hydrogen production of a single hydrogen production equipment, P t el,单 is the hydrogen production power of a single hydrogen production equipment at time t; The operating power constraints of the hydrogen production equipment are: Indicates the rated operating power of a single hydrogen production equipment. A binary variable representing the start and stop of a single hydrogen production unit; The power ramp constraint of the hydrogen production equipment is: A binary variable representing the status of the hydrogen production equipment, r c is the ramp rate when the hydrogen production equipment is in a cold state, r w It is the ramp rate when the hydrogen production equipment is in warm state. (4) Gas storage equipment model in, Indicates the maximum hydrogen production per unit time in one year in historical data. represents the actual hydrogen production of the hydrogen production device at time t, η hs,max Indicates the maximum hydrogen storage capacity, η hs,单 Indicates the rated capacity of a single gas storage device, N hs Indicates the number of gas storage devices required. (5) The model of hydrogen synthesis ammonia unit is expressed as: The load ramp rate constraints of the hydrogen-to-ammonia synthesis unit are: in, represents the ammonia yield of the hydrogen-to-ammonia synthesis unit at time t, h is the scheduling step length, Indicates the synthetic ammonia load ramp rate, Indicates the lower limit of the load ramp rate. Indicates the upper limit of the load ramp rate; Constraints on ammonia yield: in, represents the lower limit of ammonia yield, represents the upper limit of ammonia yield; (6) Energy storage equipment model in, is the charging power of the energy storage device at time t, is the discharge power of the energy storage device at time t, a binary variable representing a charging flag of the energy storage device, A binary variable representing the discharge flag of the energy storage device, S t represents the capacity of the energy storage device at time t, η cha represents the charging coefficient of the energy storage device, η dis Indicates the discharge coefficient of the energy storage device, SOC max represents the maximum capacity of the energy storage device, ρ min represents the lower limit of charge and discharge of the energy storage device, ρ max Indicates the upper limit of charge and discharge of the energy storage device.

8. The method according to any one of claims 1 to 7, characterized in that: The target variable also includes the wind power and photovoltaic power that can be absorbed by the electric hydrogen production and ammonia synthesis system; the method also includes: Determine the abandoned power at the current moment based on the predicted wind power output, the predicted photovoltaic output, the target value of the absorbable wind power at the current moment, and the target value of the absorbable photovoltaic power at the current moment; Based on the abandoned power at the current moment, it is determined whether the electric hydrogen production and ammonia synthesis system meets the abandoned power rate constraint condition at the current moment.

9. An optimized operation device for an electric hydrogen production and ammonia synthesis system, characterized in that: The device comprises: An acquisition module is used to acquire a system model of an electric hydrogen production and ammonia synthesis system; wherein the system model includes a photovoltaic power station model, a wind power station model, a water electrolysis hydrogen production model of a hydrogen production device, a gas storage device model, a hydrogen synthesis ammonia device model, and an energy storage device model; A processing module, used for collecting meteorological data at the current moment, and predicting the wind power output and photovoltaic output at the current moment according to the photovoltaic power station model and the wind power station model in combination with the meteorological data at the current moment, to obtain predicted wind power output and predicted photovoltaic output; An optimization module, configured to optimize the target variable based on the predicted wind power output and the predicted photovoltaic output, in combination with the system model, using a sparrow search algorithm to obtain a target value of the target variable at the current moment; wherein the target variable includes the hydrogen production flow of the hydrogen production device and the ammonia production of the hydrogen synthesis ammonia device; The control module is used to control the electric hydrogen production and ammonia synthesis system to operate according to the target value of the target variable so that the electric hydrogen production and ammonia synthesis system can achieve the highest ammonia sales profit at the current moment.

10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.