Next Article in Journal
Enhanced Unmanned Surface Vehicle Path Planning Based on the Pair Barracuda Swarm Optimization Algorithm: Implementation and Performance in Thousand Island Lake
Previous Article in Journal
Three-Dimensional Numerical Modeling of Local Scour Around Bridge Foundations Based on an Improved Wall Shear Stress Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

The Path Tracking Control of Unmanned Surface Vehicles Based on an Improved Non-Dominated Sorting Genetic Algorithm II-Based Multi-Objective Nonlinear Model Predictive Control Method

College of Intelligent Systems Science and Engineering, Harbin Engineering University, Harbin 150001, China
*
Author to whom correspondence should be addressed.
J. Mar. Sci. Eng. 2024, 12(12), 2188; https://doi.org/10.3390/jmse12122188
Submission received: 7 November 2024 / Revised: 24 November 2024 / Accepted: 27 November 2024 / Published: 29 November 2024
(This article belongs to the Section Ocean Engineering)

Abstract

This paper proposes a multi-objective nonlinear model predictive control (MOMPC) method based on an improved non-dominated sorting genetic algorithm II (NSGAII) for the path tracking problem of unmanned surface vehicles (USVs). To enhance performance in cross-track error, a varying look-ahead distance is utilized in the line of sight (LOS) algorithm, which allows the MPC control algorithm to compute the look-ahead distance and desired speed rather than directly calculating the control input. Since the cost function of the MPC algorithm includes multiple objective terms, a multi-objective model predictive control algorithm is employed to improve overall control performance. Additionally, an adaptive rotation-based simulated binary crossover (ARSBX) is integrated into the NSGAII algorithm, and the non-dominated sorting method is optimized to reduce computation time. These enhancements increase diversity and exploration in the solution space, enabling the algorithm to find the optimal solution more efficiently. Simulations conducted in two different scenarios demonstrate that the nonlinear MPC method based on the improved NSGAII successfully tracks the desired path; it achieved an improvement of approximately 41% in time performance and about 5% in path-tracking error performance, exhibiting strong control performance and robustness.

1. Introduction

With the development of global intelligent technology, unmanned systems have rapidly advanced and gained significant attention from both the technical field and commercial market. In recent years, the application and research of unmanned ships have received increasing attention [1,2]. However, the development of unmanned ship technology, as an important application of unmanned systems, remains relatively lagging, though it holds immense potential. Unmanned surface vehicles (USVs) are small surface platforms equipped with autonomous navigation capabilities, enabling them to independently carry out tasks such as environmental sensing and target detection [3,4].
Autonomous path tracking for unmanned surface vehicles (USVs) is essential for completing their missions. Depending on the ship model, different control methods are used, and the model can be simplified based on the characteristics of the tracked path [5,6,7]. Intelligent ship motion control typically addresses three main problems: target tracking, trajectory tracking, and path tracking [8]. This paper focuses on path tracking, where the goal is to follow a time-independent geometric path. Unlike trajectory tracking, which has strict timing requirements, path tracking allows for smoother convergence to the desired path and is less prone to controller saturation, making it ideal for tasks where timing is less critical [9].
In the field of trajectory tracking control for unmanned vessels, various control algorithms have been implemented, such as PID control [10], active disturbance rejection control (ADRC), and sliding mode control (SMC). PID control achieves target tracking through its proportional, integral, and derivative components. Liu, Y. et al. proposed an improved nonlinear control algorithm rooted in sliding mode control theory to address trajectory tracking challenges for underactuated vessels with static constraints. Through the integration of a straightforward incremental feedback control law, they developed a dynamic control strategy aimed at achieving both tracking and stabilization for underactuated systems. Simulations and theoretical analysis conducted on a training ship validated the proposed controller’s stability and robustness [11]. Yang Z. et al. presented a trajectory control method based on the active disturbance rejection control algorithm, with simulation results demonstrating that this approach effectively meets track control requirements and allows for rapid stabilization of the heading. However, these methods lack the capability for dynamic optimization of future behavior, making it difficult to respond effectively to dynamic changes in the system, and they are not flexible enough in handling constraints, often leading to violations of the limits [12].
Artificial neural networks (ANNs) have garnered significant attention as a robust control method. When compared to traditional control techniques, artificial neural networks demonstrate superior adaptability and control efficacy [13,14]. Sun, W. et al. proposed a dual neural network approach for USV trajectory tracking, where one deep neural network (DNN) evaluates the navigation performance of the unmanned surface vehicle, and the other DNN estimates the cross-track error for the guidance law. Experimental results indicate that this approach achieves improvements in trajectory tracking error performance to varying degrees [15]. Sun, W. et al. developed two deep neural network (DNN) models, one for real-time evaluation of navigation performance and the other for estimating guidance law parameters. The two DNNs are integrated in parallel with the unmanned surface vehicle’s control loop to provide predictive supervision and assist decision-making for traditional control methods [16]. Zhang, G. et al. proposed a practical adaptive neural control algorithm using dynamic surface control techniques, neural network approximation, and polar coordinates. The developed neural controller can effectively account for vehicle uncertainties without requiring precise information about the hydrodynamic damping structure and external sea disturbances. Although using neural networks as control algorithms performs well, training these models requires significant resources, and obtaining data for practical applications can be challenging [17].
Model predictive control (MPC) effectively predicts system behavior by optimizing the control inputs over a future time horizon, thereby providing the optimal input at the current moment, which enhances trajectory tracking accuracy and better accommodates system constraints [18,19]. Compared to control methods utilizing artificial neural networks, MPC requires fewer resources and offers higher computational efficiency [20,21]. Dong, Z. et al. designed a controller for ship path tracking based on MPC, investigating the boundary of environmental disturbances within which the MPC controller can maintain acceptable accuracy [22]. Similarly, Zhou, X. et al. developed a course tracking controller based on MPC, demonstrating that the designed heading tracking control algorithm accurately follows waypoints and can withstand certain levels of environmental disturbances [23].
In this paper, while considering trajectory tracking error, the control of USV velocity is also taken into account. Employing a single-objective optimization algorithm may not effectively balance these two objectives simultaneously. Based on the analysis presented, this paper proposes a multi-objective model predictive control method based on an improved NSGAII algorithm for path tracking. The main contributions are as follows:
  • To enhance the trajectory tracking performance of unmanned surface vessels (USVs), this paper employs a time-varying look-ahead distance, treating it alongside the desired velocity and acceleration as parameters to be calculated within the MPC algorithm;
  • Given that the cost function of the MPC algorithm comprises multiple objective terms that may conflict with one another, a single-objective optimization approach could lead to a decline in the performance of other metrics. Therefore, this paper utilizes a multi-objective MPC algorithm, enabling comprehensive consideration of multiple performance indicators through multi-objective optimization, thereby identifying the optimal balance among the various objectives;
  • This paper adopts an improved NSGAII algorithm within the multi-objective MPC framework, incorporating an adaptive rotation-based simulated binary crossover operation to enhance diversity and convergence. Additionally, the method of non-dominated sorting has been refined. These improvements help to prevent premature convergence while also reducing computational time.

2. Mathematical Modeling

2.1. Models Used to Simulate the Vessel

The simulation model used in this paper can be found in [24]. The ship dynamics model mainly describes the ship’s motion behavior under the action of external forces, including the balance of force and moment [25], as well as the resulting changes in acceleration, velocity, and position. By considering the effects of external forces (such as thrust, drag, and wave forces) on the ship’s hull, the dynamic model can predict the ship’s motion response. This model is typically based on the Newton–Euler equations, deriving the ship’s equations of motion by relating external forces and moments to the ship’s mass and inertia.
In this formula, translational motion corresponds to surge, sway, and heave, which includes the position of the ship x ,     y and the linear velocity u ,   v along the direction of the position. The rotational motion corresponds to the yaw angle ψ , which is the attitude angle of the ship and the angular velocity r in the direction of the attitude angle.
M = M R B + M A M R B = m 0 0 0 m m Χ g 0 m Χ g I z M A = X u ˙ 0 0 0 Y v ˙ Y r ˙ 0 N v ˙ N r ˙
C υ = C R B υ + C A υ C A ( v ) = 0 0 Y v ˙ v 1 2 ( Y r ˙ + N v ˙ ) r 0 0 X u ˙ u Y v ˙ v + 1 2 ( Y r ˙ + N v ˙ ) r X u ˙ u 0 C R B ( v ) = 0 0 m ( Χ g r + v ) 0 0 m u m ( Χ g r + v ) m u 0
M υ ˙ + C υ υ + D υ υ = τ
M = m 11 0 0 0 m 22 m 23 0 m 32 m 33 = m X u ˙ 0 0 0 m Y u ˙ Y r ˙ 0 N v ˙ I z N r ˙ C υ = 0 0 m 22 v m 23 r 0 0 m 11 u m 22 v + m 23 r m 11 u 0 D υ = d 11 0 0 0 d 22 d 23 0 d 32 d 33 = X u 0 0 0 Y v Y r 0 N v N r
M ,   C υ ,   D υ ,   υ ,   τ w ,   τ all represent six degrees of freedom matrices or vectors, where M is a positive definite matrix with M = M T . C υ = C T υ , υ = u v r T . For underactuated ships, due to the lack of lateral propulsion devices, the control force τ is given by:
τ = [ τ u   N δ δ   Y δ δ ] T
where δ is the control input for yaw. The specific expressions are provided in Section 3.2.1. The parameters N δ and Y δ are key factors that determine the maneuverability and hydrodynamic response of the ship. N δ primarily affects the ship’s steering capability and yaw dynamics, while Y δ influences the lateral force, playing a role in drift and contributing to trajectory correction. The higher the ratio N δ Y δ , the stronger the steering ability of the USV, but it may weaken the lateral stability.

2.2. Models Used for Predictions

The unactuated sway dynamics are influenced by the rudder through F ( δ ) , which introduces complexity to the model. To eliminate this effect on the sway dynamics, a coordinate transformation proposed by [26] can be applied. To simplify the cascaded control design, we introduce several coordinate transformations. Initially, we translate the desired equilibrium point to the origin. Specifically, we convert the surge velocity into the surge deviation, which is expressed as follows:
u ¯ = u u d
x ¯ = x + ε cos ψ
y ¯ = y + ε sin ψ
v ¯ = v + ε r
where,
ε = m 33 Y δ m 23 N δ m 22 N δ m 23 Y δ
This involves shifting the origin along the x-axis of the body-fixed coordinate system to the point where the rudder generates only a rotational moment without producing any sway force. The equations of the transformed system are then given by:
Γ = m 22 m 33 m 23 2 > 0
y ¯ ˙ = sin ( ψ ) ( u ¯ + u d ) + cos ( ψ ) v ¯
ψ ˙ = r
v ¯ ˙ = v ˙ + ε r ˙
r ˙ = δ Γ ( m 22 N δ m 23 Y δ ) + Ω r + F v ¯
u ¯ ˙ = 1 m 11 ( τ u + ( m 22 v + m 23 r ) r d 11 u )
Ω = ( m 23 m 11 ( u ¯ + u d ) + m 22 2 ( u ¯ + u d ) ε m 23 d 22 ε + m 23 d 23 m 22 m 11 ( u ¯ + u d ) ε m 22 m 23 ( u ¯ + u d ) m 22 d 33 + m 22 d 32 ε )
F = 1 Γ ( m 23 d 22 m 22 2 ( u ¯ + u d ) m 22 d 32 + m 22 m 11 ( u ¯ + u d ) )

3. Path Tracking

3.1. LOS

The line of sight (LOS) algorithm is a simple and effective guidance method widely used in fields such as missiles, unmanned ships, and unmanned vehicles [27]. Its goal is to calculate the desired heading angle of the ship by combining the desired path points and current position information, as shown in Figure 1. In the application within the maritime field, by keeping the ship’s heading aligned with the LOS angle and maintaining control for a period of time, the ship can accurately track the desired path.
The cross-track error e , desired heading ψ d , and look-ahead distance Δ can be found in Figure 2a, where x ,   y represents the Cartesian coordinates in the inertial reference frame, and x b ,   y b represents the Cartesian coordinates in the body-fixed reference frame. If the coordinate system is rotated by an angle θ around the z-axis to align the x-axis with the path, the expression for the cross-track error e will be simplified. Figure 2b shows the rotated coordinate system and the new definitions of e and ψ d . The desired heading ψ d and cross-track error e are now defined as follows:
ψ d = a r c t a n ( e Δ )
e = y D y
e ˙ = y ˙ = u sin ψ + v cos ψ
w h e r e : D ˙ y = 0 , s i n c e   D y   i s   c o n s t a n t .
In this paper, a time-varying look-ahead distance Δ is utilized to achieve better control performance during trajectory changes.

3.2. Controller

3.2.1. MPC

The design of the controller is based on the MPC concept, establishing a nonlinear predictive model and introducing an improved NSGAII algorithm. The controller solves the constrained optimization problem online at each time step to obtain the optimal control sequence, applying the first control component to the unmanned surface vehicle (USV) system [28,29], meanwhile rolling the prediction horizon forward to predict future possible states [30]. The MPC path tracking control block diagram is shown in Figure 3.
First, the waypoints and their corresponding reference trajectories are defined:
Y ref = [ x ref ,   y ref · ψ ref ]
The control algorithm used in this paper does not compute control inputs but rather calculates parameters related to the look-ahead distance, as well as the reference velocity and acceleration. A larger look-ahead distance value will result in a slower reduction of cross-track error, and if used in a constant look-ahead distance LOS algorithm, it will lead to little or no overshoot. On the other hand, a smaller look-ahead distance value will cause the cross-track error to decrease more quickly but will result in a larger overshoot [31]. Therefore, this paper utilizes a varying look-ahead distance to achieve more accurate tracking of the desired path.
The MPC algorithm is allowed to adjust the desired velocity of the USV. When the vessel is far from the desired path, the desired velocity can be increased to help the USV quickly converge to the expected trajectory. Conversely, when the vessel is closer to the path, the desired velocity remains fixed, allowing the USV to maintain a relatively stable surge velocity during trajectory tracking. The influence of the look-ahead distance on the USV’s velocity can be found in n the following equation, which is used to form the system equation for prediction.
ψ d = a r c t a n ( y ¯ Δ )
r d = ψ ˙ d = Δ y ¯ ˙ Δ 2 + y ¯ 2
z 1 = ψ ψ d
z 2 = z ˙ 1 = r r d
r ˙ d = 2 Δ y ¯ ( y ¯ ˙ ) 2 ( Δ 2 + y ¯ 2 ) 2 Δ y ¯ ¨ Δ 2 + y ¯ 2
τ u = ( m 22 v + m 23 r ) r + d 11 u m 11 k u u ¯
δ = Γ ( m 22 N δ m 23 Y δ ) ( Ω r F v ¯ + 2 Δ y ¯ ( y ¯ ˙ ) 2 ( Δ 2 + y ¯ 2 ) 2 Δ y ¯ ¨ Δ 2 + y ¯ 2 k 1 z 2 k 0 z 1 )
y ˙ = sin ( ψ ) ( u ¯ + u d ) + cos ( ψ ) v
k 0 , k 1 , and k u are the control parameters which are provided in the experimental results section. In the control process, a well-defined loss function is essential for calculating the current state error. This allows the system to follow the predefined trajectory, minimize the error, and optimize the control strategy. The state error is defined as follows:
X e ( ι κ ) = X e ( ι κ   |   ι κ ) X e ( ι κ + 1   |   ι κ ) X e ( ι κ + H u   |   ι κ ) X e ( ι κ + H p 1   |   ι κ ) U e ( ι κ ) = U e ( ι κ   |   ι κ ) U e ( ι κ + 1   |   ι κ ) U e ( ι κ + H u   |   ι κ )
where H u and H p control the control and prediction horizons, respectively; X e ( ι κ + 1   |   ι κ ) represents the trajectory error at the next time step, and U e ( ι κ + 1   |   ι κ ) denotes the predicted ship control variables at the next time step. The cost function includes a term aimed at reducing rapid changes in the expected heave velocity.
To enhance the performance of the USV in cross-track error, the following cost function is constructed:
i = k k + H p k y y i 2 + k u ¯ d u ¯ d , i 2 + k u ˙ d u ˙ d , i 2
When the linear time-varying model is used, the cost function takes the form:
J ( ι κ ) = i = 0 H p X e ( ι κ + i   |   ι κ ) T Q X e ( ι κ + i   |   ι κ ) + i = 0 H u Δ U T R Δ U + i = 0 H u U e T S U e
Due to the potential suboptimality of various factors in single-objective optimization, this paper employs the NSGAII algorithm and splits the cost function into a bi-objective problem. The two objective functions are split as follows:
J 1 ( ι κ ) = i = 0 H p X e ( ι κ + i   |   ι κ ) T Q X e ( ι κ + i   |   ι κ )
J 2 ( ι κ ) = i = 0 H u Δ U T R Δ U + i = 0 H u U e T S U e
In Formula (30), Q , R , and S are weight matrices, corresponding to the path error, velocity error, and acceleration error, respectively. To stabilize the navigation speed of the USV, this paper increases the weight of speed control in the objective function without compromising control accuracy. In the objective function, the first objective represents the tracking error, while the second objective corresponds to speed control, which is the control effort. In terms of weight design, since a multi-objective optimization algorithm is employed, the Pareto sorting method in the algorithm directly obtains trade-off solutions for multiple objectives by comparing the dominance relationships of solutions, thereby relatively reducing the overall impact of the weights.

3.2.2. Constraints

The constraints of the control algorithm should be expressed in terms of changes in input variables. Additionally, a constraint is introduced to prevent the look-ahead distance from becoming too large when the vessel attempts to avoid overshooting. This constraint is added because an excessively large look-ahead distance will reduce reaction time when it becomes necessary to reduce the distance again. It also prevents excessive velocity from causing large cross-track errors during trajectory changes. The controller input is expressed as:
G = g 1 , i g 2 , i g 3 , i g 4 , i g 5 , i
Δ m i n < g 1 < Δ m a x
u d , m i n < g 4 < u d , m a x
g 2 ( t ) = Δ ˙ ( t )
g 3 ( t ) = Δ ¨ ( t )
g 5 ( t ) = u ˙ d ( t )
Δ m i n ,   Δ m a x represent the lower and upper bounds of the look-ahead distance, while u d , m i n ,   u d , m a x denote the lower and upper limits of the surge velocity.

3.2.3. NSGAII

NSGAII is a genetic algorithm designed to solve multi-objective optimization problems [32]. NSGAII is an improvement of the original NSGA, primarily addressing the shortcomings of NSGA in terms of computational complexity and diversity [33]. These enhancements make NSGAII more suitable for solving complex multi-objective optimization problems [34]. Incorporating the ARSBX algorithm into NSGAII can enhance the exploration capability and diversity of the algorithm. ARSBX combines adaptive rotation and simulated binary crossover (SBX) techniques to improve the performance of multi-objective evolutionary algorithms, particularly on rotated problems where the Pareto sets are not aligned with the decision variables [35]. The specific process is illustrated in Figure 4.
The main steps of the improved non-dominated sorting method in the improved NSGAII algorithm are as follows: In a minimization problem, this method first arranges the solutions in the population P in ascending order based on the first objective value, where N represents the population size. If two solutions have the same value for the first objective, they are then sorted by the second objective value. This process continues until all individuals in the population are fully sorted. For solutions with identical values across all objectives, their order can be assigned arbitrarily. Once the sorting of individuals in population P is complete, the algorithm begins assigning solutions to the different fronts of the sorted population sequentially. Since a solution in the sorted population cannot be dominated by any solution that follows it, determining the front of each solution only requires comparison with those solutions already assigned to a front. This reduces the computational effort needed to place each solution in the correct front.
  • Initialize population P , mean vector m , and rotation matrix V . Generate an initial population with population size N . For each individual x i in the population, calculate the objective function values f x i . For multi-objective optimization, there will be multiple objectives.
  • Non-dominated sorting and parent selection. Perform non-dominated sorting to divide the population into fronts and compute crowding distance for each individual to ensure diversity in the population. Select individuals from the current population to serve as parents for crossover.
  • Integrating ARSBX crossover and mutation. Select N / 2 pairs of parents for crossover and use ARSBX to generate offspring. Decide whether to use the rotation matrix based on probability p s ; if r a n d < p s , use the identity matrix and zero mean vector:
    V = I ,   m = 0
Otherwise, compute the rotation matrix and mean vector based on the current population:
m = 1 N i = 1 N x i
C v i = λ i v i
where,
C i , j = k = 1 D ( x i , k m k ) ( x j , k m k ) N 1
Apply the rotation matrix and mean vector to transform parent solutions into a rotated coordinate system.
P rotated = V ( P ( g ) m )
Perform simulated binary crossover (SBX) on the transformed individuals to generate offspring q .
q i = 0.5 × ( 1 + β q ) p rotated , i ( 1 ) + ( 1 β q ) p rotated , i ( 2 )
where β q is a parameter that controls the crossover distribution. Then, transform the offspring back to the original coordinate space.
q original = V 1 q + m
Add the newly generated offspring to the offspring population Q .
Q = Q { q original }
  • NSGA selection and sorting remain unchanged. Merge the parent population and offspring population:
    P ( g + 1 ) = P ( g ) Q
Perform non-dominated sorting on the merged population and use crowding distance to select the top N individuals for the next generation. According to the new population, the rotation matrix and mean vector are updated according to Formulas (35) and (36). Update the probability p s based on the change in the objective function values.
p s = p s exp ( γ Δ f )
where γ is a learning rate and Δ f is the difference in the objective function values.
  • Repeat the above steps until the maximum generation is reached or another stopping criterion is satisfied.

3.2.4. Stability

This paper proposes an intelligent predictive control method that incorporates terminal constraints within the finite horizon rolling optimization process [36]. The improved NSGAII results are used as the optimal performance index and are treated as a Lyapunov function. By leveraging the monotonicity of the Lyapunov function, the stability of the system is proven.
To simplify the proof process, it is assumed that the control horizon and prediction horizon are equal, both denoted as N , and the optimal performance index obtained through the improved NSGAII at time t is used for the proof.
J ( ι κ ) = min U e ( i = 1 N   X e ( ι κ + i   |   ι κ ) Q + U e ( ι κ + i   |   ι κ ) R + U ( ι κ + i   |   ι κ ) S )
where J ( ι κ ) 0 , J ( ι κ ) = 0 . It holds if and only if X e = 0 , U e = 0 . Assuming the origin represents the system’s equilibrium state, and the system meets the iterative feasibility conditions. Terminal equality constraints are introduced, which set the state error to zero at the end of the rolling optimization. The formula is as follows:
X e ( ι κ + i   |   ι κ ) 0 , i N
J ( ι κ ) = min U e ( i = 1 N   X e ( ι κ + i   |   ι κ ) Q + U e ( ι κ + i   |   ι κ ) R + U ( ι κ + i   |   ι κ ) S ) +     X e ( ι κ + N   |   ι κ ) Q + U e ( ι κ + N   |   ι κ ) R + U ( ι κ + N   |   ι κ ) S
The stability proof is as follows: at time ι κ + 1 , the optimal performance index value after particle swarm optimization is,
J ( ι κ + 1 ) = min U e ( i = 1 N   X e ( ι κ + i + 1   |   ι κ + 1 ) Q + U e ( ι κ + i + 1   |   ι κ + 1 ) R + U ( ι κ + i + 1   |   ι κ + 1 ) S )   +   X e ( ι κ + N + 1   |   ι κ ) Q + U e ( ι κ + N + 1   |   ι κ ) R + U ( ι κ + N + 1   |   ι κ ) S
Each term is rewritten as follows:
i = 1 N (   X e ( ι κ + i + 1   |   ι κ ) Q = i = 1 N (   X e ( ι κ + i   |   ι κ ) Q X e ( ι κ + 1   |   ι κ ) Q
Considering that the independent variable optimization starts from time ι κ + 1 and does not affect the performance index at time ι κ and adding the terminal constraint, Equation (48) is converted to:
J ( ι κ + 1 ) = min U e ( i = 1 N   X e ( ι κ + i   |   ι κ ) Q X e ( ι κ + 1   |   ι κ ) Q + U e ( ι κ + 1   |   ι κ ) R U e ( ι κ + 1   |   ι κ ) R + U ( ι κ + i   |   ι κ ) S U ( ι κ + 1   |   ι κ ) S ) + X e ( ι κ + N + 1   |   ι κ ) Q + U e ( ι κ + N + 1   |   ι κ ) R + U ( ι κ + N + 1   |   ι κ ) S min U e ( i = 1 N X e ( ι κ + 1   |   ι κ ) Q U e ( ι κ + 1   |   ι κ ) R U ( ι κ + 1   |   ι κ ) S ) + J ( ι κ ) + X e ( ι κ + N + 1   |   ι κ ) Q + U e ( ι κ + N + 1   |   ι κ ) R + U ( ι κ + N + 1   |   ι κ ) S
Because of the terminal constraint added in Equation (52), the following holds:
X e ( ι κ + N + 1   |   ι κ ) Q + U e ( ι κ + N + 1   |   ι κ ) R + U ( ι κ + N + 1   |   ι κ ) S 0
Simplifying Equation (49) yields:
J ( ι κ + 1 ) J ( ι κ ) X e ( ι κ + 1   |   ι κ ) Q U e ( ι κ + 1   |   ι κ ) R Δ U ( ι κ + 1   |   ι κ ) S
Furthermore, this implies:
J ( ι κ + 1 ) < J ( ι κ )
From this, it is concluded that the control algorithm ensures the global performance index is monotonically decreasing, and the proposed method guarantees the asymptotic stability of the closed-loop system. If inevitable violations occur in practical applications, terminal constraints can be incorporated into the cost function, with weighted penalties applied to the errors.

4. Results

To validate the performance of the proposed trajectory tracking control method in following the reference trajectory, this paper conducted path-tracking simulations under two scenarios and analyzed the results. The design of the experiments includes evaluating trajectory tracking performance with different look-ahead distances and comparing these results with those obtained using the NSGAII algorithm, as well as the case with a fixed look-ahead distance and single-objective. The parameters of CyberShip II are shown in Table 1. The cross-track error for USV path tracking is recorded every 0.5 s. The comparison of run times for the original NSGAII algorithm and the improved algorithm for each execution is shown in Table 2. It achieved an improvement of approximately 41% in time performance. The results of the Quantum Particle Swarm Optimization (QPSO) algorithm have also been included in the comparison. The population size of NSGAII is set to 200, and the number of iterations is set to 5000. All the simulations are performed on an Intel i9-13900HX processor (14-core, 32 GB RAM) with an NVIDIA RTX 4050 GPU.
In practical engineering, the calculation frequency of ship control algorithms is typically around 1 Hz. The improved algorithm is capable of meeting the practical requirements.

4.1. Scenario 1

First, we selected a desired path with relatively small changes in path angle and minimal wave disturbances to conduct the USV’s path-tracking simulation. The control parameters are provided in Table 2. The sea current affecting the ship is modeled using the following parameters, with the impact of sea waves on the ship’s speed considered as well:
u c b = V c cos ( β c ψ ) v c b = V c sin ( β c ψ )
V c = 0.01   m / s β c = π / 3
The system matrix of the ship model is expressed as follows:
M = 25.8 0 0 0 33.8 1.0115 0 1.0115 2.76 D = 0.9257 0 0 0 2.8909 0.2601 0 0.2602 0.5
Using 11 reference points to construct the desired tracking path, the generated reference path 1 is shown in Figure 5.
In the simulation experiments, the controller parameters are set as shown in Table 3. The simulation time is 660 s, and the step size is 0.5 s. For both algorithms, the population size is set to 200, the number of iterations to 200, and the initial position of the USV is set to (−1,4).
Figure 6 shows the trajectory tracking results for three different look-ahead distances, with performance metrics illustrated in Figure 7, Figure 8 and Figure 9.
Figure 7 shows the cross-track error curves for four scenarios: using the NSGAII algorithm, improved NSGAII algorithm, QPSO algorithm, single-objective algorithm, and two cases where the latter algorithm is used with fixed look-ahead distances. The overshoot generated during trajectory changes is minimal, effectively responding to path variations while maintaining a relatively stable navigation state. From the figure, it can be seen that the curve of the improved NSGAII algorithm with a varying look-ahead distance quickly converges the cross-track error to near zero in the initial phase and performs well throughout the entire path. The specific numerical results will be analyzed later.
Figure 8 and Figure 9 illustrate the changes in heading angle and USV speed for the two algorithms. It can be observed that as the cross-track error increases, the USV’s surge speed also increases, allowing the trajectory to quickly converge to the desired path, with the speed remaining stable at around 0.2 m/s for most of the time. Since the trajectory tracking performance with a fixed look-ahead distance differs significantly from the case with a varying look-ahead distance, the analysis of the heading angle and speed will not cover the fixed distance cases.
The total cross-track error for the entire path for each algorithm is shown in Table 4. The cross-track error for the NSGAII algorithm is 220.52, while for the improved NSGAII algorithm, it is 204.31. For the QPSO algorithm, the error is 225.26. Under the same algorithm, the cross-track error is 246.81 when the look-ahead distance is fixed at 1, and 298.57 when the look-ahead distance is fixed at 0.5. The cross-track error using the single-objective algorithm is 294.70.
From the above data, it can be seen that the performance of tracking the desired path with a fixed look-ahead distance is significantly worse compared to using a varying look-ahead distance. Additionally, the proposed improved NSGAII algorithm achieves a smaller error than the other algorithm.

4.2. Scenario 2

In this section, we select a desired path with faster changes in angle and use higher current speeds in the wave parameter settings.
V c = 0.02   m / s β c = π / 3
Using four reference points to construct the desired tracking path, the generated reference path 2 is shown in Figure 10.
Figure 11, Figure 12, Figure 13 and Figure 14 show the tracking results under scenario 2. From the figures, it can be observed that despite significant wave disturbances and large changes in the desired path angles, the tracking of the desired path remains relatively accurate. Additionally, the improved NSGAII algorithm still performs slightly better than other algorithms in tracking the path.
The path-tracking results for scenario 2 are shown in Table 4. The tracking error for the NSGAII algorithm is 78.67, while for the improved NSGAII algorithm, it is 72.17. The cross-track error for the NSGAII algorithm is 220.52, while for the improved NSGAII algorithm, it is 204.31. For the QPSO algorithm, the error is 79.61. With a fixed look-ahead distance of 1, the error is 104.68, and with a fixed look-ahead distance of 0.5, the error is 79.54. The cross-track error using the single-objective algorithm is 112.29. Compared to the NSGAII algorithm, it achieved an improvement of about 5% in path-tracking error performance.
From the data in Table 5, it is evident that the improved NSGAII algorithm outperforms other algorithms in terms of cross-track error performance in scenario 2. Even under conditions of high environmental disturbance, the cross-track error remains relatively stable without significant increase.
Based on the results above, we can conclude that:
  • The MPC algorithm with variable look-ahead distance demonstrates superior cross-track error performance compared to the fixed look-ahead distance algorithm, validating the effectiveness of this approach.
  • A comparison between multi-objective and single-objective algorithms in terms of trajectory tracking performance shows that the multi-objective approach based on the improved NSGAII algorithm achieves a balanced consideration of both cross-track error and USV tracking speed, resulting in reduced cross-track error.
  • By integrating an adaptive rotation-based simulated binary crossover and enhancing the non-dominated sorting method in the NSGAII algorithm, the improved NSGAII demonstrates superior tracking performance with reduced computation time, as observed from the trajectory tracking results.

5. Conclusions

This paper addresses the path-tracking problem of USV systems by designing an improved NSGAII-based MOMPC method for path tracking. Initially, a variable look-ahead distance is introduced in the LOS algorithm, and both look-ahead distance and desired velocity are computed through the MPC control algorithm, enhancing control accuracy in terms of cross-track error for USVs.
To enhance the global search capability of the algorithm, this study incorporates an ARSBX approach into the NSGAII algorithm, along with optimizations to the non-dominated sorting mechanism. These improvements effectively reduce computation time, increase solution space diversity and exploration, and strengthen the algorithm’s ability to solve multi-objective optimization problems.
Simulation results conducted in two distinct scenarios demonstrate that the improved NSGAII-based nonlinear MPC method successfully achieves precise path tracking, showing advantages in cross-track error performance compared to other algorithms. Although the proposed method performs well in simulations, further experiments are necessary to verify its stability under varied environmental conditions. Although the optimization process involved in NSGAII is relatively complex, considering the real-time requirements for practical applications, the computation time can be appropriately reduced by methods such as decreasing the number of iterations to meet time constraints. Through effective resource management, the algorithm can ensure system stability while maintaining control accuracy. Future research should focus on applying the proposed path tracking control method to practical control systems. Additionally, exploring the use of reinforcement learning to dynamically adjust the weights of the MPC algorithm could further enhance its applicability to USV path tracking. This approach could also be extended to areas such as cooperative control of multiple USVs or autonomous berthing operations.

Author Contributions

Conceptualization, Y.G. and J.M.; methodology, Y.G.; software, Y.G.; validation, Y.G., Q.Z., and J.M.; writing—original draft preparation, Y.G.; writing—review and editing, Q.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China grant number 52171299.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Yu, K.; Liang, X.-F.; Li, M.-Z.; Chen, Z.; Yao, Y.-L.; Li, X.; Zhao, Z.-X.; Teng, Y. USV path planning method with velocity variation and global optimisation based on AIS service platform. Ocean Eng. 2021, 236, 109560. [Google Scholar] [CrossRef]
  2. Barrera, C.; Padron, I.; Luis, F.S.; Llinas, O. Trends and challenges in unmanned surface vehicles (Usv): From survey to shipping. TransNav Int. J. Mar. Navig. Saf. Sea Transp. 2021, 15, 135–142. [Google Scholar] [CrossRef]
  3. Ashrafiuon, H.; Muske, K.R.; McNinch, L.C. Review of nonlinear tracking and setpoint control approaches for autonomous underactuated marine vehicles. In Proceedings of the 2010 American control Conference, Baltimore, MD, USA, 30 June–2 July 2010; pp. 5203–5211. [Google Scholar]
  4. Huixi, X.; Jiang, C. Heterogeneous oceanographic exploration system based on USV and AUV: A survey of developments and challenges. J. Univ. Chin. Acad. Sci. 2021, 38, 145–159. [Google Scholar]
  5. Lin, M.; Zhang, Z.; Pang, Y.; Lin, H.; Ji, Q. Underactuated USV path following mechanism based on the cascade method. Sci. Rep. 2022, 12, 1461. [Google Scholar] [CrossRef] [PubMed]
  6. Mou, J.; He, Y.; Zhang, B.; Li, S.; Xiong, Y. Path following of a water-jetted USV based on maneuverability tests. J. Mar. Sci. Eng. 2020, 8, 354. [Google Scholar] [CrossRef]
  7. Svec, P.; Thakur, A.; Shah, B.C.; Gupta, S.K. USV trajectory planning for time varying motion goals in an environment with obstacles. In Proceedings of the International design Engineering Technical Conferences and Computers and Information in engineering Conference, Chicago, IL, USA, 12–15 August 2012; Volume 45035, pp. 1297–1306. [Google Scholar]
  8. Do, K. Global robust adaptive path-tracking control of underactuated ships under stochastic disturbances. Ocean Eng. 2016, 111, 267–278. [Google Scholar] [CrossRef]
  9. Xiao, C.; Zhong, L.; Jianqiang, Z.; Dechao, Z.; Jiao, D. Adaptive sliding-mode path following control system of the underactuated USV under the influence of ocean currents. J. Syst. Eng. Electron. 2018, 29, 1271–1283. [Google Scholar]
  10. Johnson, M.A.; Moradi, M.H. PID Control; Springer: London, UK, 2005; pp. 47–107. [Google Scholar]
  11. Liu, Y.; Bu, R.; Gao, X. Ship trajectory tracking control system design based on sliding mode control algorithm. Pol. Marit. Res. 2018, 25, 26–34. [Google Scholar] [CrossRef]
  12. Yang, Z.K.; Zhong, W.B.; Feng, Y.B.; Sun, B. Unmanned surface vehicle track control based on improved LOS and ADRC. Chin. J. Ship Res. 2021, 16, 121–127. [Google Scholar]
  13. Bassam, A.M.; Phillips, A.B.; Turnock, S.R.; Wilson, P.A. Artificial neural network based prediction of ship speed under operating conditions for operational optimization. Ocean Eng. 2023, 278, 114613. [Google Scholar] [CrossRef]
  14. Beşikçi, E.B.; Arslan, O.; Turan, O.; Ölçer, A. An artificial neural network based decision support system for energy efficient ship operations. Comput. Oper. Res. 2016, 66, 393–401. [Google Scholar] [CrossRef]
  15. Sun, W.; Gao, X.; Yu, Y. Dual Deep Neural Networks for Improving Trajectory Tracking Control of Unmanned Surface Vehicle. In Proceedings of the 2020 Chinese Automation Congress (CAC), Shanghai, China, 6–8 November 2020; pp. 3441–3446. [Google Scholar]
  16. Sun, W.; Gao, X. Deep Learning-Based Trajectory Tracking Control for Unmanned Surface Vehicle. Math. Probl. Eng. 2021, 2021, 8926738. [Google Scholar]
  17. Zhang, G.; Zhang, X.; Zheng, Y. Adaptive neural path-following control for underactuated ships in fields of marine practice. Ocean Eng. 2015, 104, 558–567. [Google Scholar] [CrossRef]
  18. Tran, H.A.; Johansen, T.A.; Negenborn, R.R. Distributed MPC for autonomous ships on inland waterways with collaborative collision avoidance. arXiv 2024, arXiv:2403.00554. [Google Scholar]
  19. Qiang, H.; Jin, S.; Feng, X.; Xue, D.; Zhang, L. Model predictive control of a shipborne hydraulic parallel stabilized platform based on ship motion prediction. IEEE Access 2020, 8, 181880–181892. [Google Scholar] [CrossRef]
  20. Han, X.; Zhang, X. Tracking control of ship at sea based on MPC with virtual ship bunch under Frenet frame. Ocean Eng. 2022, 247, 110737. [Google Scholar] [CrossRef]
  21. Zhang, M.; Hao, S.; Wu, D.; Chen, M.-L.; Yuan, Z.-M. Time-optimal obstacle avoidance of autonomous ship based on nonlinear model predictive control. Ocean Eng. 2022, 266, 112591. [Google Scholar] [CrossRef]
  22. Dong, Z.; Chen, L.; Chen, P.; Mou, J. Model Predictive Control for Ship Path Tracking with Disturbances. In Proceedings of the 2023 IEEE International Conference on Unmanned Systems (ICUS), Hefei, China, 13–15 October 2023; pp. 1487–1492. [Google Scholar]
  23. Zhou, X.; Wu, Y.; Huang, J. MPC-based path tracking control method for USV. In Proceedings of the 2020 Chinese Automation Congress (CAC), Shanghai, China, 6–8 November 2020; pp. 1669–1673. [Google Scholar]
  24. Fossen, T.I. Marine Control Systems–Guidance, Navigation, and Control of Ships, Rigs and underwater Vehicles; Marine Cybernetics: Trondheim, Norway, 2002; ISBN 82-92356-00-2. [Google Scholar]
  25. Guan, G.; Wang, L.; Geng, J.; Zhuang, Z.; Yang, Q. Parametric automatic optimal design of USV hull form with respect to wave resistance and seakeeping. Ocean Eng. 2021, 235, 109462. [Google Scholar] [CrossRef]
  26. Fredriksen, E.; Pettersen, K.Y. Global κ-exponential way-point maneuvering of ships: Theory and experiments. Automatica 2006, 42, 677–687. [Google Scholar] [CrossRef]
  27. Gu, N.; Wang, D.; Peng, Z.; Wang, J.; Han, Q.-L. Advances in line-of-sight guidance for path following of autonomous marine vehicles: An overview. IEEE Trans. Syst. Man Cybern. Syst. 2022, 53, 12–28. [Google Scholar] [CrossRef]
  28. Dong, Z.; Zhang, Z.; Qi, S.; Zhang, H.; Li, J.; Liu, Y. Autonomous cooperative formation control of underactuated USVs based on improved MPC in complex ocean environment. Ocean Eng. 2023, 270, 113633. [Google Scholar] [CrossRef]
  29. Hu, L.; Zhang, M.; Li, G.; Yuan, Z.; Bi, J.; Guo, Y. Multi-objective model predictive control for ship roll motion with gyrostabilizers. Ocean Eng. 2024, 313, 119412. [Google Scholar] [CrossRef]
  30. Liu, S.; Yu, Z.; Wang, T.; Chen, Y.; Zhang, Y.; Cai, Y. MPC-Based Collaborative Control of Sail and Rudder for Unmanned Sailboat. J. Mar. Sci. Eng. 2023, 11, 460. [Google Scholar] [CrossRef]
  31. Fossen, T.I.; Breivik, M.; Skjetne, R. Line-of-sight path following of underactuated marine craft. IFAC Proc. Vol. 2003, 36, 211–216. [Google Scholar] [CrossRef]
  32. Ma, H.; Zhang, Y.; Sun, S.; Liu, T.; Shan, Y. A comprehensive survey on NSGA-II for multi-objective optimization and applications. Artif. Intell. Rev. 2023, 56, 15217–15270. [Google Scholar] [CrossRef]
  33. Verma, S.; Pant, M.; Snasel, V. A comprehensive review on NSGA-II for multi-objective combinatorial optimization problems. IEEE Access 2021, 9, 57757–57791. [Google Scholar] [CrossRef]
  34. Deb, K.; Pratap, A.; Agarwal, S.; Meyarivan, T. A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE Trans. Evol. Comput. 2002, 6, 182–197. [Google Scholar] [CrossRef]
  35. Pan, L.; Xu, W.; Li, L.; He, C.; Cheng, R. Adaptive simulated binary crossover for rotated multi-objective optimization. Swarm Evol. Comput. 2021, 60, 100759. [Google Scholar] [CrossRef]
  36. Lee, J.W. Exponential stability of constrained receding horizon control with terminal ellipsoid constraints. IEEE Trans. Autom. Control 2000, 45, 83–88. [Google Scholar]
Figure 1. Function of the LOS guidance law.
Figure 1. Function of the LOS guidance law.
Jmse 12 02188 g001
Figure 2. (a) Delta and the cross-track error. (b) Rotated coordinate system.
Figure 2. (a) Delta and the cross-track error. (b) Rotated coordinate system.
Jmse 12 02188 g002
Figure 3. Path tracking control block diagram of MPC.
Figure 3. Path tracking control block diagram of MPC.
Jmse 12 02188 g003
Figure 4. Flowchart of the NSGAIIARSBX algorithm.
Figure 4. Flowchart of the NSGAIIARSBX algorithm.
Jmse 12 02188 g004
Figure 5. Reference path 1.
Figure 5. Reference path 1.
Jmse 12 02188 g005
Figure 6. Trajectory tracking results of scenario 1.
Figure 6. Trajectory tracking results of scenario 1.
Jmse 12 02188 g006
Figure 7. Cross-track error of scenario 1.
Figure 7. Cross-track error of scenario 1.
Jmse 12 02188 g007
Figure 8. Heading angle of scenario 1.
Figure 8. Heading angle of scenario 1.
Jmse 12 02188 g008
Figure 9. USV velocities of scenario 1.
Figure 9. USV velocities of scenario 1.
Jmse 12 02188 g009
Figure 10. Reference path 2.
Figure 10. Reference path 2.
Jmse 12 02188 g010
Figure 11. Trajectory tracking results of scenario 2.
Figure 11. Trajectory tracking results of scenario 2.
Jmse 12 02188 g011
Figure 12. Cross-track error of scenario 2.
Figure 12. Cross-track error of scenario 2.
Jmse 12 02188 g012
Figure 13. Heading angle of scenario 2.
Figure 13. Heading angle of scenario 2.
Jmse 12 02188 g013
Figure 14. USV velocities of scenario 2.
Figure 14. USV velocities of scenario 2.
Jmse 12 02188 g014
Table 1. Parameters of CyberShip II.
Table 1. Parameters of CyberShip II.
ParametersValueUnitParametersValueUnit
m 23.8kg Y r 0.1079N · s/m
Χ g 0.046m Y r ˙ −0kg
I z 1.76kg · m N v 0.1052N · s/m
X u −0.7225N · s/m N v ˙ −0kg
X u ˙ −2.0kg N r −0.5N · s/m
Y v −0.8612N · s/m N r ˙ −1.0kg
Y v ˙ −10kg
Table 2. Comparison of algorithm computation times.
Table 2. Comparison of algorithm computation times.
Approach Average Single Run Time (s)
NSGAII2.557
Improved NSGAII0.89
QPSO2.210
Table 3. Controller parameters.
Table 3. Controller parameters.
Controller ParameterValueUnit
Predictive   horizon   H p 45
Control   horizon   H u 15
Maximum   control   input   [ T a u u , m a x , T a u δ , m a x ] [2, 1.5][N, N · m]
Minimum   control   input   [ T a u u , min , T a u δ , min ] [−2, −1.5][N, N · m]
Rudder   force   coefficient   N δ , Y δ [1, −0.2]
Path   error   weight   coefficient   k y 4
Speed   error   weight   coefficient   k u ¯ d 40
Acceleration   error   weight   coefficient   k u ˙ d 5
The   control   parameters   [ k 0 , k 1 , k u ][10, 6.32,5]
The range of surge velocity of USV u[0, 0.5]m/s
Table 4. Simulation results of scenario 1.
Table 4. Simulation results of scenario 1.
MethodSum of the Absolute Values of the Cross-Track Errors (m)
NSGAII220.52
Improved NSGAII204.31
Improved NSGAII and look-ahead distance = 1298.57
Improved NSGAII and constant look-ahead distance = 0.5246.81
Single-objective294.70
QPSO225.26
Table 5. Simulation results of scenario 2.
Table 5. Simulation results of scenario 2.
MethodSum of the Absolute Values of the Cross-Track Errors (m)
NSGAII78.67
Improved NSGAII72.17
Improved NSGAII and look-ahead distance = 1104.68
Improved NSGAII and constant look-ahead distance = 0.579.54
Single-objective112.29
QPSO79.61
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

Guo, Y.; Zhu, Q.; Mou, J. The Path Tracking Control of Unmanned Surface Vehicles Based on an Improved Non-Dominated Sorting Genetic Algorithm II-Based Multi-Objective Nonlinear Model Predictive Control Method. J. Mar. Sci. Eng. 2024, 12, 2188. https://doi.org/10.3390/jmse12122188

AMA Style

Guo Y, Zhu Q, Mou J. The Path Tracking Control of Unmanned Surface Vehicles Based on an Improved Non-Dominated Sorting Genetic Algorithm II-Based Multi-Objective Nonlinear Model Predictive Control Method. Journal of Marine Science and Engineering. 2024; 12(12):2188. https://doi.org/10.3390/jmse12122188

Chicago/Turabian Style

Guo, Yunzhe, Qidan Zhu, and Jinyou Mou. 2024. "The Path Tracking Control of Unmanned Surface Vehicles Based on an Improved Non-Dominated Sorting Genetic Algorithm II-Based Multi-Objective Nonlinear Model Predictive Control Method" Journal of Marine Science and Engineering 12, no. 12: 2188. https://doi.org/10.3390/jmse12122188

APA Style

Guo, Y., Zhu, Q., & Mou, J. (2024). The Path Tracking Control of Unmanned Surface Vehicles Based on an Improved Non-Dominated Sorting Genetic Algorithm II-Based Multi-Objective Nonlinear Model Predictive Control Method. Journal of Marine Science and Engineering, 12(12), 2188. https://doi.org/10.3390/jmse12122188

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