Comprehensive energy system scheduling method based on enhanced exploration backoff and clipping reinforcement learning
By adopting the enhanced exploration backoff clipping reinforcement learning method in the integrated energy system, improving the PPO algorithm, and combining the economic low-carbon objective function and Gaussian distribution action selection, the problem of insufficient constraints of the clipping function in the traditional method is solved, and a more stable Strategy updates and lower operating and pollution costs.
Patent Information
- Application Number
- CN202410949429.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-16
AI Technical Summary
In the existing comprehensive energy system scheduling methods, the tailoring function constraints of the proximal policy optimization algorithm are insufficient, causing the agent to easily fall into local optimality and the scheduling results are not ideal. Moreover, the traditional PPO algorithm is difficult to effectively constrain the probability ratio of the old and new policies when updating the policy. affect the convergence results.
Adopt a reinforcement learning method based on enhanced exploration, fallback and tailoring, combined with the economic low-carbon objective function, improve the PPO algorithm, describe the scheduling problem through Markov decision-making and neural networks, introduce Gaussian distribution action selection and generalized advantage estimation technology, and adaptive adjustment Clipping function boundaries to enhance exploration capabilities and policy update stability.
It significantly improves the convergence results of the agent, reduces the operating costs and pollution costs of the integrated energy system, enhances the low-carbon nature of the system, and effectively responds to fluctuations in renewable energy output and load.
Smart Images

Figure CN118485286B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of new energy technology, relates to the scheduling optimization of multiple energy sources, and specifically to a comprehensive energy system scheduling method based on enhanced exploration backoff clipping reinforcement learning. Background Art
[0002] The Integrated Energy System (IES) integrates and complements multiple energies such as renewable energy, energy storage and traditional energy through the optimized design of multi-energy systems, providing a new solution for optimizing energy system operation and reducing system energy consumption.
[0003] The optimization scheduling strategy of the integrated energy system relies heavily on the accuracy of renewable energy and load forecasts. In contrast, the Deep Reinforcement Learning (DRL) method does not require prediction or modeling of renewable energy and loads. The agent learns strategies by interacting with the environment and finds actions that can bring the maximum reward value, which is consistent with the goal of the IES scheduling problem. As an advanced reinforcement learning algorithm, the Proximal Policy Optimization (PPO) algorithm is more suitable for IES optimization scheduling problems. However, the PPO algorithm has deficiencies in the clipping function constraints, which affects the convergence results of the agent and is prone to falling into local optimality, resulting in unsatisfactory IES scheduling results. Summary of the invention
[0004] In view of the shortcomings of the existing technology, the present invention proposes an integrated energy system scheduling method based on enhanced exploration backoff and clipping reinforcement learning. On the theoretical basis of the deep reinforcement learning algorithm, the economic and low-carbon nature of the integrated energy system is comprehensively considered, and the pollution cost is added as the optimization target. The improved PPO algorithm is used to improve the accuracy of network updates, thereby improving the convergence results of the intelligent body and significantly reducing the operating cost and pollution cost of the integrated energy system.
[0005] The integrated energy system scheduling method based on enhanced exploration backoff and clipping reinforcement learning specifically includes the following steps:
[0006] Step 1: Based on the electricity price, gas price and the operating constraints of each unit in the integrated energy system, and considering the economic low-carbon nature, an objective function based on the combination of operating cost and carbon cost is constructed.
[0007] Step 2: Use Markov decision making to describe the low-carbon economic dispatch problem of the integrated energy system, build the Actor and Critic neural networks, initialize the network parameters, and use the maximum probability of the Gaussian distribution output by the Actor network as the action. , get reward value according to the environment and the state quantity at the next moment , store training samples to memory.
[0008] As a preference, when the number of training samples stored in the memory reaches a set threshold, n training samples are randomly sampled from the memory, and the advantage function value of each training sample is calculated respectively. :
[0009] A t = ∑ i = 0 ∞ ( c l ) i d t + i = ∑ i = 0 ∞ ( c l ) i [ r t + i + c V ( s t + i + 1 ) − V ( s t + i ) ] (1)
[0010] In the formula, , is the weight parameter, i represents the prediction time; is the output value of the Critic network at time t. Calculate the variance of the advantage function values of n training samples, remove training samples with variance greater than 0.8, and optimize the quality of training samples.
[0011] Step 3: Construct the loss function of the Actor network based on the proximal strategy optimization algorithm , network parameters for the Actor network To update:
[0012] L ( i 1 ) = E [ m i n ( ψ t ( i ) A t , c l i p F U ( ψ t ( i ) , 1 − e , 1 + e ) A t ) ] + α H ( π ( ⋅ | s t ) ) (2)
[0013] in, Represents expectations, represents the probability ratio of the new and old strategies, represents the improved clipping function, is the policy entropy The weight coefficient of:
[0014] (3)
[0015] H ( π ( ⋅ | s t ) ) = E [ − l o g ( p ( a t | s t ) ) ] (4)
[0016] in, is the cropping factor, Represents the advantage function value The discount factor, Represents absolute value. Represents in state Next select action probability.
[0017] Step 4: Construct the loss function of the Critic network , update the parameters of the Critic network by the difference between the advantage function value and the network output value :
[0018] L ( i 2 ) = 1 2 E [ ( V ( s t ) − A t ) 2 ] (5)
[0019] in, Represents the output value of the Critic network at time t.
[0020] Step 5: Repeat steps 3 and 4, and continuously update the parameters of the Actor network and the Critic network to enable the agent to learn the optimal decision. When the number of training rounds reaches the preset number, save the model. Use the saved model to optimize the scheduling of the integrated energy system, and guide the output of different subsystems in the integrated energy system according to the actions output by the model, so as to maximize the environmental protection of the system while ensuring the economy of the system.
[0021] The present invention has the following beneficial effects:
[0022] 1. A new action selection strategy method is proposed. This method selects the highest probability value of the Gaussian distribution as the action, reducing meaningless exploration and thus flexibly adjusting each unit, which effectively solves the problem of slow convergence during training.
[0023] 2. A backoff clipping PPO algorithm is proposed, which adaptively adjusts the boundary value of the clipping function in the Actor network and measures the boundary backoff size according to the discount value of the advantage function. This effectively solves the problem that the probability ratio of the new and old strategies cannot be well constrained within the clipping range when the traditional PPO algorithm strategy is updated.
[0024] 3. Use generalized advantage estimation technology to represent the advantage function, and process the samples in the algorithm training process to filter out data that are too far away from other samples, which effectively improves sampling efficiency and improves the stability of strategy updates. Add policy entropy to represent the uncertainty of the strategy, thereby enhancing the exploration ability. When applied to the optimization and scheduling of integrated energy systems, it can effectively cope with the fluctuations in renewable energy output and load, and at the same time effectively reduce economic costs and increase the low-carbon nature of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of a model for enhanced exploration-backoff tailoring reinforcement learning;
[0026] Figure 2 This is how the model reward value changes with the training rounds in the embodiment. DETAILED DESCRIPTION
[0027] The following is a further explanation of the integrated energy system scheduling method based on enhanced exploration backoff clipping reinforcement learning in conjunction with the accompanying drawings; this embodiment sets the scheduling time step The optimization period is 60 minutes, that is, the number of optimization cycles per day is 24. The specific steps are as follows:
[0028] Step 1: Build a comprehensive energy system model, including photovoltaic generators (PV), combined heat and power (CHP), electric boilers (EB), gas boilers (EB), electric energy storage (ESS), and thermal energy storage (TSS), and establish the following objective function:
[0029] (1)
[0030] (2)
[0031] (3)
[0032] in, is the weight factor between economic cost and carbon cost, which is calculated by information entropy theory in order to reasonably establish the trade-off relationship between different costs. T is the total number of segments in the scheduling cycle. Indicates that IES (Integrated Energy System) is in the The economic cost of running a time step is , , , , They respectively represent the cost of purchasing electricity from the main grid, the cost of purchasing gas from the gas grid, the start-up and shutdown costs of CHP, and the operating costs of the energy storage unit during period t. Indicates that IES The pollution cost per time step is represents the carbon price at the current moment, represents the electric carbon factor at the current moment, This is electricity consumption excluding renewable energy. Represents the average carbon density of natural gas at the current moment. and is the amount of natural gas consumed by CHP and GB (gas boiler).
[0033] (4)
[0034] (5)
[0035] (6)
[0036] (7)
[0037] (8)
[0038] in, Represents the amount of electricity purchased from the grid at time t. represents the electricity price at time t. is the price per unit calorific value of natural gas. , is the heat production of GB and CHP at time t. , is the conversion efficiency of GB and CHP at time t. and are binary variables of the CHP unit operating status in time periods t-1 and t, 0 means shutdown. 1 means working; The cost of a single startup or shutdown of a CHP unit. and are binary variables of ESS charging and discharging status during period t, 1 means charging, 0 means not charging. 1 means discharging, 0 means not discharging. is the price per unit calorific value of natural gas.
[0039] Step 2: Figure 1 As shown in the figure, a continuous-time finite Markov decision is used to describe the low-carbon economic dispatch problem of the integrated energy system, and the state space, action space and reward function are defined.
[0040] Use energy to create power 、System electrical load requirements 、The system's heat load requirements , electricity price , time t, system power storage 、System heat storage State space as an agent :
[0041] (9)
[0042] Power generation using CHP 、SOC storage capacity 、SOT heat storage , EB heat , GB heat As the action space of the agent :
[0043] (10)
[0044] award Represents the agent in state Execute an action Immediate rewards:
[0045] (11)
[0046] (12)
[0047] (13)
[0048] in, , Represent the economic cost and environmental cost of the integrated energy system, respectively.
[0049] Build Actor and Critic neural networks and initialize state quantities , Time period , Actor network parameters , Critic network parameters and the maximum number of rounds , set the action selection strategy for:
[0050] (14)
[0051] in, Represents the probability output of the action.
[0052] Step 3: Get reward value based on environmental feedback , and output the state quantity at the next moment , store training samples To the memory bank, when the number of training samples stored in the memory bank reaches the set threshold, n training samples are randomly sampled from the memory bank, and the advantage function values of the n training samples are calculated respectively. :
[0053] A t = ∑ i = 0 ∞ ( c l ) i d t + i = ∑ i = 0 ∞ ( c l ) i [ r t + i + c V ( s t + i + 1 ) − V ( s t + i ) ] (15)
[0054] in, , is the weight parameter; is the output value of the Critic network at time t. Calculate the variance of the advantage function values of n training samples, comprehensively compare and eliminate the variance standard, and the variance standard value of 0.8 is the best for training effect. Eliminate training samples with variance greater than 0.8.
[0055] Step 4: Minimize the loss function by gradient descent Network parameters for Actor networks Update using the loss function Network parameters of the Critic network Update the parameters.
[0056] Step 6: Repeat step 4 to update the parameters of the Actor network and the Critic network. Figure 2 As shown, until the objective function value established in step 1 is minimized, that is, the agent learns the optimal decision, and the model is saved.
[0057] Step 7: Apply the saved model to the optimization scheduling of the integrated energy system. In order to verify the effectiveness of this method, this method and the traditional PPO algorithm are used to optimize the scheduling of the integrated energy system for 10 consecutive days. The weather involved includes sunny and cloudy days. The reduction in operating cost and pollution cost of this method compared with the traditional PPO algorithm is compared. The results are shown in the following table:
[0058]
[0059] It can be seen from the table data that compared with the traditional PPO algorithm, this application can effectively reduce the operating cost and pollution cost of the integrated energy system under different weather conditions, and the effect is significant.
Claims
1. Based on the integrated energy system scheduling method of enhanced exploration backoff clipping reinforcement learning, the integrated energy system model is constructed, the Markov decision is used to describe the low-carbon economic scheduling problem of the integrated energy system, the Actor and Critic neural networks are built, and the network parameters are initialized. The characteristics are: The following steps are also included: Step 1: According to the operating costs and constraints of the integrated energy system, an objective function based on the combination of operating costs and carbon costs is constructed; Step 2: Use Markov decision making to describe the low-carbon economic dispatch problem of the integrated energy system, build a neural network and initialize it, and use the energy output P PV (t), system electrical load demand P Load (t), system heat load demand H Load (t), electricity price c Grid (t), time t, system power storage SOC(t), system heat storage SOT(t) as the state space s of the intelligent agent t : s t ={P PV (t),P Load (t),H Load (t),c Grid (t),t,SOC(t),SOT(t)} (1) Power generation capacity P using CHP CHP (t), SOC storage capacity P ESS (t), SOT heat storage H TSS (t), EB calorific value H EB (t), GB calorific value H GB (t) is the action space a of the agent t : a t ={P CHP (t),P ESS (t),H TSS (t),H EB (t),H GB (t)} (2) Set in state s t Next, perform action a t Immediate return r t for: r t =w1r t,1 +w2r t,2 (3) Among them, r t,1 、r t,2 represent the economic and environmental costs of the integrated energy system, respectively; The maximum probability of the Gaussian distribution output by the Actor network is taken as action a t , store training samples (s t ,a t ,r t ,s t+1 ); Step 3: Establish loss functions L(θ1) and L(θ2) to update the parameters of the Actor network and Critic network respectively: L(θ1)=E[min(ψ t (i)A t ,clip FU (ψ t (θ),1-ε,1+ε)A t )]+αH(π(·|s t )) (4) Where E represents the expectation, ψ t (θ) represents the probability ratio of the new and old strategies, V(s t ) represents the output value of the Critic network at time t; A t represents the advantage function, clip FU represents the improved clipping function, α is the policy entropy H(π(·|s t ))'s weight coefficient: H(π(·|s t ))E[-log(p(a t |s t ))] (8) Among them, γ and λ are weight parameters, i represents the prediction time; V(s t ) is the output value of the Critic network at time t, ε is the clipping coefficient, and β represents the advantage function A t The discount factor, abs() represents the absolute value; p(a t |s t ) represents the state s t Next select action a t probability; Step 4, repeat step 3, when the network output makes the objective function value the lowest, save the network parameters; use the saved network to optimize the scheduling of the integrated energy system, and guide the output of different subsystems in the integrated energy system according to the output action.
2. The integrated energy system scheduling method based on enhanced exploration backoff and clipping reinforcement learning as claimed in claim 1, characterized in that: For the comprehensive energy system including photovoltaic generators, cogeneration units, electric boilers, gas boilers, electric energy storage and thermal energy storage, the following objective function is established: F=min(w1C o (t)+w2C p (t)) (9) C p (t)=λ c (F(t)P(t)+F G (G CHP (t)+G GB (t))) (11) Among them, w1 and w2 are economic costs C o (t) and pollution cost C p (t); T is the total number of segments in the scheduling cycle; C E (t), C G (t), C CHP (t), C ESS (t), C GB (t) represents the cost of purchasing electricity from the main grid, the cost of purchasing gas from the gas grid, the start-stop cost of CHP, and the operating cost of the energy storage unit in the period t, respectively. c represents the carbon price at the current moment, F(t) represents the electricity carbon factor at the current moment, and P(t) is the electricity consumption excluding renewable energy; F G Represents the average carbon density of natural gas at the current moment; G CHP (t) and G GB (t) is the amount of natural gas consumed by CHP and GB.
3. The integrated energy system scheduling method based on enhanced exploration backoff and clipping reinforcement learning as claimed in claim 2, characterized in that: The weight factors w1 and w2 are calculated by information entropy theory.
4. The integrated energy system scheduling method based on enhanced exploration backoff and clipping reinforcement learning as claimed in claim 1, characterized in that: When the number of training samples stored in the memory bank reaches the set threshold, n training samples are randomly sampled from the memory bank, the advantage function values of the n training samples are calculated respectively, and the deviated samples are eliminated according to the variance of the advantage function value.
5. The integrated energy system scheduling method based on enhanced exploration backoff and clipping reinforcement learning as claimed in claim 4, characterized in that: Eliminate training samples with variance greater than 0.
8.
6. The integrated energy system scheduling method based on enhanced exploration backoff and clipping reinforcement learning as claimed in claim 1, characterized in that: The parameters of the Actor network are updated by minimizing the loss function L(θ1) through the gradient descent method.
