Vehicle stability control method based on genetic firefly algorithm
By using the genetic firefly algorithm to optimize the LQR method and fuzzy PID algorithm in smart electric vehicles, the vehicle stability problem under high speed and low adhesion coefficient is solved, and the trajectory tracking accuracy and control performance are improved.
Patent Information
- Application Number
- CN202410730127.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-10-15
AI Technical Summary
In the case of high vehicle speed and low road adhesion coefficient, smart electric vehicles are prone to vehicle deviation, sideslip and even instability when pursuing trajectory tracking accuracy, resulting in instability that cannot be guaranteed.
A vehicle stability control method based on the genetic firefly algorithm is adopted. By establishing the vehicle's ideal state reference model and trajectory tracking error model, combined with the LQR method and fuzzy PID algorithm, the state error weighting matrix is optimized and the additional yaw moment is determined to improve the vehicle's lateral stability. stability.
On the premise of ensuring the stability of the vehicle, it improves the trajectory tracking accuracy, effectively prevents the vehicle from deviation and sideslip, and improves the vehicle's control performance under extreme working conditions.
Smart Images

Figure CN118778630A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular, to a vehicle stability control method based on a genetic firefly algorithm. Background Art
[0002] At present, with the increasing attention paid to issues such as traffic safety and energy crisis, smart electric vehicles have become a hot topic for research institutes and universities. Among them, independently driven smart electric vehicles have independent controllable driving wheels, with advantages such as short transmission chain, high transmission efficiency, compact structure and flexible control, and are the development direction of future automobiles.
[0003] Trajectory tracking is one of the key technologies for smart cars to achieve autonomous driving. Its goal is to minimize the deviation between the actual driving trajectory of the car and the expected trajectory by controlling the lateral movement of the car. However, in this process, especially at high speeds and low road adhesion coefficients, if one only pursues tracking accuracy, it is very easy for the vehicle to run off the track, skid, or even become unstable, and dangerous situations such as vehicle stability cannot be guaranteed. Summary of the invention
[0004] In order to overcome at least one deficiency in the prior art, the present application provides a vehicle stability control method based on a genetic firefly algorithm.
[0005] In a first aspect, a vehicle stability control method based on a genetic firefly algorithm is provided, comprising:
[0006] Establishing a vehicle ideal state reference model, and establishing a trajectory tracking error model based on the vehicle ideal state reference model;
[0007] The LQR method is used to track the vehicle. During the track tracking control process, the feedforward control angle is determined when the lateral error converges to zero based on the track tracking error model. The genetic firefly algorithm is used to optimize the state error weighting matrix in the LQR method to obtain the optimized state error weighting matrix.
[0008] Based on the fuzzy PID algorithm, the additional yaw moment of the vehicle is determined to control the yaw stability of the vehicle.
[0009] In one embodiment, the trajectory tracking error model is:
[0010]
[0011] U=δ
[0012] Among them, e rr is the tracking error, for e rr The first-order derivative of , A, B, C are intermediate quantities, U is the control variable, θr is the heading angle of the reference trajectory at any point, is θ r The first derivative of d is the lateral error, for e d The first derivative of is the heading error, for The first-order derivative of , k1, k2 are the cornering stiffness of the front axle and the rear axle, a, b are the distances from the center of mass to the front axle and the rear axle, m is the vehicle mass, u is the longitudinal velocity, I z is the moment of inertia of the vehicle about the z-axis, and δ is the front wheel steering angle.
[0013] In one embodiment, based on the trajectory tracking error model, determining the feedforward control angle when the lateral error converges to zero includes:
[0014] Determine the feedback matrix K of the optimal control law in the LQR method:
[0015] K=R -1 B T P
[0016] Where R is the control weight matrix and P is the solution of the Riccati equation; the Riccati equation is:
[0017] PA+A T P-PBR -1 BP T +Q=0
[0018]
[0019] Among them, A and B are intermediate quantities, Q is the state error weighting matrix, k1 and k2 are the cornering stiffness of the front and rear axles, a and b are the distances from the center of mass to the front and rear axles, m is the vehicle mass, u is the longitudinal speed, and I z is the moment of inertia of the vehicle around the z-axis; R -1 is the inverse of R, P T is the transpose of P;
[0020] According to the feedback matrix K of the optimal control law, the feedforward control angle is determined, and the feedforward control angle is:
[0021]
[0022] Among them, δ f is the feedforward control angle, ρ is the curvature of the reference trajectory, a and b are the distances from the center of mass to the front and rear axles, respectively, K3 is the third column element in the optimal control law feedback matrix K, m is the vehicle mass, u is the longitudinal velocity, k1 and k2 are the lateral stiffness of the front and rear axles, respectively.
[0023] In one embodiment, the genetic firefly algorithm is used to optimize the state error weighting matrix in the LQR method, and the objective evaluation function used is:
[0024]
[0025] Among them, J is the target evaluation function value, w1 and w2 are Relative to the weight coefficient of the objective evaluation function, They are respectively the average values of the absolute values of all lateral errors and all heading errors under the local optimal state error weighting matrix.
[0026] In one embodiment, based on a fuzzy PID algorithm, determining an additional yaw moment of the vehicle to control the yaw stability of the vehicle includes:
[0027] According to the center of mass slip angle under the steady-state response of the vehicle and the ideal center of mass slip angle under the limitation of road adhesion coefficient, the three parameters k of the PID controller are determined by using the fuzzy PID algorithm. p , k i and k d ;
[0028] The additional yaw moment of the vehicle is determined according to the three parameters of the PID controller. The additional yaw moment of the vehicle is:
[0029]
[0030] Where △M(t) is the additional yaw moment of the vehicle at time t, e β (t) is the sideslip angle error of the center of mass at time t, and τ is the integral variable.
[0031] In a second aspect, a vehicle stability control device based on a genetic firefly algorithm is provided, comprising:
[0032] A model building module, used to build a vehicle ideal state reference model, and build a trajectory tracking error model based on the vehicle ideal state reference model;
[0033] The trajectory tracking control module is used to perform trajectory tracking control on the vehicle using the LQR method; in the trajectory tracking control process, based on the trajectory tracking error model, the feedforward control angle is determined when the lateral error converges to zero; the state error weighting matrix in the LQR method is optimized using the genetic firefly algorithm to obtain the optimized state error weighting matrix;
[0034] The additional yaw moment determination module is used to determine the additional yaw moment of the vehicle based on a fuzzy PID algorithm to control the yaw stability of the vehicle.
[0035] In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the vehicle stability control method based on the genetic firefly algorithm is implemented.
[0036] In a fourth aspect, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the above-mentioned vehicle stability control method based on the genetic firefly algorithm.
[0037] Compared with the prior art, the present application has the following beneficial effects: the vehicle stability control method based on the genetic firefly algorithm of the present application establishes a vehicle ideal stability state reference model and a trajectory tracking error model, and designs a linear quadratic regulator (LQR) based on the state-space equation to perform trajectory tracking control on the vehicle, wherein the controller parameters are optimized based on the genetic firefly algorithm, and a fuzzy PID direct yaw torque controller is designed to improve the trajectory tracking accuracy while ensuring the stability of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The present application may be better understood by referring to the following description given in conjunction with the accompanying drawings, which together with the following detailed description are included in this specification and form a part of this specification. In the drawings:
[0039] Figure 1 A flowchart of a vehicle stability control method based on a genetic firefly algorithm according to an embodiment of the present application is shown;
[0040] Figure 2 The established reference model of ideal stability state of the vehicle is shown;
[0041] Figure 3 The trajectory tracking error model is shown;
[0042] Figure 4 The iterative result diagram of the genetic firefly algorithm is shown;
[0043] Figure 5 A structural block diagram of a vehicle stability control device based on a genetic firefly algorithm according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0044] The exemplary embodiments of the present application will be described below in conjunction with the accompanying drawings. For the sake of clarity and conciseness, not all features of the actual embodiments are described in the specification. However, it should be understood that many implementation-specific decisions can be made in the process of developing any such actual embodiments in order to achieve the specific goals of the developer, and these decisions may vary from embodiment to embodiment.
[0045] It is also necessary to explain here that, in order to avoid obscuring the present application due to unnecessary details, only the device structure closely related to the scheme according to the present application is shown in the drawings, while other details that are not closely related to the present application are omitted.
[0046] It should be understood that the present application is not limited to the described implementation forms due to the following description with reference to the accompanying drawings. In this article, where feasible, the embodiments can be combined with each other, features between different embodiments can be replaced or borrowed, and one or more features can be omitted in one embodiment.
[0047] The embodiment of the present application provides a vehicle stability control method based on a genetic firefly algorithm. Figure 1 A flowchart of a vehicle stability control method based on a genetic firefly algorithm according to an embodiment of the present application is shown, see Figure 1 , methods include:
[0048] Step S1, establishing a vehicle ideal state reference model, and establishing a trajectory tracking error model based on the vehicle ideal state reference model.
[0049] This embodiment studies the lateral motion of the vehicle and assumes that the longitudinal velocity of the vehicle is constant, so the vehicle is simplified into a model with two degrees of freedom: lateral and yaw motion. Figure 2 The established vehicle ideal stability state reference model is shown as Figure 2 As shown, the differential equation of the model is:
[0050]
[0051] Among them, k1 and k2 are the cornering stiffness of the front and rear axles respectively, a and b are the distances from the center of mass to the front and rear axles respectively, β is the cornering angle of the center of mass; u is the longitudinal velocity; ω r is the yaw rate, Yes r The first derivative of ; δ is the front wheel turning angle; m is the vehicle mass; v is the lateral velocity; is the first-order derivative of v, I z is the moment of inertia of the vehicle about the z-axis.
[0052] Arrange the above formula to get the state equation:
[0053]
[0054] Select the state quantity ξ=[v,ω r ], control variable U = δ.
[0055] Figure 3 The trajectory tracking error model is shown, where: dis the straight-line distance from the center of mass of the vehicle to the projection of the planned trajectory point, i.e., the lateral error, θ is the heading angle of the actual position of the vehicle, θ r is the heading angle of the planned trajectory at any point P, and is used Indicates the heading error. Due to the vehicle heading angle is the vehicle yaw angle, β is the mass center slip angle; and the mass center slip angle of the vehicle in actual operation is very small, so can be approximately equal to
[0056] Assume that the vehicle longitudinal velocity v x is a constant value, then the heading error The first-order derivative of can be expressed as:
[0057]
[0058] in, for The first derivative of is θ r The first derivative of ;
[0059] Vehicle lateral error e d The first-order derivative of is:
[0060]
[0061] Among them, due to Taking the derivative of both ends of the above equation, we can get:
[0062]
[0063] for e d The second-order derivative of for The second-order derivative of for The second derivative of .
[0064] Substituting formulas (4), (5), and (6) into formula (3), we get the trajectory tracking error model:
[0065]
[0066]
[0067] U=δ
[0068] Among them, e rr is the tracking error, for e rr The first-order derivative of , A, B, C are intermediate quantities, U is the control variable, θ ris the heading angle of the reference trajectory at any point, is θ r The first derivative of d is the lateral error, for e d The first derivative of is the heading error, for The first-order derivative of , k1, k2 are the cornering stiffness of the front axle and the rear axle, a, b are the distances from the center of mass to the front axle and the rear axle, m is the vehicle mass, u is the longitudinal velocity, I z is the moment of inertia of the vehicle about the z-axis, and δ is the front wheel steering angle.
[0069] Step S2, using the LQR method to perform trajectory tracking control on the vehicle; during the trajectory tracking control process, based on the trajectory tracking error model, determining the feedforward control angle when the lateral error converges to zero; using the genetic firefly algorithm to optimize the state error weighting matrix in the LQR method to obtain the optimized state error weighting matrix.
[0070] Here, a trajectory tracking controller is designed based on a linear quadratic regulator (LQR). In order to improve the trajectory tracking accuracy and eliminate the steady-state error, a feedforward control is added, and the genetic firefly algorithm is used to optimize the key parameters (state error weighting matrix) of the LQR controller.
[0071] Step S3, based on the fuzzy PID algorithm, determine the additional yaw moment of the vehicle to control the yaw stability of the vehicle. Fuzzy PID is a control theory that combines the PID algorithm with the fuzzy control theory.
[0072] In step S2, the trajectory tracking controller simplifies the vehicle to a point at the center of mass, and only controls the position of the vehicle in space, ignoring the dynamic characteristics of the vehicle. However, the actual vehicle is a system with strong nonlinear characteristics, and the operating conditions are complex and changeable. Tracking the trajectory under extreme conditions such as high speed or low adhesion coefficient road surface is prone to dangerous situations such as instability and side slip. The vehicle's center of mass side slip angle is one of the important parameters to characterize the lateral stability of the vehicle. If the center of mass side slip angle is too large, the vehicle will slide and become unstable. Therefore, the stability of the vehicle can be improved by controlling the center of mass side slip angle.
[0073] In this embodiment, an ideal stability state reference model and a trajectory tracking error model of the vehicle are established, and an LQR is designed based on the state-space equation to track the vehicle trajectory. The controller parameters are optimized based on the genetic firefly algorithm, and a fuzzy PID direct yaw torque controller is designed to improve the trajectory tracking accuracy while ensuring the stability of the vehicle.
[0074] In one embodiment, in step S2, determining the feedforward control angle when the lateral error converges to zero based on the trajectory tracking error model includes:
[0075] The LQR control algorithm is to determine the optimal control law U(t) = -Ke rr (t), U(t) is the change of U at time t, K is the feedback matrix of the optimal control law, e rr (t) is the tracking error at time t, which minimizes the following performance index function:
[0076]
[0077] Among them, J is the function value, Q is the state error weighting matrix, which reflects the importance of tracking deviation; R is the control weighting matrix, which reflects the importance of control input. rr T (t) is e rr The transpose of (t), U T is the transpose of U.
[0078] First, determine the feedback matrix K of the optimal control law in the LQR method, K = [K1, K2, K3, K4], K1, K2, K3, K4 are the 1st to 4th column elements of the feedback matrix K respectively.
[0079] K=R -1 B T P(9)
[0080] Where R is the control weight matrix and P is the solution of the Riccati equation; the Riccati equation is:
[0081] PA+A T P-PBR -1 BP T +Q=0(10)
[0082]
[0083] Among them, A and B are intermediate quantities, Q is the state error weighting matrix, k1 and k2 are the cornering stiffness of the front and rear axles, a and b are the distances from the center of mass to the front and rear axles, m is the vehicle mass, u is the longitudinal speed, and I z is the moment of inertia of the vehicle around the z-axis; R -1 is the inverse of R, P T is the transpose of P;
[0084] Then, the feedforward control angle is determined according to the feedback matrix K of the optimal control law; specifically:
[0085] Let U(t)=-Ke rr (t) Substitute The steady-state feedback state equation of the system is obtained:
[0086]
[0087] From the above formula, we can see that no matter what value K takes, and e rr Both cannot be 0 at the same time. Therefore, it is necessary to add a feedforward control quantity δ on the basis of the original control law. f , in order to eliminate the steady-state error.
[0088] Assume the feedforward control law is:
[0089] U=-Ke rr +δ f (12)
[0090] Substituting the above formula into In, we can get:
[0091]
[0092] When the system is stable, the lateral error change rate is 0, that is, From this we can get:
[0093]
[0094] The problem is transformed into choosing a suitable δ f Let the above formula be 0, that is:
[0095]
[0096] From the above formula, we can know that when the current feed-forward control angle δ f When a specific value is taken, the lateral error can converge to zero. That is, the feedforward control angle is:
[0097]
[0098] Among them, δ f is the feedforward control angle, ρ is the curvature of the reference trajectory, a and b are the distances from the center of mass to the front and rear axles, respectively, K3 is the third column element in the optimal control law feedback matrix K, m is the vehicle mass, u is the longitudinal velocity, k1 and k2 are the lateral stiffness of the front and rear axles, respectively.
[0099] In one embodiment, in step S2, in order to improve the trajectory tracking accuracy, the genetic firefly algorithm is used to optimize the state error weighted matrix Q in the LQR method, and the control weighted matrix R is set to the unit matrix. The genetic firefly algorithm is an existing algorithm, and its specific process is not repeated. The diagonal of the state error weighted matrix Q includes 4 elements, namely q1, q2, q3, and q4. Here, the state error weighted matrix Q is optimized to determine the optimal values of q1 and q3, and q1 and q3 correspond to the lateral error and the heading error, respectively.
[0100] The objective evaluation function used is:
[0101]
[0102] Among them, J is the target evaluation function value, w1 and w2 are Relative to the weight coefficient of the objective evaluation function, They are respectively the average values of the absolute values of all lateral errors and all heading errors under the local optimal state error weighting matrix.
[0103] This embodiment takes the double lane change condition with a vehicle speed of 80 km / h and a road adhesion coefficient of 0.7 as an example, and iteratively solves the optimal state error weighting matrix: Figure 4 The figure shows the iterative results of the genetic firefly algorithm.
[0104] In one embodiment, in step S3, an additional yaw moment controller is designed based on fuzzy PID, the actual state of the vehicle is compared with the ideal state under the reference model, and the vehicle posture is adjusted. The output of the PID controller is the additional yaw moment, and the parameters of the controller are determined by fuzzy control. Specifically, based on the fuzzy PID algorithm, the additional yaw moment of the vehicle is determined to control the yaw stability of the vehicle, including:
[0105] Firstly, according to the center of mass slip angle under the steady-state response of the vehicle and the ideal center of mass slip angle under the limitation of road adhesion coefficient, the three parameters k of the PID controller are determined by using the fuzzy PID algorithm. p , k i and k d Here, the input of the fuzzy PID algorithm is the center of mass slip angle under the steady-state response of the vehicle, the ideal center of mass slip angle under the road adhesion coefficient limit, and the output is three parameters k p , k i and k d .
[0106] The side slip angle β of the center of mass of the vehicle under steady-state response d1 for:
[0107]
[0108] Among them, a and b are the distances from the center of mass to the front axle and rear axle respectively, m is the vehicle mass, u is the longitudinal velocity, k2 is the lateral stiffness of the rear axle, and K * is the stability factor, k1 is the cornering stiffness of the front axle, L is the distance between the front and rear axles, and δ is the front wheel turning angle.
[0109] The ideal center of mass sideslip angle β considering the road adhesion coefficient limit d for:
[0110]
[0111] Among them, μ is the road adhesion coefficient, g is the gravitational acceleration, and sgn is the sign function.
[0112] Then, the additional yaw moment of the vehicle is determined according to the three parameters of the PID controller. The additional yaw moment of the vehicle is:
[0113]
[0114] Where △M(t) is the additional yaw moment of the vehicle at time t, e β (t) is the sideslip angle error of the center of mass at time t, is the set value, and τ is the integral variable.
[0115] In order to further verify the effectiveness of the method of this application, the front-wheel independent drive smart electric vehicle is taken as the research object, and the effectiveness of the proposed control strategy is verified based on the CarSim / Simulink joint simulation platform. The vehicle parameters are shown in Table 1.
[0116] Table 1 Vehicle parameters
[0117]
[0118]
[0119] It has been verified that the results of the double lane change working condition are shown in Table 2, and the S-curve working condition is shown in Table 3.
[0120] Table 2 Simulation results of double lane shifting condition
[0121] index Unoptimized LQR Optimized LQR Optimizing LQR+DYC Transverse error peak value / m 0.5508 0.3806 0.3738 Root mean square value of lateral error / m 0.2066 0.1731 0.1574 Heading error peak value / rad 0.0901 0.0874 0.0664 Heading error root mean square value / rad 0.0396 0.0361 0.0326 Peak value of center of mass slip angle / rad 0.0898 0.0818 0.0668 RMS value of sideslip angle at center of mass / rad 0.0363 0.0313 0.0274 Peak yaw rate / (rad / s) 0.5549 0.5296 0.5132 Yaw angular velocity root mean square value / (rad / s) 0.2912 0.2542 0.2449
[0122] Table 3 Simulation results of S-curve conditions
[0123] index Unoptimized LQR Optimized LQR Optimizing LQR+DYC Transverse error peak value / m 0.6843 0.6733 0.2718 Root mean square value of lateral error / m 0.4895 0.4907 0.2183 Heading error peak value / rad 0.0460 0.0437 0.0426 Heading error root mean square value / rad 0.0338 0.0290 0.0273 Peak value of center of mass slip angle / rad 0.0174 0.0161 0.0156 RMS value of sideslip angle at center of mass / rad 0.0054 0.0049 0.0045 Peak yaw rate / (rad / s) 0.3646 0.3380 0.3300 Yaw angular velocity root mean square value / (rad / s) 0.2776 0.2767 0.2728
[0124] Using the same inventive concept as the vehicle stability control method based on the genetic firefly algorithm, this embodiment also provides a corresponding vehicle stability control device based on the genetic firefly algorithm. Figure 5The structure block diagram of a vehicle stability control device based on a genetic firefly algorithm according to an embodiment of the present application is shown, and the device includes:
[0125] A model building module 51 is used to build a vehicle ideal state reference model, and to build a trajectory tracking error model based on the vehicle ideal state reference model;
[0126] The trajectory tracking control module 52 is used to perform trajectory tracking control on the vehicle using the LQR method; in the trajectory tracking control process, based on the trajectory tracking error model, the feedforward control angle is determined when the lateral error converges to zero; the state error weighting matrix in the LQR method is optimized using the genetic firefly algorithm to obtain the optimized state error weighting matrix;
[0127] The additional yaw moment determination module 53 is used to determine the additional yaw moment of the vehicle based on a fuzzy PID algorithm to control the yaw stability of the vehicle.
[0128] The vehicle stability control device based on the genetic firefly algorithm of this embodiment has the same inventive concept as the vehicle stability control method based on the genetic firefly algorithm mentioned above. Therefore, the specific implementation method of the device can be seen in the implementation example part of the vehicle stability control method based on the genetic firefly algorithm in the above text, and its technical effect corresponds to the technical effect of the above method, which will not be repeated here.
[0129] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned vehicle stability control method based on the genetic firefly algorithm is implemented.
[0130] An embodiment of the present application provides a computer program product, including a computer program / instruction. When the computer program / instruction is executed by a processor, the above-mentioned vehicle stability control method based on the genetic firefly algorithm is implemented.
[0131] The above are only various implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A vehicle stability control method based on genetic firefly algorithm, characterized in that: include: Establishing a vehicle ideal state reference model, and establishing a trajectory tracking error model based on the vehicle ideal state reference model; The LQR method is used to control the vehicle trajectory tracking; In the trajectory tracking control process, based on the trajectory tracking error model, determining a feedforward control angle when the lateral error converges to zero; The state error weighting matrix in the LQR method is optimized by using a genetic firefly algorithm to obtain an optimized state error weighting matrix; Based on the fuzzy PID algorithm, the additional yaw moment of the vehicle is determined to control the yaw stability of the vehicle.
2. The method according to claim 1, characterized in that The trajectory tracking error model is: U=δ Among them, e rr is the tracking error, for e rr The first-order derivative of , A, B, C are intermediate quantities, U is the control variable, θ r is the heading angle of the reference trajectory at any point, is θ r The first derivative of d is the lateral error, for e d The first derivative of is the heading error, for The first-order derivative of , k1, k2 are the cornering stiffness of the front axle and the rear axle, a, b are the distances from the center of mass to the front axle and the rear axle, m is the vehicle mass, u is the longitudinal velocity, I z is the moment of inertia of the vehicle about the z-axis, and δ is the front wheel steering angle.
3. The method according to claim 1, characterized in that in, Based on the trajectory tracking error model, determining a feedforward control angle when the lateral error converges to zero includes: Determine the feedback matrix K of the optimal control law in the LQR method: K=R -1 B T P Where R is the control weight matrix and P is the solution of the Riccati equation; the Riccati equation is: PA+A T P-PBR -1 BP T +Q=0 Among them, A and B are intermediate quantities, Q is the state error weighting matrix, k1 and k2 are the cornering stiffness of the front and rear axles, a and b are the distances from the center of mass to the front and rear axles, m is the vehicle mass, u is the longitudinal speed, and I z is the moment of inertia of the vehicle around the z-axis; R -1 is the inverse of R, P T is the transpose of P: According to the feedback matrix K of the optimal control law, the feedforward control angle is determined, and the feedforward control angle is: Among them, δ f is the feedforward control angle, ρ is the curvature of the reference trajectory, a and β are the distances from the center of mass to the front and rear axles, respectively, K3 is the third column element in the optimal control law feedback matrix K, m is the vehicle mass, u is the longitudinal velocity, k1 and k2 are the lateral stiffness of the front and rear axles, respectively.
4. The method according to claim 1, characterized in that in, The genetic firefly algorithm is used to optimize the state error weighting matrix in the LQR method, and the objective evaluation function used is: Among them, J is the target evaluation function value, w1 and w2 are Relative to the weight coefficient of the objective evaluation function, They are respectively the average values of the absolute values of all lateral errors and all heading errors under the local optimal state error weighting matrix.
5. The method according to claim 1, characterized in that in, Based on the fuzzy PID algorithm, the additional yaw moment of the vehicle is determined to control the yaw stability of the vehicle, including: According to the center of mass slip angle under the steady-state response of the vehicle and the ideal center of mass slip angle under the limitation of road adhesion coefficient, the three parameters k of the PID controller are determined by using the fuzzy PID algorithm. p , k i and k d ; The additional yaw moment of the vehicle is determined according to the three parameters of the PID controller, and the additional yaw moment of the vehicle is: Where △M(t) is the additional yaw moment of the vehicle at time t, e β (t) is the sideslip angle error of the center of mass at time t, and τ is the integral variable.
6. A vehicle stability control device based on genetic firefly algorithm, characterized in that: include: A model building module, used to build a vehicle ideal state reference model, and build a trajectory tracking error model based on the vehicle ideal state reference model; A trajectory tracking control module is used to perform trajectory tracking control on the vehicle using the LQR method; during the trajectory tracking control process, based on the trajectory tracking error model, a feedforward control angle is determined when the lateral error converges to zero; The state error weighting matrix in the LQR method is optimized by using a genetic firefly algorithm to obtain an optimized state error weighting matrix; The additional yaw moment determination module is used to determine the additional yaw moment of the vehicle based on a fuzzy PID algorithm to control the yaw stability of the vehicle.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the vehicle stability control method based on the genetic firefly algorithm according to any one of claims 1 to 5 is implemented.
8. A computer program product, characterized in that It includes a computer program / instruction, which, when executed by a processor, implements the vehicle stability control method based on the genetic firefly algorithm as described in any one of claims 1 to 5.
