Energy management method and system for hybrid power system of electric vehicle
By combining lithium batteries and supercapacitors in electric vehicles, and using DDPG and PID algorithms to optimize energy management, the problems of insufficient energy density and power fluctuation of lithium batteries are solved, achieving more efficient energy utilization and extending the life of lithium batteries.
Patent Information
- Application Number
- CN202210194339.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-01
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-03-01
AI Technical Summary
The lithium batteries of existing electric vehicles have insufficient energy density during long-distance driving and cannot meet the commercial development needs of clean energy vehicles. Moreover, the power fluctuation of lithium batteries causes system instability and affects vehicle performance.
Design an energy management method for the hybrid power system of electric vehicles. Through the combination of parallel connection of lithium battery and supercapacitor, bidirectional DC/DC converter, energy management controller and motor controller, the DDPG algorithm and PID algorithm are used to optimize energy distribution. According to The vehicle status and state of charge control the working mode and output current of the bidirectional DC/DC converter to achieve coordinated power supply and recycling of lithium batteries and supercapacitors.
It improves the energy efficiency of electric vehicles, reduces the peak power of lithium batteries, reduces power fluctuations, extends the life of lithium batteries, and improves the dynamic performance of vehicles under different driving conditions.
Smart Images

Figure CN114475280B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of energy management strategies for hybrid energy storage systems, and in particular to an energy management method and system for a hybrid power system of an electric vehicle. Background Art
[0002] The energy in today's world is developing towards new energy, including the development of electric vehicles. my country is very active in the research of new energy vehicles. Mainly due to the shortage crisis of traditional energy and the objective requirements of environmental protection, my country's dependence on foreign oil has increased year by year. At this time, the overall automobile industry is in the stage of adjusting its direction. New energy vehicles are the demand of the entire industry. Fuel cell electric vehicles are a suitable substitute for internal combustion engines, and their battery system efficiency is significantly higher than that of internal combustion engines. However, clean energy vehicles require commercial purposes such as long mileage, safety and reliability, and low-cost operation. my country's traditional automobile industry, especially passenger cars, started slowly and has been in a relatively backward state. Due to my country's early technical accumulation in the fields of batteries, motors and electronic controls, my country has certain conditions for the development of new energy vehicles.
[0003] Electric vehicles equipped with energy storage systems are developing towards the commercialization of clean energy vehicles. The energy density of the best batteries for clean energy vehicles is currently about 10% of that of traditional gasoline, so batteries as a single energy storage system cannot provide energy for long-distance driving mileage. On the contrary, supercapacitors have high peak power of charge and discharge and can be combined with batteries to provide the required energy for clean energy vehicles. The current of the electric propulsion system of electric vehicles is provided by lithium batteries and supercapacitors under different driving conditions. Although batteries play an important role in clean energy generation, hybrid lithium batteries with other high-power or energy-density energy storage systems can provide an effective solution for improving the performance indicators of electric vehicles. The auxiliary energy storage system of the composite electric vehicle can provide fast dynamic loads, extend system life, and absorb the regeneration of braking energy. The benefits of the auxiliary energy storage system are to reduce the power supply burden, reduce battery power fluctuations, minimize fuel consumption, and increase energy production. The high energy density of the energy storage system increases the driving range. In addition, the high-density power source improves the dynamic performance of the vehicle under different driving conditions. Therefore, battery vehicles must include various advantages of energy storage systems in addition to the best energy management strategy. The development of energy management strategies is one of the key issues to effectively provide power to ensure system safety. The energy management strategy involves some basic parameters such as safety, reliability, the power upper limit capability of the battery, the remaining capacity and the battery power fluctuation. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide an economical, reliable and efficient energy management method and system for a hybrid power system of an electric vehicle, so as to improve energy efficiency and protect lithium batteries.
[0005] To achieve the above-mentioned purpose, the present invention is a method for managing the energy of a hybrid power system of an electric vehicle, which is used to achieve the energy management of the hybrid power system of an electric vehicle. The method is special in that the hybrid power system of the electric vehicle includes a lithium battery, a super capacitor, a bidirectional DC / DC converter, an energy management controller, a motor controller and a motor. The super capacitor is connected in parallel with the lithium battery through a bidirectional DC / DC converter, and then connected to the motor controller and the motor in turn. The energy management controller is connected to the lithium battery bidirectional DC / DC converter and the motor controller through a CAN bus. The energy management controller controls the energy of the electric vehicle according to the driving state of the vehicle and the required power P. demand , the state of charge SOC of the lithium battery and the supercapacitor controls the output current of the bidirectional DC / DC converter to distribute energy;
[0006] The method comprises the following steps:
[0007] 1) Vehicle status detection, collecting the real-time motor power P through the motor controller m , determine the operating status of the vehicle;
[0008] 2) Collect the car pedal signal and calculate the car's required power P demand , when the motor real-time power P m Greater than zero and the vehicle's required power P demand Greater than the maximum discharge power P of lithium battery dchg max Then go to step 3), when the motor real-time power P m Greater than zero and the vehicle's required power P demand Less than the maximum discharge power P of lithium battery dchg max Go to step 4), when the motor real-time power P m When it is less than zero, go to step 5);
[0009] 3) When the car is in the starting, accelerating or normal state, determine whether the supercapacitor SOC is lower than the lower limit setting value SC low If yes, the motor controller is powered by the lithium battery alone, otherwise the motor controller is powered by the lithium battery and the supercapacitor together;
[0010] 4) When the car is in the starting, accelerating or normal state, the lithium battery supplies power to the motor controller alone to determine whether the supercapacitor SOC is not higher than the lower limit setting value SC low , then the bidirectional DC / DC converter is controlled to charge the supercapacitor;
[0011] 5) When the vehicle is in a deceleration or braking state, the energy management controller recovers energy from the motor controller, and the energy management controller controls the bidirectional DC / DC converter to operate in a buck mode, that is, the current flows from the lithium battery end to the supercapacitor end;
[0012] The energy management controller collects and determines whether the state of charge (SOC) of the supercapacitor and lithium battery is higher than the corresponding upper limit setting value: Supplementary upper or lower limit: Supercapacitor upper limit value: SC high , supercapacitor lower limit SC low , Lithium battery upper limit LiSOC high , Lithium battery lower limit LiSOC low
[0013] If the supercapacitor SOC is not higher than the upper limit setting value SC high , and then determine whether the lithium battery SOC is higher than the upper limit setting value. If the lithium battery SOC is not higher than the upper limit setting value LiSOC high , energy is recovered by lithium battery and super capacitor; if the lithium battery SOC is higher than the upper limit setting value LiSOC high , the energy is recovered by the supercapacitor, and the supercapacitor charging is controlled through algorithm optimization;
[0014] If the supercapacitor SOC is higher than the upper limit setting value SC high , judge whether the lithium battery SOC is higher than the upper limit setting value. If the lithium battery SOC is not higher than the upper limit setting value LiSOC high , energy is recovered by the lithium battery; if the lithium battery SOC is higher than the upper limit setting value, neither the lithium battery nor the supercapacitor will recover energy.
[0015] Preferably, in step 3), when the lithium battery and the super capacitor supply power to the motor controller, the output power of the lithium battery and the super capacitor is optimized and controlled by the DDPG algorithm.
[0016] Preferably, the method for optimizing and controlling the output power of lithium batteries and supercapacitors by the DDPG algorithm is as follows: constructing an actor-critic network structure model, updating the model parameters according to minimizing the loss function and minimizing the gradient function, setting the state S(t)={P demand ,SOC li ,SOC C}, including the required power P demand , Lithium battery state of charge SOC li And supercapacitor state of charge SOC C ; Action a(t) = {P li ,P C}, including lithium battery output power P li And the supercapacitor output power P C , reward function r(t),
[0017]
[0018] The reward function is the reward function value generated after the electric vehicle performs action a(t) in state S(t), λ, m, n are penalty weight factors, C all is the total power loss of the lithium battery, supercapacitor and bidirectional DC / DC converter. The actor-critic network structure model continuously learns and updates the network parameters according to the state, action and reward function data, and outputs the next action to optimize the energy distribution. t represents time t, t0 represents the initial time, and r(t) represents the reward function at time t.
[0019] Preferably, the DDPG algorithm network model is trained, and an experience replay pool D is set during training to store historical sample data (S(t), μ(S(t)), r(t), S(t+1)). The actor-critic network extracts data for training and learning. If the D data in the experience replay pool has not reached the upper limit, the data is stored in the experience replay pool; otherwise, new data is continued to be stored after the old data is deleted until the training is completed; the energy management controller controls the bidirectional DC / DC converter to be in a step-down constant current working mode according to the trained DDPG algorithm network model, the lithium battery alone supplies power to the motor controller and charges the supercapacitor with a constant current, and at the same time determines whether the supercapacitor SOC reaches the set value. When the set value is reached, the bidirectional DC / DC converter is in a step-down constant voltage working mode, the lithium battery alone supplies power and performs constant voltage floating charging on the supercapacitor, and the supercapacitor is not actually charged.
[0020] Preferably, the actor-critic network structure model includes an online network μ, a target network μ′, an online network Q, and a target network Q′, wherein the online network μ performs parameter θ μ Iterative update, select the output current action μ(S(t)) according to the current state S(t); the target network μ′ selects the optimal next action μ(S(t+1)) according to the next state S(t+1) sampled in the experience replay pool, and copies the updated parameters from the online network μ, and the online Q network performs parameter θ Q Iterative update, and calculate the Q value Q(S(t),μ(S(t))|θ of the action μ(S(t)) under the current state S(t) Q ), the target Q network calculates the training target value y of the next action μ(S(t+1)) of the next state S(t+1) t =r(t)+γQ′(S(t+1),μ′(S(t+1)|θ μ )|θ Q′), r(t) is the reward function, γ∈[0,1] is the trade-off factor that affects the current judgment and future rewards, and the target Q network copies the updated parameters from the online Q network.
[0021] Preferably, the DDPG algorithm introduces random interference β by adopting the UO random process through the greedy strategy. t , simulating the real-time changing environment of the car, and transforming the output action μ(S(t)) of the online network μ and the random interference β t As the electric vehicle control input a(t) = μ(S t |θ μ )+β t , optimize the distribution of power to lithium batteries and supercapacitors.
[0022] Preferably, the actor-critic network updates its own parameters by means of a loss function and a minimization gradient function, and the online network Q is updated by minimizing the loss function, and the loss function L is defined as:
[0023]
[0024] y t =r t +γQ′(S t+1 ,μ′(S t+1 |θ μ′ )|θ Q ′) (5)
[0025] N is the number of samples collected by the network from the experience replay pool D, θ Q ,θ Q ′ is the online network Q and the target network Q, θ μ′ is the target network μ′, r t is the reward function, γ∈[0,1] is a compromise factor that affects the current judgment and future rewards, and y is introduced t Make the network Q parameter update learning more stable and easy to converge, and the online network μ is updated by minimizing the policy gradient:
[0026]
[0027]
[0028] θ μ Represents the network parameters μ, and outputs action μ(S(t)) according to the state S(t).
[0029] Preferably, in steps 3), 4) and 5), the energy management controller uses a PID algorithm to control the output current of the bidirectional DC / DC converter to control the output power of the supercapacitor in real time.
[0030] Preferably, the energy management controller uses a PID algorithm to control the output current of the bidirectional DC / DC converter in the following manner:
[0031]
[0032] Among them U t is the output signal of the PID controller, K p is the proportional constant, e(t) is the difference between the given current value and the output current value of the bidirectional DC / DC converter, T t is the integration time constant, T D is the differential time constant, and the PID control rate of formula (1) is discretized to obtain: t is the time, e(t) is the current value given at time t:
[0033]
[0034]
[0035] in, T is the sampling period, K is the sampling number;
[0036] By continuously correcting the error between the output current of the bidirectional DC / DC converter and the given current value, the output voltage of the bidirectional DC / DC converter is quickly tracked, the output current of the bidirectional DC / DC converter is continuously given, and the output power of the supercapacitor is controlled in real time.
[0037] The present invention also proposes an electric vehicle hybrid power system, including a lithium battery, a super capacitor, a bidirectional DC / DC converter, an energy management controller, a motor controller and a motor. The super capacitor is connected in parallel with the lithium battery through a bidirectional DC / DC converter, and then connected to the motor controller and the motor in sequence. The energy management controller is connected to the lithium battery bidirectional DC / DC converter and the motor controller through a CAN bus. The system is characterized in that: the system executes the above-mentioned energy management method for an electric vehicle hybrid power system.
[0038] Compared with the prior art, the electric vehicle hybrid power system energy management method and system designed by the present invention has the following advantages:
[0039] 1. The present invention adopts an optimal control strategy to distribute the power of lithium batteries and super capacitors, and controls the working mode and output current of the bidirectional DC / DC converter to improve energy efficiency and protect lithium batteries;
[0040] 2. The present invention reduces the peak battery power in the actual real-world driving cycle, and the calculation speed is faster under the same benchmark calculation;
[0041] 3. The present invention adopts the DDPG algorithm to obtain a more precise control effect, realize the control of the peak power of the lithium battery, reduce power fluctuations, improve the overall efficiency, and effectively extend the life of the lithium battery. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a structural block diagram of the present invention.
[0043] Figure 2 This is a flow chart of energy distribution of the hybrid energy storage system in the present invention.
[0044] Figure 3 This is the flow chart of the DDPG algorithm.
[0045] Figure 4 This is a schematic diagram of the energy management strategy program when the driver deeply presses the accelerator pedal.
[0046] Figure 5 This is a schematic diagram of the current values of various components when the energy management strategy program is executed when the driver deeply presses the accelerator pedal.
[0047] Figure 6 This is a schematic diagram of the energy management strategy program when the driver lightly steps on the accelerator pedal.
[0048] Figure 7 This is a schematic diagram of the current values of various components when the energy management strategy program is executed when the driver lightly steps on the accelerator pedal.
[0049] Figure 8 This is a schematic diagram of the current values of various components when the driver does not step on the accelerator pedal or brake.
[0050] Fig. 9 It is the working upper computer interface of the method of the present invention.
[0051] Fig.10 Schematic diagram of the test results of the hybrid system of an electric vehicle. DETAILED DESCRIPTION
[0052] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0053] The present invention provides an electric vehicle hybrid power system, including a lithium battery, a super capacitor, a bidirectional DC / DC converter, an energy management controller, a motor controller and a motor. The super capacitor is connected in parallel with the lithium battery through a bidirectional DC / DC converter, and then connected to the motor controller and the motor in sequence. The energy management controller is connected to the lithium battery bidirectional DC / DC converter and the motor controller through a CAN bus. The energy management controller controls the driving state of the vehicle and the required power P. demandThe state of charge SOC of the lithium battery and supercapacitor controls the output current of the bidirectional DC / DC converter to distribute energy. The energy management controller calculates the required power P according to the driver's pedal command. demand , output torque to control the motor controller. At the same time, the energy management controller collects the hybrid system status parameters through the CAN bus, including lithium battery voltage, current and SOC value, supercapacitor voltage, current, and motor real-time torque and speed. According to the energy management method, the bidirectional DC / DC converter working mode and output current are controlled, and the DDPG algorithm is combined to optimize the energy distribution of the hybrid system.
[0054] The present invention provides an energy management method for a hybrid power system of an electric vehicle, comprising the following steps:
[0055] 1) Start the hybrid system of the electric vehicle, collect the current motor speed and torque parameters of the motor controller through the energy management controller, and obtain the real-time motor power P m , collect pedal signal to get required power P demand , as well as the state of charge SOC of lithium batteries and supercapacitors.
[0056] The method of optimizing and controlling the output power of lithium batteries and supercapacitors by DDPG algorithm is as follows: constructing an actor-critic network structure model, updating the model parameters according to minimizing the loss function and minimizing the gradient function, setting the state S(t) = {P demand ,SOC li ,SOC C}, including the required power P demand , Lithium battery state of charge SOC li And supercapacitor state of charge SOC C ; Action a(t) = {P li ,P C}, including lithium battery output power P li And the supercapacitor output power P C , reward function r(t),
[0057]
[0058] The reward function is the reward function value generated after the electric vehicle performs action a(t) in state S(t), λ, m, n are penalty weight factors, C all The actor-critic network structure model continuously learns and updates the network parameters according to the state, action and reward function data, and outputs the next action to optimize the energy distribution.
[0059] The actor-critic network structure model includes an online network μ, a target network μ′, an online network Q, and a target network Q′, where the online network μ performs parameter θ μ Iterative update, select the output current action μ(S(t)) according to the current state S(t); the target network μ′ selects the optimal next action μ(S(t+1)) according to the next state S(t+1) sampled in the experience replay pool, and copies the updated parameters from the online network μ, and the online Q network performs parameter θ Q Iterative update, and calculate the Q value Q(S(t),μ(S(t))|θ of the action μ(S(t)) under the current state S(t) Q ), the target Q network calculates the training target value y of the next action μ(S(t+1)) of the next state S(t+1) t =r(t)+γQ′(S(t+1),μ′(S(t+
[0060] 1)|θ μ )|θ Q ′), r(t) is the reward function, γ∈[0,1] is the trade-off factor that affects the current judgment and future rewards, and the target Q network copies the updated parameters from the online Q network.
[0061] 2) Determine the vehicle status, collect motor controller parameters through the energy management controller, and analyze the real-time motor power P m Is it greater than zero? If it is less than zero, it means the car is in a deceleration or braking state. If the real-time power of the motor P m If it is greater than zero, it means the car is in the starting, accelerating or normal driving state. Figure 1 shown.
[0062] Collect the car pedal signal and calculate the car's required power P demand When the motor real-time power P m Greater than zero and the vehicle's required power P demand Greater than the maximum discharge power P of the lithium battery dchg max Then go to step 3), when the motor real-time power P m Greater than zero and the vehicle's required power P demand Less than the maximum discharge power P of lithium battery dchg max Go to step 4), when the motor real-time power P m When it is less than zero, go to step 5).
[0063] 3) When the driver steps on the accelerator pedal deeply and the car is in the starting or accelerating state, P m Greater than zero, P demand Greater than the maximum discharge power of lithium batteries The energy management controller controls the bidirectional DC / DC converter in boost constant current mode according to the DDPG algorithm, defines the supercapacitor end as the low voltage end, and the motor and lithium battery currents start to rise from zero. The bidirectional DC / DC converter starts with a negative current, and the current flows from the supercapacitor to the lithium battery. The bidirectional DC / DC converter uses a PID algorithm to control the current of the bidirectional DC / DC converter to follow the supercapacitor end current in real time. When no current flows through the supercapacitor end, the bidirectional DC / DC converter basically does not pass current.
[0064] The lithium battery and the supercapacitor are used together to supply power until the supercapacitor SOC is lower than the set value, and the bidirectional DC / DC converter switches to the boost constant voltage mode, that is, it is only powered by the lithium battery. Figure 4 , Figure 5 shown.
[0065] 4) When the driver lightly steps on the accelerator pedal, the energy management controller collects the motor torque, speed parameters and pedal signal parameters. At this time, P m Greater than zero, P demand Less than the maximum discharge power of lithium battery The car is in a normal driving state at a constant speed, and the lithium battery alone supplies power to the motor controller to determine whether the supercapacitor SOC is not higher than the lower limit setting value SC low , then the bidirectional DC / DC converter is controlled to charge the supercapacitor.
[0066] The energy management controller collects the voltage and current parameters of the supercapacitor and inputs these data into the experience replay pool D as historical sample data. The DDPG algorithm learns from past experience, introduces experience replay, sets up the experience replay pool D, and stores historical sample data (S(t), μ(S(t)), r(t), S(t+1)). The actor-critic network extracts small batches of data for training and learning. If the data in the experience replay pool has not reached the upper limit, the data is stored in the experience replay pool; otherwise, new data will continue to be stored after the old data is deleted until the training is completed.
[0067] The actor-critic network updates its own parameters by minimizing the loss function and the gradient function. The online network Q is updated by minimizing the loss function. The loss function L is defined as:
[0068]
[0069] y t =r t +γQ′(S t+1 ,μ′(S t+1 |θ μ′ )|θ Q ′) (5)
[0070] N is the number of samples collected by the network from the experience replay pool D, θ Q ,θ Q ′ is the online network Q and the target network Q, θ μ′ is the target network μ′, r t is the reward function, γ∈[0,1] is a compromise factor that affects the current judgment and future rewards, and y is introduced t Make the network Q parameter update learning more stable and easy to converge, and the online network μ is updated by minimizing the policy gradient:
[0071]
[0072]
[0073] θ μ Represents the network parameters μ, and outputs action μ(S(t)) according to the state S(t).
[0074] The DDPG algorithm uses the UO random process through the greedy strategy to introduce random interference β t , simulating the real-time changing environment of the car, and transforming the output action μ(S(t)) of the online network μ and the random interference β t As the electric vehicle control input a(t) = μ(S t |θ μ )+β t , optimize the distribution of lithium battery and supercapacitor power. The energy management controller optimizes the distribution of lithium battery and supercapacitor energy according to the output action of DDPG. The DDPG algorithm optimizes the distribution of lithium battery and supercapacitor energy according to the status data P of the car. demand , SOC li , SOC C Continuously learn to build a network model. When the car is driving in a certain state, the DDPG algorithm network calculates the required power P according to the current car state data S(t). demand , Lithium battery state of charge SOC li And supercapacitor state of charge SOC C , output action μ(S(t)) is the power distribution of lithium battery and supercapacitor P li ,P C , combined with the current environment random interference β t The power distribution of lithium battery and super capacitor is input to the energy management controller, and the energy management controller obtains the current power distribution of lithium battery and super capacitor of the vehicle, and the power distribution value P of lithium battery and super capacitor input by DDPG algorithm network is calculated. li ,P C Compared with the current real-time value, if the difference is not large, the energy management controller will allocate the output power of the DDPG algorithm to P li ,P CAs output, control the output power of lithium battery and super capacitor to P li ,P C , the current at the supercapacitor end will change. At this time, the bidirectional DC / DC converter is controlled by the PID algorithm to control the current at the bidirectional DC / DC converter end to follow the change of the current at the supercapacitor end.
[0075] The energy management controller controls the bidirectional DC / DC converter in the buck constant current working mode according to the trained network, and the lithium battery is powered alone and charges the supercapacitor with a constant current. At the same time, the algorithm determines whether the supercapacitor SOC reaches the set value. When the set value is reached, the bidirectional DC / DC converter is in the buck constant voltage working mode, and the lithium battery is powered alone and charges the supercapacitor with a constant voltage float charge. The supercapacitor is not actually charged. The energy management strategy program and the current size of each component are as follows Figure 6 , Figure 7 shown.
[0076] At this time, the car is traveling at a normal constant speed, the motor current fluctuates slightly around 9A, the lithium battery supplies power alone and charges the supercapacitor, and the current flowing through the bidirectional DC / DC converter is positive until the supercapacitor is fully charged, and no current flows through the bidirectional DC / DC converter.
[0077] 5) When the driver does not step on the accelerator pedal or the brake pedal, the car is in a deceleration or braking state, and the energy management controller recovers energy from the motor controller. The energy management controller collects and determines whether the state of charge SOC of the supercapacitor and lithium battery is higher than the corresponding upper limit setting value. Set the upper limit value of the supercapacitor to SC high , the lower limit of supercapacitor is SC low The upper limit of lithium battery is LiSOC high , the lower limit of lithium battery is LiSOC low .
[0078] If the supercapacitor SOC is not higher than the upper limit setting value SC high , and then determine whether the lithium battery SOC is higher than the upper limit setting value. If the lithium battery SOC is not higher than the upper limit setting value LiSOC high , energy is recovered by lithium battery and super capacitor; if the lithium battery SOC is higher than the upper limit setting value LiSOC high , the energy is recovered by the supercapacitor, and the supercapacitor charging is controlled through algorithm optimization;
[0079] If the supercapacitor SOC is higher than the upper limit setting value SC high , judge whether the lithium battery SOC is higher than the upper limit setting value. If the lithium battery SOC is not higher than the upper limit setting value LiSOC high, energy is recovered by the lithium battery; if the lithium battery SOC is higher than the upper limit setting value, neither the lithium battery nor the supercapacitor will recover energy.
[0080] The energy management controller collects the motor torque, speed parameters and pedal signal parameters, and then P m Less than zero, the car is in a deceleration or braking state. The energy management controller collects the voltage and current parameters of the supercapacitor and lithium battery. The DDPG algorithm network outputs the action μ(S(t)) according to the state parameters at this time, controls the bidirectional DC / DC converter to be in a step-down constant current working mode, recovers energy to the lithium battery and supercapacitor, and controls the charging of the supercapacitor through algorithm optimization. After the supercapacitor is fully charged, the bidirectional DC / DC is changed to a step-down constant voltage working mode, and the supercapacitor is float-charged at a constant voltage, but it is not actually charged. The current of each component is as follows Figure 8 shown.
[0081] When the car is in a deceleration state, the motor current drops from 10A and supplies power to the supercapacitor and lithium battery at the same time until the supercapacitor is fully charged.
[0082] In steps 3), 4), and 5), the energy management controller uses a PID algorithm to control the output current of the bidirectional DC / DC converter to control the output power of the supercapacitor in real time. The energy management controller uses a PID algorithm to control the output current of the bidirectional DC / DC converter as follows:
[0083]
[0084] Among them U t is the output signal of the PID controller, K p is the proportional constant, e(t) is the difference between the given current value and the output current value of the bidirectional DC / DC converter, T t is the integration time constant, T D is the differential time constant, and the PID control rate of formula (1) is discretized to obtain: t is the time, e(t) is the current value given at time t.
[0085]
[0086]
[0087] in, T is the sampling period, and K is the sampling sequence number.
[0088] By continuously correcting the error between the output current of the bidirectional DC / DC converter and the given current value, the output voltage of the bidirectional DC / DC converter is quickly tracked, the output current of the bidirectional DC / DC converter is continuously given, and the output power of the supercapacitor is controlled in real time.
[0089] The working host computer interface for implementing the method of the present invention is as follows Fig. 9 As shown, based on the above energy management method, the hybrid system test platform is allowed to perform UDDS, NEDC and other operating condition tests, and the resulting operating condition diagram is shown in Fig.10 As shown. In the first working condition: the acceleration and braking amplitude of the car is relatively obvious, and most of the time it is driving on a steep slope. The common power supply and braking energy recovery of the supercapacitor and lithium battery can effectively alleviate the lithium battery from working at peak power, and try to control it within 5KW; In the second working condition: the acceleration and braking of the car are relatively gentle, and the power distribution between the lithium battery and the supercapacitor is relatively smooth and stable: The third working condition environment is more complex. When the car is driving on a steep slope, the supercapacitor is used to alleviate the lithium battery from working at peak power. When the car is driving on a gentle slope, the energy distribution between the two is smooth.
[0090] By distributing energy through the energy management method proposed in the present invention, the supercapacitor has the function of absorbing high-power energy instantaneously. The DDPG algorithm can achieve a more precise control effect, realize the control of the peak power of the lithium battery, reduce power fluctuations, improve the overall efficiency, and effectively extend the life of the lithium battery.
[0091] Finally, it should be noted that the above specific implementation methods are only used to illustrate the technical solution of this patent rather than to limit it. Ordinary technicians in this field should understand that the technical solution of this patent can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of this patent, which should be covered by the scope of the claims of this patent.
Claims
1. An energy management method for a hybrid power system of an electric vehicle, used to implement energy management of a hybrid power system of an electric vehicle, characterized in that: The hybrid power system of the electric vehicle includes a lithium battery, a super capacitor, a bidirectional DC / DC converter, an energy management controller, a motor controller and a motor. The super capacitor is connected in parallel with the lithium battery through a bidirectional DC / DC converter, and then connected to the motor controller and the motor in sequence. The energy management controller is connected to the lithium battery bidirectional DC / DC converter and the motor controller through a CAN bus. The energy management controller controls the driving state of the vehicle and the required power P demand , the state of charge SOC of the lithium battery and the supercapacitor controls the output current of the bidirectional DC / DC converter to distribute energy; The method comprises the following steps: 1) Vehicle status detection, collect the real-time motor power P through the motor controller m , determine the operating status of the vehicle; 2) Collect the car pedal signal and calculate the car's required power P demand , when the motor real-time power P m Greater than zero and the vehicle's required power P demand Greater than the maximum discharge power P of lithium battery dchg max Then go to step 3), when the motor real-time power P m Greater than zero and the vehicle's required power P demand Less than the maximum discharge power P of lithium battery dchg max Go to step 4), when the motor real-time power P m When it is less than zero, go to step 5); 3) When the car is in the starting, accelerating or normal driving state, determine whether the supercapacitor SOC is lower than the lower limit setting value SC low If yes, the motor controller is powered by the lithium battery alone, otherwise the motor controller is powered by the lithium battery and the supercapacitor together; When lithium batteries and supercapacitors are used to power the motor controller, the output power of lithium batteries and supercapacitors is optimized and controlled by the DDPG algorithm; 4) When the car is in the starting, accelerating or normal driving state, the lithium battery supplies power to the motor controller alone to determine whether the supercapacitor SOC is not higher than the lower limit setting value SC low , then the bidirectional DC / DC converter is controlled to charge the supercapacitor; 5) When the vehicle is in a deceleration or braking state, the energy management controller recovers energy from the motor controller, and the energy management controller controls the bidirectional DC / DC converter to operate in a buck mode, that is, the current flows from the lithium battery end to the supercapacitor end; The energy management controller collects and determines whether the state of charge (SOC) of the supercapacitor and the lithium battery is higher than the corresponding upper limit setting value: If the supercapacitor SOC is not higher than the upper limit setting value SC high , and then determine whether the lithium battery SOC is higher than the upper limit setting value. If the lithium battery SOC is not higher than the upper limit setting value LiSOC high , energy is recovered by lithium battery and super capacitor; if the lithium battery SOC is higher than the upper limit setting value LiSOC high , the energy is recovered by the supercapacitor, and the supercapacitor charging is controlled through algorithm optimization; If the supercapacitor SOC is higher than the upper limit setting value SC high , judge whether the lithium battery SOC is higher than the upper limit setting value. If the lithium battery SOC is not higher than the upper limit setting value LiSOC high , the energy is recovered by the lithium battery; if the lithium battery SOC is higher than the upper limit setting value, neither the lithium battery nor the supercapacitor will recover energy; The method of optimizing and controlling the output power of lithium batteries and supercapacitors by DDPG algorithm in step 3) is as follows: constructing an actor-critic network structure model, updating the model parameters according to minimizing the loss function and minimizing the gradient function, setting the state S(t) = {P demand ,SOC li ,SOC C }, including the required power P demand , Lithium battery state of charge SOC li And supercapacitor state of charge SOC C ; Action a(t) = {P li ,P C }, including lithium battery output power P li And the supercapacitor output power P C , reward function r(t), The reward function is the reward function value generated after the electric vehicle performs action a(t) in state S(t), λ, m, n are penalty weight factors, C all is the total power loss of lithium battery, supercapacitor and bidirectional DC / DC converter. The actor-critic network structure model continuously learns and updates the network parameters according to the state, action and reward function data, and outputs the next action to optimize the energy distribution. t represents time t, t0 represents the initial time, and r(t) represents the reward function at time t. The DDPG algorithm network model is trained. During training, an experience replay pool D is set to store historical sample data (S(t), μ(S(t)), r(t), S(t+1)). The actor-critic network extracts data for training and learning. If the D data in the experience replay pool has not reached the upper limit, the data is stored in the experience replay pool; otherwise, new data is continuously stored after the old data is deleted until the training is completed; the energy management controller controls the bidirectional DC / DC converter to be in a buck constant current working mode according to the trained DDPG algorithm network model, the lithium battery alone supplies power to the motor controller and charges the supercapacitor with a constant current, and at the same time determines whether the supercapacitor SOC reaches the set value. When the set value is reached, the bidirectional DC / DC converter is in a buck constant voltage working mode, the lithium battery alone supplies power and performs constant voltage floating charging on the supercapacitor, and the supercapacitor is not actually charged; The DDPG algorithm introduces random interference β by adopting the UO random process through the greedy strategy. t , simulating the real-time changing environment of the car, and transforming the output action μ(S(t)) of the online network μ and the random interference β t As the electric vehicle control input a(t) = μ(S t |θ μ )+β t , optimize the distribution of power to lithium batteries and supercapacitors.
2. The method for managing energy of a hybrid power system of an electric vehicle according to claim 1, characterized in that: The actor-critic network structure model includes an online network μ, a target network μ′, an online network Q, and a target network Q′, wherein the online network μ performs parameter θ μ The target network μ′ selects the optimal next action μ(S(t+1)) based on the next state S(t+1) sampled in the experience replay pool, and copies the updated parameters from the online network μ. The online network Q performs parameter θ Q Iterative update, and calculate the Q value Q(S(t),μ(S(t))|θ of the action μ(S(t)) under the current state S(t) Q ), the target network Q' calculates the training target value y of the next action μ(S(t+1)) of the next state S(t+1) t =r(t)+γQ′(S(t+1),μ′(S(t+1)|θ μ )|θ Q′ ), r(t) is the reward function, γ∈[0,1] is the trade-off factor that affects the current judgment and future rewards, and the target network Q' copies the updated parameters from the online network Q.
3. The method for energy management of a hybrid power system of an electric vehicle according to claim 2, characterized in that: The actor-critic network updates its own parameters by using the loss function and minimizing the gradient function. The online network Q is updated by minimizing the loss function. The loss function L is defined as: y t =r t +γQ′(S t+1 ,μ′(S t+1 |θ μ′ )|θ Q′ ) (5) N is the number of samples collected by the network from the experience replay pool D, θ Q ,θ Q′ For the online network Q and the target network Q', θ μ′ is the target network μ′, r t is the reward function, γ∈[0,1] is a compromise factor that affects the current judgment and future rewards, and y is introduced t Make the target network Q' parameter update learning more stable and easy to converge, and the online network μ is updated by minimizing the policy gradient: θ μ Represents the network parameters μ, and outputs action μ(S(t)) according to the state S(t).
4. The method for energy management of a hybrid power system of an electric vehicle according to claim 1, characterized in that: In steps 3), 4) and 5), the energy management controller uses a PID algorithm to control the output current of the bidirectional DC / DC converter to control the output power of the supercapacitor in real time.
5. The method for managing energy of a hybrid power system of an electric vehicle according to claim 4, characterized in that: The energy management controller uses the PID algorithm to control the output current of the bidirectional DC / DC converter: Among them U t is the output signal of the PID controller, K p is the proportional constant, e(t) is the difference between the given current value and the output current value of the bidirectional DC / DC converter, T t is the integration time constant, T D is the differential time constant, and the PID control rate of formula (1) is discretized to obtain: t is the time, e(t) is the current value given at time t: in, T is the sampling period, K is the sampling number; By continuously correcting the error between the output current of the bidirectional DC / DC converter and the given current value, the output voltage of the bidirectional DC / DC converter is quickly tracked, the output current of the bidirectional DC / DC converter is continuously given, and the output power of the supercapacitor is controlled in real time.
6. A hybrid power system for an electric vehicle, comprising a lithium battery, a super capacitor, a bidirectional DC / DC converter, an energy management controller, a motor controller and a motor, wherein the super capacitor is connected in parallel with the lithium battery via a bidirectional DC / DC converter, and then connected to the motor controller and the motor in sequence, and the energy management controller is connected to the lithium battery bidirectional DC / DC converter and the motor controller via a CAN bus, characterized in that: The system executes an electric vehicle hybrid power system energy management method according to any one of claims 1 to 5.
