Next Article in Journal
Learning-Enabled Robust Control of Thermoacoustic Oscillations
Previous Article in Journal
Asynchronized Jacobi Solver on Heterogeneous Mobile Devices
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Vehicle Trajectory Adaptive Tracking Control Based on Variable Prediction Horizon

School of Automotive and Traffic Engineering, Jiangsu University of Technology, Changzhou 213001, China
*
Author to whom correspondence should be addressed.
Electronics 2025, 14(9), 1769; https://doi.org/10.3390/electronics14091769
Submission received: 29 January 2025 / Revised: 28 March 2025 / Accepted: 22 April 2025 / Published: 27 April 2025

Abstract

:
The design of intelligent vehicle trajectory tracking controllers still has some problems, such as parameter uncertainty and time consumption. To improve the tracking accuracy of the trajectory tracking controller and reduce its computational complexity, an adaptive MPC trajectory tracking control method with a variable prediction horizon is proposed. Firstly, a three-degree-of-freedom vehicle dynamics model is constructed, and the design is improved based on the ordinary MPC controller. Secondly, several groups of different constant vehicle speeds are selected to compare the tracking effect of the ordinary MPC and the improved controller. Then, low speed (30 km/h) and high speed (100 km/h) are selected as representative speeds to solve the calculation time of the controller. The relationship between vehicle speed and prediction horizon is analyzed, and curve fitting is carried out. An adaptive trajectory tracking controller is designed. Finally, it is verified by CarSim and MATLAB/Simulink co-simulation. The results show that compared with ordinary MPC, the improved adaptive trajectory tracking controller can maintain good tracking accuracy and stability according to the speed change and improve the computational efficiency of the controller.

1. Introduction

At present, intelligent vehicles have become an important breakthrough in the automotive field for the future and have received public attention and recognition with many unique advantages. Intelligent vehicle technology consists of three key components: environmental perception, autonomous decision-making, and control execution, among which trajectory tracking control research is particularly critical, which is not only a key part of control execution but also an indispensable part of intelligent transportation systems [1]. Therefore, in the face of a variety of road and driving conditions, whether the trajectory tracking controller can accurately and stably track the trajectory is of great significance and function for the safe driving of intelligent vehicles. Trajectory tracking control can accurately track the expected trajectory given by the planning layer through the active steering control of the steering wheel and maintain the stability and ride comfort of the vehicle [2]. At present, the methods mainly used for trajectory tracking include PID [3], fuzzy control [4], pure tracking algorithm [5], linear quadratic regulator (LQR) [6], model predictive control (MPC) [7], etc. In addition, there are PI control and adaptive control and other advanced control strategies combined. Zhang D et al. [8] proposed a networked modeling and PI control method for direct drive wheel systems based on wireless network environments, which significantly improved the stability and dynamic performance of the system by optimizing the controller design. Model predictive control forecasts the future through predictive models, determines the current optimal control input by rolling optimization, and responds to the difference between actual and predicted by feedback correction so as to effectively control complex dynamic systems and improve system performance. MPC not only has outstanding advantages in dealing with multi-objective constrained optimization problems but also has the ability to predict the subsequent driving conditions of vehicles, so it is widely used in the field of unmanned driving.
In recent years, the application of model predictive control (MPC) in path tracking control has made remarkable progress. Liang J et al. [9] proposed a robust predictive control method based on a polyhedron model for path tracking of autonomous vehicles. By introducing a robust optimization technique, the stability and tracking accuracy of the system under an uncertain environment are improved significantly. Zhiheng You [10] studied the trajectory tracking problem of unmanned vehicles, analyzed the traditional trajectory tracking control method based on pre-sight, developed the vehicle lateral control algorithm based on pure tracking theory and the vehicle longitudinal speed following algorithm based on expert PID control, and solved the trajectory tracking control problem of unmanned vehicles under complex road surfaces such as high speed and low adhesion. When the ground adhesion condition is good, the control effect is better, but when the ground adhesion condition is slightly poor, the vehicle can not track the reference track well and even appears to sideslip and run off. Lu Y et al. [11] used multi-agent systems to build a general framework and proposed an MPC-based AFS control strategy. AFS and DYC worked together as agents and showed through virtual simulation that the proposed control architecture could effectively maintain vehicle stability and reduce driver workload. Huiling He [12] established a model prediction controller based on vehicle dynamics. For path tracking and longitudinal velocity tracking, the horizontal and longitudinal errors were used as state variables to establish state equations, and a comparison experiment between the model prediction controller and the pure tracking controller was designed. The experimental results showed that the designed model prediction controller exhibits better tracking performance than the pure tracking controller. Finally, particle swarm optimization is introduced to improve the tracking accuracy of the controller.
Feng Mingwang [13] designed the trajectory tracking controller based on the model predictive control algorithm and established the predictive model based on the three-degree-of-freedom vehicle dynamics model. The front wheel Angle, center of mass side deflection Angle and tire side deflection Angle are the constraint conditions, and the front wheel Angle increment is the control quantity. The optimization objective function is established and transformed into the standard quadratic programming problem, and the steering Angle increment in the control horizon is obtained by solving it so as to complete the trajectory tracking. It is found that the vehicle speed has a significant impact on the trajectory tracking results under constraints. Then, the tracking controller is optimized with fuzzy control, and a trajectory tracking system with integrated speed and direction control is established. The simulation verifies that the trajectory tracking system has strong robustness. Based on the two-degree-of-freedom dynamics model, literature [14] proposed a linear time-varying MPC trajectory tracking controller to improve the accuracy of vehicle trajectory tracking. Literature [15] also considers multiple state constraints and proposes a trajectory tracking controller based on multi-constraint model predictive control to achieve multi-objective optimization. The proposed comprehensive control method can realize obstacle avoidance paths more effectively, and the path tracking controller has dynamic tracking and operability. In literature [16], a robust model predictive control method with a finite horizon is proposed to improve the traditional MPC so that the vehicle has better path-tracking accuracy.
For the MPC-based vehicle trajectory tracking methods mentioned above, fixed prediction horizon and control horizon are adopted, but the selection of horizon has a great influence on the trajectory tracking control effect and body attitude control. Under different vehicle speed conditions, the fixed horizon cannot meet the requirements of high-precision tracking control [17]. Literature [18] proposes to automatically adjust the MPC controller to predict the horizon according to the change of the curvature of the reference trajectory, which reduces the operation time and ensures the real-time tracking control. However, the kinematic model cannot be applied under the conditions of high speed and large lateral acceleration. In literature [19], based on the three-degree-of-freedom dynamic model, a genetic algorithm was used to optimize the prediction horizon and control horizon of the model prediction controller, but the ride comfort decreased. In literature [20], a parameter estimator was added to the MPC controller for real-time estimation of vehicle driving state parameters. The simulation results show that the controller can well realize the trajectory tracking of intelligent vehicles at constant speed, but the control effect is not ideal when the speed changes with fixed control parameters.
Based on this, an adaptive MPC trajectory tracking control method with a variable prediction horizon is proposed in this paper. The overall logical framework for the article is shown in Figure 1. The main contribution of this paper: Based on the improved design of the ordinary MPC controller, the computational efficiency of the model prediction controller is improved, and the prediction horizon is updated according to the real-time vehicle speed on the premise of meeting the vehicle trajectory tracking accuracy and stability so that the vehicle can maintain good adaptive performance at different speeds.

2. Construction of Vehicle Three-Degree-of-Freedom Dynamic Model

An accurate vehicle dynamics model is the basis of the MPC algorithm. The dynamic model is used to study the force condition of the vehicle during operation, and the model equation is constructed by Newton’s second law of motion. The model can describe the motion state of the vehicle more accurately when the vehicle is traveling at high speed or on a road with large curvature. In view of the high requirements for tracking control reliability when vehicles are running at high speeds, the vehicle dynamics model is used as the basis of path tracking research in this study in order to improve the reliability of tracking control when vehicles are running at high speeds. This paper adopts the B-Class vehicle model in CarSim as the control object. A three-degree-of-freedom (3-DOF) vehicle dynamics model is employed, encompassing longitudinal, lateral, and yaw motions. To balance computational efficiency and control accuracy, the control object is simplified to include only lateral dynamics and steering inputs, neglecting secondary factors such as rigid suspension and aerodynamic drag. The simplified 3-DOF vehicle dynamics model is established as shown in Figure 2, and its dynamic equations are expressed in Equation (1) [21]. The controller is designed based on a three-degree-of-freedom vehicle model and implemented in MATLAB R2022b and validated through co-simulation with CarSim 2019.0. By embedding CarSim’s vehicle dynamics equations into the MPC optimization problem, the controller optimizes the steering input sequence in real time based on real-time vehicle state feedback, achieving precise tracking of the target trajectory.
Figure 1 above: Flf and Flr are the longitudinal forces on the front and rear wheels of the vehicle, respectively. Fcf and Fcr are the lateral forces on the front and rear wheels of the vehicle, respectively. Fxf and Fxr are the forces on the x-axis on the front and rear wheels of the vehicle, respectively. Fyf and Fyr are the forces on the y-axis on the front and rear wheels of the vehicle, respectively, and v is the center speed of the front axle of the vehicle.
m a y = m x ˙ φ ˙ + 2 C cf ( δ f y ˙ + a φ ˙ x ˙ ) + C cr ( b φ ˙ y ˙ x ˙ ) m a x = m y ˙ φ ˙ + 2 [ C lf s f + C cf ( δ f y ˙ + a φ ˙ x ˙ ) δ f + C lr s r ] I z φ ¨ = 2 a C cf ( δ f y ˙ + a φ ˙ x ˙ ) b C cr ( b φ ˙ y ˙ x ˙ ) Y ˙ = x ˙ s i n φ + y ˙ c o s φ X ˙ = x ˙ c o s φ y ˙ s i n φ
In Formula (1), m is the vehicle maintenance mass, the unit is kg; a and b are the distances between the vehicle’s center of mass and the front and rear axles, respectively, in unit m; φ and φ ˙ are the yaw angle and yaw speed of the vehicle, in units rad and rad/s, respectively; δ f is the front wheel steering Angle, the unit is °; Iz is the moment of inertia of the vehicle around the z axis, and the unit is kg⋅m2. X ˙ and Y ˙ are respectively the transverse and longitudinal velocity of the vehicle in OXY coordinate system, x ˙ and y ˙ are respectively the longitudinal and lateral velocity of the vehicle in oxy coordinate system, in unit km/h; Ccf and Ccr are the lateral stiffness of front and rear wheels, respectively. The unit is N·rad−1. Clf and Clr are the longitudinal stiffness of the front and rear wheels, respectively, expressed in N⸳m−1. Sf and Sr are the slip rates of the front and rear wheels, respectively.

3. Design of Model Predictive Trajectory Tracking Controller

According to the vehicle dynamics equation above, the state quantity in the system is selected as ζ = y ˙   x ˙   φ   φ ˙   Y   X T , and the control quantity is u = δ f . The status can be expressed as
ζ ˙ = f ( ζ , u )
Assuming that the sampling time is T, the forward Euler method is adopted to discretize (2) at time k to obtain
ζ ( k + 1 ) = F ζ ( k ) , u ( k )
Linearization is carried out with the method of state trajectory, and by applying a constant control quantity to Formula (3) at the operating point, it is obtained:
ζ 0 ( k + 1 ) = F ζ 0 ( k ) , u 0 ( k )
The nonlinear Formula (3) is expanded by Taylor at the working point ( ζ 0   u 0 ) , omitting the higher-order items to get
ζ ( k + 1 ) = F ζ 0 ( k ) , u 0 ( k ) + F ζ ζ 0 ( k ) , u 0 ( k ) ζ ( k ) ζ 0 ( k ) +   F u ζ 0 ( k ) , u 0 ( k ) u ( k ) u 0 ( k )
By diverting Equation (4) from Equation (5), we get the following expression for the discrete linear state space and output η(k):
ζ ( k + 1 ) = A k ζ ( k ) + B k u ( k ) + d ( k ) η ( k ) = C k ζ ( k )
In the above formula, Ak and Bk are self-defined matrices. In order to be able to write state space equations, it is convenient to express. A k = a 11 a 12 0 a 14 0 0 a 21 a 22 0 a 24 0 0 0 0 1 T 0 0 a 41 a 42 0 a 44 0 0 a 51 a 52 a 53 0 1 0 a 61 a 62 a 63 0 0 1 B k = b 11   b 21   0     b 41   0     0 T C k = 0 0 1 0 0 0 0 0 0 0 1 0 , the expression of the element as
a 11 = 2 ( C cf + C cr ) T m x ˙ k + 1 ,   a 12 = 2 T C cf ( y ˙ k + a φ ˙ k ) + 2 C cr ( y ˙ k b φ ˙ k ) m x ˙ k 2 T φ ˙ k , a 14 = T x ˙ k + 2 b T C cr 2 a T C cf m x ˙ k ,   a 21 = 2 T C cf + T C cr m x ˙ k ,   a 22 = 2 T C cf ( y ˙ k + a φ ˙ k ) δ f m x ˙ k 2 , a 24 = T y ˙ k 2 a T C cf δ f m x ˙ k ,   a 41 = 2 T ( b C cr a C cf ) I z x ˙ k ,   a 51 = T c o s φ k ,   a 52 = T s i n φ k , a 53 = T x ˙ k c o s φ k T y ˙ k s i n φ k ,   a 42 = 2 a T C cf ( y ˙ k + a φ ˙ k ) 2 b C cr ( y ˙ k b φ ˙ k ) I z x ˙ k 2 , b 11 = 2 T C cf m ,   a 61 = T s i n φ k ,   a 62 = T c o s φ k ,   a 63 = T x ˙ k s i n φ k T y ˙ k c o s φ k , a 44 = 2 ( a 2 C cf + 2 b 2 C cr ) T I z x ˙ k + 1 ,   b 21 = 2 T C cf ( δ f y ˙ k + a φ ˙ k x ˙ k ) m ,   b 41 = 2 a T C cf I z .
Taking the difference between the state variable expressions at two consecutive time instants in Equation (6), it can be obtained:
ζ k + 1 ζ k = A k ζ k ζ k 1 + B k u k u k 1 +   d ( k ) d ( k 1 )
Let Δζ(k) = ζ(k) − ζ(k−1), control increment Δu(k) = u(k) − u(k−1), and deviation increment Δd(k) = d(k) − d(k−1); then Equation (7) can be expressed as
ζ ( k + 1 ) = ζ ( k ) + A k Δ ζ ( k ) + B k Δ u ( k ) + Δ d ( k )
According to Equations (6) and (8), the output equation of the system can be obtained as follows:
η ( k + 1 ) = η ( k ) + C k A k Δ ζ ( k ) + C k B k Δ u ( k ) + C k Δ d ( k )
If ξ ( k ) = Δ ζ ( k ) η ( k ) is set, the following new extended state space expression is obtained:
ξ ( k + 1 ) = A ˜ k ξ ( k ) + B ˜ k Δ u ( k ) + D ˜ k Δ d ( k ) η ( k ) = C ˜ k ξ ( k )
In the above formula, A ˜ k = A k 0 N x × N o C k A k I N y × N o ,   B ˜ k = B k C k B k ,   C ˜ k = 0 N o × N x I N o × N o D ˜ k = I N x × N x C k , Nx and No are the number of state quantities and the number of control quantities, respectively.
Assuming that the prediction horizon is Np and the control horizon is Nc, according to Equation (10), the predicted values of the system state variables over future time steps are as follows:
ξ ( k + 1 ) = A ˜ k ξ ( k ) + B ˜ k Δ u ( k ) + D ˜ k Δ d ( k ) ξ ( k + 2 ) = A ˜ k 2 ξ ( k ) + A ˜ k B ˜ k Δ u ( k ) + B ˜ k Δ u ( k + 1 ) + A ˜ k D ˜ k Δ d ( k ) + D ˜ k Δ d ( k + 1 ) ξ ( k + N c ) = A ˜ k N c ξ ( k ) + A ˜ k N c 1 B ˜ k Δ u ( k ) + + B ˜ k Δ u ( k + N c 1 ) + A ˜ k N c 1 D ˜ k Δ d ( k ) + + D ˜ k Δ d ( k + N c 1 )     ξ ( k + N p ) = A ˜ k N p ξ ( k ) + A ˜ k N p 1 B ˜ k Δ u ( k ) + + A ˜ k N p N c B ˜ k Δ u ( k + N c 1 ) + A ˜ k N p 1 D ˜ k d ( k ) + + D ˜ k d ( k + N p 1 )
Similarly, according to Equation (11), the predicted value of the output variable over the future Np time steps can be calculated as follows:
η ( k + 1 ) = C ˜ k A ˜ k ξ ( k ) + C ˜ k B ˜ k Δ u ( k ) + C ˜ k D ˜ k Δ d ( k ) η ( k + 2 ) = C ˜ k A ˜ k 2 ξ ( k ) + C ˜ k A ˜ k B ˜ k Δ u ( k ) + C ˜ k B ˜ k Δ u ( k + 1 ) + C ˜ k A ˜ k D ˜ k Δ d ( k ) + C ˜ k D ˜ k Δ d ( k + 1 ) η ( k + N c ) = C ˜ k A ˜ k N c ξ ( k ) + C ˜ k A ˜ k N c 1 B ˜ k Δ u ( k ) + + C ˜ k B ˜ k Δ u ( k + N c 1 ) +   C ˜ k A ˜ k N c 1 D ˜ k Δ d ( k ) + + C ˜ k D ˜ k Δ d ( k + N c 1 ) η ( k + N p ) = C ˜ k A ˜ k N p ξ ( k ) + C ˜ k A ˜ k N p 1 B ˜ k Δ u ( k ) + + C ˜ k A ˜ k N p N c B ˜ k Δ u ( k + N c 1 ) + C ˜ k A ˜ k N p 1 D ˜ k d ( k ) + + C ˜ k D ˜ k d ( k + N p 1 )
Equation (12) can be expressed in the following matrix form:
F ( k ) = Ψ k ξ k ( k ) + Θ k Δ U ( k ) + Γ k Φ ( k )
F ( k ) = η ( k + 1 ) η ( k + N p ) ,   Ψ k = C ˜ k A ˜ k C ˜ k A ˜ k N p ,   ξ k ( k ) = ξ ( k ) ξ ( k + N p ) , Δ U ( k ) = Δ u ( k ) Δ u ( k + N c 1 ) ,   Θ k = C ˜ k B ˜ k 0 0 0 C ˜ k A ˜ k B ˜ k C ˜ k B ˜ k 0 0 C ˜ k A ˜ k N c 1 B ˜ k C ˜ k A ˜ k N c 1 B ˜ k C ˜ k B ˜ k C ˜ k A ˜ k N c B ˜ k C ˜ k A ˜ k N c B ˜ k C ˜ k A ˜ k B ˜ k C ˜ k A ˜ k N p 1 B ˜ k C ˜ k A ˜ k N p 1 B ˜ k C ˜ k A ˜ k N p N c B ˜ k , Γ k = C ˜ k D ˜ k 0 0 C ˜ k A ˜ k D ˜ k C ˜ k D ˜ k 0 C ˜ k A ˜ k N p 1 D ˜ k C ˜ k A ˜ k D ˜ k C ˜ k D ˜ k ,   Φ ( k ) = Δ d ( k ) Δ d ( k + N p 1 ) .
The control objective function is obtained:
J = [ F r e f ( k ) F ( k ) ] T Q ¯ [ F r e f ( k ) F ( k ) ] + Δ U ( k ) T R ¯ Δ U ( k ) + ε T ρ ε
F ref ( k ) = η ref ( k + 1 ) η ref ( k + N p ) , Q ¯ = Q 0 0 0 0 0 0 Q , R ¯ = R 0 0 0 0 0 0 R , Q ¯ , R ¯ is the weight coefficient matrix, ρ is the weight coefficient, and ε is the relaxation factor. We tested the values of Q and R. By increasing Q, we placed greater emphasis on tracking the system states, aiming to enable the system to converge more quickly to the reference states and reduce state errors, and increasing R imposed stricter constraints on changes in control inputs in order to reduce fluctuations in control inputs and thereby minimize energy consumption.
By combining Equation (13), let E = F r e f ( k ) Ψ k ξ k ( k ) Γ k Φ ( k ) , be obtained F r e f ( k ) = E + Ψ k ξ k ( k ) + Γ k Φ ( k ) and F r e f ( k ) F ( k ) = E Θ k Δ U ( k ) , and substitute the equation according to the given variable expressions; Equation (14) can be recalculated and reorganized into the following form:
J = Δ U ( k ) T ( Θ k Q ¯ Θ k + R ¯ ) Δ U ( k ) 2 E T Q ¯ Θ k Δ U ( k ) + E T Q ¯ E + ε T ρ ε
The control quantity over the future Nc time steps is
u ( k ) = u ( k 1 ) + Δ u ( k ) u ( k + 1 ) = u ( k 1 ) + Δ u ( k ) + Δ u ( k + 1 ) u ( k + N c 1 ) = u ( k 1 ) + Δ u ( k ) + Δ u ( k + 1 ) + Δ u ( k + N c 1 )
Formula (16) is expressed in matrix form:
U ( k ) = U t + A I Δ U ( k )
U ( k ) = u ( k ) u ( k + 1 ) u ( k + N c 1 ) , U t = u ( k 1 ) u ( k 1 ) u ( k 1 ) , A I = I N o 0 0 0 I N o I N o 0 0 0 0 I N o I N o I N o , I N o is the identity matrix of N0 × N0.
According to Equation (17), the control constraint can be expressed in the following form:
A I Δ U ( k ) U m a x U t A I Δ U ( k ) U m i n + U t U m a x = [ u m a x     u m a x     u m a x ] T ,   U min = [ u min   u min     u min ] T
To reduce online computational burden and improve real-time efficiency, we avoid introducing slack variables. Instead, hard output constraints directly balance tracking error and control effort, preventing slack-induced performance loss. To prevent the empty admissible set, a safe state region is predefined with a control law ensuring states stay within it via optimization, avoiding constraint violations and empty sets. According to Equation (13), the output constraint can be expressed as
Θ k Δ U k ( k ) F m a x Ψ k ξ k ( k ) Γ k Φ ( k ) Θ k Δ U k ( k ) F m i n + Ψ k ξ k ( k ) + Γ k Φ ( k ) F m a x = [ φ m a x     Y m a x     φ m a x   Y m a x ] T , F min = [ φ min   Y min     φ min   Y min ] T
According to Equations (15), (18) and (19), the objective function and constraints are transformed into the following standard form of quadratic programming:
J = m i n 1 2   x T H x + f T x A cons x = b cons
In the above formula, x = Δ U ε , H = 2 Θ k T Q ¯ Θ k + 2 R ¯ 0 0 2 ρ , f T = 2 E T Q ¯ Θ k 0 , A cons = A I 0 N c N o × 1 A I 0 N c N o × 1 Θ 0 N y N p × 1 Θ 0 N y N p × 1 , b cons = U m a x U t U m i n + U t F m a x Ψ k ξ k ( k ) Γ k Φ ( k ) F m i n + Ψ k ξ k ( k ) + Γ k Φ ( k ) .
According to Formula (20), a series of control increments in the control horizon at the current time can be obtained, namely:
Δ U = Δ u ( k ) Δ u ( k + 1 ) Δ u ( k + N c 1 ) T
According to the above controller design, it can be known that the improved MPC is based on the ordinary MPC to extend the equation of the state variable: the output variable is returned to the state variable to form new feedback, which will make the trajectory continuously approach the desired trajectory, so that the control algorithm of MPC has faster efficiency and higher accuracy. The main difference between the two lies in the equations of the state variables, which we refer to as ordinary MPC and the improved MPC in the following.

4. Simulation Test and Result Analysis

The co-simulation platform of MATLAB/Simulink and CarSim was established to analyze the influence of different constant vehicle speeds and different prediction horizons Np on the trajectory tracking effect, and the simulation test was carried out for the improved model prediction trajectory tracking controller. The main parameters of the vehicle in the simulation are shown in Table 1:
In the simulation test, the working condition adopted is the double-shift working condition, and the road adhesion coefficient is 0.8. The double shift reference track is automatically generated by the driving scene designer in MATLAB according to the double shift standard test road.

4.1. Simulation Analysis of the Influence of Different Constant Vehicle Speeds on the Controller’s Tracking Control Effect

Firstly, the tracking effect of the improved controller is simulated, and four sets of simulation tests are carried out at different constant speeds, which are 30 km/h, 60 km/h, 80 km/h, and 100 km/h, respectively, and the comparison with the ordinary MPC is carried out.
The simulation results of 30 km/h and 60 km/h trajectory tracking are shown in (a) and (b) in Figure 3. Due to the low speed, the tracking process is relatively stable, the overshoot is small, and the trajectory tracking deviation is small. It can be seen from (a) and (b) in Figure 4 that the fluctuation of the yaw Angle is also within a reasonable range. Compared with the ordinary MPC, the improved vehicle has better stability. It can be seen from (c) and (d) in Figure 3 that with the increase in vehicle speed, when the vehicle speed is 80 and 100 km/h, the ordinary MPC fails to track at the longitudinal displacement of about 90 m. However, although the tracking error of the improved MPC at 40–90 m is slightly larger than that at low speed, it can still track the desired trajectory after 90 m. It can be seen from (c) and (d) in Figure 4 that the yaw Angle of the ordinary MPC fluctuates greatly after the longitudinal displacement of 80 m, putting the vehicle in a dangerous state. In the process of the change of the yaw Angle of the improved MPC, the oscillation amplitude is weakened, and the MPC is more stable, with better tracking accuracy and stability. Through the analysis of the above simulation results, the effectiveness of the improved MPC controller is verified.
The calculation time is also an important index to evaluate the performance of the controller. The calculation time of the controller is solved and analyzed by a simulation test. The calculation time of the controller is compared with that of ordinary MPC at low speed (30 km/h) and high speed (100 km/h), respectively, and the performance of the controller is further evaluated.
Through simulation tests, the calculation time of the controller and the percentage reduction of calculation time are shown in Figure 5. It can be seen from (b) and (d) that the calculation efficiency of the controller is higher when the vehicle is at low speed than at high speed, and the calculation time of the improved controller is shorter, and the calculation performance is significantly improved. However, there are still some time points in the simulation process that take longer to calculate than the ordinary model prediction controller. The reason is that the change of step length in the horizon leads to the influence of the rolling optimization results at the previous time on the rolling optimization results at the next time and thus affects the calculation and solution time. It can be seen from Table 2 and Table 3 that the average calculation time of the improved MPC controller at low speed and high speed is 2.15 ms and 4.08 ms, respectively, and the maximum single calculation time is 4.29 ms and 7.10 ms, respectively. The average calculation time of an ordinary MPC controller is 3.94 ms and 4.76 ms, respectively, and the maximum single calculation time is 6.96 ms and 7.27 ms, respectively. Compared with the conventional MPC controller, the average calculation time of the improved MPC controller is reduced by 45.43% and 14.29% at low speed and high speed, respectively, and the maximum single calculation time is reduced by 38.36% and 2.34%.

4.2. Simulation Analysis of the Influence of Vehicle Speed and Prediction Horizon on Tracking Effect

The prediction horizon has a great influence on the performance of the model prediction controller. The prediction horizon is similar to the distance of pre-viewing a future time in the driver model. Under the working conditions of different speeds, different pre-viewing distances will produce different control effects. According to previous research experience, when the vehicle is at low speed, reducing the pre-sight distance will produce a relatively good control effect, and increasing the pre-sight distance will reduce the tracking accuracy and vehicle stability. On the contrary, when the vehicle is at high speed, increasing the pre-sight distance can improve the control effect and will not cause problems such as reduced tracking accuracy and steering jitter due to too small a pre-sight distance, so as to improve the stability of the vehicle. Therefore, the joint simulation platform of CarSim and MATLAB/Simulink was built on the basis of the improved MPC, and the road adhesion coefficient was set to 0.8 under the condition of tracking double shift, and the tracking effect of different speeds and prediction horizons was analyzed. The speed was selected as 30 km/h and 100 km/h, and the prediction horizon Np was selected as 8, 15, 20, 26, and 32, respectively.
When the vehicle speed is 30 km/h, the simulation results of different prediction horizons are compared as shown in Figure 6. Because of the low speed, it is reasonable to select the first 4 groups of prediction horizon values for comparison. Through the analysis of (a) and (b), it can be seen that the whole tracking process is relatively stable, the tracking deviation of the trajectory is small, and the variation of the yaw Angle is also within a reasonable range. When the prediction horizon Np is equal to 8, the lateral tracking deviation and yaw Angle of the trajectory are the best. When the prediction horizon Np is equal to 26, the lateral tracking deviation is the largest. From the analysis of the above simulation results, it can be seen that with the increase in the prediction horizon Np, both lateral error and heading error become larger, resulting in a decrease in vehicle tracking accuracy.
When the vehicle speed is 100 km/h, the simulation results of different prediction horizons are compared as shown in Figure 7. Because the vehicle is in high-speed working condition, the stability of the vehicle will be greatly reduced if the prediction horizon is smaller, so it is reasonable to select the last four groups of prediction horizon values for analysis. Through the analysis of (a) and (b), it can be seen that when the vehicle runs at a higher speed, the smaller prediction horizon can no longer meet the requirements of path tracking accuracy and driving stability. This is because the dynamic characteristics of the vehicle change greatly at high speed, resulting in a sharp decline in the stability of the vehicle’s running, making the vehicle unable to quickly reach the desired corner. When the prediction horizon Np is equal to 15, the vehicle path tracking fails and completely deviates from the expected trajectory. The fluctuation of the yaw Angle of the vehicle is large, which has exceeded the limit of the stability requirements, and the vehicle is seriously unstable. When the prediction horizon Np is equal to 26 or 32, the deviation of trajectory tracking is moderate, and the yaw velocity changes relatively smoothly.

4.3. Design and Simulation Analysis of Adaptive MPC Controller Based on Variable Prediction Horizon

Through the analysis of the above simulation results, it can be seen that under the condition of low speed (constant speed), the tracking process of the vehicle in the forecasting horizon is relatively stable and the tracking accuracy of the vehicle trajectory is relatively high, while the tracking process in the forecasting horizon will increase the pre-sight distance and slow down the expected response trajectory. Although the tracking process is stable, the deviation is relatively large. Under high-speed (constant speed) conditions, the larger prediction horizon can stably track the expected path, but due to the increase in the pre-sight distance, there is a certain tracking bias, while the smaller prediction horizon will sacrifice the stability of the vehicle, and it is very dangerous at high-speed operation and should be avoided as far as possible. If a constant prediction horizon value is used, it cannot meet the requirements of trajectory tracking at low speed and high speed. Therefore, it is necessary to study the prediction horizon Np and update the prediction horizon value in real time according to the current vehicle speed.
Firstly, we determine the design goal of the adaptive trajectory tracking controller, which is to achieve high-precision trajectory tracking under the condition of vehicle dynamics parameter uncertainty and external interference. The core task of the controller is to adjust the control parameters online, adapt to the dynamic changes of the system, and ensure the tracking performance. A parameter adaptive module (variable prediction horizon controller) is added to the model prediction controller, and a parameter adaptive mechanism based on the recursive least squares method (RLS) is adopted to estimate vehicle dynamics parameters online. The vehicle status information is collected in real time, and the vehicle dynamics parameters are updated by the RLS algorithm and fed back to the MPC optimization problem. Based on the updated parameters, re-solve the MPC optimization problem and generate optimal control inputs.
According to the stability theory of MPC, the selection of the prediction horizon needs to meet certain conditions to ensure the stability of the closed-loop system. Based on Lyapunov stability theory and robust control theory, we derive the lower and upper bounds of the prediction horizon to ensure the stability of the system under uncertainty and external interference. In the process of dynamically updating the prediction horizon, we ensure that the prediction horizon still meets the constraints of the system after each update. Through the introduction of feasibility analysis, the solution of the optimization problem still exists in each update, and the stable operation of the system can be guaranteed.
Based on the above stability analysis, the control strategy for real-time optimization of prediction horizon parameters is given, as shown in Figure 8. According to the changes of the initial state of the vehicle and the future reference trajectory information, it is input into the model prediction controller; the controller generates the control quantity and inputs it into the CarSim vehicle model to control the trajectory tracking of the vehicle, and the CarSim vehicle model feeds back the state quantity to the prediction horizon controller. The predictive horizon controller estimates the vehicle dynamics parameters online, adjusts the controller parameters in real time, updates the prediction horizon online, determines the corresponding prediction horizon values, and generates the optimal control input to the MPC model predictive controller, thus forming an adaptive trajectory tracking controller based on the variable prediction horizon.
Through the above simulation analysis of low-speed and high-speed conditions, the value of the forecast horizon has a certain reference basis. In order to more accurately analyze the influence of the prediction horizon on the controller tracking effect under different vehicle speeds, CarSim and MATLAB/Simulink were used for joint simulation, the vehicle speed was set at 24~108 km/h, the prediction horizon Np was set at 6~35, and multiple sets of simulation tests were conducted based on the above selected prediction horizon values. At the same time, in order to ensure the effectiveness of the controller parameters and prevent the occurrence of vehicle control failure, the prediction horizon parameters are selected according to the following requirements: (1) The controller has no over-harmonic oscillation and can successfully track the trajectory path effectively. (2) The solution time of the controller is less than the sampling time [22].
Finally, valid simulation results were obtained. In the trajectory tracking research of autonomous vehicles, lateral error and heading error serve as important metrics for evaluating the controller’s performance. Therefore, we used smaller lateral error and heading error as evaluation criteria and employed the entropy weight method to determine their weights as 0.5623 and 0.4377, respectively. This ensures that the weights are determined based on the objective variability of the data rather than subjective judgment. Additionally, the method of the approximation of the ideal solution ordering (TOPSIS) was applied to obtain the optimal values of the prediction horizon Np under different vehicle speeds, as shown in Table 4. This approach facilitates the achievement of optimal path-tracking performance at different speeds.
According to the above simulation analysis and the results in Table 4, considering the accuracy and stability of trajectory tracking and the real-time requirements of the controller under high-speed working conditions, the minimum prediction horizon is 8, and the maximum prediction horizon is 26. The relationship between the prediction horizon and the longitudinal velocity change is obtained through the selection of 4 groups of parameters and the rounding of the third-degree polynomial fitting in MATLAB. As shown in Equation (22), its fitting curve is shown in Figure 9a. Among them, 4 points are the 4 groups of parameters in Table 4, so it can be seen that the curve after fitting and rounding can well represent the 4 groups of parameters.
N p = 8 , v 30 i n t ( 0.00004287 v 3 + 0.01157 v 2 0.6944 v + 20 ) , 30 < v 100 26 , v > 100
In order to better test the performance of the improved trajectory tracking controller (the following simulation results are called adaptive), the road adhesion coefficient is set at 0.8, and the vehicle is simulated for trajectory tracking under variable speed conditions, as shown in Figure 9b. Vehicle parameters and controller parameters are consistent with the above simulation. Finally, the simulation results are compared and analyzed, and the validity of the variable prediction horizon adaptive trajectory tracking controller is verified.
The simulation results under variable speed conditions are shown in Figure 10. It can be seen from (a) and (b) that when the prediction horizon Np is equal to 8, the vehicle speed continues to increase, and the longitudinal displacement is about 80 m. At this time, the vehicle dynamic characteristics change greatly, which can no longer meet the constraint requirements, resulting in the failure of tracking the expected trajectory and expected yaw Angle at the exit under the double-shift condition. When the prediction horizon is large, the tracking accuracy is poor, and the adaptive vehicle can accurately track the reference track. Although the yaw Angle deflects with the increase in speed, it can quickly adjust and converge to the expected value. Through the analysis of (c) and (d), it can be seen that when the prediction horizon Np is equal to 8, the vehicle tracking failure leads to large lateral error and heading error, and the adaptive vehicle tracking lateral error is the smallest, and the corresponding heading error is small. The heading error in the prediction horizon of 32 is the smallest at medium and high speeds, but the tracking lateral error is larger. This also indicates that the vehicle stability is better when the prediction horizon value is large at high speed, but the tracking lateral error will be larger. According to (e) and (f), it can be seen that when the prediction horizon Np is small, the yaw velocity will fluctuate greatly; when the prediction horizon Np is equal to 8, the vehicle will become seriously unstable; when the prediction horizon Np is large, the vehicle will have good stability; and the changes of the lateral declination Angle and yaw velocity of the vehicle’s center of mass are smooth and natural using adaptive methods, indicating that the vehicle trajectory tracking process is stable.
To further evaluate the goodness of fit of the model, we calculated the SSE (Sum of Squared Errors) for both the fixed and adaptive prediction horizons in (a) and (b) of Figure 10. In Figure 10a, under different prediction horizons Np, the SSE values are as follows: SSE = 473.55 (Np = 8), SSE = 2.26 (Np = 15), SSE = 2.27 (Np = 20), SSE = 4.11 (Np = 26), and SSE = 6.89 (Np = 32), while the adaptive prediction horizon yields SSE = 1.39. When Np = 8, the system exhibited significant fluctuations during the tracking of the desired trajectory and even deviated from it, leading to a very large SSE value. These results indicate that the adaptive prediction horizon offers superior goodness of fit, smaller prediction errors, and the ability to more effectively track the desired trajectory. In Figure 10b, under different prediction horizons Np, the SSE values are as follows: SSE = 14.82 (Np = 8), SSE = 0.0096 (Np = 15), SSE = 0.034 (Np = 20), SSE = 0.081 (Np = 26), and SSE = 0.17 (Np = 32), while the adaptive prediction horizon yields SSE = 0.0074. When Np = 8, the SSE value was the largest, accompanied by substantial yaw angle fluctuations and a significant deterioration in vehicle stability. These findings demonstrate that the adaptive prediction horizon achieves higher goodness of fit, smaller prediction errors, smoother yaw angle variations, and stable vehicle tracking performance.
Figure 11 shows the change of adaptive prediction horizon under variable speed. It can be seen that with the constant change of vehicle speed, the controller can update the prediction horizon in real time so as to predict the output at the next moment, ensuring that the variable horizon tracking controller has good adaptive performance under different vehicle speeds.

5. Conclusions

Taking vehicle trajectory tracking control as the research direction, this paper establishes a three-degree-of-freedom vehicle dynamics model, improves the controller on the basis of ordinary MPC, selects different speeds and prediction horizons for simulation, compares and analyzes the optimal prediction horizon values corresponding to different speeds, and fits the functional relationship curves between prediction horizon and vehicle speed. A variable prediction horizon adaptive trajectory tracking controller is designed. The prediction horizon is updated in real time according to the vehicle speed, the output value of the next moment is predicted, and the joint simulation platform of CarSim and MATLAB/Simulink is built for verification. The main conclusions are as follows:
(1)
The improved MPC can maintain good trajectory tracking accuracy and stability at both low and high speeds (a specific speed), and the average calculation time is reduced by 45.43% and 14.29%, respectively, compared with the ordinary MPC.
(2)
The simulation results show that when the vehicle is at a low speed, the larger prediction horizon will increase the lateral error of trajectory tracking and increase the computational burden of the controller. Using the smaller prediction horizon, the tracking effect is better when the vehicle speed is low. However, in the practical application process, the complex and changeable working conditions will lead to large speed variation amplitude, and the use of a small prediction horizon will lead to the decline of vehicle trajectory tracking stability. The adaptive trajectory tracking controller can update the prediction horizon value online according to the speed change, ensuring that the vehicle can maintain good adaptive performance at different speeds.

Author Contributions

All the authors contributed to the research, with the support of K.W. and C.Z. wrote the first draft, and all the authors commented on the previous first draft version. Conceptualization: C.Z.; methodology and verification: C.Z. and K.W.; formal analysis and investigation: Y.W.; writing—review and editing: Y.W. and S.L.; resources: S.L.; supervision: K.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work was jointly supported by the Industry University Research Cooperation Foundation of Jiangsu Province (grants BY2019062), the Natural Science Research Project for Universities of Jiangsu Province (grants 23KJA580004), and the Doctor Scientific Research Startup Foundation of Jiangsu University of Technology (grants KYY22012).

Data Availability Statement

The original contributions presented in the study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Li, K.Q. Research on Key Basic Problems and Countermeasures of perception, Decision and Control of Intelligent Electric Vehicles. Sci. Technol. Rev. 2017, 35, 85–88. [Google Scholar]
  2. Wang, H.; Wang, Q.; Chen, W.; Zhao, L.; Tan, D. Path tracking based on model predictive control with variable predictive horizon. Trans. Inst. Meas. Control 2021, 43, 2676–2688. [Google Scholar] [CrossRef]
  3. Bingul, Z.; Gul, K. Intelligent-PID with PD feedforward trajectory tracking control of an autonomous underwater vehicle. Machines 2023, 11, 300. [Google Scholar] [CrossRef]
  4. Awad, N.; Lasheen, A.; Elnaggar, M.; Kamel, A. Model predictive control with fuzzy logic switching for path tracking of autonomous vehicles. ISA Trans. 2022, 129, 193–205. [Google Scholar] [CrossRef] [PubMed]
  5. Sun, Q.P.; Wang, Z.H.; Li, M.; Liu, B.; Cheng, J.; Tai, J. Path tracking control of wheeled mobile robot based on improved pure pursuit algorithm. In Proceedings of the 2019 Chinese Automation Congress (CAC), Hangzhou, China, 22–24 November 2019; pp. 4239–4244. [Google Scholar]
  6. Xu, M.; Liu, Q.H. Design and Simulation of Intelligent Vehicle trajectory Tracking Control Algorithm based on LQR and PID. J. Taiyuan Univ. Technol. 2022, 53, 877–885. [Google Scholar]
  7. Chen, Z.N.; Tong, L.; Li, X.D.; Liu, Y.; Xu, Z.F. Trajectory tracking control with adaptive horizon model predictive control. J. Chongqing Univ. Technol. (Nat. Sci.) 2024, 38, 78–85. [Google Scholar]
  8. Zhang, D.; Han, Q.L.; Zhang, X.M. Network-based modeling and proportional–integral control for direct-drive-wheel systems in wireless network environments. IEEE Trans. Cybern. 2020, 50, 2462–2474. [Google Scholar] [CrossRef]
  9. Liang, J.; Tian, Q.; Feng, J.; Pi, D.; Yin, G. A polytopic model-based robust predictive control scheme for path tracking of autonomous vehicles. IEEE Trans. Intell. Veh. 2023, 9, 3928–3939. [Google Scholar] [CrossRef]
  10. You, Z.H. Research on Trajectory Tracking Control of Unmanned Vehicle Based on MPC Algorithm. Master’s Thesis, Jilin University, Changchun, China, 2018. [Google Scholar]
  11. Liang, J.; Lu, Y.; Yin, G.; Fang, Z.; Zhuang, W.; Ren, Y.; Xu, L.; Li, Y. A distributed integrated control architecture of AFS and DYC based on MAS for distributed drive electric vehicles. IEEE Trans. Veh. Technol. 2021, 70, 5565–5577. [Google Scholar] [CrossRef]
  12. He, H.L. Research on Local Trajectory Planning and Tracking Control Algorithm of Intelligent Vehicle. Master’s Thesis, Harbin Institute of Technology, Harbin, China, 2021. [Google Scholar]
  13. Feng, M.W. Research on Vehicle Lane Change Model Predictive Control Strategy Based on Transverse and Longitudinal Control. Master’s Thesis, Dalian University of Technology, Dalian, China, 2021. [Google Scholar]
  14. Pang, H.; Liu, N.; Liu, M.H.; Zhang, F.Q. Design and verification of autonomous vehicle trajectory tracking Controller based on linear time-varying Model Predictive Control. Chin. J. Mech. Eng. 2022, 58, 264–274. [Google Scholar]
  15. Xiong, L.; Liu, M.; Yang, X.; Leng, B. Integrated path tracking for autonomous vehicle collision avoidance based on model predictive control with multi-constraints. In Proceedings of the 2022 IEEE 25th International Conference on Intelligent Transportation Systems (ITSC), Macau, China, 8–12 October 2022; pp. 554–561. [Google Scholar]
  16. Peng, H.; Wang, W.; An, Q.; Xiang, C.; Li, L. Path tracking and direct yaw moment coordinated control based on robust MPC with the finite time horizon for autonomous independent-drive vehicles. IEEE Trans. Veh. Technol. 2020, 69, 6053–6066. [Google Scholar] [CrossRef]
  17. Li, Y.H.; Fan, J.K.; Liu, Y.; He, J.; Li, Z.T.; Pan, S.F. Intelligent Vehicle path Planning and Tracking Control with adaptive dual horizon Parameter MPC. J. Automob. Saf. Energy Conserv. 2021, 12, 528–539. [Google Scholar]
  18. Yan, G.J.; Ben, N.J.; Gu, J.H.; Yang, Y. Trajectory tracking control of unmanned Tractor based on MPC. J. Chongqing Jiaotong Univ. (Nat. Sci. Ed.) 2019, 38, 1–6. [Google Scholar]
  19. Zhang, Y.; Huang, M.H. Path following Control of unmanned Vehicle Based on Model Prediction. Digit. Manuf. Sci. 2019, 17, 21–26. [Google Scholar]
  20. Cui, Q.; Ding, R.; Zhou, B.; Wu, X. Path tracking of an autonomous vehicle via model predictive control and nonlinear filtering. Proc. Inst. Mech. Eng. Part D J. Automob. Eng. 2018, 232, 1237–1252. [Google Scholar] [CrossRef]
  21. Gong, J.W.; Jiang, Y.; Xu, W. Autonomous Vehicle Model Predictive Control, 1st ed.; Beijing Institute of Technology Press: Beijing, China, 2014; pp. 22–25. [Google Scholar]
  22. Liu, B.; Wang, Z.; Guo, H.; Zhang, G. Improved Model Predictive Control Path Tracking Approach Based on Online Updated Algorithm with Fuzzy Control and Variable Prediction Time domain for Autonomous Vehicles. World Electr. Veh. J. 2024, 15, 257. [Google Scholar] [CrossRef]
Figure 1. Overall logic frame diagram.
Figure 1. Overall logic frame diagram.
Electronics 14 01769 g001
Figure 2. Simplified vehicle dynamics model.
Figure 2. Simplified vehicle dynamics model.
Electronics 14 01769 g002
Figure 3. Track curve at 4 group speeds: (a) Tracking track curve at 30 km/h; (b) Tracking track curve at 60 km/h; (c) Tracking track curve at 80 km/h; (d) Tracking track curve at 100 km/h.
Figure 3. Track curve at 4 group speeds: (a) Tracking track curve at 30 km/h; (b) Tracking track curve at 60 km/h; (c) Tracking track curve at 80 km/h; (d) Tracking track curve at 100 km/h.
Electronics 14 01769 g003
Figure 4. The curves of yaw Angle change under the speed of 4 groups: (a) Variation curve of yaw Angle at 30 km/h; (b) Variation curve of yaw Angle at 60 km/h; (c) Variation curve of yaw Angle at 80 km/h; (d) Variation curve of yaw Angle at 100 km/h.
Figure 4. The curves of yaw Angle change under the speed of 4 groups: (a) Variation curve of yaw Angle at 30 km/h; (b) Variation curve of yaw Angle at 60 km/h; (c) Variation curve of yaw Angle at 80 km/h; (d) Variation curve of yaw Angle at 100 km/h.
Electronics 14 01769 g004aElectronics 14 01769 g004b
Figure 5. Controller computation time: (a) Calculation time of the controller at 30 km/h; (b) Percentage reduction of calculation time at 30 km/h; (c) Calculation time of the controller at 100 km/h; (d) Percentage reduction of calculation time at 100 km/h.
Figure 5. Controller computation time: (a) Calculation time of the controller at 30 km/h; (b) Percentage reduction of calculation time at 30 km/h; (c) Calculation time of the controller at 100 km/h; (d) Percentage reduction of calculation time at 100 km/h.
Electronics 14 01769 g005
Figure 6. Influence of vehicle speed and prediction horizon on trajectory tracking control effect: (a) Comparison of tracking trajectory simulation results in different prediction horizons (v = 30 km/h); (b) Comparison of simulation results of yaw Angle in different prediction horizons (v = 30 km/h).
Figure 6. Influence of vehicle speed and prediction horizon on trajectory tracking control effect: (a) Comparison of tracking trajectory simulation results in different prediction horizons (v = 30 km/h); (b) Comparison of simulation results of yaw Angle in different prediction horizons (v = 30 km/h).
Electronics 14 01769 g006aElectronics 14 01769 g006b
Figure 7. Influence of vehicle speed and prediction horizon on trajectory tracking control effect: (a) Comparison of tracking trajectory simulation results in different prediction horizons (v = 100 km/h); (b) Comparison of simulation results of yaw Angle in different prediction horizons (v = 100 km/h).
Figure 7. Influence of vehicle speed and prediction horizon on trajectory tracking control effect: (a) Comparison of tracking trajectory simulation results in different prediction horizons (v = 100 km/h); (b) Comparison of simulation results of yaw Angle in different prediction horizons (v = 100 km/h).
Electronics 14 01769 g007
Figure 8. Schematic diagram of the control strategy for real-time optimization of prediction horizon parameters.
Figure 8. Schematic diagram of the control strategy for real-time optimization of prediction horizon parameters.
Electronics 14 01769 g008
Figure 9. (a) Corresponding the prediction horizon Np under different vehicle speeds; (b) Changes in vehicle speed.
Figure 9. (a) Corresponding the prediction horizon Np under different vehicle speeds; (b) Changes in vehicle speed.
Electronics 14 01769 g009
Figure 10. Simulation results under variable speed conditions: (a) Tracking trajectory simulation results under variable speed conditions; (b) Simulation results of yaw Angle under variable speed conditions; (c) Transverse deviation simulation results under variable speed conditions; (d) Simulation results of course deviation under variable speed conditions; (e) Simulation results of yaw velocity under variable speed conditions; (f) Simulation results of centroid side deflection Angle under variable speed conditions.
Figure 10. Simulation results under variable speed conditions: (a) Tracking trajectory simulation results under variable speed conditions; (b) Simulation results of yaw Angle under variable speed conditions; (c) Transverse deviation simulation results under variable speed conditions; (d) Simulation results of course deviation under variable speed conditions; (e) Simulation results of yaw velocity under variable speed conditions; (f) Simulation results of centroid side deflection Angle under variable speed conditions.
Electronics 14 01769 g010aElectronics 14 01769 g010b
Figure 11. The Np variation of the adaptive controller.
Figure 11. The Np variation of the adaptive controller.
Electronics 14 01769 g011
Table 1. Main parameters of vehicle model.
Table 1. Main parameters of vehicle model.
Parameter NameUnitNumerical Value
Sprung masskg1732
Yaw moment of inertia Izkg·m24175
Front wheel side stiffness CfN·rad−1−66,900
Rear wheel side stiffness CrN·rad−1−62,700
Distance a from center of mass to front axism1.232
Distance b from center of mass to rear axism1.468
Table 2. Comparison of calculation time of controllers at 30 km/h.
Table 2. Comparison of calculation time of controllers at 30 km/h.
ParameterThe Improved MPCOrdinary MPC
The maximum computation time of a single time/ms4.296.96
Average computation time/ms2.153.94
Table 3. Comparison of calculation time of controllers at 100 km/h.
Table 3. Comparison of calculation time of controllers at 100 km/h.
ParameterThe Improved MPCOrdinary MPC
The maximum computation time of a single time/ms7.107.27
Average computation time/ms4.084.76
Table 4. Corresponding the prediction horizon Np under different vehicle speeds.
Table 4. Corresponding the prediction horizon Np under different vehicle speeds.
Vehicle Speed (km/h)Prediction Horizon
248
308
6015
8020
10026
10826
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zhu, C.; Wang, K.; Wang, Y.; Li, S. Vehicle Trajectory Adaptive Tracking Control Based on Variable Prediction Horizon. Electronics 2025, 14, 1769. https://doi.org/10.3390/electronics14091769

AMA Style

Zhu C, Wang K, Wang Y, Li S. Vehicle Trajectory Adaptive Tracking Control Based on Variable Prediction Horizon. Electronics. 2025; 14(9):1769. https://doi.org/10.3390/electronics14091769

Chicago/Turabian Style

Zhu, Chuanyun, Kuiyang Wang, Yuyong Wang, and Shihao Li. 2025. "Vehicle Trajectory Adaptive Tracking Control Based on Variable Prediction Horizon" Electronics 14, no. 9: 1769. https://doi.org/10.3390/electronics14091769

APA Style

Zhu, C., Wang, K., Wang, Y., & Li, S. (2025). Vehicle Trajectory Adaptive Tracking Control Based on Variable Prediction Horizon. Electronics, 14(9), 1769. https://doi.org/10.3390/electronics14091769

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop