Fuel cell automobile energy management strategy based on spider bee optimization
Through the spider-bee optimization algorithm and working condition identification system, the power distribution of the fuel cell and battery is dynamically adjusted, solving the problems of slow dynamic response and poor cold start performance of fuel cell vehicles, and achieving a reduction in equivalent hydrogen consumption and fuel cell life. of extension.
Patent Information
- Application Number
- CN202410846798.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-06
AI Technical Summary
Existing fuel cell vehicles have slow dynamic response, poor cold start performance, inability to recover braking energy, and lack of flexibility in fuel cell and battery power distribution control, making it impossible to effectively reduce equivalent hydrogen consumption.
The fuel cell vehicle energy management strategy based on Spider Bee optimization is adopted, combined with the working condition identification system, and the vehicle driving condition is judged through the neural network, and the control parameters are dynamically adjusted to optimize the power distribution of the fuel cell and battery, and reduce the equivalent hydrogen consumption.
This enables fuel cell vehicles to meet power requirements while reducing equivalent hydrogen consumption, improving energy utilization, and extending the service life of fuel cells.
Smart Images

Figure CN118596945A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of new energy vehicles, and in particular relates to an energy management strategy for fuel cell vehicles based on spider bee optimization. Background Art
[0002] Fuel cell vehicles are one of the current development directions of the new energy vehicle industry. However, pure fuel cell vehicles have slow dynamic response and cannot provide the peak power of the vehicle. At the same time, the cold start performance is poor and the braking energy recovery cannot be performed. At present, batteries are often introduced as auxiliary power sources. How to distribute the power of fuel cells and batteries has become one of the hot research directions of fuel cell electric vehicles. The rule-based control strategy, in which the selection of internal parameters of the control strategy has a greater impact on the control effect, the actual effect of the parameters selected according to the experience of scholars needs to be verified, and it is impossible to use multiple sets of parameters dynamically and flexibly. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies of the above-mentioned prior art, provide a fuel cell vehicle energy management strategy based on spider bee optimization, and introduce a working condition identification system, which is used to identify the working condition through a neural network, so that during the actual driving process of the vehicle, multiple sets of parameters can be flexibly used according to different working conditions, so that the fuel cell hybrid vehicle can reduce the equivalent hydrogen consumption while meeting the requirements of power performance, thereby improving the economy of the vehicle;
[0004] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme: a fuel cell vehicle energy management strategy based on spider bee optimization, comprising:
[0005] Step 1: According to the actual power required by the vehicle P m and the vehicle's SOC state of charge to build a rule controller;
[0006] Step 2: Combine the equivalent hydrogen consumption and fuel cell life attenuation to establish an equivalent hydrogen consumption objective function model, and combine the spider bee optimization algorithm to optimize all parameters to be optimized in the rule controller to obtain a data set of optimized parameters;
[0007] Step 3: Based on the long-short time neural network, the driving condition of the vehicle is judged to obtain the judged driving condition, and then according to the judged driving condition, the optimization parameter in the corresponding mode is selected from the data set of the optimization parameter, and it is input into the rule controller for energy management control.
[0008] Furthermore, the actual required power P of the vehicle m The expression is:
[0009] P m =ηP req
[0010] Where P m is the actual power demanded by the vehicle, η is the efficiency of the vehicle transmission system, P req is the total power of the vehicle power source;
[0011] The expression of the total power of the vehicle power source is:
[0012]
[0013] Where u is the vehicle speed, η t is the transmission system efficiency, m is the vehicle weight, g is the acceleration of gravity, f is the rolling resistance coefficient, α is the road slope angle, C D is the air resistance coefficient, A is the frontal area of the vehicle, δ is the rotational mass conversion coefficient, and a is the vehicle acceleration.
[0014] Furthermore, the calculation formula of the SOC state of charge of the vehicle is:
[0015]
[0016] In the formula, SOC is the battery state of charge value, SOC 0 C is the battery state of charge at the beginning of charge and discharge. N is the rated capacity of the battery, η bat is the battery charge and discharge efficiency, I is the battery current, and t is the charge and discharge time.
[0017] Furthermore, the rule controller includes:
[0018] Mode 1: Power saving mode, when the actual power required is P m < Fuel cell optimum efficiency power P eff-max When SOC 1 <SOC<SOC max Fuel cell power P fc = 0, the battery outputs all power, otherwise, the fuel cell power P fc =P eff-max , the excess energy is used to charge the battery until SOC = SOC 1 , where SOC 1 To model the battery parameter threshold of the vehicle battery, SOC max is the maximum value of the battery parameter threshold of the vehicle battery, and SOC is the battery state of charge value;
[0019] Mode 2: Medium and low power mode, when P m <P fc1 When SOC>SOC min , and SOC>SOC 2 , so that Pfc =P eff-max , the insufficient energy to drive the car is provided by the battery. If SOC≤SOC min , so that P fc =P fc1 The excess energy output by the fuel cell is used to charge the battery, where SOC 2 is the battery parameter threshold of the vehicle battery in mode 2, SOC min is the minimum value of the battery parameter threshold of the vehicle battery, P fc1 is the threshold value of fuel cell power point 1 of the vehicle fuel cell in mode 2;
[0020] Mode 3: Medium to high power mode, when P m <P fc2 When SOC≤SOC min , so that P fc =K*P fc2 , so that the battery is charged quickly, if SOC min <SOC<SOC 3 , so that P fc =P fc2 , the remaining energy output by the fuel cell is used to charge the battery. If SOC ≥ SOC 3 , so that P fc =P eff-max The insufficient energy for driving the car is provided by the battery, among which SOC 3 is the battery parameter threshold of the vehicle battery in mode 3, P fc2 is the threshold value of fuel cell power point 2 of the vehicle fuel cell in mode 3, k is the magnification factor of the vehicle fuel cell power in mode 3 based on fuel cell power point 2;
[0021] Mode 4: High power mode, when the actual power required is P m < Maximum fuel cell power P max When SOC <SOC min , so that P fc =P max , until SOC = SOC 4 , if SOC min ≤SOC <SOC 4 , so that P fc =P eff-max The insufficient energy for driving the car is provided by the battery, among which SOC 4 The battery parameter threshold of the vehicle battery in mode 4;
[0022] Mode 5: Cruise control mode: When the vehicle maintains a certain speed range for a period of time, the vehicle will m The size enters a specific mode, and when the SOC reaches a specific value, the Pfc =P m , if P m If a short-term change occurs, the remaining power is supplemented or absorbed by the battery.
[0023] Furthermore, the equivalent hydrogen consumption objective function model expression is:
[0024]
[0025] in, is the equivalent hydrogen consumption of the fuel cell, is the equivalent hydrogen consumption caused by the fuel cell stack attenuation, is the equivalent hydrogen consumption of the battery;
[0026] The expression of the equivalent hydrogen consumption of the fuel cell is:
[0027]
[0028] Where N cell is the number of fuel cell stacks, I fc is the fuel cell output current, M H2 is the molar mass of hydrogen, and F is the Faraday constant;
[0029] The expression of equivalent hydrogen consumption caused by the fuel cell stack attenuation is:
[0030]
[0031] Where P 1 is the fuel cell performance degradation rate caused by load change, n 1 Number of vehicle driving cycle load change cycles, P 2 is the fuel cell performance degradation rate caused by the start-stop cycle, n 2 is the number of start-stop cycles when the vehicle is driving, P 3 is the fuel cell performance degradation rate caused by no-load, t 1 is the idling time of the fuel cell per hour, P 4 is the fuel cell performance degradation rate caused by high load conditions, t 2 is the high-power operation time per hour when the vehicle is running, α fc is the fuel cell stack price, α H2 is the price of hydrogen;
[0032] The expression of equivalent hydrogen consumption of the battery is:
[0033]
[0034] Where P bat is the output power of the battery, αele is the price per kWh, η bat is the energy conversion efficiency of the battery.
[0035] Furthermore, the specific steps of step 2 include:
[0036] Step 21: setting basic parameters of the spider bee optimization algorithm, wherein the basic parameters include the spider bee population, the maximum number of iterations, and the boundary interval of the target variable, wherein the target variable is the parameter to be optimized;
[0037] Step 22: Based on the boundary interval of the target variable, a random target variable is assigned to each spider bee in the spider bee population, so that the target variable referred to by each spider bee in the spider bee population is different, and the spider bee population is initialized;
[0038] Step 23: define the equivalent hydrogen consumption objective function model as the fitness function of the spider bee optimization algorithm, then input the collected data of various vehicle operating conditions and the data obtained after the spider bee population is initialized into the fitness function, calculate the fitness value of each spider bee individual, evaluate its superiority to the fitness function according to the fitness value, and divide the spider bee population into high-fitness and low-fitness individuals, select high-fitness parent individuals through evaluation to perform crossover mutation operation to generate offspring, compare the fitness values of the parent generations, select high-fitness individuals as the next generation population and perform iterative update to obtain the spider bee with the highest fitness value, that is, the optimization parameter;
[0039] Step 24: Use steps 21 to 23 to optimize all parameters to be optimized in the rule controller in turn to obtain a data set of optimized parameters.
[0040] Furthermore, all parameters to be optimized in the rule controller include: the battery parameter threshold SOC of the vehicle battery in the mode 1 , Battery parameter threshold SOC of vehicle battery in mode 2 2 , Battery parameter threshold SOC of vehicle battery in mode 3 3 , Battery parameter threshold SOC of vehicle battery in mode 4 4 , the threshold value P of the fuel cell power point 1 of the vehicle fuel cell in mode 2 fc1 , the threshold value P of the fuel cell power point 2 of the vehicle fuel cell in mode 3 fc2 And the amplification factor K of the vehicle fuel cell power in mode three is based on the fuel cell power point 2.
[0041] Furthermore, the specific steps of judging the driving condition of the vehicle based on the long-short time neural network include:
[0042] Step 31: Collect driving data of free-flowing conditions, congested conditions and high-speed conditions on different road surfaces, analyze the data and label them accordingly;
[0043] Step 32: Divide the labeled data into three groups, namely training set, test set and validation set in a ratio of 7:2:1;
[0044] Step 33: Input the training set data into the long-short time neural network for training to obtain a trained network model, then input the test set data into the trained network model to test whether the trained network model is perfect, and then input the validation set data into the tested network model to verify whether the tested network model can meet the requirements;
[0045] Step 34: extract the parameters of the verified network model obtained in step 33, and establish a driving condition classifier according to the extracted model parameters;
[0046] Step 35: The driving condition of the vehicle is judged by a driving condition classifier to obtain a judged driving condition.
[0047] Furthermore, the parameters of the verified network model include: the input weight IW of the Lstm layer, the periodic weight RW of the Lstm layer, the offset B of the Lstm layer, the weight FW of the fully connected layer, and the offset FB of the fully connected layer.
[0048] Beneficial effect: The present invention designs a rule-based control strategy and uses the spider bee optimization algorithm to optimize its parameters. In the optimization process, a mathematical model of equivalent hydrogen consumption that takes into account the fuel cell degradation cost is introduced as the fitness function used by the spider bee optimization algorithm to obtain the optimization parameters that minimize the equivalent hydrogen consumption. Through the operating condition recognition system, the vehicle operating condition is identified and the optimization parameters under the corresponding operating condition are selected, so that the optimized energy management strategy is beneficial to improving the energy utilization rate of fuel cell vehicles and can extend the service life of fuel cells to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 is a flow chart of a fuel cell vehicle energy management method based on a spider bee optimization algorithm in an embodiment of the present invention;
[0050] Figure 2 is a simplified diagram of a rule-based controller strategy in an embodiment of the present invention;
[0051] Figure 3 Schematic diagram of the spider bee optimization algorithm in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The present invention will be further explained below in conjunction with the accompanying drawings.
[0053] The present invention discloses a fuel cell vehicle energy management strategy based on spider bee optimization, comprising: step 1: according to the actual power demand P of the vehicle m And the SOC state of charge of the vehicle, build a rule controller.
[0054] Step 2: Combine the equivalent hydrogen consumption and fuel cell life attenuation to establish an equivalent hydrogen consumption objective function model, and combine the spider bee optimization algorithm to optimize all parameters to be optimized in the rule controller to obtain a data set of optimized parameters.
[0055] Step 3: Based on the long-short time neural network, the driving condition of the vehicle is judged to obtain the judged driving condition, and then according to the judged driving condition, the optimization parameter in the corresponding mode is selected from the data set of the optimization parameter, and it is input into the rule controller for energy management control.
[0056] like Figure 1 As shown, in step 1, the constructed rule controller takes the vehicle's required power and the battery charge state inside the vehicle as input variables, and takes the fuel cell output work inside the vehicle as the output variable.
[0057] Among them, the actual required power of the vehicle P m The expression is:
[0058] P m =ηP req
[0059] Where P m is the actual power demanded by the vehicle, η is the efficiency of the vehicle transmission system, P req is the total power of the vehicle's power source.
[0060] The total power of the vehicle power source is expressed as:
[0061]
[0062] Where u is the vehicle speed, η t is the transmission system efficiency, m is the vehicle weight, g is the acceleration of gravity, f is the rolling resistance coefficient, α is the road slope angle, C D is the air resistance coefficient, A is the frontal area of the vehicle, δ is the rotational mass conversion coefficient, and a is the vehicle acceleration.
[0063] The calculation formula of the vehicle's SOC state of charge is:
[0064]
[0065] In the formula, SOC is the battery state of charge value, SOC 0 C is the battery state of charge at the beginning of charge and discharge.N is the rated capacity of the battery, η is the charge and discharge efficiency, I is the battery current, and t is the charge and discharge time.
[0066] like Figure 2 The rule controller includes:
[0067] Mode 1: Power saving mode, when the actual power required is P m < Fuel cell optimum efficiency power P eff-max When SOC 1 <SOC<SOC max Fuel cell power P fc = 0, the battery outputs all power, otherwise, the fuel cell power P fc =P eff-max , the excess energy is used to charge the battery until SOC = SOC 1 , where SOC 1 To model the battery parameter threshold of the vehicle battery, SOC max It is the maximum value of the battery parameter threshold of the vehicle battery, and SOC is the battery state of charge value.
[0068] Mode 2: Medium and low power mode, when P m <P fc1 When SOC>SOC min , and SOC>SOC 2 , so that P fc =P eff-max , the insufficient energy to drive the car is provided by the battery. If SOC≤SOC min , so that P fc =P fc1 The excess energy output by the fuel cell is used to charge the battery, where SOC 2 is the battery parameter threshold of the vehicle battery in mode 2, SOC min is the minimum value of the battery parameter threshold of the vehicle battery, P fc1 is the threshold value of fuel cell power point 1 of the vehicle fuel cell in mode 2.
[0069] Mode 3: Medium to high power mode, when P m <P fc2 When SOC≤SOC min , so that P fc =K*P fc2 , so that the battery is charged quickly, if SOC min <SOC<SOC 3 , so that P fc =P fc2 , the remaining energy output by the fuel cell is used to charge the battery. If SOC ≥ SOC 3 , so that Pfc =P eff-max The insufficient energy for driving the car is provided by the battery, among which SOC 3 is the battery parameter threshold of the vehicle battery in mode 3, P fc2 is the threshold of the fuel cell power point 2 of the vehicle fuel cell in mode three, and k is the magnification factor of the vehicle fuel cell power in mode three based on the fuel cell power point 2.
[0070] Mode 4: High power mode, when the actual power required is P m < Maximum fuel cell power P max When SOC <SOC min , so that P fc =P max , until SOC = SOC 4 , if SOC min ≤SOC <SOC 4 , so that P fc =P eff-max The insufficient energy for driving the car is provided by the battery, among which SOC 4 It is the battery parameter threshold of the vehicle battery in mode 4.
[0071] Mode 5: Cruise control mode: When the vehicle maintains a certain speed range for a period of time, the vehicle will m The size enters a specific mode, and when the SOC reaches a specific value, the P fc =P m , if P m When a short-term change occurs, the remaining power is supplemented or absorbed by the battery, where the specific value includes SOC 1 , SOC 2 , SOC 3 and SOC 4 .
[0072] In step 2, the equivalent hydrogen consumption objective function model is first established and defined as the fitness function of the spider bee optimization algorithm.
[0073] Among them, the equivalent hydrogen consumption objective function model expression is:
[0074]
[0075] in, is the equivalent hydrogen consumption of the fuel cell, is the equivalent hydrogen consumption caused by the fuel cell stack attenuation, is the equivalent hydrogen consumption of the battery.
[0076] The expression of equivalent hydrogen consumption of fuel cell is:
[0077]
[0078] Where N cell is the number of fuel cell stacks, I fc is the fuel cell output current, M H2 is the molar mass of hydrogen, and F is the Faraday constant.
[0079] The expression of equivalent hydrogen consumption caused by fuel cell stack attenuation is:
[0080]
[0081] Where P 1 is the fuel cell performance degradation rate caused by load change, n 1 Number of vehicle driving cycle load change cycles, P 2 is the fuel cell performance degradation rate caused by the start-stop cycle, n 2 is the number of start-stop cycles when the vehicle is driving, P 3 is the fuel cell performance degradation rate caused by no-load, t 1 is the idling time of the fuel cell per hour, P 4 is the fuel cell performance degradation rate caused by high load conditions, t 2 is the high-power operation time per hour when the vehicle is running, α fc is the fuel cell stack price, α H2 is the price of hydrogen.
[0082] The expression of equivalent hydrogen consumption of the battery is:
[0083]
[0084] Where P bat is the output power of the battery, α ele is the price per kWh, η bat is the energy conversion efficiency of the battery.
[0085] Then, all the parameters to be optimized in the rule controller are optimized by the defined spider bee optimization algorithm to obtain a data set of optimized parameters, wherein all the parameters to be optimized in the rule controller include: the battery parameter threshold SOC of the vehicle battery in the mode 1 , Battery parameter threshold SOC of vehicle battery in mode 2 2 , Battery parameter threshold SOC of vehicle battery in mode 3 3 , Battery parameter threshold SOC of vehicle battery in mode 4 4 , the threshold value P of the fuel cell power point 1 of the vehicle fuel cell in mode 2 fc1 , the threshold value P of the fuel cell power point 2 of the vehicle fuel cell in mode 3 fc2And the amplification factor K of the vehicle fuel cell power in mode three is based on the fuel cell power point 2.
[0086] Before performing the optimization of all parameters of the rule controller, the implementation principle of the spider bee optimization algorithm adopted in the embodiment of the present invention is briefly described. The spider bee optimization algorithm mainly simulates the hunting, nesting and mating behaviors of female spider bees, as described below:
[0087] When the spider bee performs hunting behavior, it randomly explores the search space with a constant step size to find a suitable spider.
[0088] The formula to simulate the spider bee exploring its prey (exploration):
[0089]
[0090] In the formula, Represents the next step position, Represents the current position, and are three indicators randomly selected from the population, μ 1 ,μ 2 is a random number generated using a normal distribution, l is a random number between 1 and 2, r 2 and r 3 are two random numbers between 0 and 1, is the upper limit of the initial parameters. is the lower limit of the initial parameter.
[0091] When the spider bee finds a suitable spider, it starts to follow it, and the spider will escape, which is the following and escaping stage (development and utilization) of the spider bee algorithm.
[0092] The formula to simulate the spider bee chasing the spider and escaping:
[0093]
[0094]
[0095] Where p is two random numbers between 0 and 1. is a vector generated between k and -k according to the normal distribution. C is the distance control factor that determines the speed of the spider bee, r 4 is a random number between 0 and 1.
[0096] When the spider bee successfully hunts, it will pull the paralyzed spider to the pre-prepared nest. The formula that simulates the spider bee pulling the spider to the nesting site and nesting behavior is:
[0097]
[0098] In the formula, Represents the best solution so far. and are two vectors of random values between 0 and 1.
[0099] When spider bees build nests, they will begin mating behavior. The formula for simulating the mating behavior of spider bees is:
[0100]
[0101] In the formula, Crossover is The uniform crossover operator applied, Representing female and male spider bees, β 1 , β are two numbers randomly generated according to normal distribution, are three solutions randomly selected from the population, For the final result.
[0102] like Figure 3 As shown, based on the above principle, the defined spider bee optimization algorithm optimizes all parameters to be optimized in the rule controller, specifically including:
[0103] Step 21: Set basic parameters of the spider bee optimization algorithm, which include the spider bee population, the maximum number of iterations, and the boundary interval of the target variable, where the target variable is the parameter to be optimized.
[0104] Step 22: Based on the boundary interval of the target variable, a random target variable is assigned to each spider bee in the spider bee population, so that the target variable referred to by each spider bee in the spider bee population is different, and the spider bee population is initialized.
[0105] Step 23: Define the equivalent hydrogen consumption objective function model as the objective function of the spider bee optimization algorithm, then input the collected multiple vehicle operating condition data and the data obtained after the spider bee population is initialized into the objective function, calculate the fitness value of each spider bee individual, evaluate its superiority to the objective function according to the fitness value, and divide the spider bee population into high fitness and low fitness individuals, select high fitness parent individuals through evaluation to perform crossover mutation operation to generate offspring, compare the fitness values of the offspring and parent generations, select high fitness individuals as the next generation population and perform iterative update, obtain the spider bee with the highest fitness value, that is, the target parameter, wherein the objective function is the fitness function, and the target parameter is the optimization parameter. The termination condition is: if the preset termination condition (such as the maximum number of iterations or the fitness threshold) is reached, the iteration is stopped.
[0106] The process of obtaining data after the spider bee population is initialized is:
[0107] Firstly, the virtual rule controller formed by each spider bee in the initialization stage is used to calculate the output power of the fuel cell associated with each spider bee, and then converted into the output current of the fuel cell associated with each spider bee, that is, the data obtained after the spider bee population is initialized.
[0108] In step 3, the specific steps of judging the driving condition of the vehicle based on the long-short time neural network include:
[0109] Step 31: Collect driving data of smooth conditions, congested conditions and high-speed conditions on different road surfaces, analyze the data and label them accordingly.
[0110] Step 32: Divide the labeled data into three groups, namely training set, test set and validation set in a ratio of 7:2:1.
[0111] Step 33: Input the training set data into the long-short time neural network for training to obtain a trained network model, then input the test set data into the trained network model to test whether the trained network model is complete, and then input the validation set data into the tested network model to verify whether the tested network model can meet the requirements.
[0112] Step 34: Extract the parameters of the verified network model obtained in step 33, and establish a driving condition classifier based on the extracted model parameters.
[0113] Step 35: The driving condition of the vehicle is judged by a driving condition classifier to obtain a judged driving condition.
[0114] It should be noted that in the working condition recognition based on long short-term neural network, the driving data includes vehicle speed, accelerator pedal opening, brake pedal opening and turning radius. The long short-term memory neural network model includes input layer, Lstm layer, fully connected layer, softmax layer and classification layer.
[0115] It should be noted that in the working condition recognition based on long short-term neural network, the parameters of the long short-term memory neural network model extracted include the input weight IW of the Lstm layer, the periodic weight RW of the Lstm layer, the offset B of the Lstm layer, the weight FW of the fully connected layer, and the offset FB of the fully connected layer. The fully connected layer weight FW and the offset FB of the fully connected layer are used to construct the fully connected layer of the driving condition classifier.
[0116] It should be noted that in the actual application of the present invention, by introducing the operating condition recognition of long and short-time neural networks, the driving data including vehicle speed, accelerator pedal opening, brake pedal opening and steering radius are input into the operating condition recognition system to determine the operating condition of the vehicle, and the optimal target parameters, i.e., optimization parameters, under the corresponding operating condition mode are selected and input into the control strategy of the rules to achieve the dynamic use of multiple sets of parameters when the car is driving, thereby reducing the equivalent hydrogen consumption of fuel cell vehicles while meeting the vehicle power requirements.
[0117] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A fuel cell vehicle energy management strategy based on spider bee optimization, characterized in that: include: Step 1: According to the actual power required by the vehicle P m and the vehicle's SOC state of charge to build a rule controller; Step 2: Combine the equivalent hydrogen consumption and fuel cell life attenuation to establish an equivalent hydrogen consumption objective function model, and combine the spider bee optimization algorithm to optimize all parameters to be optimized in the rule controller to obtain a data set of optimized parameters; Step 3: Based on the long-short time neural network, the driving condition of the vehicle is judged to obtain the judged driving condition, and then according to the judged driving condition, the optimization parameter in the corresponding mode is selected from the data set of the optimization parameter, and it is input into the rule controller for energy management control.
2. The energy management strategy for fuel cell vehicles based on spider bee optimization according to claim 1 is characterized in that: The actual vehicle power requirement P m The expression is: P m =ηP req Where P m is the actual power demanded by the vehicle, η is the efficiency of the vehicle transmission system, P req is the total power of the vehicle power source; The expression of the total power of the vehicle power source is: Where u is the vehicle speed, η t is the transmission system efficiency, m is the vehicle weight, g is the acceleration of gravity, f is the rolling resistance coefficient, α is the road slope angle, C D is the air resistance coefficient, A is the frontal area of the vehicle, δ is the rotational mass conversion coefficient, and a is the vehicle acceleration.
3. The energy management strategy for fuel cell vehicles based on spider bee optimization according to claim 1 is characterized in that: The calculation formula of the SOC state of charge of the vehicle is: In the formula, SOC is the battery state of charge, SOC0 is the battery state of charge at the beginning of charging and discharging, C N is the rated capacity of the battery, η bat is the battery charge and discharge efficiency, I is the battery current, and t is the charge and discharge time.
4. The energy management strategy for fuel cell vehicles based on spider bee optimization according to claim 1 is characterized in that: The rule controller comprises: Mode 1: Power saving mode, when the actual power required is P m < Fuel cell optimum efficiency power P eff-max When SOC1 <SOC<SOC max Fuel cell power P fc = 0, the battery outputs all power, otherwise, the fuel cell power P fc =P eff-max , the excess energy is used to charge the battery until SOC = SOC1, where SOC1 is the battery parameter threshold of the vehicle battery in mode 1, SOC max is the maximum value of the battery parameter threshold of the vehicle battery, and SOC is the battery state of charge value; Mode 2: Medium and low power mode, when P m <P fc1 When SOC>SOC min , and SOC>SOC2, so that P fc =P eff-max , the insufficient energy to drive the car is provided by the battery. If SOC≤SOC min , so that P fc =P fc1 The excess energy output by the fuel cell is used to charge the battery, where SOC2 is the battery parameter threshold of the vehicle battery in mode 2, SOC min is the minimum value of the battery parameter threshold of the vehicle battery, P fc1 is the threshold value of fuel cell power point 1 of the vehicle fuel cell in mode 2; Mode 3: Medium-high power mode. When P m < P fc2 If SOC ≤ SOC min , make P fc = K * P fc2 to quickly charge the battery. If SOC min < SOC < SOC3, make P fc = P fc2 and the remaining energy output by the fuel cell charges the battery. If SOC ≥ SOC3, make P fc = P eff-max and the energy for the insufficient part of driving the vehicle is provided by the battery. Among them, SOC3 is the battery parameter threshold of the vehicle battery in Mode 3, P fc2 is the threshold of the fuel cell power point 2 of the vehicle fuel cell in Mode 3, and k is the amplification factor of the vehicle fuel cell power based on the fuel cell power point 2 in Mode 3; Mode 4: High-power mode. When the actual required power P m <the maximum power of the fuel cell P max When, if SOC < SOC min , make P fc = P max , until SOC = SOC4. If SOC min ≤ SOC < SOC4, make P fc = P eff-max . The energy for the insufficient part of driving the vehicle is provided by the battery. Among them, SOC4 is the battery parameter threshold of the vehicle battery in Mode 4; Mode 5: Cruise control mode: When the vehicle maintains a certain speed range for a period of time, the vehicle will m The size enters a specific mode, and when the SOC reaches a specific value, the P fc =P m , if P m In case of short-term changes, the remaining power is supplemented or absorbed by the battery.
5. The energy management strategy for fuel cell vehicles based on spider bee optimization according to claim 1, characterized in that: The equivalent hydrogen consumption objective function model expression is: in, is the equivalent hydrogen consumption of the fuel cell, is the equivalent hydrogen consumption caused by the fuel cell stack attenuation, is the equivalent hydrogen consumption of the battery; The expression of the equivalent hydrogen consumption of the fuel cell is: Where N cell is the number of fuel cell stacks, I fc is the fuel cell output current, M H2 is the molar mass of hydrogen, and F is the Faraday constant; The expression of equivalent hydrogen consumption caused by the fuel cell stack attenuation is: Where, P1 is the fuel cell performance degradation rate caused by load change, n1 is the number of load change cycles of the vehicle driving cycle, P2 is the fuel cell performance degradation rate caused by the start-stop cycle, n2 is the number of start-stop cycles when the vehicle is driving, P3 is the fuel cell performance degradation rate caused by no-load, t1 is the idling time of the fuel cell per hour, P4 is the fuel cell performance degradation rate caused by high load state, t2 is the high power operation time per hour when the vehicle is driving, α fc is the fuel cell stack price, α H2 is the price of hydrogen; The expression of equivalent hydrogen consumption of the battery is: Where P bat is the output power of the battery, α ele is the price per kWh, η bat is the energy conversion efficiency of the battery.
6. The energy management strategy for fuel cell vehicles based on spider bee optimization according to claim 1 is characterized in that: The specific steps of step 2 include: Step 21: setting basic parameters of the spider bee optimization algorithm, wherein the basic parameters include the spider bee population, the maximum number of iterations, and the boundary interval of the target variable, wherein the target variable is the parameter to be optimized; Step 22: Based on the boundary interval of the target variable, a random target variable is assigned to each spider bee in the spider bee population, so that the target variable referred to by each spider bee in the spider bee population is different, and the spider bee population is initialized; Step 23: define the equivalent hydrogen consumption objective function model as the fitness function of the spider bee optimization algorithm, then input the collected data of various vehicle operating conditions and the data obtained after the spider bee population is initialized into the fitness function, calculate the fitness value of each spider bee individual, evaluate its superiority to the fitness function according to the fitness value, and divide the spider bee population into high-fitness and low-fitness individuals, select high-fitness parent individuals through evaluation to perform crossover mutation operation to generate offspring, compare the fitness values of the parent generations, select high-fitness individuals as the next generation population and perform iterative update to obtain the spider bee with the highest fitness value, that is, the optimization parameter; Step 24: Use steps 21 to 23 to optimize all parameters to be optimized in the rule controller in turn to obtain a data set of optimized parameters.
7. The energy management strategy for fuel cell vehicles based on spider bee optimization according to claim 1 is characterized in that: All parameters to be optimized in the rule controller include: battery parameter threshold SOC1 of the vehicle battery in mode 1, battery parameter threshold SOC2 of the vehicle battery in mode 2, battery parameter threshold SOC3 of the vehicle battery in mode 3, battery parameter threshold SOC4 of the vehicle battery in mode 4, and threshold P of fuel cell power point 1 of the vehicle fuel cell in mode 2. fc1 , the threshold value P of the fuel cell power point 2 of the vehicle fuel cell in mode 3 fc2 And the amplification factor K of the vehicle fuel cell power in mode three is based on the fuel cell power point 2.
8. The energy management strategy for fuel cell vehicles based on spider bee optimization according to claim 1 is characterized in that: The specific steps of judging the driving condition of the vehicle based on the long-short time neural network include: Step 31: Collect driving data of free-flowing conditions, congested conditions and high-speed conditions on different roads, analyze the data and label them accordingly; Step 32: Divide the labeled data into three groups, namely training set, test set and validation set in a ratio of 7:2:1; Step 33: Input the training set data into the long-short time neural network for training to obtain a trained network model, then input the test set data into the trained network model to test whether the trained network model is perfect, and then input the validation set data into the tested network model to verify whether the tested network model can meet the requirements; Step 34: extract the parameters of the verified network model obtained in step 33, and establish a driving condition classifier according to the extracted model parameters; Step 35: The driving condition of the vehicle is judged by a driving condition classifier to obtain a judged driving condition.
9. The energy management strategy for fuel cell vehicles based on spider bee optimization according to claim 8 is characterized in that: The parameters of the verified network model include: the input weight IW of the Lstm layer, the periodic weight RW of the Lstm layer, the offset B of the Lstm layer, the weight FW of the fully connected layer, and the offset FB of the fully connected layer.
