Combined heat and power system multi-energy-flow intelligent scheduling method based on hydrogen energy storage

By establishing a multi-energy flow intelligent dispatching method for a combined heat and power system with hydrogen energy storage in an integrated energy system, the problem of equipment and demand response dispatching under source-load uncertainty is solved, achieving high efficiency, sustainability and cost reduction of the system. .

CN118839892APending Publication Date: 2024-10-25STATE GRID JIANGSU ELECTRIC POWER CO LTD CHANGZHOU BRANCH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410824970.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

When dealing with source-load uncertainty in integrated energy systems, existing technology lacks effective comprehensive dispatching methods for equipment and demand response, and the system model is relatively simple and cannot fully cope with the needs of deep decarbonization across industries.

Method used

A multi-energy flow intelligent dispatching method for combined heat and power systems based on hydrogen energy storage is adopted to implement equipment dispatching models, set up load reduction and load transfer demand response contracts, and improve the dual-delay depth deterministic strategy gradient algorithm to achieve random source-load scenarios. real-time intelligent decision-making.

Benefits of technology

It effectively overcomes multiple uncertainties in system operation, reduces operating costs, improves system sustainability and adaptability, and achieves rapid response to the external environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118839892A_ABST
    Figure CN118839892A_ABST
Patent Text Reader

Abstract

The invention discloses a combined heat and power system multi-energy flow intelligent scheduling method based on hydrogen energy storage, and belongs to the technical field of comprehensive energy systems, and the method comprises the steps: building a scheduling model of each device in a combined heat and power system based on hydrogen energy storage; two demand response contracts of load reduction and load transfer are set, and the scheduling problem of the combined heat and power system is optimized; aiming at algorithm training characteristics, carrying out two-step improvement on a double-delay depth deterministic strategy gradient algorithm, namely a double-exploration double-experience storage strategy and a last reward experience elimination strategy; sequential decision design is performed on an optimization scheduling problem based on an improved algorithm, a strategy network is trained in a random source load scene, and multi-energy-flow real-time intelligent decision of the combined heat and power system based on hydrogen energy storage is realized. According to the invention, demand response energy scheduling can be carried out on the combined heat and power system based on hydrogen energy storage, multiple uncertainties during operation of the system are overcome, and quick response to the external environment is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of integrated energy systems, and specifically relates to a multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage. Background Art

[0002] The development of hybrid energy systems (HES) is of great significance for the utilization of renewable energy, greenhouse gas emission reduction, and promoting the transition to low-carbon or carbon-free systems. "Green hydrogen" produced by electrolysis of water with renewable energy can serve as a bridge between the power and natural gas systems, accelerating the deep decarbonization process across industries. However, due to the intermittent and volatile nature of renewable energy, the operation of hybrid energy systems faces source-load uncertainty. Flexible adjustment of electric and thermal loads through demand response (DR) can effectively cope with the mismatch between energy supply and demand, thereby improving the utilization rate of renewable energy and reducing system operating costs. Therefore, demand response is crucial to improving the flexibility and manageability of hybrid energy systems.

[0003] Compared with traditional optimization algorithms that rely on detailed mathematical models and prediction processes, model-free reinforcement learning (RL) technology has been widely studied and applied in various power systems. RL can map state information to a system-level aggregated decision model. At the same time, thanks to the training process of exploration and exploitation, it can effectively handle nonlinearity and uncertainty in integrated energy systems. In addition, deep reinforcement learning (DRL) overcomes the challenge of the "curse of dimensionality" by combining RL and neural networks, thereby effectively expanding the application scenarios of RL. At present, a large number of studies have discussed the demand response problem in integrated energy systems based on RL technology. However, existing technologies usually only consider the impact of demand response strategies on system economics, especially in predefined operating scenarios, and do not involve the comprehensive scheduling optimization problem of integrated energy system equipment and demand response under source and load uncertainty. In addition, the system models in many studies are relatively simple. Summary of the invention

[0004] The purpose of the present invention is to provide a multi-energy flow intelligent scheduling method for a heat and power cogeneration system based on hydrogen energy storage, which can effectively deal with the problem of source and load uncertainty, so as to solve the above-mentioned problems in the prior art.

[0005] The present invention is achieved through the following technical solutions:

[0006] The multi-energy flow intelligent scheduling method of the combined heat and power system based on hydrogen energy storage according to the present invention comprises:

[0007] S1. Establish a dispatch model for each device in the combined heat and power system based on hydrogen energy storage, and set operation safety constraints and energy balance constraints according to the system coupling characteristics and energy flow form;

[0008] S2. Set up two types of demand response contracts, load reduction and load transfer, and establish the optimal scheduling problem of the combined heat and power system considering demand response, taking the operating cost, demand response cost and energy storage equipment status as the target;

[0009] S3. According to the algorithm training characteristics, the double-delayed deep deterministic policy gradient algorithm is improved in two steps, namely the double exploration and double experience storage strategy and the last-place reward experience elimination strategy;

[0010] S4. Based on the improved algorithm, sequential decision design is performed for the optimization scheduling problem, and the strategy network is trained under random source-load scenarios to achieve real-time intelligent decision-making for multiple energy flows in the combined heat and power system based on hydrogen energy storage.

[0011] Furthermore, in step S1, the equipment of the cogeneration system includes a proton exchange membrane fuel cell, a proton exchange membrane electrolyzer, a photovoltaic power generation device, a wind power generation device, an air source heat pump, a heat storage tank and a high-pressure hydrogen storage tank, and the cogeneration system is connected to an external power grid to ensure stable operation.

[0012] The scheduling model of proton exchange membrane fuel cells includes the hydrogen flow rate model, current density model, electric power model and thermal power model of proton exchange membrane fuel cells; the scheduling model of proton exchange membrane electrolyzers includes the power consumption and hydrogen production flow rate model of proton exchange membrane electrolyzers; the scheduling model of photovoltaic power generation equipment includes the power model of photovoltaic power generation equipment; the scheduling model of wind power generation equipment includes the power and wind speed model of wind power generation equipment; the scheduling model of air source heat pumps includes the electric power and thermal power model of air source heat pumps; the scheduling model of heat storage tanks includes the initial heat state and heating power model of heat storage tanks; the scheduling model of high-pressure hydrogen storage tanks includes the pressure model of high-pressure hydrogen storage tanks; set the operation safety constraints of these equipment, set the electric power balance, thermal power balance and hydrogen flow balance as constraints for subsequent optimization problems.

[0013] Furthermore, the scheduling model of the proton exchange membrane fuel cell is:

[0014]

[0015] Among them, N FC is the hydrogen intake rate of the fuel cell, is the number of battery cells, I FC is the theoretical current, F is the Faraday constant; j is the current density, A cell is the effective reaction area of ​​the battery unit;

[0016] Based on the current density j, the electrical power of the fuel cell With thermal power Can be fitted as:

[0017]

[0018] The scheduling model of proton exchange membrane electrolyzer is:

[0019]

[0020] Among them, N EH is the hydrogen production rate of the electrolyzer, η F is the Faraday efficiency, is the number of electrolytic cells connected in series, I EH is the electrolytic cell current;

[0021] The scheduling model of photovoltaic power generation equipment is:

[0022]

[0023] in, is the photovoltaic power generation power, η PV is the photovoltaic efficiency of photovoltaic power generation, η inv is the inverter efficiency of photovoltaic power generation, A PV is the effective illumination area, I 0 is the solar irradiance;

[0024] The dispatch model of wind power generation equipment is:

[0025]

[0026] in, is the wind power generation power, v t is the actual wind speed, v in is the starting wind speed, v out is the shutdown wind speed, v r is the rated wind speed, Cap wt installing capacity for wind power;

[0027] The scheduling model of air source heat pump is:

[0028]

[0029] in, is the heating power of the heat pump, is the power consumption of the heat pump, COP is the coefficient of performance of the air source heat pump;

[0030] The scheduling model of the heat storage tank is:

[0031]

[0032] Among them, HSD t+1 is the heat storage state of the heat storage tank at time t+1, HSD t is the heat storage state of the heat storage tank at time t, is the heating power of the heat storage tank, H c is the maximum heat storage capacity of the heat storage tank, ΔT is the scheduling time interval;

[0033] The scheduling model of high-pressure hydrogen storage tanks is:

[0034]

[0035] in, is the pressure of the hydrogen storage tank at time t+1, TP t H is the pressure of the hydrogen storage tank at time t, is the hydrogen flow rate of the hydrogen storage tank at time t, R is the universal gas constant, T H is the temperature, is the molar mass of hydrogen, V H is the volume of hydrogen storage tank;

[0036] z t is the hydrogen compressibility factor, defined as:

[0037]

[0038] Among them, a i ,b i ,c i is a constant, i=1...9; T0=100K.

[0039] Further, in step S2, the load reduction demand response contract is defined as: during the peak period, users participate in demand response, reduce electricity and heat loads to alleviate the power supply pressure of the power grid, and obtain economic compensation at the same time; the load transfer demand response contract is defined as: users actively transfer the transferable electricity and heat load demand during the peak period to the off-peak period, and reduce the electricity purchase cost through the price difference between the peak period and the off-peak period;

[0040] The objective function J of the optimal scheduling problem of the combined heat and power system considering demand response is:

[0041] J=min(C1+C2+C3)

[0042]

[0043] Among them, C1 includes the fuel cell operating cost and system electricity purchase / sales costs c0 is the unit power cost of the fuel cell, is the power generated by the fuel cell, p t For electricity price, Purchase / sell power to the grid;

[0044] C2 is the reward for users to participate in electricity and heat demand response. If users participate in demand response by reducing load, then Economic compensation for electricity demand response, is the economic compensation for the corresponding heat demand response, defined as:

[0045]

[0046] in, For users to participate in the electricity demand response power, The thermal demand response power for users to participate; a e , b e 、a h and b h is the demand response compensation coefficient;

[0047] C3 is the state of the energy storage device, HSD0 is the initial state of the heat storage tank, and TP0 is the initial state of the hydrogen storage tank, which are defined as:

[0048]

[0049] Among them, HSD min is the minimum value of the heat storage state of the heat storage tank, HSD max is the maximum value of the heat storage state of the heat storage tank, TP min is the minimum pressure of the hydrogen storage tank, TP max is the maximum value of the hydrogen storage tank pressure;

[0050] TP T is the state of the hydrogen storage tank at the last moment T, ΔTP T HSD is the difference between the initial state and the final state of the hydrogen storage tank; T is the state of the heat storage tank at the end time T, ΔHSD T is the difference between the initial state and the final state of the heat storage tank;

[0051] λ i is the weight factor, i=1,...,6.

[0052] Furthermore, the equipment safety constraints and demand response constraints of the optimization scheduling problem are:

[0053]

[0054] Wherein, formula (a) includes the power constraints of the fuel cell, electrolyzer and heat pump; formula (b) includes the power constraints of the electricity and heat demand response; formula (c) includes the energy storage constraints of the thermal storage tank and the pressure constraints of the hydrogen storage tank;

[0055] The energy balance constraint of the optimal scheduling problem is:

[0056]

[0057] The hydrogen flow balance includes the hydrogen production rate of the electrolyzer Air intake rate of air tank and fuel cell hydrogen consumption rate Electrical power balance including fuel cell power generation Photovoltaic power generation Wind power Power grid purchase Heat pump power consumption Electrolyzer power consumption Electrical load Electricity Demand Response Thermal power balance including fuel cell heating Heat pump heating Thermal storage tank heating Heat load and thermal demand response

[0058] Furthermore, in step S3, the Twin delayed deep deterministic policy gradient algorithm (TD3) is improved in two steps, including:

[0059] Double exploration and double experience storage: For each time step, the action exploration noise, i.e., OU noise, is taken inversely to generate a new noise, which is added to the original action output of the policy network to perform two policy explorations. After interacting with the environment, the training experience of the two explorations is saved at the same time. At the end of the current time step, the next state corresponding to the experience with a higher reward value is selected for update and calculation.

[0060] Elimination of last-place reward experience: When new training experience needs to be stored and the experience replay pool is full, find the two sets of training experience with the lowest reward value at the same time step, compare them with the two new sets of training experience, and retain the two sets with the highest reward value.

[0061] On the one hand, the dual exploration and dual experience storage strategy can ensure that exploration can be carried out in the direction of higher reward values ​​as much as possible. At the same time, the noise in both positive and negative directions also ensures sufficient exploration, providing rich training experience for the neural network and avoiding the problem of falling into local optimality too early. On the other hand, by setting a larger experience replay pool and when the experience storage is full, by eliminating the last reward experience, high-quality training experience can be screened and retained, thereby avoiding the repeated use of low-reward and outdated training data due to random sampling.

[0062] Furthermore, in step S4, the sequential decision design needs to establish a Markov decision process for system operation, including:

[0063] Create the state space S:

[0064]

[0065] Among them, the state includes time t, temperature TM t , Photovoltaic power generation Wind power generation Electrical load Heat load Hydrogen storage tank pressure TP t And the heat storage tank energy storage state HSD t ;

[0066] Establish the action space A:

[0067]

[0068] Among them, the action includes the fuel cell intake rate Heat pump power consumption Electricity demand response power and thermal demand response power

[0069] Establish the reward function R:

[0070]

[0071] Among them, the reward function R includes each step reward r t and the final reward r T ; in r t middle, and These are fuel cell operation, electricity purchase / sale, electricity demand response, and heat demand response incentives, in order; The current excess thermal power after the heat storage tank participates in the dispatch; is the current thermal shortage power after the heat storage tank participates in the scheduling; i is the adjustment coefficient, i=1,...,8.

[0072] Furthermore, based on the Markov decision process, a strategy network is trained in a random scenario to achieve real-time intelligent decision-making of multiple energy flows in a combined heat and power system based on hydrogen energy storage.

[0073] The random source loads include ambient temperature, solar irradiance, wind speed, electrical load and thermal load.

[0074] The training of the policy network in a random scenario includes the following steps:

[0075] Initialize the policy network, scoring network 1 and scoring network 2 of the TD3 algorithm, and establish a target network with the same parameters;

[0076] For the cogeneration system, the exploration noise of equipment scheduling and the demand response noise on the user side are added, and different noise parameters are set respectively, including mean, diffusion term coefficient and attenuation period;

[0077] The load average based on historical data is used as a typical daily scheduling scenario, including source load data, demand response parameters, and the upper limit of demand response power at each moment; source load data includes solar irradiance, wind speed, temperature, electrical load, and thermal load; demand response parameters include the reward coefficients for electrical and thermal demand responses;

[0078] The TD3 algorithm is trained repeatedly. Each round of training is based on typical daily scheduling scenarios and optimization scheduling problems. Source-load fluctuations are randomly added to generate a set of training scenarios. The degree of fluctuation must meet specific conditions. At the same time, the initial state TP0 of the hydrogen storage tank and the initial state HSD0 of the heat storage tank are initialized.

[0079] Execute the scheduling process, output actions based on the current environmental status and action network, where the output actions include equipment scheduling strategy and demand response scheduling strategy; recalculate the new electricity and heat loads after considering demand response, as well as the current excess and shortage of thermal power, and execute the improved dual exploration and dual experience storage strategy and the last-place reward experience elimination strategy;

[0080] Execute the network update process. When the number of saved data groups meets the minimum training batch requirement, randomly take out a batch of data after shuffling the data groups. Train the policy network with the stochastic gradient descent algorithm, train the action network with the sampled gradient, and soft-update the target network.

[0081] After the training is completed, the strategy network is saved to realize real-time intelligent decision-making of multi-energy flows in the combined heat and power system based on hydrogen energy storage.

[0082] Furthermore, the specific condition is not more than -20% and 20% of the source load data at the corresponding moment.

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

[0084] Compared with the prior art, the present invention has the following significant advantages: the present invention adopts the TD3 algorithm to perform demand response energy scheduling for the integrated energy system under the Markov decision process, which can overcome the multiple uncertainties during system operation and respond quickly to the external environment, thereby reducing operating costs and improving the sustainability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] Figure 1 is a structural schematic diagram of a heat and power cogeneration system based on hydrogen energy storage in an embodiment of the present invention;

[0086] Figure 2 It is a flow chart of a multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage provided by an embodiment of the present invention;

[0087] Figure 3 TD3 algorithm framework schematic diagram in an embodiment of the present invention;

[0088] Figure 4 is a source-load curve diagram of a typical day scenario in an embodiment of the present invention;

[0089] Figure 5 is a training cumulative cost curve diagram of the TD3 algorithm in an embodiment of the present invention;

[0090] Figure 6 is a load reduction result diagram under a typical day scenario in an embodiment of the present invention;

[0091] Figure 7 is a diagram of the scheduling results of the load reduction hydrogen storage tank and the heat storage tank under a typical day scenario in an embodiment of the present invention;

[0092] Figure 8 is a load transfer result diagram under a typical day scenario in an embodiment of the present invention;

[0093] Fig. 9 This is a diagram of the scheduling results of the load transfer hydrogen storage tank and the heat storage tank under a typical day scenario in an embodiment of the present invention. DETAILED DESCRIPTION

[0094] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings of the present invention. Based on the embodiments in this application, other similar embodiments obtained by ordinary technicians in this field without making any creative work should all fall within the scope of protection of this application.

[0095] The present invention will be further described below in conjunction with the accompanying drawings.

[0096] like Figure 2 As shown, the embodiment of the present invention provides a multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage, which specifically includes the following steps:

[0097] S1. Establish a dispatch model for each device in the combined heat and power system based on hydrogen energy storage, and set operation safety constraints and energy balance constraints according to the system coupling characteristics and energy flow form;

[0098] like Figure 1As shown in the figure, the heat pump adopts an air source heat pump, the hydrogen storage tank is a high-pressure hydrogen storage tank, the fuel cell is a proton exchange membrane, and the electrolyzer is a proton exchange membrane electrolyzer. In this embodiment, the equipment in the cogeneration system includes a proton exchange membrane fuel cell, a proton exchange membrane electrolyzer, a photovoltaic power generation equipment, a wind power generation equipment, a heat pump, a heat storage tank and a hydrogen storage tank. The system is connected to the external power grid to ensure the reliability of the system operation. The operation of the cogeneration system involves the storage and utilization of thermal energy, and the production, storage and utilization of hydrogen. Other auxiliary equipment, such as energy controllers, pipelines, valves, inverters, and circulating water pumps, etc., are not shown. Figure 1 Shown in.

[0099] The scheduling model of proton exchange membrane fuel cells includes the hydrogen flow rate model, current density model, electric power model and thermal power model of proton exchange membrane fuel cells; the scheduling model of proton exchange membrane electrolyzers includes the power consumption and hydrogen production flow rate model of proton exchange membrane electrolyzers; the scheduling model of photovoltaic power generation equipment includes the power model of photovoltaic power generation equipment; the scheduling model of wind power generation equipment includes the power and wind speed model of wind power generation equipment; the scheduling model of air source heat pumps includes the electric power and thermal power model of air source heat pumps; the scheduling model of heat storage tanks includes the initial heat state of heat storage tanks and heating power model; the scheduling model of high-pressure hydrogen storage tanks includes the pressure model of high-pressure hydrogen storage tanks. Set the operation safety constraints of the above equipment, set the electric power balance, thermal power balance and hydrogen flow balance as the constraints of subsequent optimization problems.

[0100] Specifically, the scheduling model of proton exchange membrane fuel cells is:

[0101]

[0102] Among them, N FC is the hydrogen intake rate of the fuel cell, is the number of battery cells, I FC is the theoretical current, F is the Faraday constant; j is the current density, A cell is the effective reaction area of ​​the battery unit;

[0103] Based on the current density j, the electrical power of the fuel cell With thermal power Can be fitted as:

[0104]

[0105] The scheduling model of the proton exchange membrane electrolyzer is:

[0106]

[0107] Among them, N EH is the hydrogen production rate of the electrolyzer, η F is the Faraday efficiency, is the number of electrolytic cells connected in series, I EH is the electrolytic cell current;

[0108] The scheduling model of photovoltaic power generation equipment is:

[0109]

[0110] in, is the photovoltaic power generation power, η PV is the photovoltaic efficiency of photovoltaic power generation, η inv is the inverter efficiency of photovoltaic power generation, A PV is the effective illumination area, I 0 is the solar irradiance;

[0111] The dispatch model of wind power generation equipment is:

[0112]

[0113] in, is the wind power generation power, v t is the actual wind speed, v in is the starting wind speed, v out is the shutdown wind speed, v r is the rated wind speed, Cap wt installing capacity for wind power;

[0114] The scheduling model of air source heat pump is:

[0115]

[0116] in, is the heating power of the heat pump, is the power consumption of the heat pump, COP is the coefficient of performance of the air source heat pump;

[0117] The scheduling model of the heat storage tank is:

[0118]

[0119] Among them, HSD t+1 is the heat storage state of the heat storage tank at time t+1, HSD t is the heat storage state of the heat storage tank at time t, is the heating power of the heat storage tank, H c is the maximum heat storage capacity of the heat storage tank, ΔT is the scheduling time interval;

[0120] The scheduling model of high-pressure hydrogen storage tanks is:

[0121]

[0122] in, is the pressure of the hydrogen storage tank at time t+1, TP t H is the pressure of the hydrogen storage tank at time t, is the hydrogen flow rate of the hydrogen storage tank at time t, R is the universal gas constant, T H is the temperature, is the molar mass of hydrogen, V H is the volume of hydrogen storage tank;

[0123] z t is the hydrogen compressibility factor, defined as:

[0124]

[0125] Among them, a i ,b i ,c i is a constant, i=1...9; T0=100K.

[0126] S2. Set up two types of demand response contracts: load reduction and load transfer. Take the operating cost, demand response cost and energy storage equipment status as the targets, and establish the optimal scheduling problem of the combined heat and power system considering demand response.

[0127] The definition of load reduction demand response contract is: during the peak period, users participate in demand response, reduce electricity and heat loads to ease the power supply pressure of the power grid, and obtain economic compensation at the same time; the definition of load transfer demand response contract is: users actively transfer the transferable electricity and heat load demand during the peak period to the off-peak period, and reduce the cost of purchasing electricity through the price difference between the peak period and the off-peak period;

[0128] The objective function J of the optimal scheduling problem of the combined heat and power system considering demand response is:

[0129] J=min(C1+C2+C3)

[0130]

[0131] Among them, C1 includes the fuel cell operating cost and system electricity purchase / sales costs c0 is the unit power cost of the fuel cell, is the power generated by the fuel cell, p t For electricity price, Purchase / sell power to the grid;

[0132] C2 is the reward for users to participate in electricity and heat demand response. If users participate in demand response by reducing load, then Economic compensation for electricity demand response, is the economic compensation for the corresponding heat demand response, defined as:

[0133]

[0134] in, For users to participate in the electricity demand response power, The thermal demand response power for users to participate; a e , b e 、a h and b h is the demand response compensation coefficient;

[0135] C3 is the state of the energy storage device, HSD0 is the initial state of the heat storage tank, and TP0 is the initial state of the hydrogen storage tank, which are defined as:

[0136]

[0137] Among them, HSD min is the minimum value of the heat storage state of the heat storage tank, HSD max is the maximum value of the heat storage state of the heat storage tank, TP min is the minimum pressure of the hydrogen storage tank, TP max is the maximum value of the hydrogen storage tank pressure;

[0138] TP T is the state of the hydrogen storage tank at the last moment T, ΔTP T HSD is the difference between the initial state and the final state of the hydrogen storage tank; T is the state of the heat storage tank at the end time T, ΔHSD T is the difference between the initial state and the final state of the heat storage tank;

[0139] λ i is the weight factor, i=1,...,6.

[0140] The equipment safety constraints and demand response constraints of the optimal scheduling problem are:

[0141]

[0142] Wherein, formula (a) includes the power constraints of the fuel cell, electrolyzer and heat pump; formula (b) includes the power constraints of the electricity and heat demand response; formula (c) includes the energy storage constraints of the thermal storage tank and the pressure constraints of the hydrogen storage tank;

[0143] The energy balance constraint of the optimal scheduling problem is:

[0144]

[0145] The hydrogen flow balance includes the hydrogen production rate of the electrolyzer Air intake rate of air tank and fuel cell hydrogen consumption rate Electrical power balance including fuel cell power generation Photovoltaic power generation Wind power Power grid purchase Heat pump power consumption Electrolyzer power consumption Electrical load Electricity Demand Response Thermal power balance including fuel cell heating Heat pump heating Thermal storage tank heating Heat load and thermal demand response

[0146] After the scheduling models and optimized scheduling problems of the above equipment are established, step S3 is executed.

[0147] S3. According to the algorithm training characteristics, the double-delayed deep deterministic policy gradient algorithm is improved in two steps, namely the double exploration and double experience storage strategy and the last-place reward experience elimination strategy;

[0148] The Twin delayed deep deterministic policy gradient algorithm (TD3) is improved in two steps, including:

[0149] Double exploration and double experience storage: For each time step, the action exploration noise, i.e., OU noise, is taken inversely to generate a new noise, which is added to the original action output of the policy network to perform two policy explorations. After interacting with the environment, the training experience of the two explorations is saved at the same time. At the end of the current time step, the next state corresponding to the experience with a higher reward value is selected for update and calculation.

[0150] Elimination of last-place reward experience: When new training experience needs to be stored and the experience replay pool is full, find the two sets of training experience with the lowest reward value at the same time step, compare them with the two new sets of training experience, and retain the two sets with the highest reward value.

[0151] On the one hand, the dual exploration and dual experience storage strategy can ensure that exploration can be carried out in the direction of higher reward values ​​as much as possible. At the same time, the noise in both positive and negative directions also ensures sufficient exploration, providing rich training experience for the neural network and avoiding the problem of falling into local optimality too early. On the other hand, by setting a larger experience replay pool and when the experience storage is full, by eliminating the last reward experience, high-quality training experience can be screened and retained, thereby avoiding the repeated use of low-reward and outdated training data due to random sampling.

[0152] S4. Based on the improved algorithm, sequential decision design is performed for the optimization scheduling problem, and the strategy network is trained under the random source-load scenario to realize the real-time intelligent decision-making of multiple energy flows in the combined heat and power system based on hydrogen energy storage;

[0153] Sequential decision design requires the establishment of a Markov decision process for system operation, including:

[0154] Create the state space S:

[0155]

[0156] Among them, the state includes time t, temperature TM t , Photovoltaic power generation Wind power generation Electrical load Heat load Hydrogen storage tank pressure TP t And the heat storage tank energy storage state HSD t ;

[0157] Establish the action space A:

[0158]

[0159] Among them, the action includes the fuel cell intake rate Heat pump power consumption Electricity demand response power and thermal demand response power

[0160] Establish the reward function R:

[0161]

[0162] Among them, the reward function R includes each step reward r t and the final reward r T ; in r t middle, and These are fuel cell operation, electricity purchase / sale, electricity demand response, and heat demand response incentives, in order; The current excess thermal power after the heat storage tank participates in the dispatch; is the current thermal shortage power after the heat storage tank participates in the scheduling; i is the adjustment coefficient, i=1,...,8.

[0163] Introducing r T The status of the hydrogen storage tank and the heat storage tank can be returned to near the initial time after the scheduling is completed, thereby ensuring the thermal and electrical decoupling requirements of the next day and effectively improving the sustainability of the system.

[0164] Initialize the policy network, scoring network 1 and scoring network 2 of the TD3 algorithm, and establish a target network with the same parameters;

[0165] For the cogeneration system, the exploration noise of equipment scheduling and the demand response noise on the user side are added, and different noise parameters are set respectively, including mean, diffusion term coefficient and attenuation period;

[0166] The load average based on historical data is used as a typical daily scheduling scenario, including source load data, demand response parameters, and the upper limit of demand response power at each moment; source load data includes solar irradiance, wind speed, temperature, electrical load, and thermal load; demand response parameters include the reward coefficients of electrical and thermal demand responses, specifically:

[0167]

[0168] The TD3 algorithm is trained repeatedly. Each round of training is based on typical daily scheduling scenarios and optimization scheduling problems. Source-load fluctuations are randomly added to generate a set of training scenarios. The degree of fluctuation must meet specific conditions. At the same time, the initial state TP0 of the hydrogen storage tank and the initial state HSD0 of the heat storage tank are initialized.

[0169] Execute the scheduling process, output actions based on the current environmental status and action network, where the output actions include equipment scheduling strategy and demand response scheduling strategy; recalculate the new electricity and heat loads after considering demand response, as well as the current excess and shortage of thermal power, and execute the improved dual exploration and dual experience storage strategy and the last-place reward experience elimination strategy;

[0170] Execute the network update process. When the number of saved data groups meets the minimum training batch requirement, randomly take out a batch of data after shuffling the data groups. Train the policy network with the stochastic gradient descent algorithm, train the action network with the sampled gradient, and soft-update the target network.

[0171] After the training is completed, the strategy network is saved to realize real-time intelligent decision-making of multi-energy flows in the combined heat and power system based on hydrogen energy storage.

[0172] Based on the optimization scheduling framework, the TD3 algorithm is used to perform equipment power scheduling and demand response scheduling for the integrated energy system, which can make the system scheduling more intelligent and reflect the adaptability of the scheduling strategy. While meeting the system operation constraints, it can respond quickly and provide efficient scheduling strategies at different times based on factors such as environmental and load uncertainties and energy storage equipment capacity, thereby improving the system's energy efficiency and equipment sustainability.

[0173] The neural network update diagram of the TD3 algorithm is as follows: Figure 3 As shown in Figure 1, it includes evaluation network 1, evaluation network 2, strategy network, and corresponding target network. Among them, s is the state, a is the action, r is the reward, θP , θ P' , are neural network parameters, LOSS is the loss value of network update, MSE is the mean square error, and the target network uses a soft update strategy. Figure 3 In the TD3 algorithm framework, the action network has 7 input features, 4 outputs, and four fully connected layers with 14, 28, 14, and 4 neurons respectively; the policy network has 11 input features, 1 output, and four fully connected layers with 22, 44, 22, and 1 neurons respectively. The structures of the target action network and the target policy network are the same as their original networks. Figure 3 In the formula, TPS: target policy smoothing; CDQ: clipped double Q-lcaming; DPU: delayed policy updates.

[0174] The settings of the main parameters of the TD3 algorithm can be shown in Table 4.

[0175] Table 4 DDPG main parameter settings

[0176]

[0177] In Table 4, a P is the learning rate of the actor network, a Q is the learning rate of the critic network; τ is the soft update coefficient of the target network; T is the scheduling period; episode is the number of training rounds; γ is the discount factor; memory is the capacity of the experience replay pool; batchsize is the batch size; μ and θ are OU noise parameters, δ max and δ min are the maximum and minimum values ​​of OU noise variance, and the subscripts “1” and “2” correspond to TD3 exploration noise and demand response power noise, respectively; T decay is the noise attenuation period; i (i=1,...,8) is the bonus item coefficient, which corresponds to the fuel cell operating cost, electricity purchase / sale cost, electricity demand response, heat demand response, excess thermal power, insufficient thermal power, thermal storage tank energy storage status and hydrogen storage tank pressure.

[0178] The main equipment planning and configuration scheme is as follows:

[0179] Number of fuel cell series units n cell is 12, the effective reaction area A cell 100cm 2, the Faraday constant is 96485.34C / mol, the maximum and minimum powers are 4kW and 0kW respectively; the number of series units in the electrolyzer is n EH is 10, the reaction area A EH 0.25m 2 , maximum and minimum power 4kW and 0kW respectively; the maximum and minimum pressures of the hydrogen storage tank TP max TP min are 2kPa and 0.5kPa respectively, and the volume V H 1m 3 , operating temperature T H The temperature is constant at 300K, the molar mass of hydrogen is 2.016g / mol, and the universal gas constant is 8.314J / (mol·K); the capacity of the heat storage tank is H c 10kWh, upper and lower limits of energy storage state HSD max , HSD min are 0 and 1 respectively, the outlet water temperature of the heat storage tank is 55℃; the maximum and minimum power of the heat pump 4kW and 0kW respectively; wind power installed capacity Cap wt is 1kW, starting wind speed v in , shutdown wind speed v out and rated wind speed v r They are 3m / s, 12m / s and 10m / s respectively; the effective area of ​​photovoltaic power generation is A PV 16m 2 , photovoltaic efficiency η PV is 0.19, the converter efficiency η inv is 0.95.

[0180] Source load data of typical daily scenarios, such as Figure 4 As shown. Each round of training is based on the operation constraints of typical daily scenarios and optimization scheduling problems, and randomly generates a set of source and load data of system operation scenarios, which does not exceed -20% and 20% of the source and load data at the corresponding moment. At the same time, the initial states TP0 and HSD0 of the hydrogen storage tank and the heat storage tank are initialized;

[0181] Based on the established Markov decision process model and TD3 scheduling framework, as well as the parameter settings in Tables 1 to 3, the TD3 neural network is trained and the training reward is as follows: Figure 5 As shown in the figure, the curve with the subscript "mean" is the average of the rewards for every five training steps. DE-TD3 is the improved TD3 algorithm. Figure 5The results show that due to the introduction of the double exploration and double experience storage strategy, the training curve growth efficiency of DE-TD3 is significantly faster than that of TD3, especially after 135 rounds, the last reward experience elimination strategy begins to play a role, the training curve of DE-TD3 grows faster, and finally converges at 168 rounds, with a cumulative reward of -59.62 at the time of convergence, which is 6.67% and 6.51% higher than 180 rounds and cumulative reward of -63.77 of TD3, respectively. The price parameters of the power grid's time-of-use electricity price, load reduction contract, and load transfer contract are shown in Tables 1-3.

[0182] Table 1 Time-of-use electricity price of the power grid

[0183]

[0184] Table 2 Load reduction contracts

[0185]

[0186] Table 3 Load transfer contracts

[0187] type Transfer period Transferred time period 1 7:00-10:00 0 1:00-04:00 2 18:00-22:00 11:00-15:00

[0188] After the training is completed, the trained DE-TD3 neural network is used to perform energy scheduling in a typical day scenario, considering two demand response modes, load reduction and load transfer, to obtain 24-hour system equipment scheduling and demand response scheduling results, such as Figure 6-Figure 9 shown.

[0189] like Figure 5 The results show that in the first 100 rounds, the high exploration noise and demand response noise make the system mainly in the exploration stage, and the training reward oscillates and rises as the strategy continues to improve. With the reduction of noise and the update of the network, the training reward converges at 160 rounds.

[0190] like Figure 6 and Figure 8 The demand response scheduling results shown in the figure indicate that based on the trained DE-TD3 neural network, the system can achieve adaptive scheduling. Users can actively reduce the electric load and thermal load during peak hours, or transfer the load in the corresponding period to the low-load period, thereby fully promoting the consumption of wind and solar power and effectively reducing the system operating costs.

[0191] like Figure 7 and Fig. 9 The scheduling results of the hydrogen storage tank and the heat storage tank shown in the figure show that based on the trained DE-TD3 neural network, after the typical day scenario scheduling is completed, the pressure of the hydrogen storage tank and the heat storage state of the heat storage tank can return to near the initial time, thereby effectively ensuring the thermal and electrical decoupling requirements of the next day and improving the sustainability of the system.

[0192] In summary, the embodiments of the present invention study the efficient electric-heat-hydrogen decoupling and demand response scheduling of the cogeneration system. From the equipment level to the system level, the whole process can realize the real-time intelligent decision-making of multiple energy flows in the cogeneration system based on hydrogen energy storage, overcome the uncertainty of source-load operation during operation, and improve the adaptability of the system. Specifically, a scheduling model for each device in the cogeneration system based on hydrogen energy storage is established, and the operation safety constraints and energy balance constraints are set according to the system coupling characteristics and energy flow forms; two demand response contracts, load reduction and load transfer, are set, and the optimization scheduling problem of the cogeneration system considering demand response is established with the operating cost, demand response cost and energy storage equipment status as the objectives; according to the algorithm training characteristics, the double-delay deep deterministic policy gradient algorithm is improved in two steps, namely the double exploration double experience storage strategy and the last-place reward experience elimination strategy; based on the improved algorithm, a sequential decision design is performed on the optimization scheduling problem, and the strategy network is trained under the random source-load scenario to realize the real-time intelligent decision-making of multiple energy flows in the cogeneration system based on hydrogen energy storage. Therefore, the use of DE-TD3 algorithm to perform demand response energy scheduling for the cogeneration system under the Markov decision process can overcome the multiple uncertainties during system operation and respond quickly to the external environment, thereby reducing operating costs and improving the sustainability of the system.

[0193] The present invention has been described in detail above. The above description is only a preferred embodiment of the present invention and should not limit the scope of implementation of the present invention. That is, all equivalent changes and modifications made within the scope of this application should still fall within the scope of the present invention.

Claims

1. A multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage, characterized in that: include: S1. Establish a dispatch model for each device in the combined heat and power system based on hydrogen energy storage, and set operation safety constraints and energy balance constraints according to the system coupling characteristics and energy flow form; S2. Set up two types of demand response contracts, load reduction and load transfer, and establish the optimal scheduling problem of the combined heat and power system considering demand response, taking the operating cost, demand response cost and energy storage equipment status as the target; S3. According to the algorithm training characteristics, the double-delayed deep deterministic policy gradient algorithm is improved in two steps, namely the double exploration and double experience storage strategy and the last-place reward experience elimination strategy; S4. Based on the improved algorithm, sequential decision design is performed for the optimization scheduling problem, and the strategy network is trained under random source-load scenarios to achieve real-time intelligent decision-making for multiple energy flows in the combined heat and power system based on hydrogen energy storage.

2. The multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage according to claim 1 is characterized in that: In step S1, the equipment of the cogeneration system includes a proton exchange membrane fuel cell, a proton exchange membrane electrolyzer, a photovoltaic power generation device, a wind power generation device, an air source heat pump, a heat storage tank and a high-pressure hydrogen storage tank, and the cogeneration system is connected to an external power grid to ensure stable operation; The scheduling model of the proton exchange membrane fuel cell includes the hydrogen flow rate model, current density model, electric power model and thermal power model of the proton exchange membrane fuel cell; the scheduling model of the proton exchange membrane electrolyzer includes the power consumption and hydrogen production flow rate model of the proton exchange membrane electrolyzer; the scheduling model of the photovoltaic power generation equipment includes the power model of the photovoltaic power generation equipment; the scheduling model of the wind power generation equipment includes the power and wind speed model of the wind power generation equipment; the scheduling model of the air source heat pump includes the electric power and thermal power model of the air source heat pump; the scheduling model of the heat storage tank includes the initial heat state of the heat storage tank and the heating power model; the scheduling model of the high-pressure hydrogen storage tank includes the pressure model of the high-pressure hydrogen storage tank; set the operation safety constraints of these equipment, set the electric power balance, thermal power balance and hydrogen flow balance as the constraints of the subsequent optimization problems; The system coupling characteristics and energy flow forms are as follows: proton exchange membrane fuel cells can consume hydrogen to provide electricity, and the waste heat generated can be used for heating; photovoltaic power generation equipment and wind power generation equipment can provide electricity; air source heat pumps can provide heating; electrolyzers can consume electricity to electrolyze water to produce hydrogen; hydrogen storage tanks can store and provide hydrogen; and heat storage tanks can store and provide hot water.

3. The multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage according to claim 2 is characterized in that: The scheduling model of proton exchange membrane fuel cells is: Among them, N FC is the hydrogen intake rate of the fuel cell, is the number of battery cells, I FC is the theoretical current, F is the Faraday constant; j is the current density, A cell is the effective reaction area of ​​the battery unit; Based on the current density j, the electrical power of the fuel cell With thermal power Can be fitted as: The scheduling model of the proton exchange membrane electrolyzer is: Among them, N EH is the hydrogen production rate of the electrolyzer, η F is the Faraday efficiency, is the number of electrolytic cells connected in series, I EH is the electrolytic cell current; The scheduling model of photovoltaic power generation equipment is: in, is the photovoltaic power generation power, η PV is the photovoltaic efficiency of photovoltaic power generation, η inv is the inverter efficiency of photovoltaic power generation, A PV is the effective illumination area, I 0 is the solar irradiance; The dispatch model of wind power generation equipment is: in, is the wind power generation power, v t is the actual wind speed, v in is the starting wind speed, v out is the shutdown wind speed, v r is the rated wind speed, Cap wt installing capacity for wind power; The scheduling model of air source heat pump is: in, is the heating power of the heat pump, is the power consumption of the heat pump, COP is the coefficient of performance of the air source heat pump; The scheduling model of the heat storage tank is: Among them, HSD t+1 is the heat storage state of the heat storage tank at time t+1, HSD t is the heat storage state of the heat storage tank at time t, is the heating power of the heat storage tank, H c is the maximum heat storage capacity of the heat storage tank, ΔT is the scheduling time interval; The scheduling model of high-pressure hydrogen storage tanks is: in, is the pressure of the hydrogen storage tank at time t+1, TP t H is the pressure of the hydrogen storage tank at time t, is the hydrogen flow rate of the hydrogen storage tank at time t, R is the universal gas constant, T H is the temperature, is the molar mass of hydrogen, V H is the volume of hydrogen storage tank; z t is the hydrogen compressibility factor, defined as: Among them, a i ,b i ,c i is a constant, i=1...9; T0=100K.

4. The multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage according to claim 1 is characterized in that: In step S2, the load reduction demand response contract is defined as: during the peak period, users participate in demand response, reduce electricity and heat loads to alleviate the power supply pressure of the power grid, and obtain economic compensation at the same time; the load transfer demand response contract is defined as: users actively transfer the transferable electricity and heat load demand during the peak period to the off-peak period, and reduce the electricity purchase cost through the price difference between the peak period and the off-peak period; The objective function J of the optimal scheduling problem of the combined heat and power system considering demand response is: Among them, C1 includes the fuel cell operating cost and system electricity purchase / sales costs c0 is the unit power cost of the fuel cell, is the power generated by the fuel cell, p t For electricity price, Purchase / sell power to the grid; C2 is the reward for users to participate in electricity and heat demand response. Users participate in demand response by reducing load. For the economic compensation of the corresponding electricity demand response, is the economic compensation for the corresponding heat demand response, defined as: in, The power of electricity demand response for users to participate in, The thermal demand response power for users; a e 、b e 、a h and b h is the demand response compensation coefficient; C3 is the state of the energy storage device, HSD0 is the initial state of the heat storage tank, and TP0 is the initial state of the hydrogen storage tank, which are defined as: Among them, HSD min is the minimum value of the heat storage state of the heat storage tank, HSD max is the maximum value of the heat storage state of the heat storage tank, TP min is the minimum pressure of the hydrogen storage tank, TP max is the maximum value of the hydrogen storage tank pressure; TP T is the state of the hydrogen storage tank at the last moment T, ΔTP T HSD is the difference between the initial state and the final state of the hydrogen storage tank; T is the state of the heat storage tank at the end time T, ΔHSD T is the difference between the initial state and the final state of the heat storage tank; λ i is the weight factor, i=1,...,6.

5. The multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage according to claim 4 is characterized in that: The equipment safety constraints and demand response constraints of the optimal scheduling problem are: (a) (b) (c) Wherein, formula (a) includes the power constraints of the fuel cell, electrolyzer and heat pump; formula (b) includes the power constraints of the electricity and heat demand response; formula (c) includes the energy storage constraints of the thermal storage tank and the pressure constraints of the hydrogen storage tank; The energy balance constraint of the optimal scheduling problem is: The hydrogen flow balance includes the hydrogen production rate of the electrolyzer Air intake rate of air tank and fuel cell hydrogen consumption rate Electrical power balance including fuel cell power generation Photovoltaic power generation Wind power Power grid purchase Heat pump power consumption Electrolyzer power consumption Electrical load Electricity Demand Response Thermal power balance including fuel cell heating Heat pump heating Thermal storage tank heating Heat load and thermal demand response 6. The multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage according to claim 1 is characterized in that: In step S3, the double-delayed deep deterministic policy gradient algorithm is improved in two steps, including: Double exploration and double experience storage: For each time step, the action exploration noise, i.e., OU noise, is taken inversely to generate a new noise, which is added to the original action output of the policy network to perform two policy explorations. After interacting with the environment, the training experience of the two explorations is saved at the same time. At the end of the current time step, the next state corresponding to the experience with a higher reward value is selected for update and calculation. Elimination of last-place reward experience: When new training experience needs to be stored and the experience replay pool is full, find the two sets of training experience with the lowest reward value at the same time step, compare them with the two new sets of training experience, and retain the two sets with the highest reward value.

7. The multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage according to claim 1 is characterized in that: In step S4, the sequential decision design needs to establish the Markov decision process for system operation, including: Create the state space S: Among them, the state includes time t, temperature TM t , Photovoltaic power generation Wind power generation Electrical load Heat load Hydrogen storage tank pressure TP t And the heat storage tank energy storage state HSD t ; Establish the action space A: The actions include the fuel cell intake rate Heat pump power consumption Electricity demand response power and thermal demand response power Establish the reward function R: Among them, the reward function R includes each step reward r t and the final reward r T ; in r t middle, and These are fuel cell operation, electricity purchase / sale, electricity demand response, and heat demand response incentives, in order; The current excess thermal power after the heat storage tank participates in the dispatch; is the current thermal shortage power after the heat storage tank participates in the scheduling; i is the adjustment coefficient, i=1,...,8.

8. The multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage according to claim 7 is characterized in that: Based on the Markov decision process, a strategy network is trained in a random scenario to realize real-time intelligent decision-making of multiple energy flows in a combined heat and power system based on hydrogen energy storage; the random source loads include ambient temperature, solar irradiance, wind speed, electrical load and thermal load; The training of the policy network in a random scenario includes the following steps: Initialize the policy network, scoring network 1 and scoring network 2 of the TD3 algorithm, and establish a target network with the same parameters; For the cogeneration system, the exploration noise of equipment scheduling and the demand response noise on the user side are added, and different noise parameters are set respectively, including mean, diffusion term coefficient and attenuation period; The load average based on historical data is used as a typical daily scheduling scenario, including source load data, demand response parameters, and the upper limit of demand response power at each moment; source load data includes solar irradiance, wind speed, temperature, electrical load, and thermal load; demand response parameters include the reward coefficients for electrical and thermal demand responses; The TD3 algorithm is trained repeatedly. Each round of training is based on typical daily scheduling scenarios and optimization scheduling problems. Source-load fluctuations are randomly added to generate a set of training scenarios. The degree of fluctuation must meet specific conditions. At the same time, the initial state TP0 of the hydrogen storage tank and the initial state HSD0 of the heat storage tank are initialized. Execute the scheduling process, output actions based on the current environmental status and action network, where the output actions include equipment scheduling strategy and demand response scheduling strategy; recalculate the new electricity and heat loads after considering demand response, as well as the current excess and shortage of thermal power, and execute the improved dual exploration and dual experience storage strategy and the last-place reward experience elimination strategy; Execute the network update process. When the number of saved data groups meets the minimum training batch requirement, randomly take out a batch of data after shuffling the data groups. Train the policy network with the stochastic gradient descent algorithm, train the action network with the sampled gradient, and soft-update the target network. After the training is completed, the strategy network is saved to realize real-time intelligent decision-making of multi-energy flows in the combined heat and power system based on hydrogen energy storage.

9. The multi-energy flow intelligent scheduling method for a combined heat and power system based on hydrogen energy storage according to claim 8 is characterized in that: The specific condition is that it does not exceed -20% and 20% of the source load data at the corresponding moment.

Citation Information

Cited By

  • Optimized scheduling method and system for electric heating cooperative system

    CN119539371A

  • Intelligent scheduling method of multi-element energy storage system based on deep reinforcement learning

    CN120258474A

  • Electro-hydrogen-heat energy system construction method for multi-type energy demand scene

    CN121235411A