Disclosure of Invention
In order to solve the technical problems, the invention designs a semi-active suspension PID and LQR composite control method, and designs a semi-active suspension PID-LQR controller by adopting PID control and LQR control, and in order to continuously improve the control effect, a pre-aiming control strategy with front wheel feedback is added, pre-aiming information is provided for the rear wheel in advance, the controller sends control instructions to the rear wheel in advance, and an actuator acts in advance when the actuator is about to pass through a front road surface, and pre-control force is output.
In order to achieve the technical effects, the invention is realized by the following technical scheme that the semi-active suspension PID and LQR composite control method is characterized by comprising the following steps:
Step1, establishing a 7-degree-of-freedom vehicle dynamics model and a pre-aiming control pavement model;
Step2, designing a PID-LQR composite controller;
step3, determining the weight coefficient of each performance index of LQR control, and setting P, I, D parameters;
step4, building a simulation experiment model by using Simulink, setting experiment working conditions and running simulation.
Further, the specific steps in Step1 are as follows:
Step1.1, establishing a 7-degree-of-freedom vehicle dynamics model according to Newton's law of motion;
step1.2, determining a front wheel control strategy and a rear wheel control strategy according to a pretightening control theory, wherein only feedback control is adopted for the front wheel, and feedforward and feedback control with pretightening information is adopted for the rear wheel;
Step1.3, according to the control strategy of the front wheels and the rear wheels, building a road surface input model at four wheels, wherein the front wheels adopt a random road surface simulation model as input, and the rear wheels adopt a road surface simulation model with pre-aiming information of the front wheels as input.
Further, in step1.1, the vertical acceleration of the vehicle body, the dynamic travel of the suspension and the dynamic displacement of the tire are taken as performance indexes for evaluating the smoothness of the vehicle, and two evaluation indexes of pitch angle acceleration and roll angle acceleration, which influence the stability of the posture of the vehicle body, are added;
the 7 degrees of freedom include four degrees of vertical freedom at the axle, four degrees of vertical freedom at the tires, pitch and roll degrees of freedom at the body center of mass that rotates about the X-axis, Y-axis, and Z-axis vertical degrees of freedom.
Further, in step1.1, the force analysis of 7 degrees of freedom according to newton's law of mechanics may list a differential equation of motion of 7 degrees of freedom:
The Z-axis vertical force balance equation at the mass center of the vehicle body is as follows (1):
The torque balance equation of the rotation of the vehicle body around the Y axis is as follows (2):
The torque balance equation of the rotation of the vehicle body around the X axis is as follows (3):
The Z-axis vertical force balance equation of the 4 unsprung masses is as follows (4):
When the vehicle body pitch angle and roll angle variation ranges are sufficiently small, the displacement of the suspension mass end points above the four wheels may be represented as in formula (5):
zsf1=zs-Lrθ-aφ
zsf2=zs-Llθ-aφ
zsr1=zs-Lrθ+bφ
zsr2=zs+Llθ+bφ (5)
in the formulas (1) - (5), zs is the vertical displacement of the centroid of the vehicle,The steering angle (pitch angle) of the vehicle body around the Y-axis direction is theta, the steering angle (roll angle) of the vehicle body around the X-axis direction is theta, mwf1,mwf2,mwr1,mwr2 is the non-sprung mass of the right front part, the left rear part and the right rear part respectively, kwf1,kwf2,kwr1,kwr2 is the four tire stiffness coefficients respectively, ksf1,ksf2,ksr1,ksr2 is the four suspension stiffness coefficients respectively, csf1,csf2,csr1,csr2 is the four suspension damping coefficients respectively, qf1,qf2,qr1,qr2 is the displacement of the road surface unevenness of four wheels respectively, zwf1,zwf2,zwr1,zwr2 is the vertical displacement at four axles respectively, zsf1,zsf2,zsr1,zsr2 is the vertical displacement of the suspension mass above four wheels respectively, a and b are the distances of the mass center of the vehicle from the front axis and the rear axis respectively, Ll,Lr is the distance of the mass center of the vehicle from the center line of the left wheel and the rear wheel respectively, ms is the mass of the whole vehicle, Isy is the pitch moment of inertia, Isx is the roll moment of inertia, G0 is the road surface unevenness coefficient, u is the experiment vehicle speed, and f0 is the frequency of the cut-down.
Furthermore, in step1.3, the filtered white noise is used as the front-wheel simulation road surface input signal, and the time domain expression is as follows:
wherein wf (t) is Gaussian white noise in the front wheel pavement input model;
the pretightening time tau is related to the vehicle speed, the speed of the vehicle influences the control effect, the pretightening time tau is equal to the wheelbase/vehicle speed, and the road surface input relation of the front wheel and the rear wheel is expressed as a Laplacian transfer function as shown in the formula (7):
To convert the frequency domain expression to a state space expression, a low order transfer function (8) is found to replace expression (7) using pade approximation
Taking pade second-order approximation, taking road surface unevenness information obtained by sensors at front and rear wheels as a state vector etaf,ηr, and the state equation can be expressed as formula (9):
in the formula (10):
Wherein, the
The gaussian white noise wr (t) in the rear wheel road surface input model can be expressed as formula (10):
wr(t)=wf(t-τ)=ηf(t)+wf(t) (10)
The filtered white noise is used as the input signal of the simulation road surface of the rear wheel, and the time domain expression is as shown in the formula (11):
combining the vehicle motion differential equations (1) - (5) and combining the road surface input model to obtain a state space expression (12):
The method comprises the steps of selecting 20 variables in total of vertical displacement of a vehicle body, pitch angle of the vehicle body, roll angle of the vehicle body, dynamic displacement of 4 tires, input of 4 road surfaces, vertical speed of the vehicle body, pitch angle speed of the vehicle body, roll speed of the vehicle body, vertical speed of 4 unsprung masses (4 axles) and two state variables etaf,ηr as state variable quantities of a system, namely:
11 quantities of vertical acceleration, pitch angle acceleration, roll angle acceleration, 4 suspension dynamic strokes and 4 tire dynamic displacements of the vehicle body are selected as output variables of the system, namely:
4 damping adjustment forces Fcuf1,Fcuf2,Fcur1,Fcur2 are selected as components of the control vector U, i.e., u= (Fcuf1,Fcuf2,Fcur1,Fcur2)T;
The front wheel road surface input white noise Wf (t) is selected as a component of the disturbance vector W, i.e., w=wf (t).
Further, the Step2 specifically includes the steps of:
Step2.1, designing a PID controller according to a PID control theory;
Step2.2, designing an LQR controller according to an LQR control theory;
step2.3, combining the PID controller and the LQR controller into a PID-LQR composite controller.
Further, in step2.1, the PID control is an error control, the control object is a vertical acceleration of the vehicle body at the center of mass of the vehicle, 0 is taken as a given expected value, and the PID control law is as shown in formula (13):
Further, in said Step2.2
ULQR=-KX(t) (14)
The gain K is obtained by the equation (15):
K=Rd-1BTP (15)
p is determined from the following Richti equation (16):
ATP+PA-PBRd-1BTP+Qd=0 (16)
Giving an optimal performance index function J for evaluating various output performance indexes, calculating an optimal gain K of the controller when J is minimum, and outputting four optimal actuator control forces ULQR (t), wherein the mathematical expression of the optimal performance index function J is the integral of weighted square sums of various performance indexes, and the matrix form is shown as the formula (17):
in which Qd=CTQC;Nd=CTQD;Rd=R+DT QDs
Q and R are each represented by :Q=diag(q1,q2,q3,q4,q5,q6,q7,q8,q9,q10,q11);R=diag(r1,r2,r3,r4)
Wherein q1 is a vertical acceleration weight at the mass center of the vehicle body of the seven-degree-of-freedom vehicle model, q2 is a pitch angle acceleration weight of the seven-degree-of-freedom vehicle model, q3 is a roll angle acceleration weight of the seven-degree-of-freedom vehicle model, q4,q5,q6,q7 is a four-suspension dynamic travel weight of the seven-degree-of-freedom vehicle model, q8,q9,q10,q11 is a four-wheel dynamic displacement weight of the seven-degree-of-freedom vehicle model, and r1,r2,r3,r4 is a four-actuator control force weight of the seven-degree-of-freedom vehicle model.
Further, the Step3 specifically includes the steps of:
Step3.1, determining the optimal weight of the performance index by utilizing a genetic algorithm;
step3.2, tuning the PID parameters using MATLAB/PID Tuner.
Further, in step3.1, the key of LQR control is to select a proper weight, calculate matrices Q and R, and then calculate an optimal controller gain K;
the genetic algorithm comprises the basic steps of determining population scale, randomly assigning values to optimization variables, calculating fitness values and selecting cross mutation operation.
In step3.2, the tuning of the three parameters of PID is the key of the design of the whole controller, and the parameters of the PID controller are tuned by means of the PID Tuner tool box of MATLAB.
The beneficial effects of the invention are as follows:
The built 7-degree-of-freedom model is closer to a real vehicle, performance analysis is more comprehensive on the 7-degree-of-freedom vehicle model, the scheme provides a semi-active suspension composite control strategy based on wheelbase pre-aiming to control the 7-degree-of-freedom semi-active suspension, a PID-LQR controller is designed by combining a PID control theory and an LQR control theory, the comprehensive performance index of the whole vehicle is optimized, the working performance of the rear part of the vehicle body is further improved, and although the pitch angle acceleration and the side inclination angle acceleration representing the stability of the vehicle body are slightly deteriorated, the running smoothness of the whole vehicle is greatly improved. Meanwhile, a new method for adjusting the PID parameters by utilizing the MATLAB/PID Tuner is provided, so that the parameter adjusting efficiency is improved, the method is more reliable and convenient, and the influence of artificial subjective factors on a control system is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a 7 degree of freedom semi-active suspension whole vehicle dynamics model;
FIG. 2 is a schematic diagram of semi-active suspension wheelbase pretightening control;
FIG. 3 is a front wheel random road surface input model;
FIG. 4 is a rear wheel random road surface input model with pre-sighting information;
FIG. 5 is a PID control model;
FIG. 6 is an LQR control model;
FIG. 7 is a PID-LQR control model;
FIG. 8 is a graph of the dynamic response characteristics of a semi-active suspension PID control system;
FIG. 9 is a graph of fitness curves and optimal variable values of a semi-active suspension PID-LQR control system based on a pre-targeting strategy;
FIG. 10 is a time domain plot of vehicle body vertical acceleration;
FIG. 11 is a vehicle body pitch angle acceleration time domain plot;
FIG. 12 is a vehicle body roll angle acceleration time domain plot;
FIG. 13 is a time domain plot of the motion travel of the front right suspension;
FIG. 14 is a time domain plot of the dynamic range of the rear right suspension;
FIG. 15 is a graph of the dynamic displacement time domain of the front right tire;
FIG. 16 is a graph of the dynamic displacement time domain of the rear right tire;
FIG. 17 is a graph of vehicle body vertical acceleration power spectral density;
FIG. 18 is a plot of vehicle body pitch angle acceleration power spectral density;
FIG. 19 is a graph of power spectral density for the dynamic range of the front right suspension;
FIG. 20 is a graph of power spectral density for the dynamic range of the rear right suspension;
FIG. 21 is a graph of power spectral density for the dynamic displacement of the front right tire;
FIG. 22 is a graph of power spectral density for dynamic displacement of a rear right tire;
FIG. 23 is a front right and rear right suspension actuator output force of the vehicle;
FIG. 24 is a front left and rear left suspension actuator output force of the vehicle;
FIG. 25 is a front right and left vehicle suspension actuator output force;
FIG. 26 is a graph showing the output force of the rear right and left suspension actuators of the vehicle.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
1. Vehicle ride comfort analysis under random road surface working condition
TABLE 1 vehicle model parameter values
2. The pre-aiming control principle is that the sensors at the front and rear of the vehicle collect the state variables of the control system of the vehicle, such as vertical displacement of the vehicle body, pitch angle of the vehicle body, vertical displacement of four axles, uneven displacement of the road surface of four wheels, etc., and then the sensors feed back the variables to the controller, and the controller gives an instruction to the front wheel suspension actuator to perform feedback control according to the feedback information of the front part of the vehicle, and gives an instruction to the rear wheel actuator to take the state variable information sent back by the rear wheel sensor into consideration, and adopts the feedback information of the front part of the vehicle according to the speed and the wheelbase to perform feedforward and feedback control, as shown in figure 2
3. And (3) designing a PID-LQR controller, determining control instructions of actuators of a front wheel and a rear wheel, wherein the front wheel adopts feedback control, the rear wheel adopts feedforward and feedback control with pre-aiming information, and the design scheme of the PID-LQR controller is shown in figures 3-5.
4. And (3) setting the PID parameters by utilizing a MATLAB/PID Tuner, and optimizing the performance index weight coefficient by utilizing a MATLAB/genetic algorithm tool box, wherein the population scale is preliminarily determined to be 100, the genetic algebra is 30 generations, the crossover probability is set to be 0.4, the mutation probability is set to be 0.2, the search range is set to be [0.11e6], and the PID setting results are shown in fig. 8 and table 2.
TABLE 2 parameter settings such as rise time, adjustment time, overshoot, etc. of a semi-active suspension PID-LQR control system based on pre-aiming
| P | 0 | Adjusting the time | 0.802s |
| I | 3200.0612 | Maximum overshoot | 4.78×107% |
| D | 0 | Peak value | 0.488 |
| Rise time | 1.04×10-7s | Steady state error | 0.0012 |
The performance index weight optimization curve is shown in fig. 9, and after 30 generations of iterative optimization, 15 performance index weights and the optimal controller gain K are as follows:
q1=0.5377,q2=811580,q3=681980,q4=422890,q5=0.3188,q6=949310,q7=648200,q8=72886,
q9=4.5784,q10=505640,q11=886550,r1=1.5349,r2=1.7254,r3=0.5001,r4=0.2147
5. And constructing a simulation experiment model by using Simulink, inputting the parameter values of the vehicle model into the model, and adding a passive suspension for comparison. Setting the speed of an automobile to be 72km/h, setting the road surface type to be a branch road, setting the value range of the road surface unevenness coefficient under the road condition to be 5 multiplied by 10-7~3×10-5, and taking the average value to be 5 multiplied by 10-6. When the automobile runs, the automobile body moves from two degrees of freedom of pitching and rolling, road surface inputs at four wheels of the automobile are not related to each other, the simulation step length is set to be 0.05, and the simulation time is set to be 10s.
6. Analysis of results
6.1 After PID-LQR-pretightening composite control strategy is adopted, the time domain curve and the power spectrum density curve of each performance index are shown in figures 10-22, and the average root value of each obtained performance index is shown in table 2
Table 3, average root value of each performance index of seven-degree-of-freedom model at 72km/h speed
Table 3 shows that the vehicle smoothness index is improved comprehensively after PID-LQR-pretightening compound control is adopted, but the pitch angle acceleration and the roll angle acceleration of the vehicle body posture stability index are slightly deteriorated.
6.2 After PID-LQR-pretightening compound control is adopted, the control forces output by the four actuators are shown in figures 23-26. The maximum control force output by the four actuators is shown in table 3:
TABLE 4 seven degrees of freedom full vehicle model four suspension controller control force maximum
It can be seen from table 4 and fig. 23 to 26 that the control forces output from the four actuators are unbalanced, and the front-rear pitch moment and the left-right roll moment are not balanced, so that the pitch angle acceleration and the roll angle acceleration are deteriorated, but are also in a reasonable range, which also shows that after the active control of the suspension is adopted, the smoothness and the vehicle body stability are difficult to be simultaneously considered. The PID-LQR-pretightening composite control strategy slightly sacrifices a certain vehicle body attitude stability, but greatly improves the smoothness of the vehicle.
Example 2
As can be seen from the formula (7), the pre-aiming time has a great influence on the control effect of the system, the pre-aiming time is related to the vehicle speed, when the vehicle runs at a low speed, the rear wheels have enough time to receive the pre-aiming information from the front wheels, the rear suspension actuators have enough time to perform the execution action in advance, when the vehicle runs at a high speed, the pre-aiming time is reduced, the pre-aiming information received by the controller is delayed, the received information amount is reduced, and the control effect is deteriorated. In order to verify the conclusion, the vehicle speed is changed, and the output vehicle performance index is analyzed, and the method is specifically implemented in that the parameters of the vehicle model in the embodiment 1 are not changed, the road surface condition has no great influence on the invention, and the vehicle is not required to be verified, so that the road surface grade is not changed, the vehicle speed is divided into three steps of low speed, medium speed and high speed, the simulation experiment is carried out at the low speed of u=36 km/h, the simulation experiment is carried out at the medium speed of u=72 km/h, the simulation experiment is carried out at the high speed of u=108 km/h, and each performance index of the vehicle in the embodiment 1 is respectively output.
Table 5, root values of each performance index of the seven-degree-of-freedom model at 36km/h of vehicle speed
Table 6, root values of each performance index of the seven-degree-of-freedom model are obtained at 108km/h of vehicle speed.
As can be seen from tables 3, 5 and 6, when the vehicle speed is changed, all the root values of all the performance index sides of the whole vehicle are changed, and when the vehicle runs at a low speed, all the performance index sides of the whole vehicle are optimized by a semi-active suspension PID-LQR control mode based on a pre-aiming strategy, and the deterioration of pitching and rolling motion of the vehicle body is small. When the vehicle runs at a high speed, the dynamic displacement of the whole vehicle tire is not optimized but rather is deteriorated under the semi-active suspension PID-LQR control mode based on the pre-aiming strategy, and the pitching motion of the vehicle body is seriously deteriorated. And compared with the working conditions of low-speed, medium-speed and high-speed driving, the control effect of the pre-aiming control strategy is verified to have larger influence on the speed of the vehicle. Based on conclusion, the control method of the invention has better control effect under the low-speed running condition of the vehicle, and when the vehicle runs at high speed, the problem of delay of pre-aiming information needs to be solved.