A method and device for scheduling optimization of an integrated electricity-hydrogen energy system
By combining a pre-set monitoring network and a multi-agent learning algorithm, the scheduling optimization method for the integrated electric-hydrogen energy system solves the problem that scheduling strategies in existing technologies cannot guarantee system safety, and achieves safe and stable operation under the uncertainty of renewable energy.
Patent Information
- Application Number
- CN202611276955.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-20
AI Technical Summary
Existing methods for scheduling and optimizing integrated electric and hydrogen energy systems are insufficient to guarantee the safety of system operation, especially when facing the uncertainties of renewable energy sources. This may lead to scheduling strategies being unable to respond effectively, resulting in power imbalances or overloads.
A method combining a pre-defined monitoring network and a multi-agent learning algorithm is employed to construct day-ahead and intraday scheduling models, generate average safety margin values, and perform real-time monitoring and scheduling optimization. The pre-defined monitoring network includes an attention layer, convolutional modules, and fully connected layers to generate the average safety margin value. When the safety margin threshold does not reach a preset threshold, the multi-agent learning algorithm is used to optimize the intraday scheduling model and generate a target scheduling scheme.
It improves the operational safety and economy of the integrated electric-hydrogen energy system. Through real-time monitoring and optimized scheduling strategies, it reduces potential risks to the system and ensures stable operation of the system in uncertain environments.
Smart Images

Figure CN123144072A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power system dispatching technology, and in particular to a method and apparatus for optimizing the dispatching of an integrated electric-hydrogen energy system. Background Technology
[0002] Due to the uncertainty of renewable energy, its increasing availability poses a significant challenge to the safe operation of power systems. Electricity-hydrogen integrated energy systems (EH-IHS), with their flexibility, offer a promising solution that can withstand uncertainty and accommodate more renewable energy sources.
[0003] Uncertainty-considered EH-IES dispatch has garnered widespread attention globally. This not only requires reconciling the conflicting interests between the power system and the hydrogen system but also quantifying the impact of uncertainty on both systems simultaneously. Dispatch optimization for integrated power-hydrogen systems (EH-IHS) primarily revolves around renewable energy consumption and multi-energy synergy optimization. Traditional power systems face curtailment issues due to the intermittency of wind and solar power. Hydrogen, as a high-density energy storage medium, can convert excess electrical energy into hydrogen energy for storage through power-to-hydrogen (P2H) electrolysis, and then achieve inter-period energy dispatch through fuel cells or hydrogen gas turbines.
[0004] Existing scheduling optimization methods for integrated electric-hydrogen energy systems, based on single-stage data-driven scheduling approaches, attempt to handle highly complex uncertainties using deep reinforcement learning (DRL) and safe reinforcement learning (SRL). However, predetermined scheduling schemes may deviate from safety boundaries, causing power imbalances or overloads, making it difficult for scheduling strategies to guarantee the safety of system operation. Summary of the Invention
[0005] This invention provides a method and apparatus for scheduling optimization of an integrated electric-hydrogen energy system, which solves the technical problem that existing scheduling optimization methods for integrated electric-hydrogen energy systems make it difficult to guarantee the safety of system operation.
[0006] The first aspect of this invention provides a scheduling optimization method for an integrated electric-hydrogen energy system, comprising:
[0007] In response to dispatch requests, with the goal of minimizing the total dispatch cost of the integrated electric-hydrogen energy system, and setting day-ahead dispatch constraints, a day-ahead dispatch model is constructed.
[0008] Solve the day-ahead scheduling model to generate a day-ahead scheduling scheme, and pre-run the integrated electric-hydrogen energy system based on the day-ahead scheduling scheme to generate multi-energy coupling scheduling data of the integrated electric-hydrogen energy system.
[0009] A preset monitoring network is used to monitor the integrated electric-hydrogen energy system based on the multi-energy coupling scheduling data, and the average safety margin of the integrated electric-hydrogen energy system is generated.
[0010] Compare the average safety margin with the preset safety margin threshold;
[0011] When the safety margin threshold is less than or equal to the preset margin threshold, the day-ahead scheduling scheme will be used as the target electric-hydrogen integrated energy system scheduling scheme.
[0012] When the safety margin threshold is greater than the preset margin threshold, an intraday scheduling model is constructed, and the intraday scheduling model is solved based on a multi-agent learning algorithm to generate a target electric-hydrogen integrated energy system scheduling scheme.
[0013] Optionally, the preset monitoring network includes an attention layer, multiple convolutional modules, and a fully connected layer; the step of using the preset monitoring network to monitor the integrated electric-hydrogen energy system based on the multi-energy coupling scheduling data, and generating the average safety margin of the integrated electric-hydrogen energy system, includes:
[0014] The multi-energy coupled scheduling data is used as the input to the attention layer, and the key operation state input vector is output.
[0015] Multiple convolutional modules are used to extract features from the key operation state input vector to generate a key feature vector.
[0016] The key feature vector is input into the fully connected layer, and the safe operation probability of the thermal power generating unit, the safe operation probability of the transmission line, and the safe operation probability of the electrolyzer of the integrated electric-hydrogen energy system are output.
[0017] The average values of the safe operation probability of the thermal power generating unit, the safe operation probability of the transmission line, and the safe operation probability of the electrolyzer are calculated, and the average safety margin of the integrated electric-hydrogen energy system is output.
[0018] Optionally, the step of constructing an intraday scheduling model and solving the intraday scheduling model based on a multi-agent learning algorithm to generate a target electric-hydrogen integrated energy system scheduling scheme includes:
[0019] With the goal of minimizing the total scheduling cost of the integrated electric-hydrogen energy system, and setting intraday scheduling constraints, an intraday scheduling model is constructed.
[0020] The intraday scheduling model is converted into a multi-agent Markov game model.
[0021] The multi-agent learning algorithm is used to solve the multi-agent Markov game model to generate an intraday scheduling scheme.
[0022] The intraday scheduling scheme is used as the target scheduling scheme for the integrated electric-hydrogen energy system.
[0023] Optionally, the training process of the preset monitoring network specifically includes:
[0024] Acquire multi-energy coupled scheduling data for model training;
[0025] The multi-energy coupled scheduling data used for model training is input into the initial monitoring network to generate the safe operation probability of thermal power generating units, the safe operation probability of transmission lines, and the safe operation probability of electrolytic cells for model training.
[0026] Substitute the safe operation probability of the thermal power generating unit, the safe operation probability of the transmission line, and the safe operation probability of the electrolytic cell used for model training into the preset loss model and take the derivative to determine the model gradient.
[0027] The model parameters of the initial monitoring network are updated using the model gradient to determine the intermediate monitoring network, and the number of model updates is counted in real time.
[0028] When the number of model updates reaches a preset update threshold, the intermediate monitoring network is used as the trained preset monitoring network.
[0029] Optionally, the objective function corresponding to the day-ahead scheduling model is specifically:
[0030] ;
[0031] Where T is the time resolution The number of time points in the day-ahead scheduling model (15 minutes); , and These are the generation cost at time t, the loss cost due to renewable energy reduction, and the operating cost of HPC, respectively.
[0032] Optionally, the objective function corresponding to the intraday scheduling model is specifically:
[0033] ;
[0034] in, , and These are the generation cost at time point t, the loss cost due to renewable energy reduction, and the operating cost of HPC, respectively. This refers to the time point for scheduling on that day.
[0035] The second aspect of this invention provides a scheduling and optimization device for an integrated electric-hydrogen energy system, comprising:
[0036] The response module is used to respond to scheduling requests, aiming to minimize the total scheduling cost of the integrated electric-hydrogen energy system, and sets day-ahead scheduling constraints to construct a day-ahead scheduling model.
[0037] The pre-run module is used to solve the day-ahead scheduling model, generate a day-ahead scheduling scheme, and pre-run the integrated electric-hydrogen energy system based on the day-ahead scheduling scheme to generate multi-energy coupling scheduling data of the integrated electric-hydrogen energy system.
[0038] The monitoring module is used to monitor the integrated electric-hydrogen energy system using a preset monitoring network based on the multi-energy coupling scheduling data, and to generate the average safety margin of the integrated electric-hydrogen energy system.
[0039] The comparison module is used to compare the average safety margin with a preset safety margin threshold.
[0040] The day-ahead scheduling module is used to use the day-ahead scheduling scheme as the target electric-hydrogen integrated energy system scheduling scheme when the safety margin threshold is less than or equal to the preset margin threshold.
[0041] The intraday scheduling module is used to construct an intraday scheduling model when the safety margin threshold is greater than the preset margin threshold, and to solve the intraday scheduling model based on a multi-agent learning algorithm to generate a target electric-hydrogen integrated energy system scheduling scheme.
[0042] A computer device provided in a third aspect of the present invention includes a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the scheduling optimization method for an integrated electric-hydrogen energy system as described in any of the preceding claims.
[0043] The fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed, implements the steps of the scheduling optimization method for an integrated electric-hydrogen energy system as described in any of the preceding claims.
[0044] The fifth aspect of the present invention provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, wherein, when the program instructions are executed by a computer, the computer performs the steps of the electric-hydrogen integrated energy system scheduling optimization method as described in any of the preceding claims.
[0045] As can be seen from the above technical solutions, the present invention has the following advantages:
[0046] The present invention provides a method for optimizing the scheduling of an integrated electric-hydrogen energy system. When scheduling the integrated electric-hydrogen energy system is required, the objective is to minimize the total scheduling cost of the integrated electric-hydrogen energy system, and day-ahead scheduling constraints are set to construct a day-ahead scheduling model. The day-ahead scheduling model is solved to generate a day-ahead scheduling scheme, and the integrated electric-hydrogen energy system is simulated and pre-run based on the day-ahead scheduling scheme to generate multi-energy coupling scheduling data for the integrated electric-hydrogen energy system. A preset monitoring network is used to monitor the integrated electric-hydrogen energy system based on the multi-energy coupling scheduling data to generate the average safety margin of the integrated electric-hydrogen energy system. The average safety margin is compared with a preset safety margin threshold. When the safety margin threshold is less than or equal to the preset safety margin threshold, the day-ahead scheduling is adjusted. The proposed scheme serves as the scheduling scheme for the target integrated electric-hydrogen energy system. When the safety margin threshold exceeds a preset threshold, an intraday scheduling model is constructed and solved using a multi-agent learning algorithm to generate the target integrated electric-hydrogen energy system scheduling scheme. Based on the above scheme, a day-ahead scheduling model is constructed and solved with the goal of minimizing total cost. Subsequently, the average safety margin of the system is calculated based on the scheduling data. If it is lower than the threshold, the day-ahead scheme is directly adopted; otherwise, the intraday scheduling model is re-optimized using a multi-agent learning algorithm to generate the target integrated electric-hydrogen energy system scheduling scheme. This invention assesses the potential safety risks of the system through a preset monitoring network and guides the system to re-formulate the scheduling strategy, thereby improving the operational safety of the integrated electric-hydrogen energy system. Attached Figure Description
[0047] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0048] Figure 1 This is a flowchart illustrating the steps of a method for scheduling and optimizing an integrated electric-hydrogen energy system according to Embodiment 1 of the present invention.
[0049] Figure 2This is an overall framework diagram of an integrated electric-hydrogen energy system scheduling optimization method provided in Embodiment 1 of the present invention;
[0050] Figure 3 This is a flowchart illustrating the steps of training a preset monitoring network according to Embodiment 2 of the present invention.
[0051] Figure 4 This is a structural block diagram of an integrated electric-hydrogen energy system scheduling and optimization device provided in Embodiment 3 of the present invention. Detailed Implementation
[0052] This invention provides a method and apparatus for scheduling optimization of an integrated electric-hydrogen energy system, which addresses the technical problem that existing scheduling optimization methods for integrated electric-hydrogen energy systems often fail to guarantee the safety of system operation.
[0053] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0054] Please see Figure 1 , Figure 1 The flowchart illustrates the steps of a scheduling optimization method for an integrated electric-hydrogen energy system provided in Embodiment 1 of the present invention.
[0055] This invention provides a scheduling optimization method for an integrated electric-hydrogen energy system, comprising:
[0056] Step 101: Respond to the scheduling request, aiming to minimize the total scheduling cost of the integrated electric-hydrogen energy system, and set day-ahead scheduling constraints to construct a day-ahead scheduling model.
[0057] It should be noted that, in order to promote the inclusion of renewable energy and consider the flexibility of HPC (High-Proportion Renewable Energy Power System), a day-ahead dispatch model is established. This model determines the deterministic optimal dispatch scheme for thermal power units, renewable energy stations, and HPC in the electricity-hydrogen integrated energy system (EH-IHS). This invention assumes that the load and price distribution of electricity / hydrogen are based on day-ahead forecasts and existing market mechanisms. Therefore, the proposed day-ahead dispatch model ignores the revenue from hydrogen and electricity sales, while fully quantifying the flexibility of HPC and expressing it as operational constraints, energy flow constraints, and safety constraints.
[0058] Specifically, in response to dispatch requests (i.e., when dispatching the integrated electric-hydrogen energy system is required), a day-ahead dispatch model is constructed with the objective of minimizing the total dispatch cost of the integrated electric-hydrogen energy system and day-ahead dispatch constraints set. The day-ahead dispatch model aims to minimize the total dispatch cost of the EH-IES, which includes generation costs, losses from renewable energy reductions, and HPC operating costs. Its objective function is expressed as follows:
[0059] ;
[0060] Where T is the time resolution The number of time points in the day-ahead scheduling model (15 minutes); , and These represent the generation cost at time t, the loss cost due to renewable energy reduction, and the operating cost of HPC (High-Proportion Renewable Energy Power System), respectively, expressed as:
[0061] ;
[0062] ;
[0063] ;
[0064] in, , , and These refer to the number of thermal power generating units, wind farms, solar power stations, and HPCs. It represents the power output of unit n at time t. , and These are the fuel cost parameters for unit n. and These are the unit penalty costs for wind and solar power curtailment, respectively. and These are the capacity utilization rate and predicted value of wind farm i at time t. and These are the capacity ratio and predicted value of solar station j at time t, respectively. and These are the levelized cost of hydrogen production and storage, specifically the cost of electrolysis and hydrogen storage. and These are the prices for purchasing electricity and hydrogen, respectively. and , respectively, represent the amount of hydrogen injected and released by the k-th HPC at time t. and are the amounts of hydrogen produced and purchased by the k-th HPC at time t, respectively. The electricity purchased from the main grid of the k-th HPC at time t; The scheduling time is per unit. and These represent the production and purchase of hydrogen by the k-th HPC at time t.
[0065] Furthermore, regarding day-ahead dispatch constraints, these constraints include constraints on the safe operation of HPC, power balance constraints, renewable energy output power constraints, and safe operation constraints of generating units and transmission lines. To ensure the safety of power system operation, the power balance constraints, renewable energy output power constraints, and safe operation constraints of generating units and transmission lines must be met.
[0066] ;
[0067] in, and These represent the power injected into the grid from the wind farm and the solar power station at time t, respectively. It is the power load at time point t. and These are the minimum and maximum power outputs of the nth unit, respectively. and These are the maximum rise rate and fall rate of the nth thermal power unit, respectively. and These are the voltage angles of the source and end bus of line l, respectively. It is the reactance of line l. and These are the active power and maximum transmission capacity on line l, respectively.
[0068] Furthermore, for the safe operation of HPC, the HPC produces hydrogen using on-site renewable energy and grid electricity to meet local hydrogen demand. To minimize hydrogen production costs, outsourcing hydrogen production will serve as a supplementary measure. Therefore, the following hydrogen energy balance equation should be satisfied:
[0069] ;
[0070] in, , and These represent hydrogen production at time point t in the k-th HPC, generated using on-site wind power, solar power, and purchased electricity. It is the hydrogen load at time point t in the k-th HPC.
[0071] As an energy hub connecting electricity and hydrogen energy, the electrolyzer operates under the following model:
[0072] ;
[0073] in, , and These are the lower heating value of hydrogen, electrolysis efficiency, and the maximum capacity of the electrolyzer. , and It represents the wind power generation, solar power generation, and electricity purchase used for hydrogen production at the t-th time point in the k-th HPC. It is the input power of the electrolytic cell in the k-th HPC at time t.
[0074] Hydrogen storage systems store excess hydrogen to meet peak hydrogen demand:
[0075] ;
[0076] in, It represents the amount of hydrogen stored at time point t. and These refer to the efficiency of hydrogen injection and release, respectively. , and These are the upper limits for hydrogen storage, hydrogen injection, and hydrogen release, respectively.
[0077] Step 102: Solve the day-ahead scheduling model to generate a day-ahead scheduling scheme, and pre-run the integrated electric-hydrogen energy system based on the day-ahead scheduling scheme to generate multi-energy coupling scheduling data of the integrated electric-hydrogen energy system.
[0078] Multi-energy coupled scheduling data includes unit power output Power injected into the grid from the wind farm Power injected into the grid by the solar power station Wind power generation for HPC hydrogen production Solar power generation for HPC hydrogen production Electricity purchase for HPC hydrogen production Electricity load Hydrogen loading in HPC Forecasted power input from wind farms to the power grid Predicted power input from solar power stations to the grid .
[0079] It should be noted that the current dispatch plan includes the generating capacity of thermal power units. Renewable energy power plants and wind farm output and solar power station The amount of hydrogen injected The amount of hydrogen released Power purchased from the main grid of HPC .
[0080] Furthermore, since the uncertainty caused by renewable energy forecasting errors is not taken into account, the planned dispatch scheme may go out of the safety boundary, causing power imbalance or overload. The EH-IES integrated electric-hydrogen energy system operates for 4 hours under the day-ahead dispatch scheme and uses a pre-set monitoring network to monitor the generated multi-energy coupling dispatch data.
[0081] Step 103: Use a preset monitoring network to monitor the integrated electric-hydrogen energy system based on multi-energy coupling scheduling data, and generate the average safety margin of the integrated electric-hydrogen energy system.
[0082] The pre-defined monitoring network includes an attention layer, multiple convolutional modules, and a fully connected layer.
[0083] It should be noted that, in order to monitor the safety of EH-IES operations in uncertain environments, an online safety monitoring method for EH-IES that combines deep learning and Monte Carlo simulation (MCS) is proposed.
[0084] Specifically, step 103 may include the following sub-steps S31-S34:
[0085] Step S31: Use the multi-energy coupled scheduling data as the input to the attention layer and output the key operation state input vector;
[0086] Step S32: Use multiple convolutional modules to extract features from the key operation state input vector to generate key feature vectors;
[0087] Step S33: Input the key feature vectors into the fully connected layer and output the safe operation probability of the thermal power generating unit, the safe operation probability of the transmission line, and the safe operation probability of the electrolyzer in the integrated electric-hydrogen energy system.
[0088] Step S34: Calculate the average of the safe operation probability of the thermal power generating unit, the safe operation probability of the transmission line, and the safe operation probability of the electrolyzer, and output the average safety margin of the integrated electric-hydrogen energy system.
[0089] It should be noted that the unit power output Power injected into the grid from the wind farm Power injected into the grid by the solar power station Wind power generation for HPC hydrogen production Solar power generation for HPC hydrogen production Electricity purchase for HPC hydrogen production Electricity load Hydrogen loading in HPC Forecasted power input from wind farms to the power grid Predicted power input from solar power stations to the grid As input to the network, namely multi-energy coupled scheduling data .
[0090] Furthermore, the confidence level of the opportunity constraint, i.e., the probability of safe operation of thermal power generating units in HPC. Safe operation probability of transmission lines and the probability of safe operation of the electrolytic cell These three metrics, selected as the network outputs respectively, constitute the safety margin. These metrics are used to characterize the safety margin of a system.
[0091] Furthermore, the original input, namely the multi-energy coupled scheduling data X, is first sent to the attention layer, which can assign different weights to different input channels. This is to highlight key input features. The highlighted input vector is the key operational state input vector. (The critical operational state of EHIES) will be sent to the next layer, and this process can be represented as:
[0092] ;
[0093] in, It is a normalization function. It is a dimension of The weight matrix; This is the input to the I-th layer model.
[0094] Furthermore, CNN layers with convolution and pooling operations are used to extract these key features of the operational state from the training data. The convolutional layer (Conv 1D) extracts local features from the upper layer through a sliding convolution operation between the convolutional kernel and the input vector. Following the convolutional layer is a pooling layer (MaxPooling), which reduces computational burden and the number of features by decreasing the size of the features while preserving the main features. The outputs of the convolutional and pooling layers can be represented as:
[0095] ;
[0096] in, and These are the output values of the i-th convolutional layer and the pooling layer, respectively. and These are the deviations of the i-th convolutional layer and the pooling layer, respectively. and These are the convolution operation and the maximum value function, respectively. K is the activation function, and K is the trainable convolutional kernel.
[0097] Furthermore, each convolutional module is concatenated, and each convolutional module includes concatenated convolutional layers and pooling layers. The output of the last convolutional module is P. i As the key feature vector P n The input is fed into a fully connected layer. Specifically, after convolution and pooling, the key feature vectors are input into the fully connected layer to learn the complex relationship between the system's operating state and safety margin. The output Y (safety margin of EH-IES) of the dense layer can be expressed as:
[0098] ;
[0099] in, It is the output of the last convolutional module, i.e., the key feature vector; and It is a parameter vector of weights and biases.
[0100] Step 104: Compare the average safety margin with the preset safety margin threshold.
[0101] It should be noted that if the safety margin threshold of EH-IES for the next 4 hours is within the preset margin threshold, EH-IES will execute the day-ahead scheduling scheme, using it as the target electric-hydrogen integrated energy system scheduling scheme. This is because the power error between the day-ahead scheduling scheme and the actual value can be balanced by Automatic Generation Control (AGC) and the system's own resilience. Otherwise, EH-IES enters the third stage, revising the preset scheme. Specifically, EH-IES executes the target electric-hydrogen integrated energy system scheduling scheme obtained by solving the intraday scheduling model based on a multi-agent learning algorithm. To effectively generate the revised scheme within the next 4 hours, an intraday revision framework based on DRL and a chance-constraint model was established.
[0102] Step 105: When the safety margin threshold is less than or equal to the preset margin threshold, the day-ahead scheduling scheme shall be used as the target electric-hydrogen integrated energy system scheduling scheme.
[0103] It should be noted that if the safety margin threshold of EH-IES for the next 4 hours is within the preset margin threshold, EH-IES will use the day-ahead scheduling scheme as the target electric-hydrogen integrated energy system scheduling scheme and execute it.
[0104] Step 106: When the safety margin threshold is greater than the preset margin threshold, construct the intraday scheduling model, and solve the intraday scheduling model based on the multi-agent learning algorithm to generate the target electric-hydrogen integrated energy system scheduling scheme.
[0105] It should be noted that, in order to correct the day-ahead scheduling scheme in real time and ensure the safety of EH-IES, a data-driven intraday correction method is proposed. First, an intraday opportunity-constrained scheduling model (intraday scheduling model) is established. Then, under the reinforcement learning framework, the scheduling model is transformed into a multi-agent Markov game model. Finally, a training mechanism for the correction network, a constraint projection method, and a feasible sample learning mechanism are proposed in conjunction with MAPPO.
[0106] Specifically, step 106 may include the following sub-steps S61-S64:
[0107] Step S61: With the goal of minimizing the total scheduling cost of the integrated electric-hydrogen energy system, and setting intraday scheduling constraints, construct an intraday scheduling model;
[0108] Step S62: Convert the intraday scheduling model into a multi-agent Markov game model;
[0109] Step S63: Use a multi-agent learning algorithm to solve the multi-agent Markov game model and generate an intraday scheduling scheme;
[0110] Step S64: Use the intraday scheduling plan as the target electric-hydrogen integrated energy system scheduling plan.
[0111] The intraday dispatch plan includes the increase in output of thermal power units, the power injected into the grid from renewable energy sources, the renewable power produced from hydrogen, the purchased electricity, the purchased hydrogen, and the hydrogen storage operation plan.
[0112] It should be noted that for the intraday scheduling model, the aim is to minimize the total scheduling cost of EH-IES, which includes generation costs, losses from renewable energy reductions, and HPC operating costs. The corresponding objective function is expressed as follows:
[0113] ;
[0114] The first three terms of the objective function of the intraday scheduling model are the same as the first three terms of the objective function of the day-ahead scheduling model. This refers to the time point for scheduling on that day.
[0115] For intraday dispatch constraints, the day-ahead dispatch scheme based on forecasts fully satisfies the operating boundary constraints of thermal power units, power flow, and electrolyzers. However, uncertain renewable energy sources can alter the actual output and power flow of thermal power units. For example, units will further adjust their power output through Automatic Generation Control (AGC) to ensure power balance. Power flow in the grid will also be adjusted based on the actual output of units and renewable energy sources. The actual input power of the electrolyzers will be updated based on the latest renewable energy data. The intraday dispatch constraints include day-ahead dispatch constraints, deterministic constraints, and chance constraints with an acceptable probability of violation; the following equations describe the changes of these variables under uncertain renewable energy:
[0116] ;
[0117] in, To account for uncertainties in the power generation capacity of thermal power units; For fluctuations in renewable energy power plant i; The number of renewable energy power plants; Let n be the power participation factor for AGC unit n; To account for uncertainties in line power flow; The power flow changes of line l can be obtained through AC power flow simulation calculations; To account for the power consumption of hydrogen production in HPC with uncertainties; To account for the uncertainties of HPC consumption of solar power generation; To account for the uncertainties of HPC consumption of wind farm power generation; To account for the uncertainty of HPC's electricity purchases from the main grid.
[0118] To ensure the safe operation of EH-IES under uncertain renewable energy conditions, the following deterministic constraints and chance constraints with acceptable probability of violation are expressed by formulas:
[0119] ;
[0120] ;
[0121] ;
[0122] in, It's the fluctuation of renewable energy. It is the predetermined confidence level. It is the acceptable probability of violating the opportunity constraint; It is an uncertain probability function.
[0123] To determine the EH-IES correction scheme in real time, a multi-agent DRL (Deep Reinforcement Learning) based on Markov Decision Process (MDP) is used to train the intraday correction model (i.e., a multi-agent Markov game model). First, the intraday correction model is established using Markov Decision Process. The multi-agent Markov game model (MDP) mainly includes states, actions, and a reward function, where the action is the increase in the output of the thermal power unit. Renewable energy injected into the grid Hydrogen production renewable power Purchased electricity Purchased hydrogen Hydrogen storage operation plan Status includes the output of thermal power units. Renewable energy output Electricity load Hydrogen load Hydrogen storage capacity The state transition process can be formulated by combining the current state and actions, or a large amount of historical data. For example, external states unrelated to actions. , , The state transition process can be described by extracting historical data from the sample pool. Other action-related states, such as... , Etc. has a clear physical relationship with the action, and its value at the next time point can be directly calculated:
[0124] ;
[0125] Furthermore, the renewable energy HPC and grid power HPC of the power system are each handled by three agents, each agent in a given state s t Seeking to make the reward function r i Maximize the optimal action a i The Agent is trained using a mechanism of centralized learning and distributed execution, which helps each Agent independently determine a decision-making scheme. i Simultaneously, the global state s is updated through the interaction between the agent and the external environment (EH-IES), and then the reward R for each agent is calculated through centralized learning given the global state s and action a. i :
[0126] ;
[0127] in, Is agent i from the start time End time Total cumulative rewards It is a discount factor. It is the penalty coefficient for the confidence level under opportunity constraints; For optimal action a i The reward function.
[0128] Furthermore, regarding the training mechanism for the corrected network (multi-agent Markov game model) based on the combined multi-agent proximity policy optimization algorithm (MAPPO), MAPPO is a multi-agent learning algorithm with a dynamic learning rate, which can accelerate the convergence of the training process. To determine the correction scheme for EH-IES in real time, this invention proposes a training mechanism for the corrected network based on MAPPO, incorporating a chance-constrained scheduling model into the gradient update equation of the training network.
[0129] Specifically, multiple agents continuously interact with the external environment to generate training samples. Each agent consists of a policy network and a value network. The policy network generates a revised scheme (intraday scheduling scheme) under a given condition, while the value network evaluates the value function under the corresponding revised scheme at a given point, i.e., the economics of the revised scheme. To determine the optimal revised scheme through the policy network, both the policy network and the value network need to continuously update their parameters with a large number of training samples. Furthermore, a constrained projection method and a feasible sample learning mechanism are introduced to ensure that the revised scheme satisfies deterministic and opportunistic constraints. Overall, the offline training mechanism of the revised network includes three stages: the generation of training samples and the training of the numerical network and the policy network.
[0130] 1) Generation of training samples: Multiple agents continuously interact with the environment to generate states, actions, and reward functions, thus forming training samples. The initial states are generated randomly. First, the input is fed into the policy network of each agent to generate a given policy. The mean and variance of the correction schemes were used to construct a multivariate Gaussian probability distribution function, which forms the correction strategy for each agent. Then, by sampling this probability distribution, the current correction scheme is obtained. Next, a joint action or global correction scheme is proposed. It will be sent to EH-IES to receive a reward. and the next state Therefore, a transformation is created. , , , And push it into the sample pool.
[0131] 2) Training the numerical network: The key to training a numerical network is to formulate a loss function for updating the network parameters. Therefore, a batch of samples is first extracted from the sample pool. , , , For each agent, the observations will be... Input a numerical network and compute the state value function through the forward propagation mechanism. This is the network output. Then, the objective function is introduced. This is used to characterize the deviation of the output from the expected or target output. The value function is based on the observed... The reward function for the execution scheduling scheme and the loss function for the numerical network. It can be formalized as follows:
[0132] ;
[0133] in, This is the training function.
[0134] The squared difference between the state and objective value functions characterizes the performance of the numerical network, and therefore it is used to formulate the loss function for training the value network. Finally, the parameters of the numerical network are updated using the following formula:
[0135] ;
[0136] in, It is a parameter vector representing the weights and biases of agent i in the numerical network. , Let i be the i-th weight in the network. Let be the i-th deviation in the network. It is the learning rate of the value network. It is a loss function Relative to parameters The gradient; This is a new parameter vector for the weights and biases of agent i in the numerical network.
[0137] 3) Training the Policy Network: Training the policy network mainly involves determining the loss function and dynamic learning rate. To guide the policy network in generating highly cost-effective correction schemes, an advantage function is introduced. This is used to evaluate the economics of the policy network output. It characterizes the difference between the current scheduling policy and the average scheduling policy. If This means that the scheduling scheme is superior to the average scheduling scheme. Therefore, the policy network should strengthen its learning of this scheduling scheme, and vice versa. Therefore, the advantage function... It can effectively increase the probability of the dominant strategy being output, while improving training efficiency and the quality of the correction scheme.
[0138] Furthermore, a dynamic learning rate is incorporated into MAPPO to accelerate the convergence of the training process. To guide the agent in generating safe correction schemes with acceptable confidence levels, constraints on the scheduling model must be added to the training process. A constraint projection method is employed to explain the equations. Inactive actions generated by the network can be projected into the active action space. Directly handling chance constraints is thorny and challenging. Therefore, this invention combines these with the network gradient update equation to establish a feasible sample learning mechanism.
[0139] Based on the above, the network learns only from samples that satisfy the chance constraints, thereby ensuring that the mapping relationship between system state and actionable actions can be learned effectively.
[0140] The confidence level associated with the opportunity constraint is integrated into the dynamic learning rate. This mechanism enables the agent to strengthen learning from high-quality training samples with high confidence levels and weaken learning from training samples with low confidence levels, thereby reducing the computational burden of the training process. The confidence level of the training samples is determined by the proposed online safety monitoring network. Finally, the dynamic learning rate equation integrating the confidence levels of the training samples is shown below:
[0141] ;
[0142] in, It is the baseline learning rate. and This is the latest strategy Sampling probability and old strategy The sampling probability. The CLIP function ensures that the function's output Fowles is within the range of sampling probability. and Within a certain range, this prevents the training process from diverging due to significant differences between the new and old policies. If the new policy is close to the old policy, it means the policy network is currently updating parameters in the direction of convergence. However, if the difference is large, it can indicate that either the new or old policy is far from the direction of convergence. Therefore, The learning rate is designed to be dynamically adjusted. The greater the deviation between the new and old strategies, the smaller the learning rate, and vice versa. Furthermore, Y represents the confidence level of the training samples. This represents the acceptable confidence level for the opportunity constraint. If the confidence level of the training samples is lower than the acceptable level, the corresponding learning rate is set to zero to avoid learning from infeasible samples. For dynamic learning rate; This represents the acceptable probability of violating the opportunity constraint.
[0143] Finally, combining the advantage function and dynamic learning rate The parameter update equations for the policy network can be derived as follows:
[0144] ;
[0145] in, These are the parameters of agent i's policy network; It is the dominant function Relative to parameters The gradient; These are the new parameters for the policy network of agent i. The multi-agent system will be trained using the above training mechanism until the maximum training period is reached.
[0146] As a comparison of technological effects, existing technologies can be referenced. EH-IES scheduling considering uncertainty has received widespread attention globally. This not only requires coordinating the conflicting interests between the power system and the hydrogen system but also quantifying the impact of uncertainty on both systems simultaneously. To address these unique challenges, researchers have proposed single-stage and two-stage uncertainty scheduling methods. The large volume of transactions occurring in the Peer-to-Peer Market presents numerous obstacles. Coordinating generation and load demand leads to significant frequency fluctuations. Furthermore, the possibility of eavesdroppers injecting fraudulent data during transactions is high, potentially causing system instability. Therefore, the execution of smart contracts in blockchain enhances the guarantees for peers in energy trading networks. Spoofing attacks are highly likely to modify frequency information from sensors to controllers. To overcome this problem, a resilient controller must be designed to regulate the system frequency without being affected by FDI (False Data Injection) attacks in P2P energy trading systems.
[0147] Single-stage methods employ mathematical models to describe uncertainty and integrate them into scheduling models to determine day-ahead scheduling schemes. These methods are categorized into scenario-based methods, robust optimization (RO) methods, distributed robust optimization (DRO) methods, chance-constrained programming (CCP) methods, and data-driven methods. However, under the premise of robustness, the operating schemes obtained by RO and DRO may be conservative and costly. To mitigate the conservatism of decision schemes, CCP is applied in EH-IHS to search for optimal solutions that satisfy chance constraints within an acceptable confidence level. However, both of these methods struggle to find an ideal trade-off between computational efficiency and system safety under uncertainty. CCP significantly reduces uncertainty, making it a better choice to handle uncertainty. Meanwhile, single-stage data-driven scheduling methods attempt to handle highly complex uncertainties using deep reinforcement learning (DRL) and safe reinforcement learning (SRL). However, they fail to incorporate uncertainty into the network training process, making it difficult for the neural network's scheduling strategy to guarantee system safety under uncertain environments. Furthermore, the two-stage approach improves the economics of system operation by utilizing flexible resources across multiple time scales to address complex uncertainties. While the two-stage approach mitigates the conservatism of uncertain scheduling by coordinating day-ahead and intraday scheduling, it still faces two key issues. First, the significant uncertainty in day-ahead forecasts leads to somewhat conservative day-ahead uncertain scheduling, which undoubtedly compresses the economic operating space for intraday rescheduling. Second, both day-ahead and intraday scheduling use specific distributions rather than true distributions to describe uncertainties. Pre-determined uncertainties may omit critical scenarios and cover redundant ones. Uncertainty scheduling schemes determined by RO or CCP may not guarantee system operational safety under extreme conditions. More importantly, if operators cannot monitor the system's future safety margin within four hours of executing day-ahead or intraday scheduling strategies, it may pose a safety risk to the power grid.
[0148] To address the modeling and solving problems of uncertain scheduling, considering the conflicting interests between economy, security, and computational burden, which can lead to a series of issues such as power flow imbalance, overload, high-cost operation, and scheduling delays, it is essential to establish an effective multi-level uncertain scheduling mechanism to balance economy, security, and computational efficiency. To address these issues, this invention proposes a scheduling optimization method for an integrated electric-hydrogen energy system. It constructs a multi-stage coordinated scheduling framework of "day-ahead deterministic scheduling - online safety monitoring - intraday flexible correction." First, the coordination between day-ahead deterministic scheduling and intraday uncertain scheduling can significantly improve economy by utilizing smaller intraday prediction errors. Second, the intraday safety monitoring network (pre-set monitoring network) assesses the future security of the system in advance, guiding intraday corrections and providing decision-making time. Finally, a CCP based on Monte Carlo simulation (MCS) is embedded internally, along with a day-ahead flexible correction network based on deep reinforcement learning (DRL). This network can learn about uncertainty by studying historical forecast error data, rather than making any assumptions about the uncertainty distribution, thus effectively balancing security and computational burden.
[0149] Specifically, please refer to Figure 2 To fully utilize EH-IES resources across multiple time scales and address the uncertainties of renewable energy, a multi-stage coordinated dispatch framework is proposed. This framework includes day-ahead deterministic dispatch, online safety monitoring, and intraday flexible correction. First, by solving the day-ahead dispatch model for the first stage, a day-ahead dispatch scheme satisfying deterministic safety constraints is determined. Based on the electro-hydrogen coupling mechanism, a day-ahead dispatch model minimizing total dispatch costs is established. Hydrogen energy systems, as flexible power loads with complex spatiotemporal constraints, can improve the flexibility of the power system and promote the integration of renewable energy. Since the uncertainty caused by renewable energy prediction errors is not considered, the predetermined dispatch scheme may exceed the safety boundary, causing power imbalance or overload. Therefore, the safety of EH-IES operation in the next 4 hours should be ensured. To monitor the safety of EH-IES operation in real time, an online safety monitoring method combining deep learning and MCS is proposed. If the safety margin of EH-IES in the next 4 hours is within the preset value, EH-IES will execute the day-ahead dispatch scheme, because the power error between the day-ahead dispatch scheme and the actual value can be balanced by automatic generation control (AGC) and the system's own resilience. Otherwise, EH-IES enters the third stage to correct the preset scheme. To effectively generate correction schemes within the next four hours, an intraday correction method based on DRL and a chance constraint model was established. A multi-level coordination and scheduling mechanism can coordinate day-ahead and intraday scheduling resources, improving the economic efficiency of EH-IES operation. The cooperation between the online safety monitoring network and the intraday correction network ensures the safety of EH-IES operation.
[0150] In summary, to balance the competing interests of economy, safety, and computational burden caused by the uncertainties of the Electric-Hydrogen Integrated Energy System (EH-IES), a multi-stage coordinated scheduling framework of "day-ahead deterministic scheduling - online safety monitoring - intraday flexible correction" is proposed. This framework fully leverages the flexibility of the hydrogen energy system and incorporates an intraday advance scheduling model, effectively balancing economy and safety by combining the advantages of data-driven and model-driven approaches. To monitor the future safety of EH-IES operation under uncertain conditions online, a monitoring network is trained using a combination of MCS and a convolutional neural network (CNN) with an attention mechanism. Data-driven monitoring methods are used to assess potential future safety risks and guide the system to re-formulate scheduling strategies to ensure safety. Considering uncertainty, correction schemes are determined. An opportunity constraint model based on MCS is introduced into the correction network through constrained projection and feasible sample learning methods. The network is then trained using a combination of multi-agent proximal policy optimization algorithms (MAPPO) and the aforementioned online safety monitoring network.
[0151] In this embodiment of the invention, a method for optimizing the scheduling of an integrated electric-hydrogen energy system is provided. When scheduling of the integrated electric-hydrogen energy system is required, the objective is to minimize the total scheduling cost of the integrated electric-hydrogen energy system, and day-ahead scheduling constraints are set to construct a day-ahead scheduling model. The day-ahead scheduling model is solved to generate a day-ahead scheduling scheme, and the integrated electric-hydrogen energy system is simulated and pre-run based on the day-ahead scheduling scheme to generate multi-energy coupling scheduling data of the integrated electric-hydrogen energy system. A preset monitoring network is used to monitor the integrated electric-hydrogen energy system based on the multi-energy coupling scheduling data to generate the average safety margin of the integrated electric-hydrogen energy system. The average safety margin is compared with a preset safety margin threshold. When the safety margin threshold is less than or equal to the preset safety margin threshold, the day-ahead scheduling is adjusted accordingly. The scheduling scheme serves as the target scheduling scheme for the integrated electric-hydrogen energy system. When the safety margin threshold exceeds a preset threshold, an intraday scheduling model is constructed and solved using a multi-agent learning algorithm to generate the target integrated electric-hydrogen energy system scheduling scheme. Based on the above scheme, a day-ahead scheduling model is constructed and solved with the goal of minimizing total cost. Subsequently, the average safety margin of the system is calculated based on the scheduling data. If it is lower than the threshold, the day-ahead scheme is directly adopted; otherwise, the intraday scheduling model is re-optimized using a multi-agent learning algorithm to generate the target integrated electric-hydrogen energy system scheduling scheme. This invention assesses the potential safety risks of the system through a preset monitoring network and guides the system to re-formulate the scheduling strategy, thereby improving the operational safety of the integrated electric-hydrogen energy system.
[0152] For better explanation, refer to Figure 3 The diagram illustrates the steps of training a preset monitoring network according to Embodiment 2 of the present invention. This process may include the following steps:
[0153] Step 301: Obtain multi-energy coupling scheduling data for model training.
[0154] Step 302: Input the multi-energy coupled scheduling data used for model training into the initial monitoring network to generate the safe operation probability of thermal power generating units, the safe operation probability of transmission lines, and the safe operation probability of electrolytic cells for model training.
[0155] Step 303: Substitute the safe operation probability of the thermal power generating unit, the safe operation probability of the transmission line, and the safe operation probability of the electrolytic cell used for model training into the preset loss model and take the derivative to determine the model gradient.
[0156] Step 304: Update the model parameters of the initial monitoring network using model gradients, determine the intermediate monitoring network, and count the number of model updates in real time.
[0157] Step 305: When the number of model updates reaches the preset update threshold, the intermediate monitoring network is used as the trained preset monitoring network.
[0158] It should be noted that Convolutional Neural Networks (CNNs) are used to extract the mapping relationship between key operational states and EH-IES safety margins from massive training data. MCS generates a large number of training samples to provide the training set. Finally, gradient descent is used to train the monitoring network.
[0159] Furthermore, the multi-energy coupled scheduling data used for model training is used to generate a large number of input-output training samples through MCS to train the safety monitoring network (initial monitoring network). The ultra-short-term (4h) historical forecast error dataset is first sampled by MCS to simulate the energy flow of EH (Energy Hub). Under a given system operating state, the safety margin of the system is obtained by calculating the number of times the system violates the chance constraint. In this way, a large amount of training data can be generated to truly reflect the impact of uncertain renewable energy on the safety margin.
[0160] Furthermore, using the training data, the monitoring network is trained using the gradient descent algorithm. The network's loss function (pre-defined loss model) is defined as:
[0161] ;
[0162] Where Y is the output of the preset monitoring network, i.e., the safety margin, including the safe operating probability of thermal power generating units in HPC. Safe operation probability of transmission lines and the probability of safe operation of the electrolytic cell Y' is the actual confidence level of the chance constraint under the corresponding input vector; This is the loss value corresponding to the preset loss function.
[0163] It is worth mentioning that if the number of model updates does not reach the preset update threshold, the intermediate monitoring network is used as the new initial monitoring network, and the process jumps to step 302 until the number of model updates reaches the preset update threshold. The intermediate monitoring network determined when the number of model updates reaches the preset update threshold is then used as the trained preset monitoring network.
[0164] In this embodiment of the invention, a monitoring network is trained by combining MCS and a convolutional neural network (CNN) with an attention mechanism. The data-driven monitoring method is used to assess the potential security risks of the system in the future and guide the system to reformulate the scheduling strategy to ensure security.
[0165] Please see Figure 4 , Figure 4 This is a structural block diagram of an integrated electric-hydrogen energy system scheduling and optimization device provided in Embodiment 3 of the present invention.
[0166] This invention provides a scheduling and optimization device for an integrated electric-hydrogen energy system, comprising:
[0167] The response module 401 is used to respond to scheduling requests, aiming to minimize the total scheduling cost of the integrated electric-hydrogen energy system, and sets day-ahead scheduling constraints to construct a day-ahead scheduling model.
[0168] The pre-run module 402 is used to solve the day-ahead scheduling model, generate the day-ahead scheduling scheme, and pre-run the integrated electric-hydrogen energy system based on the day-ahead scheduling scheme to generate multi-energy coupling scheduling data of the integrated electric-hydrogen energy system.
[0169] Monitoring module 403 is used to monitor the integrated electric-hydrogen energy system based on multi-energy coupling scheduling data using a preset monitoring network, and generate the average safety margin of the integrated electric-hydrogen energy system.
[0170] Comparison module 404 is used to compare the average safety margin with a preset safety margin threshold.
[0171] The day-ahead scheduling module 405 is used to use the day-ahead scheduling scheme as the target electric-hydrogen integrated energy system scheduling scheme when the safety margin threshold is less than or equal to the preset margin threshold.
[0172] The intraday scheduling module 406 is used to construct an intraday scheduling model when the safety margin threshold is greater than the preset margin threshold, and to solve the intraday scheduling model based on a multi-agent learning algorithm to generate a target electric-hydrogen integrated energy system scheduling scheme.
[0173] Furthermore, the pre-defined monitoring network includes an attention layer, multiple convolutional modules, and a fully connected layer; the monitoring module 403 is specifically used for:
[0174] Multi-energy coupled scheduling data is used as input to the attention layer, and the key operation state input vector is output.
[0175] Multiple convolutional modules are used to extract features from the key operation state input vector to generate key feature vectors;
[0176] The key feature vectors are input into the fully connected layer, and the safe operation probability of the thermal power generating unit, the safe operation probability of the transmission line, and the safe operation probability of the electrolyzer of the integrated electric-hydrogen energy system are output.
[0177] The average values of the safe operation probabilities of thermal power generating units, transmission lines, and electrolyzers are calculated to output the average safety margin of the integrated electric-hydrogen energy system.
[0178] Furthermore, the intraday scheduling module 406 is specifically used for:
[0179] With the goal of minimizing the total scheduling cost of the integrated electric-hydrogen energy system, and setting intraday scheduling constraints, an intraday scheduling model is constructed.
[0180] Transform the intraday scheduling model into a multi-agent Markov game model;
[0181] A multi-agent learning algorithm is used to solve the multi-agent Markov game model and generate an intraday scheduling scheme.
[0182] The intraday scheduling plan will be used as the target scheduling plan for the integrated electric-hydrogen energy system.
[0183] Furthermore, the objective function corresponding to the day-ahead scheduling model is as follows:
[0184] ;
[0185] Where T is the time resolution The number of time points in the day-ahead scheduling model (15 minutes); , and These are the generation cost at time t, the loss cost due to renewable energy reduction, and the operating cost of HPC, respectively.
[0186] Furthermore, the objective function corresponding to the intraday scheduling model is as follows:
[0187] ;
[0188] in, , and These are the generation cost at time point t, the loss cost due to renewable energy reduction, and the operating cost of HPC, respectively. This refers to the time point for scheduling on that day.
[0189] In one optional device embodiment, it further includes:
[0190] The first module is used to acquire multi-energy coupled scheduling data for model training;
[0191] The second module is used to input multi-energy coupled scheduling data for model training into the initial monitoring network to generate the safe operation probability of thermal power generating units, the safe operation probability of transmission lines, and the safe operation probability of electrolyzers for model training.
[0192] The third module is used to substitute the safe operation probability of thermal power generating units, the safe operation probability of transmission lines, and the safe operation probability of electrolyzers used for model training into the preset loss model and calculate the derivative to determine the model gradient.
[0193] The fourth module is used to update the model parameters of the initial monitoring network using model gradients, determine the intermediate monitoring network, and count the number of model updates in real time.
[0194] The fifth module is used to use the intermediate monitoring network as the pre-trained monitoring network when the number of model updates reaches a preset update threshold.
[0195] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0196] This invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program; when the computer program is executed by the processor, the processor performs the steps of the electric-hydrogen integrated energy system scheduling optimization method as described in any of the above embodiments.
[0197] This invention also provides a computer-readable storage medium storing a computer program / instructions thereon, which, when executed by a processor, implements the steps of the electric-hydrogen integrated energy system scheduling optimization method as described in any of the above embodiments.
[0198] This invention also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of the electric-hydrogen integrated energy system scheduling optimization method as described in any of the above embodiments.
[0199] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0200] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0201] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for scheduling and optimizing an integrated electric-hydrogen energy system, characterized in that, include: In response to dispatch requests, with the goal of minimizing the total dispatch cost of the integrated electric-hydrogen energy system, and setting day-ahead dispatch constraints, a day-ahead dispatch model is constructed. Solve the day-ahead scheduling model to generate a day-ahead scheduling scheme, and pre-run the integrated electric-hydrogen energy system based on the day-ahead scheduling scheme to generate multi-energy coupling scheduling data of the integrated electric-hydrogen energy system. A preset monitoring network is used to monitor the integrated electric-hydrogen energy system based on the multi-energy coupling scheduling data, and the average safety margin of the integrated electric-hydrogen energy system is generated. Compare the average safety margin with the preset safety margin threshold; When the safety margin threshold is less than or equal to the preset margin threshold, the day-ahead scheduling scheme will be used as the target electric-hydrogen integrated energy system scheduling scheme. When the safety margin threshold is greater than the preset margin threshold, an intraday scheduling model is constructed, and the intraday scheduling model is solved based on a multi-agent learning algorithm to generate a target electric-hydrogen integrated energy system scheduling scheme.
2. The scheduling optimization method for an integrated electric-hydrogen energy system according to claim 1, characterized in that, The preset monitoring network includes an attention layer, multiple convolutional modules, and a fully connected layer; the monitoring of the integrated electric-hydrogen energy system based on the multi-energy coupling scheduling data using the preset monitoring network to generate the average safety margin of the integrated electric-hydrogen energy system includes: The multi-energy coupled scheduling data is used as the input to the attention layer, and the key operation state input vector is output. Multiple convolutional modules are used to extract features from the key operation state input vector to generate a key feature vector. The key feature vector is input into the fully connected layer, and the safe operation probability of the thermal power generating unit, the safe operation probability of the transmission line, and the safe operation probability of the electrolyzer of the integrated electric-hydrogen energy system are output. The average values of the safe operation probability of the thermal power generating unit, the safe operation probability of the transmission line, and the safe operation probability of the electrolyzer are calculated, and the average safety margin of the integrated electric-hydrogen energy system is output.
3. The scheduling optimization method for an integrated electric-hydrogen energy system according to claim 1, characterized in that, The process of constructing an intraday scheduling model and solving the intraday scheduling model based on a multi-agent learning algorithm to generate a target electric-hydrogen integrated energy system scheduling scheme includes: With the goal of minimizing the total scheduling cost of the integrated electric-hydrogen energy system, and setting intraday scheduling constraints, an intraday scheduling model is constructed. The intraday scheduling model is converted into a multi-agent Markov game model. The multi-agent learning algorithm is used to solve the multi-agent Markov game model to generate an intraday scheduling scheme. The intraday scheduling scheme is used as the target scheduling scheme for the integrated electric-hydrogen energy system.
4. The scheduling optimization method for an integrated electric-hydrogen energy system according to claim 1, characterized in that, The training process of the preset monitoring network is as follows: Acquire multi-energy coupled scheduling data for model training; The multi-energy coupled scheduling data used for model training is input into the initial monitoring network to generate the safe operation probability of thermal power generating units, the safe operation probability of transmission lines, and the safe operation probability of electrolytic cells for model training. Substitute the safe operation probability of the thermal power generating unit, the safe operation probability of the transmission line, and the safe operation probability of the electrolytic cell used for model training into the preset loss model and take the derivative to determine the model gradient. The model parameters of the initial monitoring network are updated using the model gradient to determine the intermediate monitoring network, and the number of model updates is counted in real time. When the number of model updates reaches a preset update threshold, the intermediate monitoring network is used as the trained preset monitoring network.
5. The scheduling optimization method for an integrated electric-hydrogen energy system according to claim 1, characterized in that, The objective function corresponding to the day-ahead scheduling model is as follows: ; Where T is the time resolution The number of time points in the day-ahead scheduling model (15 minutes); , and These are the generation cost at time t, the loss cost due to renewable energy reduction, and the operating cost of HPC, respectively.
6. The scheduling optimization method for an integrated electric-hydrogen energy system according to claim 1, characterized in that, The objective function corresponding to the intraday scheduling model is as follows: ; in, , and These are the generation cost at time point t, the loss cost due to renewable energy reduction, and the operating cost of HPC, respectively. This refers to the time point for scheduling on that day.
7. A scheduling and optimization device for an integrated electric-hydrogen energy system, characterized in that, include: The response module is used to respond to scheduling requests, aiming to minimize the total scheduling cost of the integrated electric-hydrogen energy system, and sets day-ahead scheduling constraints to construct a day-ahead scheduling model. The pre-run module is used to solve the day-ahead scheduling model, generate a day-ahead scheduling scheme, and pre-run the integrated electric-hydrogen energy system based on the day-ahead scheduling scheme to generate multi-energy coupling scheduling data of the integrated electric-hydrogen energy system. The monitoring module is used to monitor the integrated electric-hydrogen energy system using a preset monitoring network based on the multi-energy coupling scheduling data, and to generate the average safety margin of the integrated electric-hydrogen energy system. The comparison module is used to compare the average safety margin with a preset safety margin threshold. The day-ahead scheduling module is used to use the day-ahead scheduling scheme as the target electric-hydrogen integrated energy system scheduling scheme when the safety margin threshold is less than or equal to the preset margin threshold. The intraday scheduling module is used to construct an intraday scheduling model when the safety margin threshold is greater than the preset margin threshold, and to solve the intraday scheduling model based on a multi-agent learning algorithm to generate a target electric-hydrogen integrated energy system scheduling scheme.
8. A computer device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the scheduling optimization method for the integrated electric-hydrogen energy system as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed, it implements the scheduling optimization method for the integrated electric-hydrogen energy system as described in any one of claims 1-6.
10. A computer program product, characterized in that, The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, wherein when the program instructions are executed by a computer, the computer performs the scheduling optimization method for an integrated electric-hydrogen energy system as described in any one of claims 1-6.
