1. Introduction
Since industry pioneers such as Google, Baidu, and Tesla launched their research projects in self-driving car technologies [
1,
2], autonomous driving has gained escalating interest from both academia and industry during past few years.
Motion control is one of the core technologies in autonomous driving, which is responsible for stably and precisely tracking the reference trajectories. A variety of vehicle motion control techniques have been proposed over recent years, such as Proportional-Integral-Derivative (PID) control [
3], the Stanley method [
4], sliding mode control [
5], Linear Quadratic Regulator (LQR) [
6], Model Predictive Control (MPC) [
7], and data-driven methodologies [
8], etc. Due to the ability to take into account system constraints in an explicit fashion and address multivariable and multi-objective challenges, MPC is extensively utilized among these methods.
Linear model predictive control (LMPC) remains mainstream in existing commercial solutions. However, it encounters inherent limitations such as an inability to incorporate nonlinear constraints [
9]. The impact of nonlinear tire dynamics on trajectory tracking control for autonomous vehicles was studied in [
10]. The nonlinear dynamic characteristics of vehicle drift motion was analyzed in [
11] and a feedback controller was designed to ensure stable and agile vehicle behavior during sharp turns on low adhesion surfaces. A Particle Swarm Optimization-Back Propagation neural network was developed in [
12] to enhance Adaptive Model Predictive Controller for autonomous vehicles, focusing on optimizing trajectory tracking under diverse road conditions through real-time adjustments of the controller parameters and tire lateral stiffness. In [
13], tire-road contact state estimation methods were reviewed and constructive strategies for intelligent tire sensing systems for autonomous vehicles were proposed, focusing on real-time tire-road contact monitoring to improve vehicle dynamics control and advance autonomous driving safety.
Recently, nonlinear model predictive control (NMPC) has gained popularity in the realm of autonomous vehicle motion control due to its proficiency in precisely predicting the dynamics of nonlinear systems. Compared with LMPC, stability and efficiency are primary obstacles impeding the adoption of NMPC in autonomous vehicle systems. This manuscript is dedicated to tackling these two challenges to align with the prerequisites for the operational deployment of NMPC on actual systems [
14].
Both indirect and direct approaches for NMPC involve the transformation of a continuous system into a discrete-time one. The discretization of continuous system is in essence the process of integration. Consequently, numerical integration techniques designed for Ordinary Differential Equations (ODEs) could be utilized in the discretization of continuous systems.
The explicit Euler approach has been extensively employed in MPC-based vehicle motion control studies due to its simple formulation. Falcone et al. [
7] introduced an MPC strategy based on the Euler discretization for controlling vehicular active front steering systems. Similarly, Peng et al. [
15] proposed a hierarchical MPC control scheme for the dynamic wheel torque management in Four-Motor In-Wheel Drive Electric Vehicles (4MIDEV) steering systems, in which the Euler method is engaged for system discretization. Zhao and Xu et al. [
16] implemented the Euler technique for the discretization of their Linear Model Predictive Control (LMPC) scheme, taking into account the energy dissipation due to slippage. Satzger [
17] employed an identical approach within an integrated wheel-slip management and torque blending regulatory strategy. Although the Euler method has simple form, its precision for integration is insufficient. Furthermore, the region within which the Euler method maintains integration stability is rather confined.
The zero-order hold (ZOH) method, as referenced in [
9], is the most attractive discretization method in the context of linear MPC-based studies. It could attain an accurate discretization and ensures stability throughout the discretization process, which means that the outcomes of its integration are in exact correspondence with the state of the continuous system at the discrete temporal intervals. Because of these exceptional properties, the ZOH method finds broad application in vehicle motion control [
18] and is similarly instrumental in the domain of stability control [
19,
20,
21]. However, the ZOH method does not demonstrate equivalent efficacy when applied to nonlinear systems.
The fourth-order Runge–Kutta (RK4) method serves as an alternative discretization technique that is commonly utilized in the context of NMPC-based control strategies. A real-time implementation of NMPC that utilizes the RK4 method for stabilizing a vehicle at its performance limits has been put forward in [
22]. Allamaa and Listov have also incorporated the RK4 method within their Nonlinear Model Predictive Control (NMPC)-based motion control framework for autonomous vehicles [
23]. The torque-vectoring control system proposed by Parra also utilizes the fourth-order Runge–Kutta (RK4) method for discretization within its framework [
24]. While the RK4 method enhances the precision of integration, the enlargement of the stability region is limited.
The stiffness of the ordinary differential equations that correlate to the nonlinear dynamics of vehicles will lead to integration stability problems for vehicle motion control. A common strategy to address the challenge is to utilize a kinematic model as predictive model. Numerous kinematic-based Nonlinear Model Predictive Controls (NMPCs) have been confirmed effective through validation on actual vehicles [
25,
26,
27,
28]. However, relying solely on kinematics within these systems encounters emerging challenges, since kinematics fall short in precisely capturing vehicle dynamics at high speed. When utilizing the dynamics model as the predictive model in motion control systems based on NMPC, a smaller step size was adopted in [
22,
24] during the discretization phase to circumvent the problem of integration stability. However, this approach may introduce the issue of real-time performance. Stability control, due to its shorter prediction horizon, is less affected by real-time issues. Conversely, path following problems in motion control require a much longer prediction horizon and thus the necessity to use a small-time step for discretization inevitably poses challenges to real-time issues. The Runge–Kutta–Chebyshev technique, as employed in [
29], is leveraged to deal with the integration stability problem by broadening the region of stability in the direction of the negative real axis, yet the stable zone remains restricted.
It is evident from the existing literature that the main challenge for vehicle motion control based on NMPC lies in the delicate balance between efficiency and stability. To address this challenge, it is imperative to utilize a smaller step size during the discretization of continuous systems within the NMPC problem-solving process. Moreover, path following control necessitates the adoption of a long prediction horizon. Consequently, this leads to an escalation in the dimension of the resulting optimization problem, which in turn increases the computational burden. This paper aims to develop an NMPC controller tailored for autonomous vehicle motion control, enabling the efficient tackling of the integration stability problem while maintaining the computational efficiency.
The main contributions of this paper are as follows: (1) the stability condition and corresponding stability region for both the Euler method and the explicit RK4 method were analyzed in theory to reveal the existing integration stability issue for autonomous vehicle motion control systems that utilize NMPC. (2) The stability region of the orthogonal collocation method was evaluated in comparison with those of the Euler method and the explicit RK4 method. Furthermore, an NMPC controller based on the orthogonal collocation method was designed. (3) The proposed NMPC controller was compared with controllers based on the explicit Euler method and RK4 method to demonstrate its superior effectiveness in addressing the integration stability problem without compromising computational efficiency.
2. Vehicle Dynamics
In this section, vehicle dynamics and the characteristics of the tires are described in detail to facilitate the simulation and the formulation of control strategies. As depicted in
Figure 1, a simplified bicycle model for vehicle dynamics comprising five system states was established, which was achieved by aggregating the two front and two rear wheels at the geometric center of their respective axles. This model primarily considers lateral and yaw movements, with the assumption that the velocity in the longitudinal direction remains unchanged. The model utilized was formulated based on the following hypotheses: (i) the vehicle travels on a uniformly flat surface, (ii) the Ackermann steering relation is ignored and the difference in wheel angles between the left and right sides is not taken into account, (iii) the load transfer due to pitching and compliance of the suspension can be negligible. The resulting model was characterized by a set of differential equations, which are formulated as follows:
where
denotes the mass of the vehicle,
signifies the moment of inertia around the vertical
axis, and
and
are the distances from the center of gravity (CoG) to the front and rear wheels, respectively. The state vector
x is composed of the coordinates of the center of gravity (COG), denoted as
X and
Y, the orientation angle of the vehicle with respect to the inertial reference frame
, the lateral velocity of the vehicle at the COG
, and the yaw rate
r. The control input, denoted as
, is the steering angle of the front wheels. As a result, the dynamics of the continuous-time vehicle system can be expressed in a condensed form
.
The tire forces play a pivotal role in the interaction between the automobile and the pavement, acting as the primary external influences on the vehicle’s maneuverability with the exception of aerodynamic forces. The pronounced nonlinear characteristics in vehicle dynamics, particularly at high speeds, are predominantly manifested through the complex behavior of tire forces. In this study, the Dugoff tire model [
30] was employed to characterize the tire-road contact forces and the lateral tire forces could be expressed as:
where
signifies the nominal vertical load exerted on the tire (3),
represents the tire sideslip angle (4),
denotes the lateral stiffness coefficient (5), and
symbolizes the friction coefficient between tire and the road surface.
The related vehicle and tire parameters are shown in
Table 1, which will be used in the subsequent sections.
3. NMPC Formulation
This section begins with a detailed description of the general formulation for an optimal control problem. Subsequently, the specific design methodology for autonomous driving trajectory tracking based on nonlinear model predictive control (NMPC) is introduced. Finally, this section provides a theoretical analysis of the integral stability issues inherent in motion control problems based on NMPC.
3.1. Nonlinear Optimal Control Problem Formulation
Nonlinear Model Predictive Control (NMPC) involves the iterative solution of an online Nonlinear Optimal Control Problem (NOCP), taking into account the predicted future dynamics of the system. This prediction is facilitated by a high-fidelity model, which is essential for maintaining the system output in accordance with reference trajectories. The NMPC approach yields a feasible control law by minimizing a pre-designed cost function, subject to a suite of constraints. The general formulation of an NOCP can be articulated as follows:
where,
t denotes time, with
t0 and
tf representing the initial and final time instances, respectively. The state variable vector is represented by
, the control variable vector by
and the initial state vector by
. The performance index, denoted by
J, encompasses both the Mayer term
and the Lagrange term
. Additionally,
signifies the state constraints, and
represent the lower and upper bounds on the control variables, respectively.
3.2. Path Tracking Control Strategy
The objective of path tracking control for autonomous vehicles is to ensure that the vehicle adheres precisely to a predefined reference trajectory, characterized by the heading angle
and the lateral displacement
Y. In
Section 2, state variables are defined as
and control variable is designated as the front steering angle
. The output map, represented by
p, serves as the functional relationship that projects the state vector
x onto the observable outputs.
where
, encapsulating lateral displacement
Y and the yaw angle
.
Then, the objective function, which takes into account the reference signal
could be expressed as follows.
where
are weights assigned to lateral error. The matrix
R signifies the weight attributed to the control increment, the term
denotes the relaxation factor, which is crucial for the optimization process and
serves as the weight factor for the slack variable, ensuring the robustness of the solution.
The objective function is composed of several terms, each serving a distinct purpose. The first term encapsulates the sum of the squares of the lateral displacement error and the heading error, quantifying the system’s deviation from the reference path during tracking. The second term, which is the sum of the squares of the control increment quantities, emphasizes the need to minimize control increments under normal conditions to prevent abrupt maneuvers. The third term introduces slack variables to ensure that the solvability of the optimization problem.
Within the domain of vehicular control systems, it is essential to impose constraints on the control quantities to guarantee the operational integrity and safety of the vehicle. As previously discussed, the control input for the vehicle is selected to be the front wheel steering angle, denoted by
. Taking into account the mechanical properties of the steering system, it is imperative that the variation in the front wheel steering angle is kept within reasonable limits. Consequently, the permissible range of the front wheel steering angle and the increment of this angle are both subject to constraints.
3.3. Integration Stability Analysis
Whether employing direct or indirect optimal control techniques, the process of discretizing a dynamic system relies heavily on the application of integrators. Consequently, the stability of these integrators is critical for guaranteeing the reliability and precision of the resulting control strategies. An integrator that exhibits instability is incapable of providing accurate predictions regarding the system’s future state, thereby compromising the tracking accuracy. Furthermore, the stability of the entire closed-loop system is also jeopardized. Drawing upon the principles of integration stability theory, this analysis delves into the integration stability issues encountered in the lateral motion control of vehicles.
As previously outlined, vehicle dynamics represented by ordinary differential equations (ODEs) are included in NMPC-based vehicle motion control problems. The stiffness inherent in these ODE-formulated vehicle dynamics equations exerts a significant influence on the integration stability of the control system when solving NMPC problems. To further the understanding of this stiffness, a rigorous analysis leveraging the Dahlquist test equation [
31] is hereby presented.
when any single-step integrator is substituted into the above equation, the resulting discrete relationship is derived as follows,
where
h denotes the integration step size. Set
, the stability function could be represented by
. While the Dahlquist test equations are inherently formulated as linear systems, their significance extends to the analysis of general nonlinear systems as well. This is because nonlinear systems
could be linearized around specific state
. The Jacobian matrix for resulting linearized systems could be further converted to diagonal or Jordan form. Consequently, the parameters
in Dahlquist test equations correspond directly to the eigenvalues of the system’s characteristic matrix, which in turn determine the stability properties of the numerical integration method.
Subsequently, the integration stability condition for the numerical integration methods is introduced.
Theorem 1 ([
31])
. The numerical integration method is stable if any eigenvalue of Jacobian matrix of the system satisfies |R(z)| ≤ 1. In conjunction with Equation (11), the following relationship needs to be satisfied in order to avoid
divergence.
When employing the explicit Euler method to discretize continuous systems which utilizes the forward difference to approximate the derivative, the following equation can be derived.
Thus, the stability function associated with the explicit Euler method is given by .
While explicit Runge–Kutta methods of the same order may exhibit variations in their specific computational procedures, they are characterized by having identical stability functions. The stability function for the explicit Runge–Kutta method of order
is presented as follows:
As demonstrated in proceeding analyses, stability functions of numerical integrators are related to both the eigenvalues of systems’ Jacobian Matrices and the integration step size.
For specific vehicle motion control problem based on NMPC, the Jacobian matrix corresponding to vehicle dynamics state equations is,
where
,
,
,
,
.
The Jacobian matrix of the state equations possesses two distinct nonzero eigenvalues, which are
Further analysis of Equation (16) indicates that the eigenvalues are correlated with the vehicle’s speed and the cornering stiffness of the tires. The eigenvalues, as indicated by their relationship, increase with lower vehicle speeds and higher tire stiffnesses.
Figure 2 illustrates the spectral Radii of the vehicle dynamics model at a vehicle speed of 1 m/s and 0.2 m/s, indicating the maximum eigenvalue magnitude of the Jacobian matrix associated with the state equation. This spectral radius is an indication of change rates for the corresponding system states, which confers a stiff nature upon the system.
To maintain integration stability, it is necessary to set limits on the length of integration step size referring to the stability condition and the limits vary for different integration method. As depicted in
Figure 2, the spectral radius exceeds 180 at a vehicle speed of 1 m/s when the tire stiffness exceeds 150,000 N/m. When employing the explicit Euler method, the integration step size must be constrained to a maximum of 11 milliseconds to ensure that the stability function of the method complies with the criteria established in Equation (12). Similarly, when utilizing the explicit fourth-order Runge–Kutta method, the step size must not surpass 16 milliseconds to maintain the method’s stability criteria. That is, a relatively small integration step size is imperative to ensure the stability of the numerical integration process, which inevitably increase the online computing burden and can degrade the system’s real-time performance.
5. Simulation and Discussions
In this section, the efficacy of the proposed control algorithm is rigorously evaluated within the CarSim/Simulink co-simulation environment, under the U-Turn maneuvers at different vehicle speeds. The open-source optimization framework CasADi is utilized to address the optimization problem [
35]. For the sake of clarity in illustration, controllers that implement the control algorithm introduced in this study are designated as OCFE controllers. Controllers discretized based on the Euler discretization method are categorized as Euler controllers, while those founded on the fourth-order Runge–Kutta method are identified as RK4 controllers.
5.1. Simulation of Low-Speed U-Turn Maneuver
The U-turn reference path is defined by the following equations:
where
,
,
represent the position and heading angle of the reference path in global coordinate frame, respectively.
Under the low-speed condition specified, the vehicle’s longitudinal driving speed is set to . The road surface adhesion coefficient is denoted by . Initially, the vehicle travels in a straight line for a distance of 5 m before commencing a U-Turn maneuver with a designated turning radius .
Figure 5 shows the trajectory tracking results of the OCFE controller, Euler controller, and RK controller. Specifically, OCFE-T1 denotes the trajectory traced by the controller employing the OCFE discretization method at a discrete time step of
. The trajectories Euler-T1 and Euler-T2 correspond to the tracking performance of the controller utilizing the forward Euler discretization method at discrete time steps
and
, respectively, where
. Moreover, RK4-T3 signifies the tracking result of the controller based on the fourth-order Runge–Kutta discretization method with a discrete time step of
.
It can be seen from the figure that when the discrete time step is large (
), the controller Euler-T1 based on the forward Euler discrete method fails to completely track the given reference trajectory. Upon entering the turning part, the Euler-T1 controller struggles due to the problem of low-speed integral stability. Specifically, the state variations of the vehicle’s lateral and yaw speed of the vehicle characterized by large integral stiffness are ignored under large discrete time steps, leading to an inability to effectively manage the vehicle’s steering. Consequently, the tracking error accumulates, ultimately resulting in a complete divergence from the reference trajectory. In contrast, when the discrete time step is reduced to
, the Euler-T2 controller demonstrates the capacity to guide the vehicle in accurately following the reference trajectory. This simulation-based validation further verified the theoretical discrete stability analysis detailed in
Section 3. Specifically, under the predefined vehicle parameter conditions, a vehicle speed of 1 m/s requires a discrete time step of 0.01 s or smaller to guarantee the discrete stability when employing the Euler discretization method.
The fourth-order Runge–Kutta discretization method also faces a comparable challenge. When subjected to large discrete time steps, it is unable to accurately capture the state changes in vehicle lateral speed and yaw velocity, thereby hindering the vehicle’s ability to track the prescribed U-shaped reference trajectory. By reducing the discrete time step to , the RK4-T3 controller is capable of executing the vehicle trajectory tracking task effectively while circumventing the integral stability issues during the discretization process with a smaller time step.
In contrast to the traditional Euler discretization method and the fourth-order Runge–Kutta (RK4) discretization method, the OCFE-T1 controller demonstrates the ability to effectively track the reference trajectory even when the discrete time step is . This indicates that the NMPC trajectory tracking control algorithm based on the OCFE discretization proposed in this study exhibits resilience against the challenges posed by low-speed integral stability. The stability remains preserved even under the condition of employing a large discrete time step.
From the foregoing analysis, it is evident that the OCFE-T1, Euler-T2, and RK4-T3 control methods are capable of ensuring integral stability within the numerical solutions of NMPC. The computational time required for their single-step iterative processes is depicted in
Figure 6. This depiction illustrates the performance of the entire computation process, which was conducted on a personal laptop equipped with an Intel Core i5-9400 processor running at 2.9 GHz.
As illustrated in the
Figure 6, the OCFE-T1 controller demonstrates a significant reduction in calculation, which is attributed to the increase in the discretization step length. The average computation time for the OCFE-T1 controller is recorded at 0.013 s, marking a reduction of 23.5% and 35% relative to the Euler-T2 controller’s 0.017 s and the RK4-T3 controller’s 0.02 s, respectively. This enhancement in computation time consequently bolsters the real-time performance.
Due to the vehicle’s low longitudinal speed, all three controllers are capable of guiding the vehicle to more accurately track the reference trajectory when an appropriate discrete time step is selected. The quantization results for lateral tacking errors are presented in
Table 2. It is observed that selecting a larger integration step does not adversely affect the tracking performance of the orthogonal collocation controller. The maximum lateral tracking error for the three controllers is less than 0.11 m, indicating high tracking accuracy. Among them, the orthogonal collocation controller demonstrates the highest level of control precision.
5.2. Simulation of High-Speed U-Turn Maneuver
The conditions for high-speed U-Turn maneuvers are defined as follows: road adhesion coefficient is , and the vehicle’s longitudinal speed is . The geometric configuration of reference path is similar to that of the low-speed U-Turn condition, where it first travels 40 m along a straight path before initiating the U-Turn with a steering radius of . The reference track for the U-Turn under high-speed conditions is obtained by substituting the appropriate parameters of the described trajectory into Equation (26).
The preceding analysis in
Section 3 indicates that vehicle dynamics model equations transition to a non-stiff form with the increase in the vehicle’s longitudinal driving speed. Consequently, the constraints on the discrete-time step inherent in traditional discrete-time methods within the NMPC solution process are alleviated. In this condition,
Figure 7 presents the simulation results for the OCFE, RK4, and Euler controllers. As depicted in the figure, under the condition of a discrete time step of
, all three controllers are capable of successfully executing the tracking task for the reference U-shaped trajectory.
The yaw angle errors exhibited by the three controllers are closely comparable. The average course angle errors for the OCFE, RK4, and Euler controllers are recorded as 0.0051 rad, 0.0049 rad, and 0.0051 rad, respectively. Moreover, the absolute value of the maximum yaw angle error does not exceed 0.04 rad. Regarding lateral tracking error, the OCFE and RK4 controllers demonstrate average errors of 0.0451 m and 0.0479 m, respectively, with maximum errors reaching 0.1719 m and 0.1915 m, respectively. The OCFE controller exhibits enhanced precision in comparison to the RK4 controller. As depicted in the lateral error distribution
Figure 7b, these two statistical indicators for the OCFE controller are significantly superior to those of the Euler discrete controller. Specifically, the average tracking error of the OCFE controller is 24.45% lower than that of the Euler controller, which is 0.0597 m. Additionally, the maximum lateral error is reduced by 27.19% in comparison to the Euler controller’s error of 0.2361 m. Therefore, the proposed OCFE-based NMPC controller shows higher accuracy compared to traditional controller while ensuring stability.