An energy-saving emission-reducing energy management method based on an enhanced TD3 algorithm
By constructing a multi-condition training environment and a priority experience replay mechanism in hybrid vehicles using the enhanced TD3 algorithm, the adaptability and emission optimization problems of deep reinforcement learning algorithms in hybrid vehicle energy management are solved, achieving rapid convergence and efficient energy saving and emission reduction effects.
Patent Information
- Application Number
- CN202310862588.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-13
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-07-13
AI Technical Summary
Existing deep reinforcement learning algorithms for hybrid vehicle energy management suffer from problems such as limited training samples, poor adaptability, long cold start time, low sampling efficiency, and neglect of pollutant emission optimization, resulting in insufficient adaptability and emission performance of energy management strategies under different operating conditions.
An enhanced TD3 algorithm is adopted. By constructing a random training environment covering multiple standard cyclic operating conditions, and combining a global optimal dynamic programming algorithm and a priority experience replay mechanism, the policy network and value network are trained using the best expert experience knowledge to establish an energy management model and optimize the comprehensive goals of energy saving, emission reduction and power stability.
It improves the adaptability of energy management strategies to different operating conditions, shortens training time, enhances the algorithm's exploration capabilities, achieves rapid convergence, and reduces pollutant emissions while improving fuel economy and maintaining stable power consumption.
Smart Images

Figure CN116861791B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of hybrid electric vehicle energy management technology, specifically relating to an energy management method for hybrid electric vehicles based on an enhanced TD3 algorithm to achieve energy saving and emission reduction. Background Technology
[0002] In the use of hybrid electric vehicles, energy management strategies are highly dependent on achieving reasonable power distribution between the engine and the power battery. Currently, with the development and popularization of artificial intelligence technology, deep reinforcement learning algorithms are gradually being introduced into the energy management strategies of hybrid electric vehicles. Their better real-time performance, optimality, adaptability and self-learning ability can improve the energy management effect to a level that previous existing technologies could not match. However, the current energy management strategies for hybrid electric vehicles based on deep reinforcement learning still have some problems, such as: (1) the working condition samples used during training are relatively simple and the traffic scene complexity is low, resulting in the energy management strategy not being very adaptable to different working conditions; (2) the commonly used deep reinforcement learning algorithms have inherent defects such as long "cold start" time and low sampling efficiency, which prolong the training time and are not conducive to improving the optimization performance; (3) many existing technologies generally only focus on improving fuel economy, but ignore how to optimize pollutant emissions. For the engine, low fuel consumption does not necessarily mean low emissions. Therefore, how to design a hybrid vehicle energy management method that has fast convergence speed, strong adaptability to operating conditions, and can also take into account energy conservation and emission reduction is an urgent technical problem that needs to be solved in this field. Summary of the Invention
[0003] In view of this, and to address the technical problems existing in this field, the present invention provides an energy management method for energy conservation and emission reduction based on an enhanced TD3 algorithm, specifically including the following steps:
[0004] Step 1: For hybrid vehicles, select two or more standard cyclic operating conditions covering different vehicle driving scenarios, and use the global optimal dynamic programming algorithm for offline calculation to obtain the optimal energy management experience samples under each standard cyclic operating condition; fill all the optimal samples of each operating condition with data to obtain the optimal experience replay buffer pool corresponding to each operating condition; construct a random training environment from the optimal experience replay buffer pools of the selected different standard cyclic operating conditions; wherein, each optimal experience replay buffer pool is used as the optimal expert experience knowledge in the subsequent training process of the deep neural network based on the enhanced TD3 (Twin Delayed Deep Deterministic Policy Gradient) algorithm;
[0005] Step 2: Establish an enhanced TD3 algorithm structure, consisting of a policy network, a value network, a binary tree, a priority experience replay buffer, two or more standard cyclic operating conditions, and corresponding optimal experience replay buffers. Introduce a priority experience replay mechanism: in the early stages of training the deep neural network, training samples are extracted from the optimal experience replay buffer to train the policy network and the value network, and the instantaneous experience samples output by the TD3 agent are stored in the priority experience replay buffer. When the priority experience replay buffer is full, the priority experience replay mechanism is triggered and the optimal experience replay buffer is discarded, and the priority experience replay buffer continues to provide training samples for training the value network and the policy network.
[0006] Step 3: Obtain the real-time operating status of the hybrid vehicle, including: vehicle longitudinal dynamics status, engine status, power battery status, generator status, and electric motor status; establish the vehicle's energy management system model, including: vehicle longitudinal dynamics model, engine fuel consumption model, engine pollutant emission model, power battery model, generator efficiency model, and electric motor efficiency model.
[0007] Step 4: Establish a comprehensive optimization objective for energy management that simultaneously considers energy saving, emission reduction, and stable power supply. Use the models established in Step 3 to iteratively train the deep neural network of the enhanced TD3 algorithm until it converges stably, and finally obtain an approximately optimal energy management strategy.
[0008] Furthermore, in step one, six standard cycle operating conditions are specifically selected, including NYCC, UDDS, HWFET, NEDC, WLTP, and CLTC-P, covering various driving scenarios such as frequent low-speed start-stop, urban driving, continuous high-speed driving, constant speed driving, constant acceleration, and constant deceleration.
[0009] Furthermore, the enhanced TD3 algorithm structure obtained in step two specifically includes: two policy networks, four value networks, one priority experience replay buffer, a binary tree structure, six standard cyclic cases, and six corresponding optimal experience replay buffers. Each network is a feedforward neural network with multiple hidden layers. The policy networks include the current policy network μ and the target policy network μ′, with network parameters θ. μ and θ μ′ The four value networks are specifically two current value networks Q1 and Q2, and two target value networks Q′1 and Q′2, with corresponding network parameters as follows:
[0010] Furthermore, the specific process of selecting training samples before and after the priority experience replay mechanism is triggered includes:
[0011] Before the priority experience replay mechanism is triggered:
[0012] ① At the beginning of each training round, a work condition data point is randomly selected from the random training environment as the training work condition; during training, the TD3 agent adjusts its state s based on the current state. t Select action a t Receive reward r t Enter the next state s t+1 ; Each obtained instant experience sample [s t ,a t ,r t ,s t+1 Stored in the priority experience replay buffer pool;
[0013] ② Using the ordinary experience replay method, randomly collect N samples from the optimal experience replay buffer corresponding to the selected training condition. Used for training value networks and policy networks;
[0014] ③ When the priority experience replay buffer pool is full, the priority experience replay mechanism is triggered, and the optimal experience replay buffer pool is discarded.
[0015] After the priority experience replay mechanism is triggered:
[0016] ① Calculate the sampling probability: Where j represents the sample number in the priority experience replay buffer, p represents the sample priority, and ρ (0 < ρ < 1) represents the priority factor.
[0017] ② Based on the sampling probability, randomly select N samples from the priority experience replay buffer. Used for training value networks and policy networks;
[0018] ③ Calculate the importance sampling weight for each sample: Where B represents the total number of samples in the priority experience replay buffer, and β (0 < β < 1) represents the importance sampling factor;
[0019] ④ Calculate the value network loss function: Where i (i = 1, 2) represents the number of the value network. This represents the current Q value, y t Indicates the target Q value. This represents the mathematical expectation; after each training step of the value network and policy network, the temporal difference error value ξ needs to be recalculated to update the priority p = ξ + κ of each node in the binary tree structure, where, κ (0 < κ < < 1) is a constant used to maintain the numerical stability of the priority.
[0020] Furthermore, the specific hybrid vehicle model targeted by the energy management method is a non-plug-in hybrid electric vehicle. The acquired longitudinal dynamic state of the vehicle includes vehicle speed and acceleration; engine state includes engine speed, engine torque and engine output power; power battery state includes current, open circuit voltage, internal resistance and state of charge (SOC); generator state includes generator speed and generator torque; and electric motor state includes electric motor speed and electric motor torque.
[0021] Furthermore, the specific forms of the models established in step three for the aforementioned vehicle types are as follows:
[0022] Vehicle longitudinal dynamics model:
[0023]
[0024] Among them, P d The value represents the driving power requirement, m represents the vehicle mass, g represents the acceleration due to gravity, and f represents the rolling resistance coefficient. C indicates the road slope. d A represents the air drag coefficient. w δ represents the frontal area, v represents the rotational mass conversion factor, and dv / dt represents the vehicle speed.
[0025] Engine fuel consumption model:
[0026]
[0027] in, T represents the fuel consumption of an engine per unit time. eng Represents engine torque, ω eng Indicates engine speed, f BSFC (·) represents the function for calculating the engine's braking ratio fuel consumption;
[0028] Engine pollutant emission models, including CO emission models, NOx emission models, and HC emission models, are presented in the following forms:
[0029]
[0030] in, f represents the CO emissions per unit time. CO (·) represents the CO emission rate calculation function; f represents NOx emissions per unit time. NOx (·) represents the NOx emission rate calculation function; f represents the amount of HC emitted per unit time. HC (·) represents the HC emission rate calculation function;
[0031] Power battery model:
[0032]
[0033] Among them, V oc f represents the open-circuit voltage. ocv (·) represents the open-circuit voltage calculation function, R0 represents the internal resistance, and f R0 (·) represents the internal resistance calculation function, I bat P represents current. bat Q represents battery power. bat Indicates battery capacity, Indicates the rate of change of SOC;
[0034] Generator efficiency model:
[0035] η gen =f gen (T gen ,ω gen )
[0036] Where, η gen T represents the generator efficiency. gen Represents generator torque, ω gen f represents the generator speed. gen (·) represents the function for calculating generator efficiency;
[0037] Electric motor efficiency model:
[0038] η mot =f mot (T mot ,ω mot )
[0039] Where, η mot T represents the efficiency of the electric motor. mot ω represents the motor torque. mot f represents the motor speed. mot (·) represents the function for calculating the efficiency of an electric motor.
[0040] Furthermore, for the training in step four, the state variables are defined as follows: the vehicle speed v of the hybrid electric vehicle, the acceleration acc, and the engine output power P. eng And the battery's state of charge (SOC), thus forming the state space S = {v, acc, P} eng The action variables include the engine throttle opening Thro, thus forming the action space A = {Thro|Thro∈[0,1]}; considering energy saving, emission reduction and energy stability, a reward function is defined consisting of three parts: fuel consumption, emissions and SOC stability.
[0041]
[0042] Where ω1 is the fuel consumption weight factor, ω2 is the emission weight factor, ω3 is the power consumption stability weight factor, and SOC0 represents the initial SOC value.
[0043] Furthermore, the complete training process of the deep neural network for the enhanced TD3 algorithm in step four specifically includes:
[0044] (1) Initialize the above network parameters: θ μ θ μ′ , Complete the filling of the optimal experience replay buffer pool corresponding to each standard cycle condition; initialize the priority experience replay buffer pool to an empty pool; initialize the priority of all child nodes in the binary tree structure to 1;
[0045] (2) Before and after the priority experience replay mechanism is triggered, training samples are selected in the manner described above respectively;
[0046] (3) Training the value network, the specific steps of which include:
[0047] ① Select target action: a t+1 =μ′(s t+1 |θ μ′ )+ε, Where ε represents motion noise, σ represents the distribution of motion noise, c represents the standard deviation of the noise distribution, and clip represents the boundary value for truncating motion noise.
[0048] ② Calculate the target Q value: Where γ (0 < γ < 1) represents the strategy discount factor. This represents the Q value calculated by the target value network;
[0049] ③ Calculate the value network loss function: The calculation method before triggering the priority experience replay mechanism is as follows: After triggering, the importance of the training samples needs to be considered when sampling weights, which are calculated as follows:
[0050] ④ Update the parameters of the current value network using the stochastic gradient descent method: Where, λ Q This represents the learning rate of the value network. It is the gradient operator;
[0051] ⑤ Update the parameters of the target value network using a soft update method: Where τ (0 < τ < 1) represents the soft update factor;
[0052] (4) After every two updates to the value network, the policy network is trained. The specific steps include:
[0053] ① Calculate the loss function of the policy network:
[0054] ② Update the parameters of the current policy network using the stochastic gradient ascent method: Where, λ μ This represents the learning rate of the policy network;
[0055] ③ Use the soft update method to update the parameters of the target policy network: θ μ′ ←τθ μ +(1-τ)θ μ′ .
[0056] (5) After the priority experience replay mechanism is triggered, after each training step of the value network and policy network, the temporal difference error value ξ needs to be recalculated to update the priority p = ξ + κ of each node in the binary tree structure, where, κ (0 < κ < < 1) is a constant used to maintain the numerical stability of the priority.
[0057] The energy management method for energy conservation and emission reduction based on the enhanced TD3 algorithm provided by the present invention has at least the following advantages over the prior art:
[0058] (1) A random training environment is designed by combining multiple different standard cycle operating conditions to cover possible driving scenarios of hybrid vehicles as comprehensively as possible during the training process, thereby effectively improving the operating condition adaptability of the energy management strategy.
[0059] (2) Using the best expert experience knowledge for auxiliary training, an enhanced TD3 algorithm is designed, which can effectively enhance the exploration ability of the algorithm agent and improve the sampling efficiency, help the agent to smoothly and quickly pass through the "cold start" stage, and thus significantly accelerate the convergence speed of the energy management strategy;
[0060] (3) By constructing a multi-objective optimization energy management problem, energy saving, emission reduction and power stability are simultaneously incorporated into the optimization objectives. This can improve the fuel economy of hybrid electric vehicles while reducing pollutant emissions and keeping the power level close to the initial value. Attached Figure Description
[0061] Figure 1 This is an overall flowchart of the method provided by the present invention;
[0062] Figure 2 This is a diagram of the enhanced TD3 algorithm architecture designed in this invention;
[0063] Figure 3This is a powertrain configuration diagram of a series-parallel hybrid electric vehicle in an example of the present invention;
[0064] Figure 4 This is a diagram of engine fuel consumption;
[0065] Figure 5(a) is a model diagram of CO emissions;
[0066] Figure 5(b) is a NOx emission model diagram;
[0067] Figure 5(c) is a diagram of the HC emission model;
[0068] Figure 6 It is a diagram of a power battery model;
[0069] Figure 7 This is a diagram of the generator efficiency model;
[0070] Figure 8 This is a diagram of the electric motor efficiency model;
[0071] Figure 9 This is a detailed architecture diagram of the energy management strategy built based on the method of this invention. Detailed Implementation
[0072] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0073] The energy management method for energy conservation and emission reduction based on the enhanced TD3 algorithm provided in this invention, such as... Figure 1 As shown, the specific steps include:
[0074] Step 1: For hybrid vehicles, select two or more standard cyclic operating conditions covering different vehicle driving scenarios, and use the global optimal dynamic programming algorithm for offline calculation to obtain the optimal energy management experience samples under each standard cyclic operating condition; fill all the optimal samples of each operating condition with data to obtain the optimal experience replay buffer pool corresponding to each operating condition; construct a random training environment from the optimal experience replay buffer pools of the selected different standard cyclic operating conditions; wherein, each optimal experience replay buffer pool is used as the optimal expert experience knowledge in the subsequent training process of the deep neural network based on the enhanced TD3 (Twin Delayed Deep Deterministic Policy Gradient) algorithm;
[0075] Step 2: Establish an enhanced TD3 algorithm structure, consisting of a policy network, a value network, a binary tree, a priority experience replay buffer, two or more standard cyclic operating conditions, and corresponding optimal experience replay buffers. Introduce a priority experience replay mechanism: in the early stages of deep neural network training, training samples are extracted from the optimal experience replay buffer to train the policy network and value network. Real-time experience samples output by the TD3 agent are stored in the priority experience replay buffer. When the priority experience replay buffer is full, the priority experience replay mechanism is triggered, and the optimal experience replay buffer is discarded. The priority experience replay buffer continues to provide training samples for training the value network and policy network. This results in an enhanced TD3 algorithm deep neural network.
[0076] Step 3: Obtain the real-time operating status of the hybrid vehicle, including: vehicle longitudinal dynamics status, engine status, power battery status, generator status, and electric motor status; establish the vehicle's energy management system model, including: vehicle longitudinal dynamics model, engine fuel consumption model, engine pollutant emission model, power battery model, generator efficiency model, and electric motor efficiency model.
[0077] Step 4: Establish a comprehensive optimization objective for energy management that simultaneously considers energy saving, emission reduction, and stable power supply. Use the models established in Step 3 to iteratively train the enhanced TD3 algorithm deep neural network until it stabilizes and converges, ultimately obtaining an approximately optimal energy management strategy.
[0078] In a preferred embodiment of the present invention, step one specifically selects six standard cycle operating conditions, including NYCC, UDDS, HWFET, NEDC, WLTP, and CLTC-P, covering various driving scenarios such as frequent low-speed start-stop, urban driving, continuous high-speed driving, constant speed driving, constant acceleration, and constant deceleration.
[0079] In a preferred embodiment of the present invention, the enhanced TD3 algorithm structure obtained in step two specifically includes: two policy networks, four value networks, a priority experience replay buffer, a binary tree structure, six standard cyclic cases, and six corresponding optimal experience replay buffers. Each network is a feedforward neural network with multiple hidden layers. The policy network includes the current policy network μ and the target policy network μ′, with network parameters θ. μ and θ μ′ The four value networks are specifically two current value networks Q1 and Q2, and two target value networks Q′1 and Q′2, with corresponding network parameters as follows: Figure 2 The architecture of this enhanced TD3 algorithm is shown in the figure.
[0080] In a preferred embodiment of the present invention, the specific process of selecting training samples before and after the priority experience replay mechanism is triggered includes:
[0081] Before the priority experience replay mechanism is triggered:
[0082] ① At the beginning of each training round, a work condition data point is randomly selected from the random training environment as the training work condition; during training, the TD3 agent adjusts its state s based on the current state. t Select action a t Receive reward r t Enter the next state s t+1 ; Each obtained instant experience sample [s t ,a t ,r t ,s t+1 Stored in the priority experience replay buffer pool;
[0083] ② Using the ordinary experience replay method, randomly collect N samples from the optimal experience replay buffer corresponding to the selected training condition. Used for training value networks and policy networks;
[0084] ③ When the priority experience replay buffer pool is full, the priority experience replay mechanism is triggered, and the optimal experience replay buffer pool is discarded.
[0085] After the priority experience replay mechanism is triggered:
[0086] ① Calculate the sampling probability: Where j represents the sample number in the priority experience replay buffer, p represents the sample priority, and ρ (0 < ρ < 1) represents the priority factor.
[0087] ② Based on the sampling probability, randomly select N samples from the priority experience replay buffer. Used for training value networks and policy networks;
[0088] ③ Calculate the importance sampling weight for each sample: Where B represents the total number of samples in the priority experience replay buffer, and β (0 < β < 1) represents the importance sampling factor;
[0089] ④ Calculate the value network loss function: Where i (i = 1, 2) represents the number of the value network. This represents the current Q value, y t Indicates the target Q value. This represents the mathematical expectation; after each training step of the value network and policy network, the temporal difference error value ξ needs to be recalculated to update the priority p = ξ + κ of each node in the binary tree structure, where, κ (0 < κ < < 1) is a constant used to maintain the numerical stability of the priority.
[0090] In a preferred embodiment of the present invention, the specific hybrid vehicle model targeted by the energy management method is a non-plug-in hybrid electric vehicle, whose powertrain configuration is as follows: Figure 3 As shown, the acquired vehicle longitudinal dynamics states include vehicle speed and acceleration; engine states include engine speed, engine torque, and engine output power; battery states include current, open-circuit voltage, internal resistance, and state of charge (SOC); generator states include generator speed and generator torque; and motor states include motor speed and motor torque.
[0091] In a preferred embodiment of the present invention, the specific forms of the models established in step three for the above-mentioned vehicle models are as follows:
[0092] Vehicle longitudinal dynamics model:
[0093]
[0094] Among them, P d The value represents the driving power requirement, m represents the vehicle mass, g represents the acceleration due to gravity, and f represents the rolling resistance coefficient. C indicates the road slope. d A represents the air drag coefficient. w δ represents the frontal area, v represents the rotational mass conversion factor, and dv / dt represents the vehicle speed.
[0095] Engine fuel consumption model such as Figure 4 As shown, this is a two-dimensional lookup table model that expresses the engine's braking fuel consumption as a function of engine speed and engine torque. Its fuel consumption per unit time is calculated as follows:
[0096]
[0097] in, T represents the fuel consumption of an engine per unit time. eng Represents engine torque, ω eng Indicates engine speed, f BSFC (·) represents the function for calculating the engine's braking ratio fuel consumption;
[0098] Engine pollutant emission models such as Figures 5(a) to 5(c) As shown, the CO emission model, NOx emission model, and HC emission model all employ two-dimensional lookup table models, expressing the emission rates of each engine pollutant as functions of engine speed and engine torque. The specific calculation forms for the unit-time emissions of each pollutant are as follows:
[0099]
[0100] in, f represents the CO emissions per unit time. CO (·) represents the CO emission rate calculation function; f represents NOx emissions per unit time. NOx (·) represents the NOx emission rate calculation function; f represents the amount of HC emitted per unit time. HC (·) represents the HC emission rate calculation function;
[0101] Power battery models such as Figure 6 As shown, an equivalent internal resistance model is used, where the battery's open-circuit voltage and charge / discharge internal resistance are set as functions of SOC, respectively. The specific formula for the model is as follows:
[0102]
[0103] Among them, V oc f represents the open-circuit voltage. ocv (·) represents the open-circuit voltage calculation function, R0 represents the internal resistance, and f R0 (·) represents the internal resistance calculation function, I bat P represents current. bat Q represents battery power. bat Indicates battery capacity, Indicates the rate of change of SOC;
[0104] Generator efficiency model such as Figure 7 As shown, a two-dimensional lookup table model is used to express the generator efficiency as a function of generator speed and generator torque, as shown in the following equation:
[0105] η gen =f gen (T gen ,ω gen )
[0106] Where, η gen T represents the generator efficiency. gen Represents generator torque, ω gen f represents the generator speed. gen (·) represents the function for calculating generator efficiency;
[0107] Electric motor efficiency model as follows Figure 8 As shown, a two-dimensional lookup table model is used to express the efficiency of the motor as a function of the motor speed and the motor torque, as shown in the following formula:
[0108] η mot =fmot (T mot ,ω mot )
[0109] Where, η mot T represents the efficiency of the electric motor. mot ω represents the motor torque. mot f represents the motor speed. mox (·) represents the function for calculating the efficiency of an electric motor.
[0110] In a preferred embodiment of the present invention, for the training in step four, the defined state variables include: the vehicle speed v of the hybrid electric vehicle, the acceleration acc, and the engine output power P. eng And the battery's state of charge (SOC), thus forming the state space S = {v, acc, P} eng The action variables include the engine throttle opening Thro, thus forming the action space A = {Thro|Thro∈[0,1]}; considering energy saving, emission reduction and energy stability, a reward function is defined consisting of three parts: fuel consumption, emissions and SOC stability.
[0111]
[0112] Where ω1 is the fuel consumption weight factor, ω2 is the emission weight factor, ω3 is the power consumption stability weight factor, and SOC0 represents the initial SOC value.
[0113] In a preferred embodiment of the present invention, the energy management strategy architecture built using the deep neural network of the enhanced TD3 algorithm in step four is as follows: Figure 9 As shown, its complete training process specifically includes:
[0114] (1) Initialize the above network parameters: θ μ θ μ′ , Complete the filling of the optimal experience replay buffer pool corresponding to each standard cycle condition; initialize the priority experience replay buffer pool to an empty pool; initialize the priority of all child nodes in the binary tree structure to 1;
[0115] (2) Before and after the priority experience replay mechanism is triggered, training samples are selected in the manner described above respectively;
[0116] (3) Training the value network, the specific steps of which include:
[0117] ① Select target action: a t+1 =μ′(s t+1 |θ μ′ )+ε, Where ε represents motion noise, σ represents the distribution of motion noise, c represents the standard deviation of the noise distribution, and clip represents the boundary value for truncating motion noise.
[0118] ② Calculate the target Q value: Where γ (0 < γ < 1) represents the strategy discount factor. This represents the Q value calculated by the target value network;
[0119] ③ Calculate the value network loss function: The calculation method before triggering the priority experience replay mechanism is as follows: After triggering, the importance of the training samples needs to be considered when sampling weights, which are calculated as follows:
[0120] ④ Update the parameters of the current value network using the stochastic gradient descent method: Where, λ Q This represents the learning rate of the value network. It is the gradient operator;
[0121] ⑤ Update the parameters of the target value network using a soft update method: Where τ (0 < τ < 1) represents the soft update factor;
[0122] (4) After every two updates to the value network, the policy network is trained. The specific steps include:
[0123] ① Calculate the loss function of the policy network:
[0124] ② Update the parameters of the current policy network using the stochastic gradient ascent method: Where, λ μ This represents the learning rate of the policy network;
[0125] ③ Use the soft update method to update the parameters of the target policy network: θ μ′ ←τθ μ +(1-τ)θ μ′ .
[0126] (5) After the priority experience replay mechanism is triggered, after each training step of the value network and policy network, the temporal difference error value ξ needs to be recalculated to update the priority p = ξ + κ of each node in the binary tree structure, where, κ (0 < κ < < 1) is a constant used to maintain the numerical stability of the priority.
[0127] It should be understood that the sequence number of each step in the embodiments of the present invention does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0128] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. An energy management method for energy conservation and emission reduction based on an enhanced TD3 algorithm, characterized in that: Specifically, the following steps are included: Step 1: For hybrid vehicles, select two or more standard cyclic operating conditions covering different vehicle driving scenarios, and use a global optimal dynamic programming algorithm for offline calculation to obtain the optimal energy management experience samples under each standard cyclic operating condition; fill all the optimal samples of each operating condition with data to obtain the optimal experience replay buffer pool corresponding to each operating condition; construct a random training environment from the optimal experience replay buffer pools of the selected different standard cyclic operating conditions; wherein, each optimal experience replay buffer pool is used as the optimal expert experience knowledge in the subsequent training process of the deep neural network based on the enhanced TD3 algorithm; Step 2: Establish the enhanced TD3 algorithm structure, consisting of two policy networks, four value networks, one priority experience replay buffer, a binary tree structure, six standard cyclic cases, and six corresponding optimal experience replay buffers. Each network is a feedforward neural network with multiple hidden layers; the policy network includes the current policy network. and target policy network The network parameters are respectively and The four value networks specifically consist of two current value networks. , and two target value networks , The corresponding network parameters are as follows: , , , A priority experience replay mechanism is introduced. In the early stage of training the deep neural network, training samples are extracted from the optimal experience replay buffer to train the policy network and the value network, and the instantaneous experience samples output by the TD3 agent are stored in the priority experience replay buffer. When the priority experience replay buffer is full, the priority experience replay mechanism is triggered and the optimal experience replay buffer is discarded. The priority experience replay buffer continues to provide training samples for training the value network and the policy network. Step 3: Obtain the real-time operating status of the hybrid vehicle, including: vehicle longitudinal dynamics status, engine status, power battery status, generator status, and electric motor status; establish the vehicle's energy management system model, including: vehicle longitudinal dynamics model, engine fuel consumption model, engine pollutant emission model, power battery model, generator efficiency model, and electric motor efficiency model. Step 4: Establish a comprehensive optimization objective for energy management that simultaneously considers energy saving, emission reduction, and stable power supply. Use the models established in Step 3 to iteratively train the deep neural network of the enhanced TD3 algorithm until it converges stably, and finally obtain an approximately optimal energy management strategy.
2. The method as described in claim 1, characterized in that: Step one specifically selects six standard cycle operating conditions, including NYCC, UDDS, HWFET, NEDC, WLTP, and CLTC-P, covering various driving scenarios in vehicle operation, including frequent low-speed start-stop, urban driving, continuous high-speed driving, constant speed driving, constant acceleration, and constant deceleration.
3. The method as described in claim 2, characterized in that: The specific process of selecting training samples before and after the priority experience replay mechanism is triggered includes: Before the priority experience replay mechanism is triggered: ① At the beginning of each training round, a work condition data point is randomly selected from the random training environment as the training work condition; during training, the TD3 agent adjusts its work condition based on the current state. Select Action Receive rewards Enter the next moment state ; Each real-time experience sample obtained Store in the priority experience replay buffer pool; ② Using the ordinary experience replay method, randomly collect data from the optimal experience replay buffer corresponding to the selected training conditions. N Sample , used to train the value network and policy network; ③ When the priority experience replay buffer pool is full, the priority experience replay mechanism is triggered, and the optimal experience replay buffer pool is discarded. After the priority experience replay mechanism is triggered: ① Calculate the sampling probability: ;in, This indicates the sample's index in the priority experience replay buffer. Indicates the priority of the samples. Indicates the priority factor, 0 < ρ <1; ② Based on the sampling probability, randomly select from the priority experience replay buffer pool N Sample , used to train the value network and policy network; ③ Calculate the importance sampling weight for each sample: ,in, B This represents the total number of samples in the priority experience replay buffer. Indicates the importance sampling factor, ; ④ Calculate the value network loss function: ,in, Indicates the number of the value network. This represents the current Q value. Indicates the target Q value. This represents the mathematical expectation; after each training step of the value network and policy network, the temporal difference error value needs to be recalculated. To update the priority of each node in the binary tree structure. ,in, , It is a constant used to maintain the stability of priority values. .
4. The method as described in claim 3, characterized in that: The energy management method targets non-plug-in hybrid electric vehicles, specifically non-plug-in hybrid electric cars, and obtains their longitudinal dynamics, including vehicle speed and acceleration; engine status, including engine speed, engine torque, and engine output power; and battery status, including current, open-circuit voltage, internal resistance, and state of charge. SOC The generator status includes generator speed and generator torque; the motor status includes motor speed and motor torque.
5. The method as described in claim 4, characterized in that: The specific forms of the models created for the above-mentioned vehicle types in step three are as follows: Vehicle longitudinal dynamics model: in, Indicates the driving power demand. m Indicates the overall vehicle weight. g Represents gravitational acceleration. f Indicates the rolling resistance coefficient. Indicates the road slope. Indicates the air drag coefficient. A w Indicates the windward area. This represents the rotational mass conversion factor. v Indicates vehicle speed. Indicates acceleration; Engine fuel consumption model: in, This indicates the engine's fuel consumption per unit of time. Indicates engine torque. Indicates engine speed. This represents the function for calculating the engine's braking ratio fuel consumption. Engine pollutant emission models, including CO emission models, NOx emission models, and HC emission models, are presented in the following forms: in, This represents the amount of CO emitted per unit of time. The function representing the CO emission rate calculation; This represents NOx emissions per unit time. This represents the function for calculating NOx emission rates. This represents the amount of HC emitted per unit time. This represents the function for calculating HC emission rates. Power battery model: in, Indicates open-circuit voltage. This represents the function for calculating open-circuit voltage. Indicates internal resistance. This represents the function for calculating internal resistance. Represents current. Indicates battery power. Indicates battery capacity, express SOC The rate of change; Generator efficiency model: in, Indicates generator efficiency. Indicates generator torque. Indicates the generator speed. A function representing the calculation of generator efficiency; Electric motor efficiency model: in, Indicates the efficiency of the electric motor. Indicates the motor torque. Indicates the motor speed. A function representing the calculation of electric motor efficiency.
6. The method as described in claim 5, characterized in that: For the training in step four, the defined state variables include: the speed of the hybrid vehicle. v acceleration acc Engine output power and battery state of charge SOC This constitutes the state space. Action variables include: engine throttle opening. This constitutes the action space. Considering energy conservation, emission reduction, and stable electricity supply, the following is defined: fuel consumption, emissions, and... SOC The reward function consists of three parts: in, It is the fuel consumption weighting factor. It is an emissions weighting factor. It is the power consumption stability weighting factor. express SOC Initial value.
7. The method as described in claim 6, characterized in that: Step four, the complete training process of the deep neural network for the enhanced TD3 algorithm, specifically includes: (1) Initialize the above network parameters: , , , , , Complete the filling of the optimal experience replay buffer pool corresponding to each standard cycle condition; initialize the priority experience replay buffer pool to an empty pool; initialize the priority of all child nodes in the binary tree structure to 1; (2) Before and after the priority experience replay mechanism is triggered, training samples are selected in the corresponding manner described above; (3) Training the value network, the specific steps include: ① Select target action: ,in, Indicates motion noise, Indicates the distribution of motion noise. The standard deviation of the noise distribution This represents the boundary value for truncating noise during the action; clip is the noise clipping operation in the TD3 algorithm. ② Calculate the target Q value: ,in, Indicates the strategy discount factor. , This represents the Q value calculated by the target value network; ③ Calculate the value network loss function: The calculation method before triggering the priority experience replay mechanism is as follows: After triggering, the importance of the training samples needs to be considered when sampling weights, which are calculated as follows: ; ④ Update the parameters of the current value network using the stochastic gradient descent method: ,in, This represents the learning rate of the value network. It is the gradient operator; ⑤ Update the parameters of the target value network using a soft update method: ,in, Indicates the soft update factor. ; (4) After every two updates to the value network, the policy network is trained. The specific steps include: ① Calculate the loss function of the policy network: ; ② Update the parameters of the current policy network using the stochastic gradient ascent method: ,in, This represents the learning rate of the policy network; ③ Update the parameters of the target policy network using the soft update method: ; (5) After the priority experience replay mechanism is triggered, the temporal difference error value needs to be recalculated after each training step of the value network and policy network. To update the priority of each node in the binary tree structure. ,in, , It is a constant used to maintain the stability of priority values.
