A zero-carbon park scheduling method and system based on behavioral cloning reinforcement learning
Through the collaborative operation of the behavioral cloning TD3 reinforcement learning algorithm and the hydrogen-doped gas unit containing electrolyzers and carbon capture, combined with a variety of flexible resources, the distribution offset problem of the TD3 algorithm in complex energy systems has been solved, and the comprehensive performance of the zero-carbon park has been improved. The dispatching accuracy and stability of the energy system achieve a more efficient low-carbon economy.
Patent Information
- Application Number
- CN202410402010.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-03
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-04-03
AI Technical Summary
Existing zero-carbon park integrated energy system scheduling algorithms, especially the TD3 algorithm, have distribution offset problems, which lead to a decrease in training accuracy and stability, and cannot effectively solve the scheduling needs of complex integrated energy systems.
The behavioral cloning TD3 reinforcement learning algorithm is used, by adding a weighted behavioral cloning loss term in the policy update and normalizing the state quantities, combined with the coordinated operation of the hydrogen-doped gas unit containing electrolyzers and carbon capture, and considering a variety of flexibility resources to build a comprehensive energy system dispatch model for zero-carbon parks.
It improves the energy conversion rate and low-carbon nature of the comprehensive energy system in the zero-carbon park, enhances the system's online real-time decision-making stability and scheduling accuracy, effectively copes with source-load uncertainty, and reduces carbon emissions and operating costs.
Smart Images

Figure CN117993693B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of integrated energy system control, and in particular relates to a zero-carbon park scheduling method and system based on behavior cloning reinforcement learning. Background Art
[0002] An integrated energy system is an energy system that can achieve high energy utilization and high clean energy consumption. Therefore, establishing a zero-carbon park integrated energy system (IES) is an important measure to help achieve carbon peak and carbon reduction goals.
[0003] At present, some domestic and foreign scholars have conducted research on the optimal scheduling of zero-carbon park integrated energy systems. Most of the studies consider the coordinated operation of power-to-gas (P2G) - gas turbines - carbon capture to reduce the carbon emissions of the park's integrated energy system and absorb the abandoned wind and solar power in the park. However, the coordinated operation of P2G-gas turbines-carbon capture ignores the power-to-hydrogen process in P2G, which has a higher energy conversion rate than methanation. In addition, existing research on carbon reduction in park integrated energy systems only considers flexible resources on the energy storage side or the energy supply side to improve the system's wind and solar absorption rate and low carbon nature, but does not consider the carbon reduction potential of multiple flexible resources on the energy consumption side, energy supply side, and energy storage side in the park's IES.
[0004] In recent years, reinforcement learning, as a method that can efficiently and quickly handle sequential decision-making problems, has been widely used in integrated energy systems with complex models. For integrated energy systems with complex models, offline training can be performed through historical data, and the trained models can be optimized and scheduled online. At present, some reinforcement learning has been applied in this field. Some studies have used deep Q learning algorithms to achieve optimal scheduling of electric and thermal integrated energy systems and load frequency control problems of isolated microgrids, but they can only handle discrete action spaces. For complex integrated energy systems, dimensionality explosion is prone to occur, resulting in a decrease in the accuracy of training results; therefore, more and more scholars have adopted reinforcement learning algorithms with continuous decision-making capabilities to apply to integrated energy system scheduling. Some studies have achieved dynamic economic scheduling of integrated energy systems through the deep deterministic policy gradient (DDPG) algorithm, but as the integrated energy system becomes more and more complex, the DDPG algorithm with problems such as over-estimation of state-action function value (Q function value), unstable policy update, and insufficient exploration can no longer meet the requirements. Therefore, some scholars have adopted the twin delayed DDPG (TD3) algorithm with dual Q functions and target policy smoothing for low-carbon economic scheduling of integrated energy systems. However, there are still some problems with the TD3 algorithm. It fails to effectively solve the distribution shift problem during training, resulting in a decrease in training accuracy and stability. Summary of the invention
[0005] In order to overcome the above shortcomings, the present invention proposes a zero-carbon park scheduling method and system based on behavioral cloning reinforcement learning. First, on the energy supply side, the coordinated operation of the electrolyzer and the hydrogen-doped gas turbine (HGT) and hydrogen-doped gas boiler (HGB) with carbon capture is considered, and a variety of flexible resources, including electric energy storage, electric vehicles, and electric / heat / cold flexible loads, are comprehensively considered to fully mobilize the carbon reduction potential of the park's comprehensive energy system and improve the energy conversion rate and low-carbon nature of the zero-carbon park's comprehensive energy system; then, in order to solve the distribution offset problem of the TD3 algorithm, the behavioral cloning TD3 algorithm is adopted. The algorithm considers the weighted behavioral cloning loss term in the strategy update to avoid distribution problems, and improves the stability of training by normalizing the state quantity; finally, the online real-time decision-making of the zero-carbon park's comprehensive energy system is realized by considering the behavioral cloning TD3 algorithm.
[0006] The present invention is achieved through the following technical solutions: a zero-carbon park scheduling method based on behavioral cloning reinforcement learning, which adopts a coordinated operation unit of a hydrogen-blended gas unit containing an electrolyzer and carbon capture in the park's comprehensive energy system, and considers the orderly charging and discharging strategy of batteries and electric vehicles, and the comprehensive demand response measures for heating, cooling and electricity, while considering a high proportion of new energy power generation, thereby constructing a zero-carbon park comprehensive energy system scheduling model that considers multiple types of flexible resources; The behavioral cloning TD3 reinforcement learning algorithm is used to perform offline training and online optimization on the zero-carbon park comprehensive energy system scheduling model. The behavioral cloning TD3 reinforcement learning algorithm is based on the strategy update of the TD3 algorithm and adds a weighted behavioral cloning loss term :
[0007] π = arg max π ( s t , a t ) ∼ D [ l Q ( s t , π ( s t ) ) − ( π ( s t ) − a t ) 2 ] ;
[0008] in, For strategy, Express expectations, For the experience pool, For the state quantity The strategy of the agent under is a hyperparameter, , They are The state quantity and action quantity of the time period, is the Q function of the neural network in the state action pair The Q value below.
[0009] Further optimization, the behavior cloning TD3 reinforcement learning algorithm update process is as follows:
[0010] Step 1. Initialize two Q function neural network parameters , ; Two target Q function neural network parameters , ; Strategy neural network parameters ; Target strategy neural network parameters ;
[0011] Step 2. Initialize the state quantity from the state space , let time period t=0, number of training times k=0;
[0012] Step 3. Sample action volume from policy noise ;
[0013] Step 4. Update the state and reward value by passing the given action into the environment, and Stored in the experience pool; They are Time period state quantity, is the reward value during period t;
[0014] Step 5. If the experience sample size is less than the set maximum capacity, go to step 3, otherwise randomly sample from the experience pool ;
[0015] Step 6. Change the state Input the policy neural network to get Action volume per period ;
[0016] Step 7. Normalize the state quantity to obtain , After normalization, Time period state quantity and Time period state quantity;
[0017] Step 8. Input To the agent to update the network parameters, update the two Q function neural network parameters , , and then update the two target Q function neural network parameters , and policy neural network parameters , target strategy neural network ;
[0018] Step 9. If the last time section has not been reached, enter the next time section, set t=t+1, and go to step 3;
[0019] Step 10. If the training has reached the maximum number of training times K, the training is terminated, otherwise return to step 2 and enter the next round of training.
[0020] Further preferably, the state quantity is normalized as follows:
[0021] ;
[0022] Where: is the normalized state quantity; is the original state quantity; , Mean and standard deviation in the state data set; is the normalization constant.
[0023] Further optimization, the two Q function neural network parameters , By minimizing the Bellman residual Method update:
[0024] J Q ( oh i ) i ∈ { 1 , 2 } = ( s * t , a t , s * t + 1 )~ D , a t + 1 ~ π i [ 1 2 ( Q LB i ( s * t , a t ) − r ( s * t , a t )) − c ( m i n ( Q ⌣ L B 1 ( s * t +1 , a t + 1 ) , Q ⌣ L B 2 ( s * t +1 , a t + 1 ) ) 2 ) ] ;
[0025] Where: is the i-th Q function neural network parameter, Express expectations, and are the Q values estimated by the first target Q function neural network and the second target Q function neural network, The Q value estimated by the i-th Q function neural network is: is the policy neural network parameter The strategy obtained below, State-action pair The reward value below.
[0026] Further optimization, the i-th target Q function neural network parameter Update via:
[0027] ;
[0028] in is the soft update coefficient.
[0029] Further preferably, the function is minimized by gradient descent Implementing policy neural network parameters Update:
[0030] J π ( i ) = ( s * t , a * t ) ∼ D [ l Q ( s * t , π i ( s * t ) ) − ( π i ( s * t ) − a t ) 2 ] ;
[0031] in, Represents the agent looking for a policy neural network parameter The optimal strategy under , is the Q function of the neural network in the state action pair The Q value under
[0032] Target policy neural network parameters The update method is as follows:
[0033] .
[0034] Further optimization, the process of offline training and online optimization of the zero-carbon park integrated energy system scheduling model using the behavior cloning TD3 reinforcement learning algorithm is as follows:
[0035] Input the historical data set into the reinforcement learning environment and initialize the parameters of each reinforcement learning network;
[0036] Conduct offline scheduling training, obtain the state quantity of this period from the zero-carbon park comprehensive energy system scheduling model, and perform normalization processing;
[0037] Input the normalized state quantity into the agent;
[0038] The agent gives the action amount according to the input state;
[0039] The zero-carbon park integrated energy system scheduling model updates the status of the next period based on the amount of action;
[0040] When the set number of training times is reached, the trained zero-carbon park integrated energy system scheduling model is saved;
[0041] The real-time data is input into the trained zero-carbon park comprehensive energy system scheduling model. In the online scheduling, the prediction system is used to predict the latest prediction information of time period t and the state quantity of the output of each unit at this time. The state quantity is input into the trained zero-carbon park comprehensive energy system scheduling model. At this time, the zero-carbon park comprehensive energy system scheduling model will maximize the reward based on the input state quantity to obtain the optimal scheduling plan.
[0042] Further preferably, the energy consumption and output mathematical model of the coordinated operation unit of the hydrogen-blended gas unit containing an electrolyzer and carbon capture is as follows:
[0043] ;
[0044] Where: , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. Total energy consumption during the period; , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. Natural gas consumed during the period; , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. The amount of hydrogen consumed during the period; For carbon capture Total energy consumption during the period; , Carbon capture Operational energy consumption and fixed energy consumption during the period; , Hydrogen gas turbine The electrical and thermal outputs during the time period; For hydrogen-blended gas boiler Thermal output during the period; For electrolyzer Electricity consumption during the time period; For electrolyzer The hydrogen energy provided during the period; For wind power and photovoltaic The electrical power supplied to the electrolyzer during the period; is the hydrogen production efficiency of the electrolyzer; , They are the electrical efficiency and thermal efficiency of the hydrogen-blended gas turbine respectively; is the thermal efficiency of the hydrogen-blended gas boiler.
[0045] Further preferably, the output strategy mathematical model of the coordinated operation unit of the hydrogen-blended gas unit containing an electrolyzer and carbon capture is as follows:
[0046] ;
[0047] Where: For wind power and photovoltaic Energy consumption for carbon capture provided during the time period; Hydrogen gas turbine Energy consumption for carbon capture provided during the time period; The total amount of CO2 processed during the carbon capture period; Energy consumption per unit of CO2 for carbon capture treatment; for Wind power grid-connected power in the time period; for Total wind and solar power output during the period; for Wind power output during the period; for Photovoltaic output during the time period; for The online power of hydrogen-blended gas turbines during the period.
[0048] Further preferably, the mathematical model of the amount of CO2 captured by carbon capture is as follows:
[0049] ;
[0050] Where: , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. Carbon emissions during the period; Carbon efficiency for carbon capture; For carbon capture Smoke diversion ratio of the time period; , are the carbon emission coefficients of hydrogen-blended gas turbines and hydrogen-blended gas boilers respectively.
[0051] Further preferably, the mathematical model of the hydrogen blending link of the coordinated operation unit of the hydrogen blending gas unit containing an electrolyzer and carbon capture is as follows:
[0052] ;
[0053] Where: , They are Natural gas consumption before and after hydrogen blending in the time period; for The hydrogen power consumed by hydrogen blending during the period; for Hydrogen blending ratio during each period.
[0054] The present invention also provides a zero-carbon park scheduling system based on behavioral cloning reinforcement learning, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned zero-carbon park scheduling method based on behavioral cloning reinforcement learning.
[0055] The present invention has the following advantages:
[0056] The coordinated operation units of hydrogen-doped gas turbines (HGT) and hydrogen-doped gas boilers (HGB) with electrolyzers and carbon capture greatly improve the park's comprehensive energy system's ability to absorb a high proportion of new energy, greatly reduce the carbon emissions of fossil energy equipment consumed by the park's comprehensive energy system, and make the park's comprehensive energy system more economical.
[0057] The park's comprehensive energy system, which takes into account multiple types of flexible resources such as batteries, electric vehicles and comprehensive demand response, can greatly enhance the flexible regulation capability, fully tap the emission reduction potential of flexible resources on the energy consumption side, energy supply side and energy storage side of the park's comprehensive energy system, and provide an implementation path for the park's low-carbon transformation.
[0058] The behavioral cloning TD3 reinforcement learning algorithm proposed in this invention can effectively improve the low-carbon economy of the zero-carbon park integrated energy system. Compared with other swarm intelligence algorithms and TD3 algorithms, the behavioral cloning TD3 reinforcement learning algorithm can effectively deal with the additional costs and carbon emissions caused by source-load uncertainty, and is faster and more accurate for the given scheduling plan. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 This is a schematic diagram of the architecture of the zero-carbon park integrated energy system scheduling model considering multiple types of flexible resources.
[0060] Figure 2 It is a schematic diagram of the coordinated operation unit of a hydrogen-blended gas-fired unit containing an electrolyzer and carbon capture.
[0061] Figure 3 This is the update flowchart of the TD3 reinforcement learning algorithm considering behavior cloning.
[0062] Figure 4 It is a flowchart for offline training and online optimization of the zero-carbon park integrated energy system scheduling model. DETAILED DESCRIPTION
[0063] The present invention is further explained in detail below with reference to the accompanying drawings and embodiments.
[0064] A zero-carbon park scheduling method based on behavioral cloning reinforcement learning is proposed. In the park's comprehensive energy system, a hydrogen-blended gas unit with an electrolyzer and carbon capture is used in a coordinated operation unit. The orderly charging and discharging strategy of batteries and electric vehicles, and the comprehensive demand response measures for cooling, heating and electricity are considered. At the same time, a high proportion of new energy power generation is considered, thereby constructing a zero-carbon park comprehensive energy system scheduling model that considers multiple types of flexible resources. In order to cope with the source-load uncertainty brought by a high proportion of new energy to the park's comprehensive energy system and the distribution offset problem of the existing reinforcement learning algorithm, the behavioral cloning TD3 reinforcement learning algorithm is used to perform offline training and online optimization on the zero-carbon park comprehensive energy system scheduling model.
[0065] like Figure 1 As shown in the figure, the comprehensive energy system scheduling model of the zero-carbon park considering multiple types of flexible resources includes: the energy supply side includes the upper power grid, natural gas source, wind power and photovoltaic; the energy conversion equipment includes power-consuming equipment, gas-consuming equipment, heat-consuming equipment and energy storage equipment, the power-consuming equipment includes electric boilers (EB), electrolyzers (EL), electric refrigeration (EC) and EV charging stations, the gas-consuming equipment includes hydrogen-blended gas turbines (HGT) and hydrogen-blended gas boilers (HGB), the heat-consuming equipment is absorption refrigeration (AC), and the energy storage equipment is a battery; the load side includes electric load, heat load and cooling load, and participates in comprehensive demand response; it also includes carbon capture.
[0066] The carbon capture, hydrogen gas turbine (HGT), hydrogen gas boiler (HGB), and electrolyzer are aggregated into a coordinated operation unit of hydrogen gas unit containing electrolyzer and carbon capture, such as Figure 2As shown. The electrolyzer converts wind and solar power into hydrogen energy, which is directly added to the gas supply pipeline through pipelines, reducing the amount of natural gas consumed by hydrogen-doped gas turbines (HGT) and hydrogen-doped gas boilers (HGB), thereby reducing the carbon emissions of the park's comprehensive energy system. In addition, carbon capture can further reduce the carbon emissions of hydrogen-doped gas turbines (HGT) and hydrogen-doped gas boilers (HGB).
[0067] In the coordinated operation unit of hydrogen-blended gas units containing electrolyzers and carbon capture, the electrolyzer consumes electricity to provide hydrogen energy, while the hydrogen-blended gas turbine and hydrogen-blended gas boiler mainly consume natural gas or hydrogen-blended natural gas to provide electric-thermal power for the zero-carbon park comprehensive energy system. Among them, the total energy consumption of carbon capture is mainly the electricity consumption of the regeneration tower and the compression tower, and its energy consumption is mainly provided by hydrogen-blended gas turbines, wind power and photovoltaics. The energy consumption and output mathematical model of the coordinated operation unit of hydrogen-blended gas units containing electrolyzers and carbon capture is as follows:
[0068] (1);
[0069] Where: , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. Total energy consumption during the period; , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. Natural gas consumed during the period; , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. The amount of hydrogen consumed during the period; For carbon capture Total energy consumption during the period; , Carbon capture Operational energy consumption and fixed energy consumption during the period; , Hydrogen gas turbine The electrical and thermal outputs during the time period; For hydrogen-blended gas boiler Thermal output during the period; For electrolyzer Electricity consumption during the time period; For electrolyzer The hydrogen energy provided during the period; For wind power and photovoltaic The electrical power supplied to the electrolyzer during the period; is the hydrogen production efficiency of the electrolyzer; , They are the electrical efficiency and thermal efficiency of the hydrogen-blended gas turbine respectively; is the thermal efficiency of the hydrogen-blended gas boiler.
[0070] The output strategy of the coordinated operation unit of the hydrogen-blended gas turbine with electrolyzer and carbon capture is to supply part of the wind power, photovoltaic and hydrogen-blended gas turbine output power to carbon capture, and the other part of the power is input into the park's comprehensive energy system. The additional wind and solar curtailment will be absorbed by the electrolyzer. The specific mathematical model is as follows:
[0071] (2);
[0072] Where: For wind power and photovoltaic Energy consumption for carbon capture provided during the time period; Hydrogen gas turbine Energy consumption for carbon capture provided during the time period; The total amount of CO2 processed during the carbon capture period; Energy consumption per unit of CO2 for carbon capture treatment; for Wind power grid-connected power in the time period; for Total wind and solar power output during the period; for Wind power output during the period; for Photovoltaic output during the time period; for The online power of hydrogen-blended gas turbines during the period.
[0073] The carbon emissions in the coordinated operation unit of hydrogen-blended gas turbines with electrolyzers and carbon capture are mainly virtual carbon emissions involved in the purchase of electricity from the upper power grid and carbon emissions from the consumption of natural gas by hydrogen-blended gas turbines. Virtual carbon emissions are mainly constrained by the ladder carbon trading mechanism, while hydrogen-blended gas turbines can directly capture carbon through carbon capture. The mathematical model of the specific amount of CO2 captured is as follows:
[0074] (3);
[0075] Where: , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. Carbon emissions during the period; Carbon efficiency for carbon capture; For carbon capture Smoke diversion ratio of the time period; , are the carbon emission coefficients of hydrogen-blended gas turbines and hydrogen-blended gas boilers respectively.
[0076] In addition, hydrogen blending can also reduce carbon emissions from hydrogen-doped gas turbines (HGT) and hydrogen-doped gas boilers (HGB) to a certain extent. In order to ensure the safe operation of the gas pipeline and the high WB value and calorific value of hydrogen-doped gas, the hydrogen blending ratio is selected. The mathematical model of hydrogen doping is as follows:
[0077] (4);
[0078] Where: , They are Natural gas consumption before and after hydrogen blending in the time period; for The hydrogen power consumed by hydrogen blending during the period; for Hydrogen blending ratio during each period.
[0079] The cooling load in the park is mainly supplied by absorption refrigeration that consumes heat energy to provide cooling and electric refrigeration that consumes electricity.
[0080] Absorption refrigeration uses the boiling point change of refrigerant under different pressures to convert heat energy into cold energy by absorbing low boiling point steam through high boiling point solution. The mathematical model is as follows:
[0081] (5);
[0082] In the formula, and Absorption Refrigeration The cooling output and thermal power consumed during the period; Energy conversion efficiency of absorption refrigeration.
[0083] Electric refrigeration realizes refrigeration by inputting a certain amount of high-quality energy into the compressor. The present invention uses electric refrigeration as a balancing unit of the refrigeration system, and its mathematical model is as follows:
[0084] (6);
[0085] In the formula, and Electric Refrigeration Cooling output and electrical power consumed during the period; Indicates the energy conversion efficiency of electric refrigeration.
[0086] Mathematical model of electric boiler:
[0087] (7);
[0088] Where: , Electric boiler Heat output and electricity consumption during the time period; is the heating efficiency of the electric boiler.
[0089] The battery can store energy flexibly and improve the flexibility of the system energy use. Therefore, it participates in the optimal scheduling of the park as an important flexible resource. The mathematical model of the battery is as follows:
[0090] (8);
[0091] Where: , Battery Time period and State of charge during the time period; , Battery The amount of electrical energy stored and released during the time period; , are the battery charge and discharge efficiency respectively; , Battery Maximum charging and discharging power during the time period; , Don't use batteries The upper and lower limits of storage capacity during a period of time.
[0092] The present invention further constrains the carbon emissions of the park through a stepped carbon trading model. The objects of carbon quota allocation are mainly hydrogen-blended gas turbines and hydrogen-blended gas boilers:
[0093] (9);
[0094] Where: is the net carbon emissions of the park, for The amount of carbon that the park participates in the carbon trading market during this period; for Total carbon emissions of the park during the period; for The amount of electricity purchased during the time period; is the carbon emission coefficient of purchased electricity; for The carbon quota of the park during the period; for The park's electricity carbon quota for the time period; for The park's heat production carbon quota for the period; Carbon quotas per unit of electricity supplied by hydrogen-blended gas turbines; Assign weights to the carbon emission rights of hydrogen-blended gas turbine heating power.
[0095] In order to more strictly constrain carbon emissions, the carbon trading cost is calculated by carbon emission range:
[0096] (10);
[0097] Where: for Period carbon trading costs; It is the base price for carbon trading; is the length of the carbon emission interval; is the compensation coefficient; is the growth rate of carbon trading price.
[0098] In order to further achieve the energy conservation and emission reduction goals of the park, the present invention considers the management and control of multiple flexible resources on the energy supply side, energy storage side, and energy consumption side to mobilize and realize the emission reduction potential of the park. Among them, with the development of electric vehicles, the impact of electric vehicles on the operation of the park's comprehensive energy system cannot be ignored in the park. Electric vehicles can be regarded as mobile energy storage devices participating in the flexible regulation of the system, but the disorderly charging of electric vehicles will greatly increase the cost of the park's comprehensive energy system. In addition, the park's cold, hot and electric loads can be partially used as flexible resources through comprehensive demand response measures.
[0099] The time it takes for an electric vehicle to arrive at an EV charging station can be approximated by a normal distribution. The probability density function of the electric vehicle arrival time is as follows:
[0100] f s ( t ) = 1 s ev,s 2 π exp [ − ( t ev − m ev,s ) 2 2 s ev,s 2 ] (11);
[0101] Where: The time it takes for an electric vehicle to arrive at an EV charging station; is the standard deviation of the fitted function of the electric vehicle arrival time; is the mean of the fitting function of the electric vehicle arrival time.
[0102] In order to fit the charging load of electric vehicles in the park, in addition to the arrival time of electric vehicles, it is also related to the daily mileage and charging time of electric vehicles. The daily mileage of electric vehicles also obeys the normal distribution, and the probability density function of the daily mileage of electric vehicles is:
[0103] f d ( x ) = 1 x s ev,d 2 π exp [ − ( In x − m ev,d ) 2 2 s ev,d 2 ] (12);
[0104] Where: is the mileage; yes The standard deviation of yes The mean of .
[0105] The charging time of an electric vehicle mainly depends on the state of charge of the electric vehicle before and after charging:
[0106] (13);
[0107] Where: , They are the state of charge of the battery before and after charging; Indicates the battery capacity of an electric vehicle; is the charging pile power; Charging efficiency of charging pile.
[0108] The actual state of charge after charging is related to the mileage and initial state of charge of the electric vehicle:
[0109] (14);
[0110] Where: The power consumption of electric vehicles per 100 kilometers. The driving range of an electric vehicle.
[0111] According to the above formula, the Monte Carlo method can be used to simulate the charging load under disordered charging state in the park.
[0112] Since the charging load of electric vehicles under disorderly charging is relatively concentrated, it is not conducive to the low-carbon economic operation of the system. Therefore, after electric vehicles are incorporated into the park, the charging and discharging of electric vehicle charging loads should be guided based on time-of-use electricity prices. Under the condition of meeting the charging needs of electric vehicles, electric vehicles can be used as a flexible resource to release part of the energy in the electric vehicle energy storage battery when the system power load or electricity price is peak, and input it into the park's comprehensive energy system through EV charging stations to alleviate the system's energy pressure. The mathematical model of electric vehicle orderly charging power constraint and electric vehicle battery constraint is as follows:
[0113] (15);
[0114] Where: For electric vehicles in the park Total charging power during the time period; For electric vehicles in the park Total discharge power of the time period; Charging stations for electric vehicles in the park The total charge and discharge power of the time period (greater than zero for discharging, less than zero for charging); , They are the maximum allowed charging and discharging powers of the electric vehicle charging station in the park, respectively; , In the park Time period and The period The state of charge of the battery of an electric vehicle; , Respectively The upper and lower limits of battery capacity for electric vehicles; and For the The charging and discharging power of an electric vehicle battery. is the number of charging piles in the park; , are the charging and discharging efficiencies of electric vehicles, respectively; L and M represent the number of charging vehicles and the number of discharging vehicles.
[0115] The demand response technology on the load side can make the load an important flexible resource. The comprehensive demand response considered in the present invention mainly includes price-based demand item response guided by time-of-use electricity prices and real incentive-based demand response with incentive compensation.
[0116] Price-based demand response mainly guides the user's transferable load. Due to the special reason that hot and cold loads have a delay, they are not suitable for participating in this response. Therefore, the model of electric load demand response is as follows:
[0117] (16);
[0118] Where: , are the total loads in the dispatch period before and after demand response, respectively; is the total transferable load change; , They are The change in load and electricity price that can be transferred during the time period, Indicates the total time; Respectively represent the change in the transferable load in the 1st, 2nd, ..., mth time period, They represent the load in the 1st, 2nd, …, mth time period before the implementation of demand response, Respectively represent the change in electricity price in the 1st, 2nd, ..., mth time period, They represent the electricity prices in the 1st, 2nd, …, mth periods before the implementation of demand response; is the electricity price elasticity coefficient matrix; Indicates transpose.
[0119] Incentive demand response mainly means that IES managers adopt subsidy incentive policies for users when the system load is at its peak, encouraging users to reduce or interrupt part of the load during this period.
[0120] In the park's integrated energy system, heat energy is mainly supplied to users through return pipes, and the heat load supplied to users has a delay. Therefore, the thermal inertia of the heating system should be considered when considering the heating load. When the actual heating temperature is within a certain range, the user's thermal demand can be met. Therefore, under the premise of ensuring a certain degree of user comfort, after considering the user's thermal inertia, the heating load model is as follows:
[0121] (17);
[0122] Where: for Heating load of the park's integrated energy system during each period; for Thermal load demand of the park's integrated energy system during each period; , They are respectively the upper and lower limits of the heating inertia coefficient of the park’s comprehensive energy system.
[0123] In addition, the human body's perception of heating temperature is ambiguous. To quantify the human body's perception of temperature, a predictive thermal index is used. To describe, the calculation formula is:
[0124] (18);
[0125] Where: is the energy metabolism rate of the human body; is the thermal resistance of clothing; is the average temperature of human skin in a comfortable state; is the indoor temperature.
[0126] Since users are more active during the day, they are more sensitive to temperature changes than at night, and thus have higher requirements for comfort. Therefore, the present invention predicts the thermal index between 20:00 p.m. and 7:00 a.m. exist 1, and the rest of the time is the predicted thermal index for 0.5, that is:
[0127] { | M pmv | ≤ 1 , t ∈ [ 0 1 : 0 0 − 0 7 : 0 0 ] ∪ [ 2 0 : 0 0 − 2 4 : 0 0 ] | M pmv | ≤ 0 . 5 , t ∈ [ 0 8 : 0 0 − 1 9 : 0 0 ] (19);
[0128] From the above formula, we can calculate the user's thermal index. The maximum indoor temperature after the system heating and minimum value , it is concluded that the park's comprehensive energy system takes into account thermal inertia and predicts thermal indicators The heating power of the park comprehensive energy system under the condition of Take 24℃:
[0129] (20);
[0130] The cooling load also has a certain cooling delay, so the cooling load cooling model is as follows:
[0131] (twenty one);
[0132] Where: for Cooling load by time period; for Cooling load demand during the period; , are the upper and lower limits of the inertia coefficient of the cooling system respectively.
[0133] It can be seen from the above formula that the cooling and heating loads have the ability to respond to demand, and this part of the demand response does not affect the normal use of users, so no compensation is required. In order to further increase the demand response resources of the park, the present invention allows a certain amount of interruptible cooling and heating loads that affect the user experience, and takes compensation measures for this part of the load. Among them, the interruptible load of the electric load will also affect the user experience, and it may be compensated.
[0134] (twenty two);
[0135] Where: Indicates cold, heat, and electricity; Indicates the interruption load; is the maximum interruption load.
[0136] Since the more cold / heat / electric loads are interrupted, the greater the impact on users, a tiered price subsidy measure should be adopted for users:
[0137] (twenty three);
[0138] Where: for Interruptible load subsidy cost for the time period; for Time period subsidy price; , There are two types of tiered subsidy prices; Draw boundaries for the load.
[0139] The present invention comprehensively considers the operation economic cost and CO2-related cost of the park and constructs the low-carbon economic objective function as follows:
[0140] (twenty four);
[0141] (25);
[0142] Where: for Total operating cost of the integrated energy system during the period; , Integrated Energy System Period operating costs and CO2-related costs; for Total operating cost of all equipment in the park except carbon capture during the period; for Penalty costs for abandoning wind and solar power during certain time periods; for Cost of purchasing electricity and gas during the time period; For electricity / heating / cooling load Time period load reduction compensation costs; is the CO2 storage cost; for Depreciation costs of carbon capture over time; , They are The operation and maintenance cost and output value of the nth device in the period, where N is the total number of devices in the park; is the penalty coefficient for wind and solar power abandonment; for The amount of wind and solar power abandoned during the period; , They are The price of electricity and gas purchased during the time period; for Gas purchase volume during the period; , are the total carbon capture cost and depreciation period respectively; is the carbon capture discount rate; Tiered carbon trading costs in different time periods; , , They are Demand response costs for electricity, heating and cooling loads by time period.
[0143] The constraints mainly include conventional unit constraints, energy storage equipment constraints, flexible resource constraints and power balance constraints. The overall power balance formula of the park is as follows:
[0144] (26);
[0145] In the formula: The present invention adopts Indicates the charging and discharging action of electricity storage. A value greater than 0 indicates energy storage, and vice versa indicates energy release. for The charging and discharging power of electric vehicles during the time period; for Electric load after time-period price demand response; for The amount of power outage load during the period; for Heat consumption of AC unit during the period; for Heating load of the park's integrated energy system during each period; for Interruption heat load during the period; for Interruption heat load during the period; for The cooling load of the park's integrated energy system during the period; for AC unit cooling output during the period; for EC unit cooling output during the period.
[0146] Reinforcement learning is generally divided into the environment part and the agent part. Reinforcement learning uses the agent to interact with the environment and obtain the action strategy with the maximum cumulative reward value through its own update mechanism. The interaction between the agent and the environment can be described by the Markov decision process, in which the main information includes the state space , Action Space , Reward Value , Discount Factor The state space and action space are related to the decision variables and some known quantities in the park integrated energy system scheduling model.
[0147] Action space design: The action space represents the set of action variables at each time step. The action variables include: wind power and photovoltaic power consumption; hydrogen-doped gas turbine power output, electric boiler output, hydrogen-doped ratio, absorption refrigeration cooling output, flue gas diversion ratio, battery action, electric / cold / heat reduction load, hot and cold load after considering thermal inertia, and electric vehicle charging and discharging. It can be expressed as:
[0148] A t = [ P w t , P v t , P hgt,e t , P eb t , e t , C ac t , d t , P e t , L e , id t , L h , id t , L C , id t , L C t , L H t , P EV t ] (27);
[0149] The action variables in this action space should satisfy conventional unit constraints, energy storage equipment constraints, flexible resource constraints and power balance constraints.
[0150] State space design: The state space generally considers factors that may affect decision-making. For the problem solved by the present invention, the state space includes the electric load, heat load, cooling load, wind and solar forecast value, electricity price, gas price, purchased electricity and the action volume of the previous period, that is:
[0151] (28);
[0152] Where: for Wind power forecast value for the time period, for Photovoltaic forecast value for each period.
[0153] Reinforcement learning is to maximize the expected reward value by continuously learning and updating the agent's own strategy. Therefore, the setting of the reward function should be related to the objective function in the integrated energy system scheduling model, and its reward function is as follows:
[0154] (29);
[0155] Where: is the reward value in period t, is the total operating cost ratio coefficient of the comprehensive energy system; A correction parameter to make the reward function positive.
[0156] In existing reinforcement learning, most of the real Q-values are estimated through value function neural networks, which leads to the problem of overestimation of Q-values by intelligent agents, resulting in the failure of intelligent agents to choose the optimal action strategy. In addition, most of the existing reinforcement learning applications in scheduling are offline reinforcement learning, so the distribution of the data set is offset during the training process, resulting in unstable algorithm performance training.
[0157] To solve the above problems, the present invention adopts the TD3 reinforcement learning algorithm considering behavior cloning.
[0158] 1) Two truncated Q-function neural networks and target policy smoothing
[0159] In the TD3 algorithm, there are two Q function neural networks and two target Q function neural networks, which are used to track the policy neural network.
[0160] In reinforcement learning, the Q value is not the real value but is fitted by the Q function neural network. Therefore, in order to avoid the influence of overestimation of Q value on the update of the optimal action strategy of the intelligent agent, the TD3 algorithm constructs two Q function neural networks and selects the minimum value of the Q value estimated by the two Q function neural networks as the basis for strategy update.
[0161] In addition, there may be an overfitting problem for narrow peak estimation in the value space. The TD3 algorithm performs fuzzy fitting on the values of a small area around the target action, that is, adding truncated normal distribution noise as regularization to each action to smooth the calculation of the Q value. The final Bellman formula of the Q function is:
[0162] (30);
[0163] Where: , They are The state quantity and action quantity of the time period, , They are Time period state quantity and action quantity; is the Q function of the neural network in the state action pair The Q value under Represents two target Q functions in the state-action pair of the neural network The Q value under and The first target Q function neural network and the second target Q function neural network are respectively The Q value under is the parameter in the policy neural network The strategy obtained below; is the added noise, sampled from a normal distribution.
[0164] 2) Consider behavioral cloning strategies
[0165] Strategy in TD3 algorithm Update via deterministic policy gradient:
[0166] π = arg max π ( s t , a t ) ∼ D [ Q ( s t , π ( s t ) ) ] (31);
[0167] Where: To optimize the strategy, it means to maximize the expected reward value, express expectations; is the experience pool, i.e., the offline dataset; For the state quantity The strategy of the agent under is the Q function of the neural network in the state action pair The Q value below.
[0168] In order to make the output actions in the policy neural network as close as possible to the action distribution in the data set and avoid the problem of distribution offset, the behavior cloning TD3 reinforcement learning algorithm adds a weighted behavior cloning loss term based on the strategy update of the TD3 algorithm. :
[0169] π = arg max π ( s t , a t ) ∼ D [ l Q ( s t , π ( s t ) ) − ( π ( s t ) − a t ) 2 ] (32);
[0170] Where: is a hyperparameter that controls the proportion of behavioral cloning loss. If the algorithm is too large, overfitting may occur. If it is too small, underfitting and distribution shift problems may occur.
[0171] In addition, in order to further improve the stability of the algorithm and avoid the distribution offset problem, the state quantity is normalized:
[0172] (33);
[0173] Where: is the normalized state quantity; is the original state quantity; , Mean and standard deviation in the state data set; is the normalization constant, and the present invention takes .
[0174] 3) Agent network parameter update
[0175] The parameters in the present invention mainly include two Q function neural network parameters: , ; Two target Q function neural network parameters , ; Strategy neural network parameters ; Target strategy neural network parameters .
[0176] Two Q-function neural network parameters , By minimizing the Bellman residual Method update:
[0177] J Q ( oh i ) i ∈ { 1 , 2 } = ( s * t , a t , s * t + 1 )~ D , a t + 1 ~ π i [ 1 2 ( Q LB i ( s * t , a t ) − r ( s * t , a t )) − c ( m i n ( Q ⌣ L B 1 ( s * t +1 , a t + 1 ) , Q ⌣ L B 2 ( s * t +1 , a t + 1 ) ) 2 ) ] (34);
[0178] Where: is the i-th Q function neural network parameter, and are the Q values estimated by the first target Q function neural network and the second target Q function neural network, The Q value estimated by the i-th Q function neural network is: is the policy neural network parameter The strategy obtained below, State-action pair The reward value under After normalization, Time period state quantity and Time period state quantity;
[0179] is the parameter of the target Q function neural network, which is updated by equation (35):
[0180] (35);
[0181] in is the soft update coefficient. Minimize the function by gradient descent method Implementing policy neural network parameters Update:
[0182] J π ( i ) = ( s * t , a * t ) ∼ D [ l Q ( s * t , π i ( s * t ) ) − ( π i ( s * t ) − a t ) 2 ] (36);
[0183] in, Represents the agent looking for a policy neural network parameter The optimal strategy under , to maximize the expected reward value; is the Q function of the neural network in the state action pair The Q value below.
[0184] Target policy neural network parameters The update method is as follows:
[0185] (37).
[0186] 4) If Figure 3 As shown in the figure, the update process of the TD3 reinforcement learning algorithm considering behavior cloning is as follows:
[0187] Step 1. Initialization , , , , , ;
[0188] Step 2. Initialize the state quantity from the state space , let time period t=0, number of training times k=0, and the capacity of the experience pool is greater than the number of pre-training times;
[0189] Step 3. Sample action volume from policy noise .
[0190] Step 4. Update the state and reward value by passing the given action into the environment, and Stored in the experience pool.
[0191] Step 5. If the experience sample size is less than the set maximum capacity, go to step 3, otherwise randomly sample from the experience pool ;
[0192] Step 6. Change the state Input the policy neural network to get ;
[0193] Step 7. Normalize the state quantity to obtain ;
[0194] Step 8. Input To the agent to update the network parameters, update the two Q function neural network parameters , , and then update the two target Q function neural network parameters , and policy neural network parameters , target strategy neural network ;
[0195] Step 9. If the last time section has not been reached, enter the next time section, set t=t+1, and go to step 3;
[0196] Step 10. If the training has reached the maximum number of training times K, the training is terminated, otherwise return to step 2 and enter the next round of training.
[0197] The training process of the zero-carbon park integrated energy system scheduling model of the present invention adopts the mode of "offline training, online testing". The zero-carbon park integrated energy system scheduling model is combined with the behavior cloning TD3 reinforcement learning algorithm, and the historical data set is input to perform offline training. Then, the online scheduling data is input through the trained zero-carbon park integrated energy system scheduling model to perform online optimization scheduling. Figure 4 ,The offline training and online optimization process of the zero-carbon park integrated energy system scheduling model is as follows:
[0198] 1) Input the historical data set into the reinforcement learning environment and initialize the parameters of each reinforcement learning network;
[0199] 2) Conduct offline scheduling training, obtain the state quantity of this period from the zero-carbon park comprehensive energy system scheduling model, and use formula (33) for normalization;
[0200] 3) Input the normalized state into the agent;
[0201] 4) The agent gives the action amount according to the input state;
[0202] 5) The zero-carbon park integrated energy system scheduling model updates the status of the next period according to the action volume;
[0203] 6) When the set number of training times is reached, the trained zero-carbon park integrated energy system scheduling model is saved;
[0204] 7) Input the real-time data into the trained zero-carbon park comprehensive energy system scheduling model. In the online scheduling, the prediction system is used to predict the latest prediction information of time period t and the state quantity of the output of each unit at this time. The state quantity is input into the trained zero-carbon park comprehensive energy system scheduling model. At this time, the zero-carbon park comprehensive energy system scheduling model will maximize the reward based on the input state quantity to obtain the optimal scheduling plan.
[0205] The present invention also provides a zero-carbon park scheduling system based on behavioral cloning reinforcement learning, comprising at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned zero-carbon park scheduling method based on behavioral cloning reinforcement learning.
[0206] The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention shall be implemented according to the conventional means in the art unless otherwise specified and limited.
Claims
1. A zero-carbon park scheduling method based on behavioral cloning reinforcement learning, It is characterized in that In the park's comprehensive energy system, a coordinated operation unit of hydrogen-blended gas units containing electrolyzers and carbon capture is adopted, and the orderly charging and discharging strategies of batteries and electric vehicles, and the comprehensive demand response measures for cooling, heating and electricity are considered. At the same time, a high proportion of new energy power generation is considered, so as to construct a zero-carbon park comprehensive energy system scheduling model that considers multiple types of flexible resources; The behavior cloning TD3 reinforcement learning algorithm is used to perform offline training and online optimization on the zero-carbon park comprehensive energy system scheduling model. The behavior cloning TD3 reinforcement learning algorithm is based on the strategy update of the TD3 algorithm and adds a weighted behavior cloning loss term : ; in, For strategy, Express expectations, For the experience pool, For the state quantity The strategy of the agent under is a hyperparameter, , They are The state quantity and action quantity of the time period, is the Q function of the neural network in the state action pair The Q value under The energy consumption and output mathematical model of the coordinated operation unit of the hydrogen-blended gas unit containing an electrolyzer and carbon capture is as follows: ; Where: , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. Total energy consumption during the period; , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. Natural gas consumed during the period; , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. The amount of hydrogen consumed during the period; For carbon capture Total energy consumption during the period; , Carbon capture Operational energy consumption and fixed energy consumption during the period; , Hydrogen gas turbine Electricity and heat output during the time period; For hydrogen-blended gas boiler Thermal output during the period; For electrolyzer Electricity consumption during the time period; For electrolyzer The hydrogen energy provided during the period; For wind power and photovoltaic The electrical power supplied to the electrolyzer during the period; is the hydrogen production efficiency of the electrolyzer; , They are the electrical efficiency and thermal efficiency of the hydrogen-blended gas turbine respectively; is the thermal efficiency of the hydrogen-blended gas boiler; The mathematical model of the output strategy of the coordinated operation unit of the hydrogen-blended gas unit with electrolyzer and carbon capture is as follows: ; Where: For wind power and photovoltaic Energy consumption for carbon capture provided during the time period; Hydrogen gas turbine Carbon capture energy consumption provided during the time period; CO processed during the carbon capture period 2 Total amount; Treating CO for carbon capture 2 Specific energy consumption; for Wind power grid-connected power in the time period; for Total wind and solar power output during the period; for Wind power output during the period; for Photovoltaic output during the time period; for The on-grid power of hydrogen-blended gas turbines during the period; Carbon capture captures CO 2 The mathematical model of the quantity is as follows: ; Where: , They are hydrogen-blended gas turbine and hydrogen-blended gas boiler. Carbon emissions during the period; Carbon efficiency for carbon capture; For carbon capture Smoke diversion ratio of the time period; , are the carbon emission coefficients of hydrogen-blended gas turbines and hydrogen-blended gas boilers respectively; The mathematical model of the hydrogen blending link of the coordinated operation unit of the hydrogen blending gas unit with electrolyzer and carbon capture is as follows: ; Where: , They are Natural gas consumption before and after hydrogen blending in the time period; for The hydrogen power consumed by hydrogen blending during the period; for Hydrogen blending ratio during the period; The cooling load in the park is mainly supplied by absorption refrigeration that consumes heat energy to provide cooling and electric refrigeration that consumes electricity; The mathematical model of absorption refrigeration is as follows: ; In the formula, and Absorption Refrigeration The cooling output and thermal power consumed during the period; Energy conversion efficiency for absorption refrigeration; The mathematical model of electric refrigeration is as follows: ; In the formula, and Electric Refrigeration Cooling output and electrical power consumed during the period; Indicates the energy conversion efficiency of electric refrigeration; Mathematical model of electric boiler: ; Where: , Electric boiler Heat output and electricity consumption during the time period; is the heat generation efficiency of the electric boiler; The mathematical model of the battery is as follows: ; Where: , Battery Time period and State of charge during the time period; , Battery The amount of electrical energy stored and released during the time period; , are the battery charge and discharge efficiency respectively; , Battery Maximum charging and discharging power during the time period; , Don't use batteries The upper and lower limits of storage capacity during the time period; The carbon emissions of the park are further constrained through the tiered carbon trading model, and the carbon quota is allocated to hydrogen-blended gas turbines and hydrogen-blended gas boilers: ; Where: is the net carbon emissions of the park, for The amount of carbon that the park participates in the carbon trading market during this period; for Total carbon emissions of the park during the period; for The amount of electricity purchased during the time period; is the carbon emission coefficient of purchased electricity; for The carbon quota of the park during the period; for The park's electricity carbon quota for the time period; for The park's heat production carbon quota for the period; Carbon quotas per unit of electricity supplied by hydrogen-blended gas turbines; Assign weights to carbon emission rights for hydrogen-blended gas turbine heating power; Calculate the carbon trading cost by carbon emission range: ; Where: for Period carbon trading costs; It is the base price for carbon trading; is the length of the carbon emission interval; is the compensation coefficient; is the increase in carbon trading prices; Consider the management and control of various flexible resources on the energy supply side, energy storage side, and energy consumption side to mobilize and realize the emission reduction potential of the park. The park's cooling, heating, and electricity loads can be partially used as flexible resources through comprehensive demand response measures; The Monte Carlo method is used to simulate the charging load under disordered charging in the park; based on the time-of-use electricity price, the charging and discharging of electric vehicle charging load is guided. Under the condition of meeting the charging demand of electric vehicles, electric vehicles, as a flexible resource, release part of the energy in the electric vehicle energy storage battery when the system load or electricity price is at a peak, and input it into the park comprehensive energy system through the EV charging station. The mathematical model of the electric vehicle orderly charging power constraint and the electric vehicle battery constraint is as follows: ; Where: For electric vehicles in the park Total charging power during the time period; For electric vehicles in the park Total discharge power during the time period; Charging stations for electric vehicles in the park Total charge and discharge power of the time period; , They are the maximum allowed charging and discharging powers of the electric vehicle charging station in the park, respectively; , In the park Time period and The period The state of charge of the battery of an electric vehicle; , Respectively The upper and lower limits of battery capacity for electric vehicles; and For the The charging and discharging power of electric vehicle batteries; is the number of charging piles in the park; , are the charging and discharging efficiencies of electric vehicles, respectively; L and M represent the number of charging and discharging vehicles; The comprehensive demand response considered is a price-based demand item response guided by time-of-use electricity prices, and a real incentive-based demand response with incentive compensation. The model of electric load demand response is as follows: ; Where: , are the total loads in the dispatch period before and after demand response, respectively; is the total transferable load change; , They are The change in load and electricity price that can be transferred during the time period, Indicates the total time; Respectively represent the change in the transferable load in the 1st, 2nd, ..., mth time period, They represent the load in the 1st, 2nd, …, mth time period before the implementation of demand response, Respectively represent the change in electricity price in the 1st, 2nd, ..., mth time period, They represent the electricity prices in the 1st, 2nd, …, mth periods before the implementation of demand response; is the electricity price elasticity coefficient matrix; represents transpose; Incentive demand response is that IES managers adopt subsidy incentive policies for users when the system load is at its peak, encouraging users to reduce or interrupt part of the load during this period; The heating load model is as follows: ; Where: for Heating load of the park's integrated energy system during each period; for Thermal load demand of the park's integrated energy system during each period; , They are the upper and lower limits of the heating inertia coefficient of the park's integrated energy system; Predictive thermal indices are used to quantify the body's temperature perception To describe, the calculation formula is: ; Where: is the energy metabolism rate of the human body; is the thermal resistance of clothing; is the average temperature of human skin in a comfortable state; is the indoor temperature; The cooling load supply model is as follows: ; Where: for Cooling load by time period; for Cooling load demand during the period; , They are the upper and lower limits of the inertia coefficient of the cooling system respectively; Compensation for electrical loads; ; Where: Indicates cold, heat, and electricity; Indicates the interruption load; is the maximum interruption load; Adopt tiered price subsidy measures for users: ; Where: for Interruptible load subsidy cost for the time period; for Time period subsidy price; , There are two types of tiered subsidy prices; Delimiting the load boundaries; Comprehensively consider the park's operating economic costs and CO 2 The relevant costs are used to construct the low-carbon economy objective function as follows: ; ; Where: for Total operating cost of the integrated energy system during the period; , Integrated Energy System Period operating costs and CO 2 Relevant costs; for Total operating cost of all equipment in the park except carbon capture during the period; for Penalty costs for abandoning wind and solar power during certain time periods; for Cost of purchasing electricity and gas during the time period; For electricity / heating / cooling load Time period load reduction compensation costs; For CO 2 Storage costs; for Depreciation costs of carbon capture over time; , They are The operation and maintenance cost and output value of the nth device in the period, where N is the total number of devices in the park; is the penalty coefficient for abandoning wind and solar power; for Amount of wind and solar power abandoned during the period; , They are The price of electricity and gas purchased during the time period; for Gas purchase volume during the period; , are the total cost and depreciation period of carbon capture respectively; r is the carbon capture discount rate; Tiered carbon trading costs in different time periods; , , They are Time period electricity, heating and cooling load demand response costs; The constraints include conventional unit constraints, energy storage equipment constraints, flexible resource constraints and power balance constraints; the overall power balance formula of the park is as follows: ; In the formula: The present invention adopts Indicates the charging and discharging action of electric storage. If it is greater than 0, it means energy storage, otherwise it means energy release. for The charging and discharging power of electric vehicles during the time period; for Electric load after time-period price demand response; for The amount of power outage load during the period; for Heat consumption of AC unit during the period; for Heating load of the park's integrated energy system during each period; for Interruption heat load during the period; for Interruption heat load during the period; for The cooling load of the park's integrated energy system during the period; for AC unit cooling output during the period; for EC unit cooling output during the period.
2. According to the zero-carbon park scheduling method of behavior cloning reinforcement learning as described in claim 1, It is characterized in that The interaction between the agent and the environment is described by the Markov decision process, in which the main information includes the state space , Action Space , Reward Value , Discount Factor ; The action space is represented as: ; The state space includes the electric load, heat load, cooling load, wind and solar forecast value, electricity price, gas price, power purchase amount and the action amount of the previous period, that is: ; Where: for Wind power forecast value for the time period, for Photovoltaic forecast value for each period; Reinforcement learning is to maximize the expected reward value by continuously learning and updating the agent's own strategy. The reward function is as follows: ; Where: is the reward value in period t, is the total operating cost ratio coefficient of the comprehensive energy system; Correction parameters to make the reward function positive; The update process of the behavior cloning TD3 reinforcement learning algorithm is as follows: Step 1. Initialize two Q function neural network parameters , ; Two target Q function neural network parameters , ; Strategy neural network parameters ; Target strategy neural network parameters ; Step 2. Initialize the state quantity from the state space , let time period t=0, number of training times k=0; Step 3. Sample action volume from policy noise ; Step 4. Update the state and reward value by passing the given action into the environment, and Stored in the experience pool; They are Time period state quantity, is the reward value during period t; Step 5. If the experience sample size is less than the set maximum capacity, go to step 3, otherwise randomly sample from the experience pool ; Step 6. Change the state Input policy neural network to get Action volume per period ; Step 7. Normalize the state quantity to obtain , After normalization, Time period state quantity and Time period state quantity; Step 8. Input To the agent to update the network parameters, update the two Q function neural network parameters , , and then update the two target Q function neural network parameters , and policy neural network parameters , target strategy neural network ; Step 9. If the last time section has not been reached, enter the next time section, set t=t+1, and go to step 3; Step 10. If the training has reached the maximum number of training times K, the training is terminated, otherwise return to step 2 and enter the next round of training.
3. According to the zero-carbon park scheduling method of behavior cloning reinforcement learning as described in claim 2, It is characterized in that The way to normalize the state quantity is as follows: ; Where: is the normalized state quantity; is the original state quantity; , Mean and standard deviation in the state data set; is the normalization constant.
4. According to the zero-carbon park scheduling method based on behavioral cloning reinforcement learning as described in claim 3, It is characterized in that Two Q-function neural network parameters , By minimizing the Bellman residual Method update: ; Where: is the i-th Q function neural network parameter, Express expectations, and are the Q values estimated by the first target Q function neural network and the second target Q function neural network, The Q value estimated by the i-th Q-function neural network is: is the policy neural network parameter The strategy obtained below, State-action pair The reward value below.
5. According to the zero-carbon park scheduling method of behavior cloning reinforcement learning as described in claim 4, It is characterized in that Neural network parameters of the i-th target Q function Update via: ; in is the soft update coefficient.
6. The zero-carbon park scheduling method based on behavioral cloning reinforcement learning according to claim 5, It is characterized in that Minimize the function by gradient descent Implementing policy neural network parameters Update: ; in, Represents the agent looking for a policy neural network parameter The optimal strategy under , is the Q function of the neural network in the state action pair The Q value under Target policy neural network parameters The update method is as follows: 。 7. The zero-carbon park scheduling method based on behavioral cloning reinforcement learning according to claim 1, It is characterized in that The process of offline training and online optimization of the zero-carbon park integrated energy system scheduling model using the behavior cloning TD3 reinforcement learning algorithm is as follows: Input the historical data set into the reinforcement learning environment and initialize the parameters of each reinforcement learning network; Conduct offline scheduling training, obtain the state quantity of this period from the zero-carbon park comprehensive energy system scheduling model, and perform normalization processing; Input the normalized state quantity into the agent; The agent gives the action amount according to the input state; The zero-carbon park integrated energy system scheduling model updates the status of the next period based on the amount of action; When the set number of training times is reached, the trained zero-carbon park integrated energy system scheduling model is saved; The real-time data is input into the trained zero-carbon park comprehensive energy system scheduling model. In the online scheduling, the prediction system is used to predict the latest prediction information of time period t and the state quantity of the output of each unit at this time. The state quantity is input into the trained zero-carbon park comprehensive energy system scheduling model. At this time, the zero-carbon park comprehensive energy system scheduling model will maximize the reward based on the input state quantity to obtain the optimal scheduling plan.
8. A zero-carbon park scheduling system based on behavior cloning reinforcement learning, comprising at least one processor; and a memory in communication connection with the at least one processor; in, The memory stores a computer program executable by the at least one processor, wherein the computer program is executed by the at least one processor so that the at least one processor can execute the zero-carbon park scheduling method based on behavioral cloning reinforcement learning as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Multi-park energy scheduling method and system based on deep reinforcement learning
CN114091879A
Low-carbon economic dispatching method considering heat supply network and P2G multi-park integrated energy system
CN114091913A
Interval optimization low-carbon scheduling method considering carbon capture power plant
CN115081733A
Optimized scheduling method for integrated energy system
CN115759604A
Deep reinforcement learning low-carbon scheduling method and system for integrated energy system
CN116993128A
