Vehicle control method, control device and electronic equipment
By constructing a torque distribution model and combining SOC and average speed optimization, the problem of high working condition dependence of hybrid bus energy management strategy is solved, and high fuel-efficiency in complex road driving scenarios is achieved.
Patent Information
- Application Number
- CN202411094296.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-15
AI Technical Summary
Existing hybrid bus energy management strategies are highly dependent on working conditions, and the fuel-saving effect is not outstanding when faced with complex and changeable actual road driving scenarios.
By building a torque distribution model, using the torque distribution ratio obtained by training with multiple sets of historical data, and optimizing it based on the SOC, average speed and other information of the next station, the vehicle is finally controlled according to the final optimal distribution ratio to achieve engine torque and motor torque. effective allocation.
It improves the vehicle's fuel-saving effect in complex road driving scenarios, enhances the adaptability to working conditions, and ensures that the vehicle maintains the best energy-saving effect under different circumstances.
Smart Images

Figure CN118770182A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of energy management, and in particular, to a vehicle control method, a control device and an electronic device. Background Art
[0002] Buses are the most common means of public transportation in urban traffic. Hybrid buses have attracted widespread attention due to their advantages such as energy saving and emission reduction, and high reliability. The energy management strategy of hybrid buses plays an important role in fully leveraging the advantages of hybrid power systems. However, the existing energy management strategy of hybrid buses is highly dependent on working conditions, and the fuel saving effect is not outstanding when facing complex and changeable actual road driving scenarios.
[0003] Therefore, there is an urgent need for a vehicle control method that is highly adaptable to working conditions and saves fuel. Summary of the invention
[0004] The main purpose of the present application is to provide a vehicle control method, a control device and an electronic device, so as to at least solve the problem in the prior art that the vehicle is highly dependent on working conditions and has a poor fuel saving effect when faced with complex and changeable actual road driving scenarios.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a vehicle control method is provided, comprising: inputting the current operating condition data of the vehicle into a torque distribution model to obtain a first optimal torque distribution ratio corresponding to the current operating condition, wherein the torque distribution model is obtained by training using multiple groups of historical data, each group of historical data includes historical operating condition data and historical optimal torque distribution ratios, the operating condition data includes: historical vehicle speed, current vehicle speed, current battery SOC, required torque, historical average vehicle speed, current acceleration, historical average acceleration, time, road section information and remaining mileage, the torque distribution ratio is the ratio of engine torque to total required torque; using the SOC of the next station, the current SOC, the previous The first optimal torque distribution ratio is optimized by the average speed from one station to the next station and the average speed from the previous station to the current position to obtain a second optimal distribution ratio; when the second optimal distribution ratio is less than or equal to 0, the final optimal distribution ratio is determined to be 0, and when the second optimal distribution ratio is greater than 0, the final optimal distribution ratio is determined according to the second optimal distribution ratio and at least one distribution ratio limit, at least one of the distribution ratio limits at least includes a distribution ratio limit calculated according to the maximum power of the current engine, wherein the final optimal distribution ratio is greater than or equal to 0 and less than or equal to the second optimal distribution ratio; the vehicle is controlled according to the final optimal distribution ratio.
[0006] Optionally, the method also includes: a construction step, constructing a neural network based on the operating condition data, the neural network including an input layer, a hidden layer and an output layer; a training step, dividing the operating condition data into a training set and a validation set, inputting the training set into the neural network for training, adjusting the model parameters of the neural network by a gradient descent method, and using the validation set to calculate the error of the neural network after adjusting the model parameters until a preset condition is met to obtain an initial model, wherein the preset condition includes at least one of the following: the number of iterations reaches a preset number, the gradient is updated to a preset value, and the error no longer decreases; a verification step, calculating the accuracy of the initial model and each updated model according to each output optimal torque distribution ratio and the corresponding historical optimal torque distribution ratio in the validation set, and determining that the model with the highest accuracy is the torque distribution model, wherein the output optimal torque distribution ratio is the output obtained by inputting the historical operating condition data in the validation set into the initial model and each updated model.
[0007] Optionally, the method further includes: analyzing the historical operating condition data by using a DP algorithm to obtain the historical optimal torque distribution ratio.
[0008] Optionally, the method also includes: obtaining characteristic operating conditions of a preset route, and calculating an optimal SOC curve based on the characteristic operating conditions of the preset route and using a DP algorithm, wherein the characteristic operating conditions of the preset route are formed by splicing characteristic operating conditions between two adjacent stations among multiple stations constituting the preset route; and determining, based on the optimal SOC curve, the SOC of the next station of the current position in the preset route, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position.
[0009] Optionally, the process of acquiring the characteristic working condition of the preset route includes: dividing the working condition data according to different stations to obtain multiple segments of data, each segment of data corresponds to the working condition data between two stations, adjusting the sampling frequency of the vehicle speed data of each segment of data, resampling the high-frequency data to reduce the sampling frequency, discarding the low-frequency data, and obtaining multiple segments of adjusted data; using the distorted point elimination method and the data completion method to perform data preprocessing on each segment of the multiple segments of adjusted data to obtain multiple segments of preprocessed data; using the fixed step length interception method to segment each segment of the multiple segments of preprocessed data to obtain a number of equal-length segments. segments, performing principal component analysis on each of the segments to obtain features of each segment, clustering multiple segments in the same segment of the preprocessed data according to the features to obtain multiple cluster clusters, splicing the segments in the one cluster cluster to obtain a first characteristic operating condition; calculating the similarity between the feature parameters of multiple first characteristic operating conditions in each segment of the preprocessed data and the corresponding feature parameters in each corresponding segment of the preprocessed data, and determining that the first characteristic operating condition corresponding to the feature parameter with the greatest similarity is the second characteristic operating condition; splicing the multiple second characteristic operating conditions corresponding to multiple segments of the preprocessed data in turn to obtain the characteristic operating condition of the preset line.
[0010] Optionally, the process of obtaining the characteristic working condition of the preset line further includes: before obtaining the plurality of adjustment data, using the formula Calculate the discrete degree of each data segment after the frequency adjustment; if the discrete degree of a certain data segment is greater than a preset threshold, increase the data volume of the certain data segment until the discrete degree of all the data is less than or equal to the preset threshold; where: x i is the data of a certain day, x is the average of a certain day, n is the number of samples, V s is the coefficient of variation of the eigenvalue.
[0011] Optionally, the first optimal torque distribution ratio is optimized by using the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain the second optimal distribution ratio, including: using the formula Calculate the second best allocation ratio; where: P nn For the second best allocation ratio, P NN The first optimal torque distribution ratio, SOC i The reference SOC value for the next station, SOC n is the current SOC value, is the average speed of the i-th segment of the station, is the average speed from the beginning of station i-1 to the current time, V max is the maximum vehicle speed, Vmin is the minimum vehicle speed, and A and B are parameters adjusted according to actual conditions.
[0012] Optionally, when the second optimal allocation ratio is greater than 0, determining the final optimal allocation ratio according to the second optimal allocation ratio and at least one allocation ratio restriction includes:
[0013] Using the formula Determine the final optimal allocation ratio, where P nn For the second best allocation ratio, P E is the allocation ratio limit calculated based on the current maximum power of the engine and P M_c is the allocation ratio limit calculated based on the maximum power generation of the current motor and P M_d is the allocation ratio limit calculated based on the current maximum power consumption of the motor and P B_c is the allocation ratio limit calculated based on the current maximum charging power of the battery and P B_d is the allocation ratio limit calculated based on the current maximum charge and discharge rate of the battery and is the maximum power of the current engine, is the maximum power generated by the motor at present, is the maximum power consumption of the motor at present, is the current maximum charging power of the battery, is the maximum discharge power of the battery at present, q dem is the current required power.
[0014] According to another aspect of the present application, there is provided a vehicle control device, comprising:
[0015] a first determination unit, configured to input current operating condition data of the vehicle into a torque distribution model to obtain a first optimal torque distribution ratio corresponding to the current operating condition, wherein the torque distribution model is obtained by training using multiple groups of historical data, each group of historical data includes historical operating condition data and a historical optimal torque distribution ratio, the operating condition data includes: historical vehicle speed, current vehicle speed, current battery SOC, required torque, historical average vehicle speed, current acceleration, historical average acceleration, time, road section information, and remaining mileage, and the torque distribution ratio is a ratio of the engine torque to the total required torque;
[0016] an optimization unit, configured to optimize the first optimal torque distribution ratio by using the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain a second optimal distribution ratio;
[0017] a second determining unit, configured to determine, when the second optimal allocation ratio is less than or equal to 0, a final optimal allocation ratio as 0, and, when the second optimal allocation ratio is greater than 0, determine a final optimal allocation ratio according to the second optimal allocation ratio and at least one allocation ratio restriction, wherein the at least one allocation ratio restriction at least includes an allocation ratio restriction calculated according to a maximum power of a current engine, wherein the final optimal allocation ratio is greater than or equal to 0 and less than or equal to the second optimal allocation ratio;
[0018] A control unit is used to control the vehicle according to the final optimal allocation ratio.
[0019] According to another aspect of the present application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include means for executing any one of the vehicle control methods described.
[0020] Applying the technical solution of the present application, the current working condition data of the vehicle is input into the torque distribution model to obtain the first optimal torque distribution ratio, and the torque distribution model is trained using multiple sets of historical working condition data and historical optimal torque distribution ratios; the first optimal torque distribution ratio is optimized using the next station and the current SOC, the average speed from the previous station to the next station, and the previous station to the current position to obtain the second optimal distribution ratio; when the second optimal distribution ratio is less than or equal to 0, the final optimal distribution ratio is determined to be 0, and when the second optimal distribution ratio is greater than 0, the final optimal distribution ratio is determined according to the second optimal distribution ratio and at least one distribution ratio restriction, at least one of the distribution ratio restrictions at least includes a distribution ratio restriction calculated according to the maximum power of the current engine, wherein the final optimal distribution ratio is greater than or equal to 0 and less than or equal to the second optimal distribution ratio; the vehicle is controlled according to the final optimal distribution ratio. In the method, the energy distribution is adjusted in real time according to the current vehicle state and bus station information, thereby solving the problem that the vehicle energy management strategy in the prior art has high working condition dependence and the fuel saving effect is not prominent when facing complex and changeable actual road driving scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings constituting part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0022] Figure 1 A hardware structure block diagram of a mobile terminal for executing a vehicle control method provided in an embodiment of the present application is shown;
[0023] Figure 2 A schematic flow chart of a vehicle control method provided according to an embodiment of the present application is shown;
[0024] Figure 3 A schematic diagram of a vehicle control method provided according to an embodiment of the present application is shown;
[0025] Figure 4 A schematic diagram of model training of a vehicle control method provided according to an embodiment of the present application is shown;
[0026] Figure 5 A schematic diagram of a working condition construction of a vehicle control method provided according to an embodiment of the present application is shown;
[0027] Figure 6 A schematic diagram of a vehicle control device provided according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0028] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] As introduced in the background technology, the energy management strategy of hybrid buses in the prior art is highly dependent on working conditions, and the fuel saving effect is not outstanding when faced with complex and changeable actual road driving scenarios.
[0032] In order to solve the problem that the above-mentioned existing solutions have a poor fuel saving effect, an embodiment of the present application provides a vehicle control method.
[0033] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0034] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a vehicle control method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0035] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0036] In this embodiment, a vehicle control method running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0037] Figure 2 is a flow chart of a vehicle control method according to an embodiment of the present application. Figure 2 and Figure 3 As shown, the method comprises the following steps:
[0038] Step S201, inputting the current working condition data of the vehicle into the torque distribution model to obtain the first optimal torque distribution ratio corresponding to the current working condition, wherein the torque distribution model is obtained by training using multiple groups of historical data, each group of the historical data includes historical working condition data and historical optimal torque distribution ratio, the working condition data includes: historical vehicle speed, current vehicle speed, current battery SOC, required torque, historical average vehicle speed, current acceleration, historical average acceleration, time, road section information and remaining mileage, and the torque distribution ratio is the ratio of engine torque to total required torque;
[0039] Specifically, multiple historical data of fixed routes are collected through a big data system or a real vehicle, and the torque distribution model is trained based on these historical data. The current working condition data is input into the torque distribution model. The model can predict the optimal torque distribution ratio under the current working condition, that is, the first optimal torque distribution ratio.
[0040] More specifically, the big data system can record various operating data of the vehicle on a fixed route in real time by connecting to sensors and data acquisition devices on the vehicle. These data can be stored and analyzed to obtain information such as the vehicle's performance and energy consumption under different road conditions. The system can also control the vehicle to travel on a fixed route and record the vehicle's operating data by installing data acquisition devices on the vehicle to collect data in real time.
[0041] In addition, the historical vehicle speed corresponding to the above historical operating condition data is the vehicle speed at the N moments before the historical moment, the historical average vehicle speed is the average vehicle speed at the moment before the historical moment, and the historical average acceleration is the average acceleration at the moment before the historical moment. The road section information includes the road section length, road section type (such as expressway, urban road, etc.), road condition (such as flat, uphill, downhill, etc.), traffic conditions (such as congestion degree), speed limit information, etc.
[0042] It should also be noted that the above-mentioned current SOC and current station SOC are different, and the current SOC refers to the battery SOC obtained in real time. The vehicle of the present application can be any vehicle with fixed stations during the driving process, and is not limited to buses.
[0043] Step S202, using the next station's SOC, current SOC, average speed from the previous station to the next station, and average speed from the previous station to the current position and other station information to optimize the first optimal torque distribution ratio, and obtain a second optimal distribution ratio, such as Figure 3 As shown;
[0044] Specifically, by considering the charging and discharging conditions of the battery when the vehicle is heading to the next stop, as well as the average speed of the vehicle in different sections of the road, the first optimal torque distribution ratio is further optimized, so that the second optimal distribution ratio obtained after optimization can better meet the needs of the vehicle in different sections of the road, can better adapt to different road conditions on actual roads, and has a better fuel-saving effect.
[0045] Step S203, when the second optimal allocation ratio is less than or equal to 0, determining the final optimal allocation ratio to be 0, and when the second optimal allocation ratio is greater than 0, determining the final optimal allocation ratio according to the second optimal allocation ratio and at least one allocation ratio restriction, wherein the at least one allocation ratio restriction at least includes an allocation ratio restriction calculated according to the maximum power of the current engine, wherein the final optimal allocation ratio is greater than or equal to 0 and less than or equal to the second optimal allocation ratio;
[0046] Specifically, first, if the second optimal distribution ratio is less than or equal to 0, it means that the system requires the engine to provide negative torque, but according to the physical characteristics of the engine, the engine will not provide negative torque. Therefore, in this case, the output torque of the engine is directly set to 0, which means that the engine does not output torque, and all torque is provided by the motor. This can ensure the safety and stability of the system operation, and at the same time effectively utilize the performance of the motor; secondly, if the second optimal distribution ratio is greater than 0, the final optimal distribution ratio is determined based on the above-mentioned second optimal distribution ratio and at least one distribution ratio limit, and at least one of the above-mentioned distribution ratio limits at least includes a distribution ratio limit calculated based on the maximum power of the current engine, wherein the above-mentioned final optimal distribution ratio is greater than or equal to 0 and less than or equal to the above-mentioned second optimal distribution ratio. In this way, when determining the final optimal distribution ratio, at least the engine distribution ratio limit is taken into account to ensure that the engine works in a better state, which can ensure that the engine works in the best state.
[0047] Step S204: controlling the above-mentioned vehicles according to the above-mentioned final optimal allocation ratio.
[0048] Specifically, by applying the final optimal distribution ratio to the vehicle's control system, effective distribution of engine torque and motor torque can be achieved to meet the vehicle's current power requirements and improve the vehicle's energy-saving effect. This torque distribution method can adjust the torque distribution ratio according to the real-time vehicle status, so that the vehicle can maintain the best energy-saving effect under different conditions.
[0049] In the above embodiment, first, the current working condition data of the vehicle is input into the torque distribution model to obtain the first optimal torque distribution ratio; then, the first optimal torque distribution ratio is optimized using the SOC of the next station, the current SOC, the average speed from the previous station to the next station and the previous station to the current position to obtain the second optimal distribution ratio; then, the final optimal ratio is determined by comparing the magnitude relationship between the second optimal distribution ratio and 0; finally, the vehicle is controlled according to the final optimal distribution ratio. In this method, the output result of the neural network is adjusted according to the actual road driving and operating conditions of the vehicle, and the final optimal distribution ratio obtained can better adapt to the current actual situation and has a better fuel-saving effect, thereby solving the problem that the energy management strategy of the vehicle in the prior art does not have a prominent fuel-saving effect when facing complex and changeable actual road driving scenarios.
[0050] In a specific embodiment of the present application, the above method further includes:
[0051] A neural network is constructed based on the above working condition data, and the above neural network includes an input layer, a hidden layer and an output layer; the above working condition data is divided into a training set and a validation set, and the above training set is input into the above neural network. The model will calculate a loss value through a loss function, wherein the loss function selects a mean square error function to measure the difference between the model prediction value and the actual value, and then the model parameters are adjusted by the gradient descent method, and the gradient of the loss function with respect to the model parameters is calculated, and the model parameters are adjusted in the opposite direction of the gradient to gradually reduce the loss function, and the error of the above neural network after adjusting the above model parameters is calculated using the above validation set until the preset conditions are met to obtain an initial model, wherein the above preset conditions include at least one of the following: the number of iterations reaches the preset number, the gradient is updated to the preset value , the above error no longer decreases; gradually increase the number of hidden layers and the number of neurons in the above initial model to obtain multiple adjusted initial models, input the above training set into each of the above adjusted initial models for training, and adjust the model parameters of each of the above adjusted initial models by gradient descent method until the above preset conditions are met, and obtain multiple updated models, the above adjusted initial model corresponds to the above updated model one by one; calculate the accuracy of the above initial model and each of the above updated models according to each output optimal torque distribution ratio and the corresponding historical optimal torque distribution ratio in the above verification set, and determine that the model with the highest accuracy is the above torque distribution model, wherein the above output optimal torque distribution ratio is the output obtained by inputting the above historical working condition data in the above verification set into the above initial model and each of the above updated models. In this way, the accuracy of the obtained torque distribution model can be guaranteed to be higher.
[0052] In one embodiment of the present application, the above historical working condition data is analyzed by the DP algorithm to obtain the above historical optimal torque distribution ratio. The process of model training is as follows: Figure 4 shown.
[0053] In a specific embodiment, in the process of analyzing the above historical operating condition data through the DP algorithm to obtain the above historical optimal torque distribution ratio, the historical operating condition data is regarded as a multi-stage decision problem, each stage corresponds to a time point or a specific operating condition, and the optimal torque distribution ratio can be obtained by analyzing and calculating the above historical operating condition data. Specifically, the steps include:
[0054] Define state and control variables: use historical operating condition data as state variables and historical optimal torque distribution ratio as control variables;
[0055] Establish state space and control space: Discretize the above historical working condition data, define the possible value range of torque distribution ratio under different states, and divide it into a certain number of discrete control quantities. By discretizing the state space and control space, the original continuous problem can be converted into a discrete problem, thereby simplifying the calculation process and finding the optimal control strategy;
[0056] Establish a cost function: define a function to evaluate the cost of adopting a specific control strategy under specific working conditions, taking into account factors such as vehicle performance, energy consumption, and driving distance. By defining a cost function to quantify these costs, the optimal torque distribution strategy can be found. The optimal torque distribution of a vehicle is to minimize power consumption while ensuring the lowest fuel consumption, so as to maximize the overall energy utilization efficiency. Therefore, it is necessary to comprehensively consider fuel consumption and power consumption to find an optimal torque distribution ratio;
[0057] Initialize the DP algorithm: set the initial working state, such as the initial vehicle speed, initial SOC, etc., set the target torque distribution ratio, which can be a specific value or a state range, and set the optimal cost of each state to infinity, except for the initial state. This is because in the initialization stage, the optimal cost of each state is not known, so it is set to a larger value first, waiting for the algorithm to iterate and update. After initialization, the DP algorithm can start iterative calculation, update the optimal cost of the state in each iteration, and finally find the optimal control strategy;
[0058] Reverse recursion of the DP algorithm: First, determine the time step according to the data sampling frequency and prediction range; then, starting from the last time step, that is, starting from the state corresponding to the target torque distribution ratio, calculate the cost corresponding to various possible control strategies in this state, and select the control strategy with the minimum cost, record the minimum cost and the corresponding control strategy, and update the optimal cost and optimal control strategy of the current state according to the selected optimal control strategy, continue to iterate forward, calculate the cost corresponding to various possible control strategies in the state of the previous time step, and select the control strategy with the minimum cost, update the optimal cost and optimal control strategy of the current state, and repeat the above steps , until it reversely iterates to the initial time step, that is, the state corresponding to the initial torque distribution ratio. By reverse recursion, the optimal control strategy in each state can be gradually calculated. This method can ensure that the optimal control strategy obtained is the global optimal; for each possible control quantity in each state, first calculate the instantaneous cost under the control quantity, which can be energy consumption, and then add the optimal cost of the next time step to obtain the total cost. If the total cost is less than the currently recorded optimal cost, update the optimal cost and the corresponding control strategy. In this way, the total cost of each control quantity in each state is continuously calculated, and compared and updated, and finally the optimal control strategy in each state can be obtained;
[0059] Calculate the optimal control strategy: starting from the initial state, select the optimal control quantity for the first time step according to the initial state and the recorded optimal control strategy; calculate the state of the next time step according to the selected optimal control quantity and the current state, and select the optimal control quantity for the next time step according to the optimal control strategy obtained by the DP algorithm; repeat the above steps until the target state or the last time step is calculated, at which time the optimal control quantity for each time step is obtained, and the optimal torque distribution strategy is calculated step by step. This calculation process ensures that the control quantity that minimizes the total cost is selected at each time step, thereby obtaining the optimal torque distribution strategy.
[0060] In a specific embodiment, the method further includes: obtaining characteristic operating conditions of a preset route, and calculating an optimal SOC curve based on the characteristic operating conditions of the preset route and using a DP algorithm, wherein the characteristic operating conditions of the preset route are formed by splicing characteristic operating conditions between two adjacent stations among the multiple stations constituting the preset route; according to the optimal SOC curve; according to the optimal SOC curve, determining the SOC of the next station of the current station in the preset route, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position.
[0061] In the above scheme, according to the characteristic working conditions of the above preset line and using the DP algorithm, the optimal SOC curve is calculated, including:
[0062] Define state and control variables: select SOC as the state variable and the battery charge and discharge power as the control variable;
[0063] Establish state space and control space: divide SOC into a certain number of discrete states, for example, SOC from 0% to 100% can be divided into 100 states; define the possible value range of battery charge and discharge power, and divide it into a certain number of discrete control quantities, that is, take discrete values within a certain range, for example, from -10 to 10 can be divided into 20 different charge and discharge powers. By discretizing the state space and control space, the original continuous problem can be converted into a discrete problem, thereby simplifying the calculation process and finding the optimal control strategy;
[0064] Establish a cost function: Define a function to evaluate the cost of adopting a specific control strategy at a specific SOC, usually taking into account factors such as battery life, energy consumption, and driving distance. By defining a cost function, these costs can be quantified to find the optimal control strategy to achieve the best battery management effect;
[0065] Initialize the DP algorithm: set the initial SOC, usually the initial charge of the battery; set the target SOC, which can be a specific value or a range; set the optimal cost of each state to infinity, except for the initial state. This is because in the initialization stage, the optimal cost of each state is not known, so it is set to a larger value first, waiting for the algorithm to iterate and update. After initialization, the DP algorithm can start iterative calculations, update the optimal cost of the state in each iteration, and finally find the optimal control strategy;
[0066] Reverse recursion of the DP algorithm: First, determine the time step according to the data sampling frequency and prediction range; then, starting from the last time step, that is, starting from the state corresponding to the target SOC, calculate the costs corresponding to various possible control strategies in this state, and select the control strategy with the minimum cost, record the minimum cost and the corresponding control strategy, and update the optimal cost and optimal control strategy of the current state according to the selected optimal control strategy, continue to iterate forward, calculate the costs corresponding to various possible control strategies in the state of the previous time step, and select the control strategy with the minimum cost, update the optimal cost and optimal control strategy of the current state, and repeat the above steps until the reverse iteration reaches the initial time step. That is, the state corresponding to the initial SOC can be gradually calculated to obtain the optimal control strategy in each state by reverse recursion, so as to obtain the entire optimal SOC curve. This method can ensure that the optimal control strategy obtained is the global optimal; for each possible control quantity in each state, first calculate the instantaneous cost under the control quantity, which can be energy consumption, and then add the optimal cost of the next time step to obtain the total cost. If the total cost is less than the currently recorded optimal cost, update the optimal cost and the corresponding control strategy. In this way, the total cost of each control quantity in each state is continuously calculated and compared and updated, and finally the optimal control strategy in each state can be obtained, so as to obtain the optimal SOC curve;
[0067] Calculate the optimal control strategy: starting from the initial state, select the optimal control quantity for the first time step according to the initial state and the recorded optimal control strategy; calculate the state of the next time step according to the selected optimal control quantity and the current state, and select the optimal control quantity for the next time step according to the optimal control strategy obtained by the DP algorithm; repeat the above steps until the target state or the last time step is calculated, at which time the optimal control quantity for each time step is obtained; connect the optimal SOC of each time step to form the optimal SOC curve. This calculation process ensures that the control quantity that minimizes the total cost is selected at each time step, thereby obtaining the global optimal SOC curve.
[0068] In the above scheme, more specifically, according to the optimal SOC curve, the SOC and average speed of each station in the preset route can be determined. This is because under the optimal SOC curve, the energy consumption and speed of the vehicle are optimized, and the SOC value of the vehicle at each time point can be obtained by calculating the SOC curve, and then the average speed can be calculated according to the SOC and position information of the vehicle.
[0069] In the above scheme, characteristic operating conditions under specific conditions between different stations in a predetermined route are first obtained in order to simulate and analyze the driving conditions of the vehicle between different stations. According to the obtained characteristic operating conditions, the optimal SOC curve is calculated using the DP algorithm. Since the characteristic operating conditions of the entire route and the energy consumption of the vehicle are taken into account in the optimal SOC curve, the SOC of the vehicle at each station can reach the optimal state, and at the same time, it can travel at the optimal speed on the entire route, thereby ensuring the efficiency and performance of the entire route of the vehicle. Therefore, according to the optimal SOC curve, the SOC of the next station of the above-mentioned current station in the above-mentioned route, the above-mentioned current SOC, the average speed from the previous station to the above-mentioned next station, and the average speed from the above-mentioned previous station to the current position can be determined. Subsequently, the above-mentioned first optimal torque distribution ratio is optimized according to these optimal SOCs and average speeds, ensuring that the second optimal distribution ratio obtained is also optimal, thereby further ensuring that the fuel-saving effect of the subsequent final optimal distribution ratio is better.
[0070] More specifically, based on the optimal SOC curve, the SOC and driving time of the vehicle at each station can be seen, and the average speed between stations can be calculated through the distance between stations and the driving time of the vehicle between stations.
[0071] In one embodiment of the present application, the working condition of the vehicle control method is constructed as follows: Figure 5As shown in the figure, first, the original working condition data is divided according to different sites, that is, the fragment cutting in the figure, to obtain multiple segments of data, each segment of data corresponds to the working condition data between two sites, the sampling frequency of the vehicle speed data of each segment of the above data is adjusted, the high-frequency data is resampled to reduce the sampling frequency, and the low-frequency data is discarded to obtain multiple segments of adjusted data, that is, multiple segments of adjusted data; the distorted point elimination method and the data completion method are used to preprocess each of the above multiple adjusted data to obtain multiple segments of preprocessed data. Generally, the mutation points are considered to be distorted points. A reasonable threshold is selected for inspection to eliminate the data. Missing points are generally processed by interpolation. The values of missing data points are inferred from the values of known data points, so as to fill the gaps in the data and make the data set more complete; each segment of the above preprocessed data in each segment of the preprocessed data is cut with equal length according to the set step length to obtain several segments of equal length, and principal component analysis is performed on each segment. The characteristics of each segment are found through principal component analysis, that is, the original data is converted into a set of independent variables through linear transformation, so that this These variables are arranged according to the size of the variance, and multiple fragments in the same section of preprocessed data are clustered. The number of clusters can be determined according to the evaluation indicators of intra-class compactness, inter-class separation, and effectiveness. These fragments are divided into multiple clusters through a clustering algorithm. One cluster corresponds to a type of characteristic working condition. The fragments in the above cluster are spliced in sequence to obtain the first characteristic working condition. Through the above steps, the original data can be divided and clustered according to the characteristics, so as to better understand and analyze the working condition data. Then, feature extraction is performed on each section of preprocessed data, and the characteristic parameters of each section of preprocessed data are calculated. The similarity between the characteristic parameters of the first characteristic working condition and the corresponding characteristic parameters in each section of preprocessed data is calculated, and the first characteristic working condition corresponding to the characteristic parameter with the largest similarity is found, which is used as the second characteristic working condition. Multiple second characteristic working conditions corresponding to multiple sections of the above preprocessed data are spliced in sequence to obtain the characteristic working condition of the preset line. Through this process, the characteristic working condition of the line can be effectively extracted from the original working condition data, providing a basis for subsequent analysis and prediction work.
[0072] In the above scheme, more specifically, in the DP algorithm, it is necessary to define state variables to describe the state of the system. Here, the state variables are operating condition data, which can be used to represent the state of the vehicle at a certain moment. By defining and updating these state variables, the algorithm can calculate the optimal driving strategy to maximize energy efficiency or achieve other specific optimization goals; then, based on the vehicle's energy consumption model and characteristic operating condition data, a state transfer equation is established to describe the changes in the vehicle's SOC at different time points and locations as the vehicle runs, taking into account factors such as the vehicle's power demand, road conditions, and driving behavior, and predicting the vehicle's energy consumption and SOC changes under different conditions. The vehicle's energy consumption model is used to describe the energy consumed by the vehicle under different driving conditions, usually including factors such as the vehicle's power system, battery characteristics, and motor characteristics; determine the objective function: here, the objective function can be to minimize fuel consumption; based on the state variables, state transfer equations, and objective functions, the DP algorithm is used to calculate the optimal SOC curve.
[0073] It should be noted that, in the above-mentioned splicing, "in order" or "in sequence" both refer to the order in which the vehicles pass through the stations.
[0074] In the above embodiment, before obtaining the above adjustment data, the formula Calculate the degree of dispersion of each segment of the above data after the sampling frequency is adjusted; if the degree of dispersion of a segment of data is greater than the preset threshold, it means that the data distribution is uneven, and the amount of the above segment of data needs to be increased to balance the data until the degree of dispersion is less than or equal to the preset threshold, which can ensure that the data distribution is more uniform, improve the quality and reliability of the data, and further ensure the accuracy of the obtained optimal SOC, thereby further ensuring that the final optimal allocation ratio is the allocation ratio with the best energy-saving effect; where: x i It is the data of a certain day. is the average value of a certain day, n is the number of samples, V s is the coefficient of variation of the eigenvalue.
[0075] In order to ensure a better effect of optimizing the first optimal torque distribution ratio by using the site information, in another embodiment of the present application, the formula Calculate the second best allocation ratio. nn is the second best allocation ratio mentioned above, P NN is the first optimal torque distribution ratio, SOC i The reference SOC value for the next station, SOC n is the current SOC value, is the average speed of the i-th segment of the station, is the average speed from the beginning of station i-1 to the current time, V max is the maximum vehicle speed, Vmin The minimum vehicle speed, A and B are parameters adjusted according to actual conditions. When the actual vehicle is running, based on a large amount of actual operation data, the changing law of the optimal torque distribution ratio under different SOCs and average speeds is analyzed, and the optimal adjustment parameters are found through experiments and simulation calculations. The above parameters A and B are updated according to the actual vehicle data.
[0076] In order to further ensure that the final optimal allocation ratio can ensure that each part of the vehicle works in the optimal state, in another embodiment of the present application, when the second optimal allocation ratio is greater than 0, the final optimal allocation ratio is determined according to the second optimal allocation ratio and at least one allocation ratio limit, including: using the formula Determine the final optimal allocation ratio, where P nn For the second best allocation ratio, P E is the allocation ratio limit calculated based on the current maximum power of the engine and P M_c is the allocation ratio limit calculated based on the maximum power generation of the current motor and P M_d is the allocation ratio limit calculated based on the current maximum power consumption of the motor and P B_c is the allocation ratio limit calculated based on the current maximum charging power of the battery and P B_d is the allocation ratio limit calculated based on the current maximum charge and discharge rate of the battery and is the maximum power of the current engine, is the maximum power generated by the motor at present, is the maximum power consumption of the motor at present, is the current maximum charging power of the battery, is the maximum discharge power of the battery at present, q dem is the current required power.
[0077] Among them, by limiting the engine allocation ratio, the engine's operating time and load can be effectively controlled, avoiding over-reliance on the engine to drive the vehicle, improving the motor's utilization rate and overall fuel economy, and at the same time, the engine allocation ratio limit can also extend the engine's service life; by limiting the motor's charging and discharging ratio, the motor's life can be ensured to the maximum extent, and the efficiency of the energy management system can also be improved, thereby improving the overall performance and energy saving effect of the hybrid vehicle. In addition, limiting the battery charging ratio can also prevent excessive consumption of battery energy under high load conditions such as vehicle acceleration or climbing, thereby ensuring the vehicle's power output is stable and lasting; overcharging or discharging will cause excessive chemical reactions inside the battery, damage the battery's performance and stability, and shorten the battery's life. Therefore, setting an appropriate charging ratio limit according to the battery's charging and discharging power can protect the battery and ensure the efficient operation of the vehicle, avoiding overcharging or overdischarging of the battery. That is to say, when determining the final optimal allocation ratio, the engine allocation ratio limit, the motor charging ratio limit and the battery charging ratio limit are taken into consideration. Reasonable allocation of the working ratio of each component can ensure that the system can work normally under various working conditions. At the same time, considering the limitations of each component, it can also avoid damage or failure of the system due to overload of a certain component, thereby ensuring the stability and safety of the system. Therefore, determining the final optimal allocation ratio after considering various limitations can ensure that the system can achieve the best performance in actual operation.
[0078] In the above embodiment, more specifically, the method further includes: establishing an engine model, a motor model, a power battery model and a whole vehicle longitudinal dynamics model.
[0079] An engine model is established to calculate fuel consumption. The engine model describes the combustion efficiency and speed characteristics of the engine under different working conditions, and helps the control system adjust the engine output power according to current needs to achieve the best fuel economy and emission performance. Numerical modeling is used to simplify the engine model. The fuel consumption of the engine per unit time (g / s) is in: is the engine power (kW); b is the fuel consumption rate (g / kWh), which can be obtained by looking up the engine fuel consumption MAP; T e is the engine torque (N·m); n e is the engine speed (rpm);
[0080] A motor model is established to calculate power consumption. The motor model describes the efficiency and output characteristics of the motor under different working conditions, helping the control system to adjust the motor output power according to power requirements and achieve optimal energy utilization efficiency. Using numerical modeling, the power of the motor under different working conditions can be expressed as Where: η mis the motor efficiency, which can be obtained by looking up the motor efficiency MAP; T m is the motor torque (N·m); n m is the motor speed (rpm);
[0081] A power battery model is established to calculate the battery SOC. The power battery model describes the charge and discharge characteristics, capacity, voltage and other information of the power battery, helps the control system adjust the energy flow according to the battery status, prolongs the battery life, and ensures that the vehicle can continue to provide sufficient power without considering the temperature and transient characteristics of the battery. According to Kirchhoff's voltage law, the equivalent circuit model can be expressed as U = E (SOC) - I b R(SOC), where: U is the terminal voltage (V); E is the open circuit voltage (V); R is the equivalent internal resistance (Ω); I b is the battery current (A), and the battery SOC is determined by Calculation, where: SOC int is the initial SOC; Q b is the battery capacity (Ah). The open circuit voltage and equivalent internal resistance of the battery during charge and discharge are related to the battery SOC. The open circuit voltage and battery internal resistance at the current SOC can be obtained by looking up the open circuit voltage MAP and internal resistance MAP calibrated by the battery test.
[0082] A vehicle longitudinal dynamics model is established to simulate the dynamic behavior of the hybrid bus under different working conditions. In this application, the vehicle longitudinal dynamics model provides vehicle speed data. The model helps the control system adjust the power output according to the current vehicle state and environmental conditions to achieve optimal vehicle performance and energy management. The vehicle longitudinal dynamics model is constructed through the vehicle driving balance equation. The mathematical formula is: Where: i em is the transmission ratio of the gearbox; i o Main reduction ratio; η t is the transmission efficiency; r is the wheel radius (m); G is the weight of the car; u is the speed of the car; f is the rolling resistance coefficient; C D is the air resistance coefficient; A is the windward area (m 2 ); α is the slope (deg).
[0083] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the vehicle control method of the present application will be described in detail below in conjunction with specific embodiments.
[0084] This embodiment relates to a specific parallel architecture hybrid bus control method, including the following steps:
[0085] Step S1: Analyze historical operating condition data using the DP algorithm to obtain the historical optimal torque distribution ratio;
[0086] Step S2: using the above historical operating condition data and the historical optimal torque distribution ratio to train the torque distribution model. The specific model training process can be trained using the method described above.
[0087] Step S3: inputting the current working condition data of the vehicle into the above torque distribution model to obtain a first optimal torque distribution ratio corresponding to the current working condition.
[0088] Step S4: Segment the working condition data according to different sites to obtain multiple segments of data, remove distorted points and complete the data for the multiple segments of adjustment data to obtain multiple segments of pre-processed data.
[0089] Step S5: perform fixed-step truncation on each segment of preprocessed data to obtain segments of equal length, perform principal component analysis on each segment to find out the characteristics of each segment, cluster multiple segments in the same segment of the preprocessed data according to the characteristics to obtain multiple clusters, splice the segments in one cluster to obtain the first characteristic working condition.
[0090] Step S6: Calculate the similarity between the characteristic parameters of the multiple first characteristic operating conditions in each section of preprocessed data and the corresponding characteristic parameters in each corresponding section of the preprocessed data, and determine that the first characteristic operating condition corresponding to the characteristic parameter with the greatest similarity is the second characteristic operating condition, and splice the multiple second characteristic operating conditions corresponding to the multiple sections of the preprocessed data in turn to obtain the characteristic operating condition of the preset line.
[0091] Step S7: Use the DP algorithm to analyze the characteristic operating conditions of the above-mentioned preset line, calculate the optimal SOC curve, and obtain the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position based on the optimal SOC curve.
[0092] Step S8: Optimize the first optimal torque distribution ratio by using the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain a second optimal torque distribution ratio.
[0093] Step S9: When the second optimal allocation ratio is less than or equal to 0, the final optimal allocation ratio is determined to be 0; when the second optimal allocation ratio is greater than 0, the final optimal allocation ratio is determined to be 0. Determine the final optimal allocation ratio. Step S10: Control the vehicle according to the final optimal allocation ratio.
[0094] In the above embodiment, the current working condition data of the vehicle is input into the torque distribution model to obtain the first optimal torque distribution ratio, and the torque distribution model is trained using multiple sets of historical working condition data and historical optimal torque distribution ratios; the first optimal torque distribution ratio is optimized using the next station and the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain the second optimal distribution ratio; the distribution ratio is limited by at least the maximum power of the current engine; and the vehicle is controlled according to the final optimal distribution ratio. In this method, energy distribution is adjusted in real time according to the current vehicle status and bus station information, thereby solving the problem that the vehicle energy management strategy in the prior art is highly dependent on working conditions and the fuel saving effect is not prominent when facing complex and changeable actual road driving scenarios.
[0095] The embodiment of the present application also provides a vehicle control device. It should be noted that the vehicle control device of the embodiment of the present application can be used to execute the vehicle control method provided by the embodiment of the present application. The system is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0096] The following is an introduction to the vehicle control device provided in the embodiments of the present application.
[0097] Figure 6 Schematic diagram of an information vehicle control device according to an embodiment of the present application. Figure 6 As shown, the device comprises:
[0098] A first determination unit 10 is used to input the current working condition data of the vehicle into the torque distribution model to obtain a first optimal torque distribution ratio corresponding to the current working condition, wherein the torque distribution model is obtained by training using multiple groups of historical data, each group of the historical data includes historical working condition data and a historical optimal torque distribution ratio, the working condition data includes: historical vehicle speed, current vehicle speed, current battery SOC, required torque, historical average vehicle speed, current acceleration, historical average acceleration, time, road section information and remaining mileage, and the torque distribution ratio is the ratio of the engine torque to the total required torque;
[0099] Specifically, the first determination unit collects multiple historical data of a fixed route through a big data system or a real vehicle, and trains the torque distribution model through these historical data. The current working condition data is input into the torque distribution model. The model can predict the optimal torque distribution ratio under the current working condition, that is, the first optimal torque distribution ratio.
[0100] More specifically, the big data system can record various operating data of the vehicle on a fixed route in real time by connecting to sensors and data acquisition devices on the vehicle. These data can be stored and analyzed to obtain information such as the vehicle's performance and energy consumption under different road conditions. The system can also control the vehicle to travel on a fixed route and record the vehicle's operating data by installing data acquisition devices on the vehicle to collect data in real time.
[0101] In addition, the historical vehicle speed corresponding to the above historical operating condition data is the vehicle speed at the moment before the historical moment, the historical average vehicle speed is the average vehicle speed at the moment before the historical moment, and the historical average acceleration is the average acceleration at the moment before the historical moment. The road section information includes the road section length, road section type (such as expressway, urban road, etc.), road condition (such as flat, uphill, downhill, etc.), traffic conditions (such as congestion degree), speed limit information, etc.
[0102] The optimization unit 20 is used to optimize the first optimal torque distribution ratio by using the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain a second optimal distribution ratio;
[0103] Specifically, the optimization unit further optimizes the first optimal torque distribution ratio by considering the charging and discharging conditions of the battery during the vehicle's journey to the next stop, as well as the average speed of the vehicle in different road sections, so that the second optimal distribution ratio obtained after optimization can better meet the needs of the vehicle in different road sections, can better adapt to different road conditions on actual roads, and has a better fuel-saving effect.
[0104] A second determining unit 30 is configured to determine that the final optimal allocation ratio is 0 when the second optimal allocation ratio is less than or equal to 0, and to determine the final optimal allocation ratio according to the second optimal allocation ratio and at least one allocation ratio restriction when the second optimal allocation ratio is greater than 0, wherein the at least one allocation ratio restriction at least includes an allocation ratio restriction calculated according to the maximum power of the current engine, wherein the final optimal allocation ratio is greater than or equal to 0 and less than or equal to the second optimal allocation ratio;
[0105] Specifically, if the second optimal distribution ratio is less than or equal to 0, it means that the system requires the engine to provide negative torque, but according to the physical characteristics of the engine, the engine will not provide negative torque. Therefore, in this case, the output torque of the engine is directly set to 0, which means that the engine does not output torque, and all torque is provided by the motor. This can ensure the safety and stability of the system operation, and at the same time effectively utilize the performance of the motor; secondly, if the second optimal distribution ratio is greater than 0, the final optimal distribution ratio is determined based on the above-mentioned second optimal distribution ratio and at least one distribution ratio limit, and at least one of the above-mentioned distribution ratio limits at least includes a distribution ratio limit calculated based on the maximum power of the current engine, wherein the above-mentioned final optimal distribution ratio is greater than or equal to 0 and less than or equal to the above-mentioned second optimal distribution ratio. In this way, when determining the final optimal distribution ratio, at least the engine distribution ratio limit is taken into account to ensure that the engine works in a better state, which can ensure that the engine works in the best state.
[0106] The control unit 40 controls the above-mentioned vehicle according to the above-mentioned final optimal allocation ratio.
[0107] Specifically, the control unit can achieve effective distribution of engine torque and motor torque by applying the final optimal distribution ratio to the vehicle's control system to meet the vehicle's current power requirements and improve the vehicle's energy-saving effect. This torque distribution method can adjust the torque distribution ratio according to the real-time vehicle status, so that the vehicle can maintain the best energy-saving effect under different conditions.
[0108] In the above vehicle control device, the first determination unit is used to input the current working condition data of the vehicle into the torque distribution model to obtain the first optimal torque distribution ratio; the optimization unit is used to optimize the above first optimal torque distribution ratio by using the next station and the current SOC, the average speed from the previous station to the above next station and the above previous station to the current position to obtain the second optimal distribution ratio; the second determination unit is used to compare the magnitude relationship between the second optimal distribution ratio and 0 to determine the final optimal ratio; the control unit controls the above vehicle according to the above final optimal distribution ratio. The output result of the neural network is adjusted according to the actual road driving and operating conditions of the vehicle, and the obtained final optimal distribution ratio can better adapt to the current actual situation and has a better fuel saving effect, thereby solving the problem that the energy management strategy of the vehicle in the prior art does not have a prominent fuel saving effect when facing complex and changeable actual road driving scenes.
[0109] In a specific embodiment of the present application, the control device further includes:
[0110] A construction unit, used to construct a neural network model, and to construct a neural network based on the working condition data, wherein the neural network includes an input layer, a hidden layer, and an output layer;
[0111] A training unit is used to train a neural network model, divide the above working condition data into a training set and a validation set, input the above training set into the above neural network, and the model will calculate a loss value through a loss function, wherein the loss function selects a mean square error function to measure the difference between the model prediction value and the actual value, and then adjust the model parameters through a gradient descent method, calculate the gradient of the loss function with respect to the model parameters, adjust the model parameters in the opposite direction of the gradient, and gradually reduce the loss function, and use the above validation set to calculate the error of the above neural network after adjusting the above model parameters until a preset condition is met, and obtain an initial model, wherein the above preset condition includes at least one of the following: the number of iterations reaches a preset number, the gradient is updated to a preset value, and the above error no longer decreases; gradually increase the number of layers and the number of neurons of the hidden layer of the above initial model to obtain multiple adjusted initial models, input the above training set into each of the above adjusted initial models for training, and adjust the model parameters of each of the above adjusted initial models through a gradient descent method until the above preset condition is met, and obtain multiple updated models, and the above adjusted initial models correspond to the above updated models one by one;
[0112] The verification unit is used to calculate the accuracy of the initial model and each of the updated models according to each output optimal torque distribution ratio and the corresponding historical optimal torque distribution ratio in the verification set, and determine that the model with the highest accuracy is the torque distribution model, wherein the output optimal torque distribution ratio is the output obtained by inputting the historical working condition data in the verification set into the initial model and each of the updated models. In this way, the accuracy of the obtained torque distribution model can be guaranteed to be higher.
[0113] In one embodiment of the present application, the control device further includes:
[0114] The analysis unit is used to analyze the historical working condition data. The historical working condition data is regarded as a multi-stage decision-making problem. Each stage corresponds to a time point or a specific working condition. By analyzing and calculating the above historical working condition data, the optimal torque distribution ratio can be obtained, which specifically includes:
[0115] The first definition module is used to define state and control variables, taking historical operating condition data as state variables and taking historical optimal torque distribution ratio as control variables;
[0116] The first processing module is used to establish the state space and control space, discretize the above historical working condition data, define the possible value range of the torque distribution ratio under different states, and divide it into a certain number of discrete control quantities. By discretizing the state space and control space, the original continuous problem can be converted into a discrete problem, thereby simplifying the calculation process and finding the optimal control strategy;
[0117] The first evaluation module is used to establish a cost function, which defines a function to evaluate the cost of adopting a specific control strategy under specific working conditions, taking into account factors such as vehicle performance, energy consumption, and driving distance. These costs are quantified by defining a cost function to find the best torque distribution strategy. The best torque distribution for hybrid buses is to minimize power consumption while ensuring the lowest fuel consumption, so as to maximize the overall energy utilization efficiency. Therefore, it is necessary to comprehensively consider fuel consumption and power consumption to find an optimal torque distribution ratio;
[0118] The first initialization module is used to initialize the DP algorithm, set the initial working state, such as the initial vehicle speed, initial SOC, etc., set the target torque distribution ratio, which can be a specific value or a state range, and set the optimal cost of each state to infinity, except for the initial state. This is because in the initialization stage, the optimal cost of each state is not known, so it is first set to a larger value and wait for the algorithm to be iteratively updated. After initialization, the DP algorithm can start iterative calculation, update the optimal cost of the state in each iteration, and finally find the optimal control strategy;
[0119] The first recursive module is used for the reverse recursion of the DP algorithm. It determines the time step according to the data sampling frequency and the prediction range. Starting from the last time step, that is, from the state corresponding to the target torque distribution ratio, the cost corresponding to various possible control strategies in this state is calculated, and the control strategy with the minimum cost is selected. The minimum cost and the corresponding control strategy are recorded. According to the selected optimal control strategy, the optimal cost and the optimal control strategy of the current state are updated. It continues to iterate forward, calculates the cost corresponding to various possible control strategies in the state of the previous time step, and selects the control strategy with the minimum cost. The optimal cost and the optimal control strategy of the current state are updated, and the above is repeated. Steps, until reverse iteration to the initial time step, that is, the state corresponding to the initial torque distribution ratio, the optimal control strategy in each state can be calculated step by step by reverse recursion, this method can ensure that the obtained optimal control strategy is the global optimal; for each possible control quantity in each state, first calculate the instantaneous cost under the control quantity, which can be energy consumption, and then add the optimal cost of the next time step to obtain the total cost. If the total cost is less than the currently recorded optimal cost, update the optimal cost and the corresponding control strategy. In this way, the total cost of each control quantity in each state is continuously calculated and compared and updated, so as to obtain the optimal control strategy in each state;
[0120] The first calculation module is used to calculate the optimal control strategy. Starting from the initial state, the optimal control quantity of the first time step is selected according to the initial state and the recorded optimal control strategy; the state of the next time step is calculated according to the selected optimal control quantity and the current state, and the optimal control quantity of the next time step is selected according to the optimal control strategy obtained by the DP algorithm; the above steps are repeated until the target state or the last time step is calculated. At this time, the optimal control quantity of each time step is obtained, and the optimal torque distribution strategy is calculated step by step. Such a calculation process ensures that the control quantity that minimizes the total cost is selected at each time step, thereby obtaining the optimal torque distribution strategy.
[0121] In a specific embodiment, the control device further includes:
[0122] An acquisition unit is used to acquire characteristic operating conditions of a preset route, wherein the characteristic operating conditions of the preset route are formed by splicing characteristic operating conditions between two adjacent stations among the multiple stations constituting the preset route; according to the optimal SOC curve; according to the optimal SOC curve, determine the SOC of the next station of the current station in the preset route, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position.
[0123] In a specific embodiment of the above solution, the acquisition unit further includes:
[0124] The second definition module is used to define the state and control variables, select SOC as the state variable, and select the battery charging and discharging power as the control variable;
[0125] The second processing module is used to establish the state space and control space, divide the SOC into a certain number of discrete states, for example, SOC from 0% to 100% can be divided into 100 states; define the possible value range of battery charge and discharge power, and divide it into a certain number of discrete control quantities, that is, take discrete values within a certain range, for example, from -10 to 10 can be divided into 20 different charge and discharge powers. By discretizing the state space and control space, the original continuous problem can be converted into a discrete problem, thereby simplifying the calculation process and finding the optimal control strategy;
[0126] The second evaluation module is used to establish a cost function, which defines a function to evaluate the cost of adopting a specific control strategy under a specific SOC, usually considering factors such as battery life, energy consumption, and driving distance. By defining a cost function, these costs can be quantified to find the optimal control strategy to achieve the best battery management effect;
[0127] The second initialization module is used to initialize the DP algorithm, set the initial SOC, usually the initial power of the battery; set the target SOC, which can be a specific value or a range; set the optimal cost of each state to infinity, except for the initial state. This is because in the initialization stage, the optimal cost of each state is not known, so it is first set to a larger value and wait for the algorithm to iterate and update. After initialization, the DP algorithm can start iterative calculation, update the optimal cost of the state in each iteration, and finally find the optimal control strategy;
[0128] The second recursive module is used for the reverse recursion of the DP algorithm. It determines the time step according to the data sampling frequency and the prediction range. Starting from the last time step, that is, starting from the state corresponding to the target SOC, the cost corresponding to various possible control strategies in this state is calculated, and the control strategy with the minimum cost is selected. The minimum cost and the corresponding control strategy are recorded. According to the selected optimal control strategy, the optimal cost and the optimal control strategy of the current state are updated. It continues to iterate forward, calculates the cost corresponding to various possible control strategies in the state of the previous time step, and selects the control strategy with the minimum cost. The optimal cost and the optimal control strategy of the current state are updated, and the above steps are repeated until the reverse iteration reaches the initial time step. The inter-step, that is, the state corresponding to the initial SOC, can be calculated step by step through the reverse recursion to obtain the optimal control strategy in each state, thereby obtaining the entire optimal SOC curve. This method can ensure that the optimal control strategy obtained is the global optimal; for each possible control quantity in each state, calculate the instantaneous cost under the control quantity, which can be energy consumption, and then add the optimal cost of the next time step to obtain the total cost. If the total cost is less than the currently recorded optimal cost, update the optimal cost and the corresponding control strategy. In this way, the total cost of each control quantity in each state is continuously calculated and compared and updated, so that the optimal control strategy in each state can be obtained, thereby obtaining the optimal SOC curve;
[0129] The second calculation module is used to calculate the optimal control strategy. Starting from the initial state, the optimal control quantity of the first time step is selected according to the initial state and the recorded optimal control strategy; the state of the next time step is calculated according to the selected optimal control quantity and the current state, and the optimal control quantity of the next time step is selected according to the optimal control strategy obtained by the DP algorithm; the above steps are repeated until the target state or the last time step is calculated, at which time the optimal control quantity of each time step is obtained; the optimal SOC of each time step is connected to form an optimal SOC curve. Such a calculation process ensures that the control quantity that minimizes the total cost is selected at each time step, thereby obtaining the global optimal SOC curve.
[0130] In the above scheme, more specifically, according to the optimal SOC curve, the SOC and average speed of each station in the preset route can be determined. This is because under the optimal SOC curve, the energy consumption and speed of the vehicle are optimized, and the SOC value of the vehicle at each time point can be obtained by calculating the SOC curve, and then the average speed can be calculated according to the SOC and position information of the vehicle.
[0131] In the above scheme, characteristic operating conditions under specific conditions between different stations in a pre-specified route are obtained in order to simulate and analyze the driving conditions of the vehicle between different stations. According to the obtained characteristic operating conditions, the optimal SOC curve is calculated using the DP algorithm. Since the characteristic operating conditions of the entire route and the energy consumption of the vehicle are taken into account in the optimal SOC curve, the SOC of the vehicle at each station can reach the optimal state, and at the same time, it can travel at the optimal speed on the entire route, thereby ensuring the efficiency and performance of the entire route of the vehicle. Therefore, according to the optimal SOC curve, the SOC of the next station of the above-mentioned current station in the above-mentioned route, the above-mentioned current SOC, the average speed from the previous station to the above-mentioned next station, and the average speed from the above-mentioned previous station to the current position can be determined. Subsequently, the above-mentioned first optimal torque distribution ratio is optimized according to these optimal SOCs and average speeds, ensuring that the second optimal distribution ratio obtained is also optimal, thereby further ensuring that the fuel-saving effect of the subsequent final optimal distribution ratio is better.
[0132] More specifically, based on the optimal SOC curve, the SOC and driving time of the vehicle at each station can be seen, and the average speed between stations can be calculated through the distance between stations and the driving time of the vehicle between stations.
[0133] In one embodiment of the present application, the acquisition unit further includes:
[0134] The segmentation module is used to segment the data, segment the original working condition data according to different stations to obtain multiple segments of data, each segment of data corresponds to the working condition data between two stations, adjust the sampling frequency of the vehicle speed data of each segment of the above data, resample the high-frequency data to reduce the sampling frequency, discard the low-frequency data, and obtain multiple segments of adjusted data, i.e., multiple segments of adjusted data;
[0135] The preprocessing module is used to preprocess the data. The distorted point elimination method and the data completion method are used to preprocess each of the above-mentioned multiple adjusted data to obtain multiple preprocessed data. Generally, the sudden change points are considered to be distorted points. A reasonable threshold is selected for inspection to eliminate the data. Missing points are generally processed by interpolation. The values of the missing data points are inferred from the values of the known data points, thereby filling the gaps in the data and making the data set more complete.
[0136] A clustering analysis module is used to cluster data, cut each segment of the preprocessed data into equal lengths according to a set step length to obtain a number of equal length segments, perform principal component analysis on each segment, and find out the characteristics of each segment through principal component analysis, that is, convert the original data into a set of independent variables through linear transformation, so that these variables are arranged according to the size of the variance, cluster multiple segments in the same segment of preprocessed data, and determine the number of clusters based on the evaluation indicators of intra-class compactness, inter-class separation, and effectiveness. These segments are divided into multiple clusters through a clustering algorithm, and one cluster corresponds to one type of characteristic working condition. The segments in the above cluster are spliced in order to obtain the first characteristic working condition. Through the above steps, the original data can be divided and clustered according to the characteristics, so as to better understand and analyze the working condition data;
[0137] The third calculation module is used to calculate the characteristic parameters of the data, perform feature extraction on each segment of preprocessed data, calculate the characteristic parameters of each segment of preprocessed data, perform similarity calculation on the characteristic parameters of the first characteristic condition and the corresponding characteristic parameters in each segment of preprocessed data, find the first characteristic condition corresponding to the characteristic parameter with the greatest similarity, and use it as the second characteristic condition;
[0138] The splicing module is used to splice the preprocessed data. The multiple second characteristic operating conditions corresponding to the multiple segments of the preprocessed data are spliced in sequence to obtain the characteristic operating conditions of the preset line. Through the splicing module, the characteristic operating conditions of the line can be effectively extracted from the original operating condition data, providing a basis for subsequent analysis and prediction work.
[0139] In the above scheme, more specifically, in the DP algorithm, it is necessary to define state variables to describe the state of the system. Here, the state variables are operating condition data, which can be used to represent the state of the vehicle at a certain moment. By defining and updating these state variables, the algorithm can calculate the optimal driving strategy to maximize energy efficiency or achieve other specific optimization goals; then, based on the vehicle's energy consumption model and characteristic operating condition data, a state transfer equation is established to describe the changes in the vehicle's SOC at different time points and locations as the vehicle runs, taking into account factors such as the vehicle's power demand, road conditions, and driving behavior, and predicting the vehicle's energy consumption and SOC changes under different conditions. The vehicle's energy consumption model is used to describe the energy consumed by the vehicle under different driving conditions, usually including factors such as the vehicle's power system, battery characteristics, and motor characteristics; determine the objective function: here, the objective function can be to minimize fuel consumption; based on the state variables, state transfer equations, and objective functions, the DP algorithm is used to calculate the optimal SOC curve.
[0140] It should be noted that, in the above-mentioned splicing, "in order" or "in sequence" both refer to the order in which the vehicles pass through the stations.
[0141] In the above embodiment, the acquisition unit includes:
[0142] The data adjustment module is used to use the formula before obtaining multiple pieces of the above adjustment data. Calculate the degree of dispersion of each segment of the above data after the sampling frequency is adjusted; if the degree of dispersion of a segment of data is greater than the preset threshold, it means that the data distribution is uneven, and the amount of the above segment of data needs to be increased to balance the data until the degree of dispersion is less than or equal to the preset threshold, which can ensure that the data distribution is more uniform, improve the quality and reliability of the data, and further ensure the accuracy of the obtained optimal SOC, thereby further ensuring that the final optimal allocation ratio is the allocation ratio with the best energy-saving effect; where: x i It is the data of a certain day. is the average value of a certain day, n is the number of samples, V s is the coefficient of variation of the eigenvalue.
[0143] In one embodiment of the present application, the optimization unit is further used for:
[0144] Using formula Calculate the second best allocation ratio. nn is the second best allocation ratio mentioned above, P NN is the first optimal torque distribution ratio, SOC i The reference SOC value for the next station, SOC n is the current SOC value, is the average speed of the i-th segment of the station, is the average speed from the beginning of station i-1 to the current time, V max is the maximum vehicle speed, V min The minimum vehicle speed, A and B are parameters adjusted according to actual conditions. When the actual vehicle is running, based on a large amount of actual operating data, the changing law of the optimal torque distribution ratio under different SOCs and average speeds is analyzed, and the optimal adjustment parameters are found through experiments and simulation calculations. The above parameters A and B can be updated according to the actual vehicle data.
[0145] In order to further ensure that the final optimal allocation ratio can ensure that each part of the vehicle works in the optimal state, in another embodiment of the present application, the second determination unit is also used to: use the formula Determine the final optimal allocation ratio, where P nn For the second best allocation ratio, P E is the allocation ratio limit calculated based on the current maximum power of the engine and PM_c is the allocation ratio limit calculated based on the maximum power generation of the current motor and P M_d is the allocation ratio limit calculated based on the current maximum power consumption of the motor and P B_c is the allocation ratio limit calculated based on the current maximum charging power of the battery and P B_d is the allocation ratio limit calculated based on the current maximum charge and discharge rate of the battery and is the maximum power of the current engine, is the maximum power generation of the motor at present, is the maximum power consumption of the motor at present, is the current maximum charging power of the battery, is the maximum discharge power of the battery at present, q dem is the current required power.
[0146] Among them, by limiting the engine allocation ratio, the engine's operating time and load can be effectively controlled, avoiding over-reliance on the engine to drive the vehicle, improving the motor's utilization rate and overall fuel economy, and at the same time, the engine allocation ratio limit can also extend the engine's service life; by limiting the motor's charging and discharging ratio, the motor's life can be ensured to the maximum extent, and the efficiency of the energy management system can also be improved, thereby improving the overall performance and energy saving effect of the hybrid vehicle. In addition, limiting the battery charging ratio can also prevent excessive consumption of battery energy under high load conditions such as vehicle acceleration or climbing, thereby ensuring the vehicle's power output is stable and lasting; overcharging or discharging will cause excessive chemical reactions inside the battery, damage the battery's performance and stability, and shorten the battery's life. Therefore, setting an appropriate charging ratio limit according to the battery's charging and discharging power can protect the battery and ensure the efficient operation of the vehicle, avoiding overcharging or overdischarging of the battery. That is to say, when determining the final optimal allocation ratio, the engine allocation ratio limit, the motor charging ratio limit and the battery charging ratio limit are taken into consideration. Reasonable allocation of the working ratio of each component can ensure that the system can work normally under various working conditions. At the same time, considering the limitations of each component, it can also avoid damage or failure of the system due to overload of a certain component, thereby ensuring the stability and safety of the system. Therefore, determining the final optimal allocation ratio after considering various limitations can ensure that the system can achieve the best performance in actual operation.
[0147] In a specific embodiment of the present application, the control device further includes:
[0148] The first model building modeling unit is used to build an engine model and calculate fuel consumption. The engine model describes the combustion efficiency and speed characteristics of the engine under different working conditions, helping the control system to adjust the engine output power according to current needs to achieve the best fuel economy and emission performance. Numerical modeling is used to simplify the engine model. The fuel consumption of the engine per unit time (g / s) is in: is the engine power (kW); b represents the fuel consumption rate (g / kWh), which can be obtained by looking up the engine fuel consumption MAP; T e is the engine torque (N·m); n e is the engine speed (rpm);
[0149] The second model building unit is used to build a motor model and calculate power consumption. The motor model describes the efficiency and output characteristics of the motor under different working conditions, helping the control system to adjust the motor output power according to power requirements and achieve optimal energy utilization efficiency. Using numerical modeling, the power of the motor under different working conditions can be expressed as Where: η m is the motor efficiency, which can be obtained by looking up the motor efficiency MAP; T m is the motor torque (N·m); n m is the motor speed (rpm);
[0150] The third model building unit is used to establish a power battery model and calculate the battery SOC. The power battery model describes the charge and discharge characteristics, capacity, voltage and other information of the power battery, helps the control system to adjust the energy flow according to the battery status, prolong the battery life, and ensure that the vehicle can continue to provide sufficient power without considering the temperature and transient characteristics of the battery. According to Kirchhoff's voltage law, the equivalent circuit model can be expressed as U = E (SOC) - I b R(SOC), where: U is the terminal voltage (V); E is the open circuit voltage (V); R is the equivalent internal resistance (Ω); I b is the battery current (A), and the battery SOC is determined by Calculation, where: SOC int is the initial SOC; Q b is the battery capacity (Ah). The open circuit voltage and equivalent internal resistance of the battery during charge and discharge are related to the battery SOC. The open circuit voltage and battery internal resistance at the current SOC can be obtained by looking up the open circuit voltage MAP and internal resistance MAP calibrated by the battery test.
[0151] The fourth model building unit is used to establish a vehicle longitudinal dynamics model to simulate the dynamic behavior of the hybrid bus under different working conditions. In this application, the vehicle longitudinal dynamics model provides vehicle speed data. The model helps the control system to adjust the power output according to the current vehicle state and environmental conditions to achieve optimal vehicle performance and energy management. The vehicle longitudinal dynamics model is constructed through the vehicle driving balance equation. The mathematical formula is: Where: i em is the transmission ratio of the gearbox; i o Main reduction ratio; η t is the transmission efficiency; r is the wheel radius (m); G is the weight of the car; u is the speed of the car; f is the rolling resistance coefficient; C D is the air resistance coefficient; A is the windward area (m 2 ); α is the slope (deg).
[0152] The vehicle control device includes a processor and a memory. The first determination unit, the second determination unit and the control unit are stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions.
[0153] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set to solve the problem of software integration failure caused by memory partition exceeding the limit by adjusting kernel parameters.
[0154] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0155] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the vehicle control method.
[0156] Specifically, the vehicle control method includes:
[0157] Step S201: inputting the current working condition data of the vehicle into the torque distribution model to obtain the first optimal torque distribution ratio corresponding to the current working condition, wherein the torque distribution model is obtained by training using multiple groups of historical data, each group of the historical data includes historical working condition data and historical optimal torque distribution ratio, the working condition data includes: historical vehicle speed, current vehicle speed, current battery SOC, required torque, historical average vehicle speed, current acceleration, historical average acceleration, time, road section information and remaining mileage, and the torque distribution ratio is the ratio of engine torque to total required torque;
[0158] Step S202: optimizing the first optimal torque distribution ratio by using the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain a second optimal distribution ratio;
[0159] Step S203: Determine the final optimal allocation ratio according to the relationship between the second optimal allocation ratio and the first preset threshold and the second preset threshold; when the second optimal allocation ratio is less than or equal to the first preset threshold, determine the final optimal allocation ratio to be 0; when the second optimal allocation ratio is greater than the first preset threshold and less than the second preset threshold, determine the final optimal allocation ratio to be the second optimal allocation ratio; when the second optimal allocation ratio is greater than or equal to the second preset threshold, determine the final optimal allocation ratio to be the second preset threshold; the first preset threshold is 0; and the second preset threshold is the minimum value among the engine allocation ratio limit, the motor charging ratio limit, and the battery charging ratio limit;
[0160] Step S204: Control the above-mentioned vehicles according to the above-mentioned final optimal allocation ratio.
[0161] An embodiment of the present invention provides a processor, which is used to run a program, wherein the vehicle control method is executed when the program is run.
[0162] Specifically, the vehicle control method includes:
[0163] Step S201: inputting the current working condition data of the vehicle into the torque distribution model to obtain the first optimal torque distribution ratio corresponding to the current working condition, wherein the torque distribution model is obtained by training using multiple groups of historical data, each group of the historical data includes historical working condition data and historical optimal torque distribution ratio, the working condition data includes: historical vehicle speed, current vehicle speed, current battery SOC, required torque, historical average vehicle speed, current acceleration, historical average acceleration, time, road section information and remaining mileage, and the torque distribution ratio is the ratio of engine torque to total required torque;
[0164] Step S202: optimizing the first optimal torque distribution ratio by using the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain a second optimal distribution ratio;
[0165] Step S203: when the second optimal allocation ratio is less than or equal to 0, the final optimal allocation ratio is determined to be 0; when the second optimal allocation ratio is greater than 0, the final optimal allocation ratio is determined according to the second optimal allocation ratio and at least one allocation ratio restriction, wherein the at least one allocation ratio restriction at least includes an allocation ratio restriction calculated according to the maximum power of the current engine, wherein the final optimal allocation ratio is greater than or equal to 0 and less than or equal to the second optimal allocation ratio;
[0166] Step S204: Control the above-mentioned vehicles according to the above-mentioned final optimal allocation ratio.
[0167] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0168] Step S201: inputting the current working condition data of the vehicle into the torque distribution model to obtain the first optimal torque distribution ratio corresponding to the current working condition, wherein the torque distribution model is obtained by training using multiple groups of historical data, each group of the historical data includes historical working condition data and historical optimal torque distribution ratio, the working condition data includes: historical vehicle speed, current vehicle speed, current battery SOC, required torque, historical average vehicle speed, current acceleration, historical average acceleration, time, road section information and remaining mileage, and the torque distribution ratio is the ratio of engine torque to total required torque;
[0169] Step S202: optimizing the first optimal torque distribution ratio by using the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain a second optimal distribution ratio;
[0170] Step S203: when the second optimal allocation ratio is less than or equal to 0, the final optimal allocation ratio is determined to be 0; when the second optimal allocation ratio is greater than 0, the final optimal allocation ratio is determined according to the second optimal allocation ratio and at least one allocation ratio restriction, wherein the at least one allocation ratio restriction at least includes an allocation ratio restriction calculated according to the maximum power of the current engine, wherein the final optimal allocation ratio is greater than or equal to 0 and less than or equal to the second optimal allocation ratio;
[0171] Step S204: Control the above-mentioned vehicles according to the above-mentioned final optimal allocation ratio.
[0172] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0173] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0174] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0175] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0176] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0177] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0178] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0179] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0180] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0181] In the above embodiment, first, the current working condition data of the vehicle is input into the torque distribution model to obtain the first optimal torque distribution ratio; then, the first optimal torque distribution ratio is optimized by using the next station and the current SOC, the average speed from the previous station to the above next station, and the above previous station to the current position to obtain the second optimal distribution ratio; then, the final optimal ratio is determined by comparing the size relationship between the second optimal distribution ratio and 0; finally, the above vehicle is controlled according to the above final optimal distribution ratio. In this method, the output result of the neural network is adjusted according to the actual road driving and operating conditions of the vehicle, and the final optimal distribution ratio obtained can better adapt to the current actual situation and has a better fuel saving effect, thereby solving the problem that the energy management strategy of the vehicle in the prior art does not have a prominent fuel saving effect when facing complex and changeable actual road driving scenarios.
[0182] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A vehicle control method, characterized in that: include: Inputting the current working condition data of the vehicle into the torque distribution model to obtain a first optimal torque distribution ratio corresponding to the current working condition, wherein the torque distribution model is obtained by training using multiple groups of historical data, each group of historical data includes historical working condition data and historical optimal torque distribution ratio, the working condition data includes: historical vehicle speed, current vehicle speed, current battery SOC, required torque, historical average vehicle speed, current acceleration, historical average acceleration, time, road section information and remaining mileage, and the torque distribution ratio is the ratio of engine torque to total required torque; Optimizing the first optimal torque distribution ratio by using the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain a second optimal distribution ratio; When the second optimal allocation ratio is less than or equal to 0, the final optimal allocation ratio is determined to be 0; when the second optimal allocation ratio is greater than 0, the final optimal allocation ratio is determined according to the second optimal allocation ratio and at least one allocation ratio restriction, wherein the at least one allocation ratio restriction at least includes an allocation ratio restriction calculated according to the maximum power of the current engine, wherein the final optimal allocation ratio is greater than or equal to 0 and less than or equal to the second optimal allocation ratio; The vehicle is controlled according to the final optimal allocation ratio.
2. The method according to claim 1, characterized in that The method further comprises: A construction step, constructing a neural network based on the operating condition data, wherein the neural network includes an input layer, a hidden layer, and an output layer; A training step, dividing the working condition data into a training set and a validation set, inputting the training set into the neural network for training, adjusting the model parameters of the neural network by a gradient descent method, and using the validation set to calculate the error of the neural network after adjusting the model parameters, until a preset condition is met, thereby obtaining an initial model, wherein the preset condition includes at least one of the following: the number of iterations reaches a preset number, the gradient is updated to a preset value, and the error no longer decreases; Gradually increase the number of hidden layers and the number of neurons in the initial model to obtain multiple adjusted initial models, input the training set into each of the adjusted initial models for training, and adjust the model parameters of each of the adjusted initial models by the gradient descent method until the preset conditions are met, thereby obtaining multiple updated models, wherein the adjusted initial models correspond to the updated models one by one; A verification step, calculating the accuracy of the initial model and each updated model according to each output optimal torque distribution ratio and the corresponding historical optimal torque distribution ratio in the verification set, and determining the model with the highest accuracy as the torque distribution model, wherein the output optimal torque distribution ratio is the output obtained by inputting the historical operating condition data in the verification set into the initial model and each updated model.
3. The method according to claim 1, characterized in that The method further comprises: The historical operating condition data is analyzed by the DP algorithm to obtain the historical optimal torque distribution ratio.
4. The method according to claim 1, characterized in that The method further comprises: Acquire characteristic operating conditions of a preset route, and calculate an optimal SOC curve according to the characteristic operating conditions of the preset route and using a DP algorithm, wherein the characteristic operating conditions of the preset route are formed by splicing characteristic operating conditions between two adjacent stations among a plurality of stations constituting the preset route; According to the optimal SOC curve, the SOC of the next station in the preset route, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position are determined.
5. The method according to claim 4, characterized in that The process of obtaining the characteristic working condition of the preset line includes: The operating condition data is segmented according to different stations to obtain multiple segments of data, each segment of data corresponds to the operating condition data between two stations, and the sampling frequency of the vehicle speed data of each segment of data is adjusted, high-frequency data is resampled to reduce the sampling frequency, and low-frequency data is discarded to obtain multiple segments of adjusted data; Using a distorted point elimination method and a data completion method to perform data preprocessing on each of the multiple adjusted data segments to obtain multiple segments of preprocessed data; Using a fixed-step-length truncation method to cut each of the multiple segments of preprocessed data into segments to obtain a number of segments of equal length, performing principal component analysis on each of the segments to obtain a feature of each segment, clustering the multiple segments in the same segment of the preprocessed data according to the feature to obtain a plurality of clusters, and splicing the multiple segments in one cluster to obtain a first characteristic working condition; Calculating the similarity between the characteristic parameters of the first characteristic operating conditions in each section of the preprocessed data and the corresponding characteristic parameters in each corresponding section of the preprocessed data, and determining the first characteristic operating condition corresponding to the characteristic parameter with the greatest similarity as the second characteristic operating condition; The plurality of second characteristic operating conditions corresponding to the plurality of segments of the preprocessed data are sequentially spliced together to obtain the characteristic operating conditions of the preset line.
6. The method according to claim 5, characterized in that The process of acquiring the characteristic working condition of the preset line also includes: Before obtaining the multiple adjustment data, use the formula Calculate the discrete degree of each segment of the data after the sampling frequency is adjusted, where x i It is the data of a certain day. is the average value of a certain day, n is the number of samples, V s is the coefficient of variation of the eigenvalue; When the discrete degree of a certain segment of data is greater than a preset threshold, the data volume of the certain segment of data is increased until the discrete degree of the certain segment of data is less than or equal to the preset threshold.
7. The method according to claim 1, characterized in that The first optimal torque distribution ratio is optimized by using the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain the second optimal distribution ratio, including: Using formula Calculate the second optimal allocation ratio, where P nn For the second best allocation ratio, P NN The first optimal torque distribution ratio, SOC i The reference SOC value for the next station, SOC n is the current SOC value, is the average speed of the i-th segment of the station, is the average speed from the beginning of station i-1 to the current time, V max is the maximum vehicle speed, V min is the minimum vehicle speed, and A and B are parameters adjusted according to actual conditions.
8. The method according to any one of claims 1 to 7, characterized in that When the second optimal allocation ratio is greater than 0, determining a final optimal allocation ratio according to the second optimal allocation ratio and at least one allocation ratio restriction includes: Using the formula Determine the final optimal allocation ratio, where P nn For the second best allocation ratio, P E is the allocation ratio limit calculated based on the current maximum power of the engine and P M_c is the allocation ratio limit calculated based on the maximum power generation of the current motor and P M_d is the allocation ratio limit calculated based on the current maximum power consumption of the motor and P B_c is the allocation ratio limit calculated based on the current maximum charging power of the battery and P B_d is the allocation ratio limit calculated based on the current maximum charge and discharge rate of the battery and is the maximum power of the current engine, is the maximum power generation of the motor at present, is the maximum power consumption of the motor at present, is the current maximum charging power of the battery, is the maximum discharge power of the battery at present, q dem is the current required power.
9. A vehicle control device, characterized in that: include: a first determination unit, configured to input current operating condition data of the vehicle into a torque distribution model to obtain a first optimal torque distribution ratio corresponding to the current operating condition, wherein the torque distribution model is obtained by training using multiple groups of historical data, each group of historical data includes historical operating condition data and a historical optimal torque distribution ratio, the operating condition data includes: historical vehicle speed, current vehicle speed, current battery SOC, required torque, historical average vehicle speed, current acceleration, historical average acceleration, time, road section information, and remaining mileage, and the torque distribution ratio is a ratio of the engine torque to the total required torque; an optimization unit, configured to optimize the first optimal torque distribution ratio by using the SOC of the next station, the current SOC, the average speed from the previous station to the next station, and the average speed from the previous station to the current position to obtain a second optimal distribution ratio; a second determining unit, configured to determine a final optimal allocation ratio according to the second optimal allocation ratio and at least one allocation ratio limit, wherein the at least one allocation ratio limit at least includes an allocation ratio limit calculated according to a maximum power of a current engine, wherein the final optimal allocation ratio is greater than or equal to 0 and less than or equal to the second optimal allocation ratio; A control unit is used to control the vehicle according to the final optimal distribution ratio.
10. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing a vehicle control method as described in any one of claims 1 to 8.
Citation Information
Cited By
Control method and device of extended-range engine, hybrid vehicle and medium
CN120003457A
