This section will present the problem of distance-optimal route planning of marine vehicles, with a detailed description of the mathematical ship model and MPC approach in the included sub-sections.
2.3 Nonlinear state space model
The governing equations of rigid body motion (for 3 DoF) were used to resolve the nonlinear dynamics of the ship operating at sea, which can be expressed as follows (
Yasukawa, H., & Yoshimura, Y.,2015):
in which
m is the mass of body (unit:
kg)
u, v, r are the surge/sway/yaw velocities (units: m/s, m/s, and deg/s, respectively)
u̇, v̇, ṙ are the surge/sway/yaw accelerations (units: m/s2, m/s2, and deg/s2, respectively)
mx, my are the added masses of x axis direction and y axis direction (unit: kg)
xG is the longitudinal coordinate of center of gravity of the ship (unit: m)
IZG is the moment of inertia about the z axis (unit: kg·m2)
JZ is the added moment of inertia about the z axis (unit: kg·m2)
X, Y are the surge/sway resultant forces acting on the ship (unit: N)
N is the yaw resultant moment acting on the ship (unit: N·m)
The hydrodynamic forces (
X,
Y) and moment (
N) in
Eq. (1) are decomposed into three components in the MMG model: the bare hull, rudder, and propeller.
where the subscripts
H,
R,
P denote hull, rudder, and propeller, respectively.
XW,
YW,
NW mean the external forces and moment acting on the hull induced by waves. In this work, the nonlinear and linear MMG models were used for the validation study about the accuracy of the ship’s maneuvering performance. The hydrodynamic derivatives for the nonlinear maneuvering MMG model are expressed in
Eq. (3), whereas the hydrodynamic derivatives for the linear MMG model are given in
Eq. (4).
in which
Xu,
Xvv,
Xvr,
Xrr,
Xvvvv,
Yv,
Yr,
Yvvv,
Yvvr,
Yvrr,
Yrrr,
Nv,
Nr,
Nvvv,
Nvvr,
Nvrr, and
Nrrr are called the hydrodynamic derivatives. For more details on the MMG model, reference can be made to
Yasukawa, H., & Yoshimura, Y. (2015).
It has to be stated that the hydrodynamic coefficients, propeller thrust, rudder forces and moments for the KVLCC2 were determined from the captive model experiment reported in
Yasukawa, H., & Yoshimura, Y. (2015). In addition, second-order wave loads for the KVLCC2 were determined from the circular motion tests reported in
Jeon et al. (2021).
The numerical simulations of the turning, zigzag characteristics were carried out to ensure that the nonlinear MMG model accurately assessed the maneuvering behavior of the KVLCC2 (
Fig. 4,
5, and
6). It was found that the linear MMG model could not estimate the maneuvering behaviors accurately due to the only consideration of the linear terms on the right-hand side of
Eq. (3), as shown in the figures. Such considerations lowered the accuracy of the hydrodynamic forces and moment acting on the ship, demonstrating that the linear MMG model cannot accurately predict the complicated interaction between the hull, propeller, and rudder during maneuvers.
When using the nonlinear MMG model adopted in this work, the agreement is reasonable for the predicted ship trajectories and kinematic parameters during the maneuver.
Based on the aforementioned equations, the nonlinear dynamic system of the ship for the MPC can be given in state-space form as a set of continuous Ordinary Differential Equations (ODEs) consisting of the state (
x̄) and manipulated inputs (
ū) vector as follows (
Sandeepkumar et al, 2022):
in which
x̄ = [
u v r x y ψ]
T is the state vector,
ū = [
n δ ]
T is the manipulated input vector.
x and
y are the x and y position expressed with respect to the earth-fixed coordinate (unit: m),
ψ is the ship's heading angle (unit: degree),
n is the propeller rotational speed (unit: RPS),
δ is the rudder angle (unit: degree).
2.4 Nonlinear MPC
Nonlinear MPC is a high-fidelity tool for route planning problems as it solves an open-loop constrained nonlinear optimization problem taking into account the current system states. Improved accuracy in MPC's decision-making is made possible with the use of a nonlinear dynamic model, as conducted in this work.
The prediction horizon of interest, i.e., for all
t ∈ [0,
TP ] (where
TP is the horizon length), should be defined for the problem of optimal route planning, representing the time from the start to the end of the route planning. When the system dynamics are given in continuous time as reported in
Eq. (3), a finite-horizon optimal route planning problem can be formulated as follows (
Rawlings et al, 2017):
where
xf (
t) and
yf (
t) are the final position in the earth-fixed coordinate at a given time. As an equality constraint,
x¯˙=f(x¯,u¯) is used for enforcing the satisfaction of the dynamics of the KVLCC2. As inequality constraints, the lower (
u-¯,
x-¯) and upper (
u+¯,
x+¯) bounds on the state and manipulated input variables are imposed to enable the safety and operability of the ship to be established. As indicated in
Eq. (4), equality contratins use the equal sign (=), whereas inequality contratins use the comparison operator (<= or >=).
The optimal ship route planning problem in this work was solved by means of the fmincon function in the MATLAB optimization toolbox with the SQP (Sequential Quadratic Programming). The key advantage of the SQP for solving nonlinear optimization problems is that it can handle any degree of nonlinearity, including nonlinear constraints. It should be borne in mind that important parts of the numerical optimization algorithm include computing the gradient of the objective function, and the Jacobian of the constraints (
Sandeepkumar et al, 2022). Since the analytic computation of derivatives can become cumbersome when dealing with large problems with many variables or constraints, the automatic differentiation algorithm (
Griewank, A. and Walther, A., 2008) was applied to estimate the Jacobian matrices.