A torque distribution control method and device for electric vehicle and electric vehicle
Through the adaptive torque distribution control method, sliding mode control and intelligent optimization algorithms are used to solve the safety problems of electric vehicles losing control on slippery roads and in complex driving scenarios, and improve the stability of electric vehicles and the smoothness of the control system. , adaptable to a variety of complex road scenarios.
Patent Information
- Application Number
- CN202410932780.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-12
AI Technical Summary
Electric vehicles are prone to losing control or skidding on slippery roads, and complex control systems increase maintenance costs and safety risks. Existing technologies have problems with uncertainty and insufficient smoothness in complex driving scenarios and fault handling.
The adaptive torque distribution control method is adopted, by constructing the upper and lower layer models of the control system, combined with intelligent optimization algorithms and sliding mode control, to optimize torque distribution, improve the safety and stability of electric vehicles, and adapt to a variety of complex road scenarios.
It improves the safety and stability of electric vehicles in complex road scenarios, ensures smooth distribution of torque, reduces performance degradation caused by faults, and enhances the smoothness and robustness of the control system.
Smart Images

Figure CN118457274B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric vehicle control, and in particular to a torque distribution control method and device for an electric vehicle and an electric vehicle. Background Art
[0002] Each wheel of an electric vehicle is equipped with an independent electric drive unit, which enables electric vehicles to reach unprecedented levels in terms of power output and handling performance, and is more efficient and flexible. However, with the advancement of technology and practical applications, some challenges and safety issues have also emerged. For example, on slippery roads, the torque provided by the electric drive unit may cause the electric vehicle to lose control or slip, thereby increasing the risk of driving. In addition, since electric vehicles have complex control systems and multiple actuators, once a failure occurs, it will increase the cost of repair and maintenance, and may also affect the stability and safety of electric vehicles.
[0003] Existing technologies have many drawbacks when dealing with the above-mentioned problems. For example, the dynamics model of electric vehicles usually has a certain degree of uncertainty. Especially in complex driving scenarios (such as urban traffic and harsh road conditions), the control strategy is not adaptable and has difficulty in coping with a variety of complex road conditions. When the system switches between different control modes, there may be a problem of insufficient smoothness. Some systems may have insufficient tolerance for faults, resulting in performance degradation when a fault occurs. Advanced stability control systems may require more sensors and computing resources, increasing hardware costs. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a torque distribution control method, device, electric vehicle, electronic device and storage medium for an electric vehicle, which can improve the safety and stability of the electric vehicle control process, improve the smoothness of the control system when switching modes, maintain smooth torque distribution during the operation of the electric vehicle, avoid performance degradation when a fault occurs, and can adapt to a variety of complex road scenarios.
[0005] In a first aspect, an embodiment of the present application provides a torque distribution control method for an electric vehicle, the method comprising:
[0006] Acquiring sensor data of the electric vehicle;
[0007] Inputting the sensor data into a pre-built upper control model of the control system for adaptive updating to obtain torque parameters;
[0008] The torque parameters are input into the pre-built lower-level control model of the control system to perform torque distribution, and the optimal target is optimized and solved through an intelligent optimization algorithm to obtain the optimal torque control output.
[0009] In the above implementation process, the torque of the electric vehicle is distributed according to the constructed upper control model of the control system and the lower control model of the control system, which can improve the safety and stability of the electric vehicle control process, improve the smoothness of the control system when switching modes, maintain smooth torque distribution during the operation of the electric vehicle, avoid performance degradation when a fault occurs, and can adapt to a variety of complex road scenarios.
[0010] Furthermore, the steps of constructing the upper control model of the control system include:
[0011] Determine the sideslip angle sliding surface data and build the sideslip angle velocity control model;
[0012] Determine the yaw angle sliding surface data and build a yaw angle velocity control model;
[0013] The upper control model of the control system is constructed according to the sideslip angular velocity control model and the yaw angular velocity control model.
[0014] In the above implementation process, by respectively determining the sideslip angle sliding surface data and the yaw angle sliding surface data, and then constructing the sideslip angle velocity control model and the yaw angle velocity control model, the changes of the sideslip angle velocity and the yaw angle velocity during the driving of the electric vehicle can be added to the control system to improve the stability and robustness of the upper control model.
[0015] Furthermore, the step of determining the sideslip angle sliding surface data and constructing the sideslip angle velocity control model includes:
[0016] Get control parameters and switch gains;
[0017] The control rule of the sideslip angle sliding surface data is modified according to the control parameter and the switch gain to obtain a sideslip angle velocity control model.
[0018] In the above implementation process, the control rules are modified according to the control parameters and the switch gain, the control mode of the control model during the driving of the electric vehicle is changed, and the mode switching capability of the control model is improved.
[0019] Furthermore, the sideslip angle sliding surface data is determined by the following formula:
[0020] ;
[0021] in, is the sliding surface parameter of the sideslip angle, is the vehicle speed tracking error, is the sideslip angle sliding surface data.
[0022] Furthermore, the step of determining the yaw angle sliding surface data and constructing the yaw angle velocity control model includes:
[0023] Get control parameters and switch gains;
[0024] The control rule of the yaw angle sliding mode surface data is modified according to the control parameter and the switch gain to obtain a yaw angle velocity control model.
[0025] In the above implementation process, the control rules are modified according to the control parameters and the switching gain, which can improve the mode switching capability of the control model and improve the stability.
[0026] Furthermore, the yaw angle sliding surface data is determined by the following formula:
[0027] ;
[0028] in, and is the sliding surface parameter of the yaw angle, is the yaw angle, is the yaw angle control error, is the yaw angle sliding surface data.
[0029] Furthermore, the step of inputting the torque parameter into a pre-built control system lower-level control model for torque distribution, optimizing and solving the optimal target through an intelligent optimization algorithm, and obtaining the optimal torque control output comprises:
[0030] Initialize the particle swarm population;
[0031] Inputting the initialized particle population into the lower control model of the control system, and assigning the particles to the torque parameters in sequence to obtain the performance index corresponding to the torque parameters;
[0032] Obtaining a candidate function value of the particle according to the performance indicator;
[0033] Updating the fitness value of the particle according to the candidate function value;
[0034] The optimal torque control output is determined according to the fitness value.
[0035] In the above implementation process, the particles are assigned to the torque parameters in turn to obtain the performance index, and then the function value and the fitness value are obtained according to the performance index, so as to determine the optimal torque control output, which can improve the accuracy of the optimal torque control output and reduce the error.
[0036] Furthermore, the step of updating the fitness value of the particle according to the candidate function value comprises:
[0037] Selecting a global optimal solution and an individual optimal solution from the candidate function values;
[0038] updating the current position of the particle according to the global optimal solution and the individual optimal solution;
[0039] Obtain the fitness value of the particle at the current position.
[0040] In the above implementation process, the fitness value of the current position of the particle updated by the global optimal solution and the individual optimal solution is used as the updated fitness value, which can improve the stability in the updating process and improve the accuracy of the fitness value.
[0041] Further, the step of determining the optimal torque control output according to the fitness value includes:
[0042] Get the fitness value set after multiple iterations;
[0043] Determine that the parameter value of the particle corresponding to the fitness value with the smallest value in the fitness set is the optimal torque control output.
[0044] In the above implementation process, the parameter value of the particle with the smallest fitness value is selected as the optimal torque control output according to the fitness value set after multiple iterations, ensuring that the optimal torque control output can be stably output during the driving of the electric vehicle and improving robustness.
[0045] In a second aspect, an embodiment of the present application further provides a torque distribution control device for an electric vehicle, the device comprising:
[0046] An acquisition module, used for acquiring sensor data of the electric vehicle;
[0047] An adaptive updating module, used for inputting the sensor data into a pre-built upper control model of the control system for adaptive updating to obtain torque parameters;
[0048] The torque distribution module is used to input the torque parameters into the pre-built control system lower control model to perform torque distribution, and optimize the optimal target through the intelligent optimization algorithm to obtain the optimal torque control output.
[0049] In the above implementation process, the torque of the electric vehicle is distributed according to the constructed upper control model of the control system and the lower control model of the control system, which can improve the safety and stability of the electric vehicle control process, improve the smoothness of the control system when switching modes, maintain smooth torque distribution during the operation of the electric vehicle, avoid performance degradation when a fault occurs, and can adapt to a variety of complex road scenarios.
[0050] In a third aspect, an embodiment of the present application provides an electric vehicle, comprising the torque distribution control device of the electric vehicle according to the second aspect.
[0051] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.
[0052] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method described in any one of the first aspects.
[0053] In a sixth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.
[0054] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.
[0055] And it can be implemented according to the contents of the specification. The following is a detailed description of the preferred embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the range values. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0057] Figure 1 A schematic flow chart of a torque distribution control method for an electric vehicle provided in an embodiment of the present application;
[0058] Figure 2 A schematic diagram of a control system provided in an embodiment of the present application;
[0059] Figure 3 A schematic diagram of the structure of a torque distribution control device for an electric vehicle provided in an embodiment of the present application;
[0060] Figure 4 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0062] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0063] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application, but are not used to limit the scope of the present application.
[0064] Embodiment 1
[0065] Figure 1 is a flow chart of a torque distribution control method for an electric vehicle provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0066] S1, obtains sensor data of electric vehicles;
[0067] S2, inputting the sensor data into the pre-built upper control model of the control system for adaptive updating to obtain the torque parameters;
[0068] S3, input the torque parameters into the pre-built control system lower control model to distribute the torque, and optimize the optimal target through the intelligent optimization algorithm to obtain the optimal torque control output.
[0069] In the above implementation process, the torque of the electric vehicle is distributed according to the constructed upper control model of the control system and the lower control model of the control system, which can improve the safety and stability of the electric vehicle control process, improve the smoothness of the control system when switching modes, maintain smooth torque distribution during the operation of the electric vehicle, avoid performance degradation when a fault occurs, and can adapt to a variety of complex road scenarios.
[0070] In the embodiment of the present application, when studying the torque distribution control of an electric vehicle, it is necessary to analyze the six degrees of freedom of the electric vehicle's motion process, considering only the lateral, longitudinal and yaw motions. Determine the design goal, that is, how to generate virtual control inputs so that the sideslip angle and yaw rate can follow the required sideslip and yaw rate.
[0071] The embodiments of the present application can be subjected to offline simulation and experimental testing in tools such as MATLAB to verify the performance of the control.
[0072] The electric vehicle has six degrees of freedom, namely vertical motion in the z-direction, lateral motion in the y-direction, longitudinal motion in the x-direction, rolling motion in the x-direction, pitch motion in the y-axis, and yaw motion around the z-axis. In the steering system, only the lateral, longitudinal, and yaw motions of the electric vehicle modeling are considered. Compared with the front-wheel steering system, the present application improves the controllability and flexibility of the electric vehicle.
[0073] In actual situations, if the steering angle And turning radius Much larger than the front track width and rear track width The control difference between the left and right wheels is very small.
[0074] First, set the left and right wheels to have the same steering angle The turning radius is defined as follows:
[0075] ;
[0076] in, and They are the length from the center of gravity of an electric vehicle to the rear axle and the front axle respectively.
[0077] Then, the dynamic model of the electric vehicle is established:
[0078] ;
[0079] in, is the yaw rate, represents the sideslip angle, represents the speed of the electric vehicle, For the quality of electric vehicles, represents the front wheel steering angle, is the rear wheel steering angle, is the yaw moment inertia. Parameters and Represents the tire cornering stiffness of the front and rear wheels respectively. Yaw moment The longitudinal force generated by each wheel can be controlled by the following formula:
[0080] ;
[0081] in, , , , They represent the longitudinal forces to the right front, left front, right rear, and left rear, respectively. Combining the above two formulas, we can get the control effectiveness matrix and the input vector :
[0082] ;
[0083] ;
[0084] The electric vehicle control system of this application adopts control models at different levels, such as Figure 2 As shown, efficient and stable control of electric vehicles can be achieved. The present application is a hierarchical structure consisting of an upper control model of the control system and a lower control model of the control system. The upper control model of the control system completes the control of the sideslip angular velocity and the EV speed, and the lower control model of the control system outputs a torque control instruction based on the traction and yaw moment given by the upper control model of the control system.
[0085] Furthermore, the steps of constructing the upper control model of the control system include:
[0086] Determine the sideslip angle sliding surface data and build the sideslip angle velocity control model;
[0087] Determine the yaw angle sliding surface data and build a yaw angle velocity control model;
[0088] The upper control model of the control system is constructed according to the sideslip angular velocity control model and the yaw angular velocity control model.
[0089] In the above implementation process, by respectively determining the sideslip angle sliding surface data and the yaw angle sliding surface data, and then constructing the sideslip angle velocity control model and the yaw angle velocity control model, the changes of the sideslip angle velocity and the yaw angle velocity during the driving of the electric vehicle can be added to the control system to improve the stability and robustness of the upper control model.
[0090] In the upper control model of the control system, two sliding mode control models are used to adjust the sideslip angle velocity and the yaw angle velocity. Sliding mode control (SMC) is a nonlinear control method that can handle the uncertainty of the system. In order to enhance the robustness of the system and improve the tracking performance, factors such as the yaw angle are represented by the upper controller. In order to enhance the robustness of the system and improve the tracking performance, the yaw rate is added to the system. The integral term of the yaw angle The yaw angle is defined as the angle between the longitudinal direction of the electric vehicle and the x-axis.
[0091] Furthermore, the steps of determining the sideslip angle sliding surface data and constructing the sideslip angle velocity control model include:
[0092] Get control parameters and switch gains;
[0093] The control rules of the sideslip angle sliding surface data are modified according to the control parameters and switch gains to obtain the sideslip angle velocity control model.
[0094] In the above implementation process, the control rules are modified according to the control parameters and the switch gain, the control mode of the control model during the driving of the electric vehicle is changed, and the mode switching capability of the control model is improved.
[0095] Furthermore, the sideslip angle sliding surface data is determined by the following formula:
[0096] ;
[0097] in, is the sliding surface parameter of the sideslip angle, is the vehicle speed tracking error, is the sliding surface data of the sideslip angle.
[0098] Furthermore, the steps of determining the yaw angle sliding surface data and constructing the yaw angle velocity control model include:
[0099] Get control parameters and switch gains;
[0100] The control rules of the yaw angle sliding surface data are modified according to the control parameters and the switch gain to obtain the yaw angle velocity control model.
[0101] In the above implementation process, the control rules are modified according to the control parameters and the switching gain, which can improve the mode switching capability of the control model and improve the stability.
[0102] Furthermore, the yaw angle sliding surface data is determined by the following formula:
[0103] ;
[0104] in, and is the sliding surface parameter of the yaw angle, is the yaw angle, is the yaw angle control error, is the yaw angle sliding surface data.
[0105] By introducing the control parameters , , and switching gain , , the sliding surface and control rules of the sideslip angular velocity control model and the yaw angular velocity control model can be modified as follows:
[0106]
[0107]
[0108] in , , Respectively represent the proportional, integral and differential coefficients. In order to improve the comfort of the driver and maintain the stability of the electric vehicle, the present invention uses replace To reduce the impact of chattering. is the boundary layer thickness.
[0109] Among them, the control parameters and Automatically updated through an adaptive mechanism, the expression is as follows:
[0110]
[0111] in, , , and , is the adaptive gain, and its value is greater than 0.
[0112] When designing the lower control model of the control system, it is considered that if the actuator has a limited bandwidth, the control command it gives affects its dynamic controllability. Therefore, in this application, the dynamic response factor of the actuator is considered, that is, a dynamic control allocation method that adds actuator dynamics is used.
[0113] The dynamic control allocation method (DCA) is used to optimally allocate the pseudo control input v to the actual control input u, including the front and rear wheel steering angles and the longitudinal force of each wheel. The objective function of the optimization problem is defined, the constraints of the problem are set, and the optimal solution of the actual control input is obtained by solving the optimization problem.
[0114] According to the above, the objective function of DCA is defined as:
[0115]
[0116] The optimal control input u is Approximate the pseudo control quantity v. Among them, and is the weighting matrix. In addition, represents the desired steady-state actual control quantity, is the time increment. The goal of the optimal dynamic control allocation is to dynamically optimize the allocation of the given input pseudo-control quantity v to obtain the actual control input u, so that Bu=v. Determine whether there is an optimal solution. If not, optimize the control allocation u so that Bu approaches v.
[0117] Furthermore, S3 includes:
[0118] Initialize the particle swarm population;
[0119] Input the initialized particle population into the lower control model of the control system, and assign the particles to the torque parameters in turn to obtain the performance index corresponding to the torque parameters;
[0120] Obtain candidate function values of particles according to performance indicators;
[0121] Update the fitness value of the particle according to the candidate function value;
[0122] The optimal torque control output is determined according to the fitness value.
[0123] In the above implementation process, the particles are assigned to the torque parameters in turn to obtain the performance index, and then the function value and the fitness value are obtained according to the performance index, so as to determine the optimal torque control output, which can improve the accuracy of the optimal torque control output and reduce the error.
[0124] In this application, the torque parameters (including yaw moment) obtained from the upper control model of the control system are , etc.) as input, and minimizing the actual control input error and the actual control rate is taken as the optimization goal. The particle swarm optimization algorithm is used for optimization and solution to obtain the actual optimal torque control output of the lower control model of the control system.
[0125] For a population of N particles, where the position of each individual particle corresponds to a set of recorded information of the control input v, the local optimum and global optimum of the particle are shown below. The global optimal position indicates the parameter value corresponding to the particle that makes the current control system perform best among all individual particles.
[0126]
[0127] in, and They represent the individual optimal position and the global optimal position of particle i at the tth iteration respectively.
[0128] Furthermore, the step of updating the fitness value of the particle according to the candidate function value includes:
[0129] Select the global optimal solution and the individual optimal solution from the candidate function values;
[0130] Update the current position of the particle according to the global optimal solution and the individual optimal solution;
[0131] Get the fitness value of the particle at the current position.
[0132] In the above implementation process, the fitness value of the current position of the particle updated by the global optimal solution and the individual optimal solution is used as the updated fitness value, which can improve the stability in the updating process and improve the accuracy of the fitness value.
[0133] The velocity update formula of individual particles is as follows:
[0134]
[0135] in, represents the velocity of the ith particle at the tth iteration, is the position of the i-th particle at the t-th iteration. represents the individual best position (individual optimal solution) of particle i. represents the individual best position (global optimal solution) of particle i found in the range [0, t]. Represents the acceleration factor. , is a random coefficient. Represents the inertia weight, which decreases linearly in the range of [0.4, 0.9].
[0136] The updated positions of all particles are as follows:
[0137]
[0138] Further, the step of determining the optimal torque control output according to the fitness value includes:
[0139] Get the fitness value set after multiple iterations;
[0140] Determine the parameter value of the particle corresponding to the smallest fitness value in the fitness set as the optimal torque control output.
[0141] In the above implementation process, the parameter value of the particle with the smallest fitness value is selected as the optimal torque control output according to the fitness value set after multiple iterations, ensuring that the optimal torque control output can be stably output during the driving of the electric vehicle and improving robustness.
[0142] The particle population is input into the control system, and the particles are assigned to the pseudo-control input (torque parameters) in turn to obtain the performance index corresponding to the group of parameters, and use it as the fitness value of the particle. The candidate function value of each particle is calculated to obtain a complete speed curve, and the candidate function values are sorted to screen out unstable target combination solutions. The speed and position of the particle are updated, and the above steps are repeated to evaluate the fitness value of the particle at the new position. If the fitness value of the new position is less than the previous fitness value, it is updated. After repeated iterations, the particle with the smallest fitness value is obtained. The parameter value corresponding to this particle is the optimal torque control output corresponding to the lower-level controller.
[0143] The embodiment of the present application adopts hierarchical control, which divides the entire control system into upper control and lower control. In order to enhance the robustness of the system and improve the tracking performance, factors such as yaw angle are systematically represented by the upper control model of the control system. The lower control uses adaptive SMC to achieve the stability of the electric vehicle, and replaces the sgn function with the sat function in the controller to reduce the impact of vibration, further improving the stability of the electric vehicle.
[0144] In the upper control model of the control system, a sliding mode controller is used to adjust the sideslip angle and yaw rate to form u, which is then transmitted to the lower control model of the control system. An adaptive mechanism is introduced to handle the uncertainty and faults of the system, improve the robustness of the system, and replace the SGN function with the SAT function to reduce the impact of buffeting and further improve the stability of the electric vehicle.
[0145] The output u of the upper control model of the control system is transmitted to the lower control model of the control system. The pseudo control input is allocated to the actual control input u through the dynamic allocation method, which is used as the optimization target, and the particle swarm optimization algorithm is used to dynamically optimize the optimal target problem.
[0146] Through the method of the embodiment of the present application, it is possible to ensure that the steady-state tracking error is zero and offset various actuator failures; by adding a vibration reduction method, the driver's comfort is improved; the DCA method is used to optimize the allocation of actual control inputs; the particle swarm optimization algorithm is used to optimize and solve the optimal target of the lower-level controller, dynamically adjust the deviation between the pseudo-control allocation input and the actual input, and optimize the vehicle's stability performance.
[0147] Embodiment 2
[0148] In order to execute the method corresponding to the above embodiment 1 to achieve the corresponding functions and technical effects, a torque distribution control device for an electric vehicle is provided below, such as Figure 3 As shown, the device comprises:
[0149] An acquisition module 1 is used to acquire sensor data of the electric vehicle;
[0150] The adaptive updating module 2 is used to input the sensor data into the pre-built upper control model of the control system for adaptive updating to obtain the torque parameters;
[0151] The torque distribution module 3 is used to input the torque parameters into the pre-built control system lower control model to perform torque distribution, and optimize the optimal target through the intelligent optimization algorithm to obtain the optimal torque control output.
[0152] In the above implementation process, the torque of the electric vehicle is distributed according to the constructed upper control model of the control system and the lower control model of the control system, which can improve the safety and stability of the electric vehicle control process, improve the smoothness of the control system when switching modes, maintain smooth torque distribution during the operation of the electric vehicle, avoid performance degradation when a fault occurs, and can adapt to a variety of complex road scenarios.
[0153] Furthermore, the device also includes a building block for:
[0154] Determine the sideslip angle sliding surface data and build the sideslip angle velocity control model;
[0155] Determine the yaw angle sliding surface data and build a yaw angle velocity control model;
[0156] The upper control model of the control system is constructed according to the sideslip angular velocity control model and the yaw angular velocity control model.
[0157] In the above implementation process, by respectively determining the sideslip angle sliding surface data and the yaw angle sliding surface data, and then constructing the sideslip angle velocity control model and the yaw angle velocity control model, the changes of the sideslip angle velocity and the yaw angle velocity during the driving of the electric vehicle can be added to the control system to improve the stability and robustness of the upper control model.
[0158] Furthermore, the building blocks are used to:
[0159] Get control parameters and switch gains;
[0160] The control rules of the sideslip angle sliding surface data are modified according to the control parameters and switch gains to obtain the sideslip angle velocity control model.
[0161] In the above implementation process, the control rules are modified according to the control parameters and the switch gain, the control mode of the control model during the driving of the electric vehicle is changed, and the mode switching capability of the control model is improved.
[0162] Furthermore, the building module is also used to determine the sideslip angle sliding surface data by the following formula:
[0163] ;
[0164] in, is the sliding surface parameter of the sideslip angle, is the vehicle speed tracking error, is the sliding surface data of the sideslip angle.
[0165] Furthermore, the building blocks are used to:
[0166] Get control parameters and switch gains;
[0167] The control rules of the yaw angle sliding surface data are modified according to the control parameters and the switch gain to obtain the yaw angle velocity control model.
[0168] In the above implementation process, the control rules are modified according to the control parameters and the switching gain, which can improve the mode switching capability of the control model and improve the stability.
[0169] Furthermore, the building module is also used to determine the yaw angle sliding surface data by the following formula:
[0170] ;
[0171] in, and is the sliding surface parameter of the yaw angle, is the yaw angle, is the yaw angle control error, is the yaw angle sliding surface data.
[0172] Furthermore, the torque distribution module 3 is also used for:
[0173] Initialize the particle swarm population;
[0174] Input the initialized particle population into the lower control model of the control system, and assign the particles to the torque parameters in turn to obtain the performance index corresponding to the torque parameters;
[0175] Obtain candidate function values of particles according to performance indicators;
[0176] Update the fitness value of the particle according to the candidate function value;
[0177] The optimal torque control output is determined according to the fitness value.
[0178] In the above implementation process, the particles are assigned to the torque parameters in turn to obtain the performance index, and then the function value and the fitness value are obtained according to the performance index, so as to determine the optimal torque control output, which can improve the accuracy of the optimal torque control output and reduce the error.
[0179] Furthermore, the torque distribution module 3 is also used for:
[0180] Select the global optimal solution and the individual optimal solution from the candidate function values;
[0181] Update the current position of the particle according to the global optimal solution and the individual optimal solution;
[0182] Get the fitness value of the particle at the current position.
[0183] In the above implementation process, the fitness value of the current position of the particle updated by the global optimal solution and the individual optimal solution is used as the updated fitness value, which can improve the stability in the updating process and improve the accuracy of the fitness value.
[0184] Furthermore, the torque distribution module 3 is also used for:
[0185] Get the fitness value set after multiple iterations;
[0186] Determine the parameter value of the particle corresponding to the smallest fitness value in the fitness set as the optimal torque control output.
[0187] In the above implementation process, the parameter value of the particle with the smallest fitness value is selected as the optimal torque control output according to the fitness value set after multiple iterations, ensuring that the optimal torque control output can be stably output during the driving of the electric vehicle and improving robustness.
[0188] The torque distribution control device of the electric vehicle can implement the method of the above embodiment 1. The options in the above embodiment 1 are also applicable to this embodiment and will not be described in detail here.
[0189] The rest of the contents of the embodiments of the present application can refer to the contents of the above-mentioned embodiment 1, and will not be repeated in this embodiment.
[0190] Embodiment 3
[0191] An embodiment of the present application provides an electric vehicle, including the torque distribution control device of the electric vehicle of the second embodiment.
[0192] Embodiment 4
[0193] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the torque distribution control method of the electric vehicle of the first embodiment.
[0194] Optionally, the above-mentioned electronic device may be a server.
[0195] See also Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 41, a communication interface 42, a memory 43 and at least one communication bus 44. The communication bus 44 is used to realize direct connection and communication between these components. The communication interface 42 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 41 can be an integrated circuit chip with signal processing capabilities.
[0196] The processor 41 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. It can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor 41 can also be any conventional processor, etc.
[0197] The memory 43 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 43 stores computer readable instructions. When the computer readable instructions are executed by the processor 41, the device can execute the above-mentioned Figure 1 The method embodiment involves various steps.
[0198] Optionally, the electronic device may further include a storage controller and an input / output unit. The memory 43, the storage controller, the processor 41, the peripheral interface, and the input / output unit are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via a communication bus 44. The processor 41 is used to execute executable modules stored in the memory 43, such as software function modules or computer programs included in the device.
[0199] The input and output unit is used to provide users with the task creation and to create a start optional time period or preset execution time for the task to realize the interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.
[0200] Understandably, Figure 4 The structure shown is for illustration only. The electronic device may also include Figure 4 More or fewer components as shown, or with Figure 4 Different configurations are shown. Figure 4 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0201] In addition, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the torque distribution control method of the electric vehicle of the first embodiment.
[0202] The embodiment of the present application also provides a computer program product, which, when running on a computer, enables the computer to execute the method described in the method embodiment.
[0203] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based device that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0204] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0205] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0206] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0207] The above is only a specific implementation of the present application, but the protection range of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical range disclosed in the present application, which should be included in the protection range of the present application. Therefore, the protection range of the present application should be based on the protection range of the claims.
[0208] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A torque distribution control method for an electric vehicle, characterized in that: The method comprises: Acquiring sensor data of the electric vehicle; Inputting the sensor data into a pre-built upper control model of the control system for adaptive updating to obtain torque parameters; The torque parameters are input into the pre-built lower-level control model of the control system to distribute the torque, and the optimal target is optimized and solved by the intelligent optimization algorithm to obtain the optimal torque control output; The steps of constructing the upper control model of the control system include: Determine the sideslip angle sliding film surface data and build the sideslip angle velocity control model; Determine the yaw angle sliding membrane surface data and build a yaw angle velocity control model; Constructing the upper control model of the control system according to the sideslip angular velocity control model and the yaw angular velocity control model; The step of determining the sideslip angle sliding film surface data and constructing the sideslip angle velocity control model comprises: Get control parameters and switch gains; Modify the control rule of the sideslip angle sliding film surface data according to the control parameter and the switch gain to obtain a sideslip angle velocity control model; The sideslip angle synovial surface data is determined by the following formula: ; in, is the sliding surface parameter of the sideslip angle, is the vehicle speed tracking error, is the synovial surface data of the sideslip angle; The step of determining the yaw angle sliding membrane surface data and constructing the yaw angle velocity control model comprises: Get control parameters and switch gains; Modify the control rule of the yaw angle sliding membrane surface data according to the control parameter and the switch gain to obtain a yaw angle velocity control model; The yaw angle sliding surface data is determined by the following formula: ; in, and is the sliding surface parameter of the yaw angle, is the yaw angle, is the yaw angle control error, is the yaw angle sliding membrane surface data.
2. The torque distribution control method of an electric vehicle according to claim 1, characterized in that: The step of inputting the torque parameter into a pre-built control system lower-level control model to distribute the torque, optimizing and solving the optimal target through an intelligent optimization algorithm, and obtaining the optimal torque control output comprises: Initialize the particle swarm population; Inputting the initialized particle population into the lower control model of the control system, and assigning the particles to the torque parameters in sequence to obtain the performance index corresponding to the torque parameters; Obtaining a candidate function value of the particle according to the performance indicator; Updating the fitness value of the particle according to the candidate function value; The optimal torque control output is determined according to the fitness value.
3. The torque distribution control method of an electric vehicle according to claim 2, characterized in that: The step of updating the fitness value of the particle according to the candidate function value comprises: Selecting a global optimal solution and an individual optimal solution from the candidate function values; updating the current position of the particle according to the global optimal solution and the individual optimal solution; Obtain the fitness value of the particle at the current position.
4. The torque distribution control method of an electric vehicle according to claim 2, characterized in that: The step of determining the optimal torque control output according to the fitness value comprises: Get the fitness value set after multiple iterations; Determine that the parameter value of the particle corresponding to the fitness value with the smallest value in the fitness set is the optimal torque control output.
5. A torque distribution control device for an electric vehicle, characterized in that: The device comprises: An acquisition module, used for acquiring sensor data of the electric vehicle; An adaptive updating module, used for inputting the sensor data into a pre-built upper control model of the control system for adaptive updating to obtain torque parameters; A torque distribution module is used to input the torque parameters into a pre-built control system lower-level control model to perform torque distribution, and to optimize and solve the optimal target through an intelligent optimization algorithm to obtain an optimal torque control output; The apparatus further comprises a building block for: Determine the sideslip angle sliding film surface data and build the sideslip angle velocity control model; Determine the yaw angle sliding membrane surface data and build a yaw angle velocity control model; Constructing the upper control model of the control system according to the sideslip angular velocity control model and the yaw angular velocity control model; Get control parameters and switch gains; Modify the control rule of the sideslip angle sliding film surface data according to the control parameter and the switch gain to obtain a sideslip angle velocity control model; The sideslip angle synovial surface data is determined by the following formula: ; in, is the sliding surface parameter of the sideslip angle, is the vehicle speed tracking error, is the synovial surface data of the sideslip angle; Get control parameters and switch gains; Modify the control rule of the yaw angle sliding membrane surface data according to the control parameter and the switch gain to obtain a yaw angle velocity control model; The yaw angle sliding surface data is determined by the following formula: ; in, and is the sliding surface parameter of the yaw angle, is the yaw angle, is the yaw angle control error, is the yaw angle sliding membrane surface data.
6. An electric vehicle, characterized in that: The invention comprises the torque distribution control device of the electric vehicle as claimed in claim 5.
7. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the torque distribution control method for an electric vehicle according to any one of claims 1 to 4.
8. A storage medium, characterized in that: The device stores a computer program, which, when executed by a processor, implements the torque distribution control method for an electric vehicle as claimed in any one of claims 1 to 4.
