Trajectory Optimization for Autonomous Berthing of a Twin-Propeller Twin-Rudder Ship
Article information
Abstract
Autonomous berthing is a crucial technology for autonomous ships, requiring optimal trajectory planning to prevent collisions and minimize time and control efforts. This paper presents a two-phase, two-point boundary value problem (TPBVP) strategy for creating an optimal berthing trajectory for a twin-propeller, twin-rudder ship with autonomous berthing capabilities. The process is divided into two phases: the approach and the terminal. Tunnel thruster use is limited during the approach but fully employed during the terminal phase. This strategy permits concurrent optimization of the total trajectory duration, individual phase trajectories, and phase transition time. The efficacy of the proposed method is validated through two simulations. The first explores a scenario with phase transition, and the second generates a trajectory relying solely on the approach phase. The results affirm our algorithm's effectiveness in deciding transition necessity, identifying optimal transition timing, and optimizing the trajectory accordingly. The proposed two-phase TPBVP approach holds significant implications for advancements in autonomous ship navigation, enhancing safety and efficiency in berthing operations.
1. Introduction
Recently, as interest in autonomous ships grows, autonomous berthing has garnered attention as a crucial technology for enabling fully autonomous ship navigation. Conventionally, larger ships depend on tugboat assistance for berthing instead of conducting the process independently (Quan et al., 2019). However, in pursuit of the ultimate goal of achieving full autonomy in ship navigation, automation of the berthing process is essential.
Effective berthing requires plotting a path that moves the ship from its current position to the intended berthing point. This procedure calls for trajectory planning over simple path planning, to ensure smoother movement, increased efficiency, and adept handling of constraints. Previous research proposed berthing algorithms for ships equipped with azimuth thrusters using optimal control (Martinsen et al., 2019, 2022), as well as path optimization methods for single-rudder, single-propeller ships with two side thrusters while considering real port spatial constraints (Miyauchi et al., 2022). To tackle the universal challenge of finding a globally optimal solution in optimization-based methods, graph search (Ødven et al., 2022) and warm-started semi online trajectory planners (Rachman et al., 2022) have been utilized. Most recently, experimental verification of the miiliampere ship's docking algorithm - an urban ferry with two azimuth thrusters - was conducted using MPC-based trajectory optimization and trajectory tracking controllers (Bitar et al., 2020; Bitar et al., 2021; Martinsen et al., 2020).
In this study, we propose a berthing trajectory generation algorithm for twin-propeller, twin-rudder ships with self-berthing capabilities. It is challenging to anticipate effective force when a pair of propellers and rudders are rotated in reverse (Lindegaard and Fossen, 2003; Skjetne et al., 2004). Additionally, tunnel thrusters only show effectiveness at low speeds (Fossen, 2011). Addressing these motion characteristics, we adopt a two-phase, two-point boundary value problem approach, segmenting the process into an approaching phase—where the ship maneuvers close to the target berthing position—and a terminal phase, continuing until the ship aligns with its final position. In the approaching phase, the use of the tunnel thruster is limited, whereas in the terminal phase, it is actively deployed. We conducted numerical simulations to validate the proposed trajectory generation algorithm's efficacy, highlighting its successful application in autonomous berthing scenarios.
The structure of this paper is as follows: Section 2 introduces the necessary preliminaries, providing the groundwork for understanding the subsequent methodologies. The formulation of our proposed trajectory optimization scheme is presented in detail in Section 3. In Section 4, we provide a comprehensive review of the simulation results, demonstrating the efficacy of our approach. Finally, we draw conclusions from our findings in Section 5, encapsulating the key points of the study and their implications for autonomous ship berthing.
2. Preliminary
2.1 Ship Dynamic Model
The equations of motion of a ship are composed of both kinematic and kinetic equations, represented in the earth-fixed and body-fixed coordinate systems, as illustrated in Fig. 1. The kinematic equations, which deal with the geometric properties of motion, are defined within the context of the earth-fixed frame. Conversely, the kinetic equations are modeled within the body-fixed coordinate system. The relationship between these two coordinate systems is articulated through the ship's heading ψ as follows:
The kinetic equations represent the relationship between the forces acting on the vehicle and its motion within the body-fixed frame.
These equations can be articulated using Newton's second law, as follows:
In this equation, M represents the inertia matrix, C(ν) stands for the Coriolis and centripetal matrix, D (ν) signifies the damping matrix, and τ is the vector of control force. The matrices M and C(ν) can be depicted as the sum of the rigid body and added mass components, as outlined below:
Additionally, D (ν) can be depicted by a combination of the nonlinear and linear damping matrices, as follows:
2.2 Actuator Model
In this study, as illustrated in Fig. 2, we develop an algorithm for a ship equipped with twin propellers and twin rudders at the stern, in addition to a bow tunnel thruster. The forces generated are as follows: T1 represents the force produced by the port stern propeller, T2 corresponds to the force originating from the stern starboard propeller, while T3 designates the bow tunnel propeller forces. Additionally, the rudder angles at the port and starboard sides are denoted by δ1 and δ2, respectively. Given these, the control force can be formulated with the control input [T1,T2,δ1,δ2,T3 ]⊤, as detailed below:
In this formulation, D1 and D2 represent the drag forces, while L1 and L2 represent the lift forces for the port and starboard rudder, respectively. The terms lx1, lx2 and ly refer to the distances from the center of gravity to each propeller. The force generated by the propeller can be defined by the rotational speed ni, and the thruster coefficient KT with advance ratio Ji, as follows:
The force exerted by a ship's rudder at low speed is notably influenced by the direction of the propeller's rotation. When the propeller rotates forward, ample lift is generated through propeller force and rudder angle interplay. However, generating effective lift is challenging when the propeller rotates in reverse. Consequently, the lift and drag forces produced by a pair of propellers and rudders can be formulated as follows, according to (Lindegaard, 2003):
Fig. 3 visually illustrates the force generated by a pair of propellers and rudders. Given that the ship's propellers and rudders can operate independently, the ship is viewed as a fully-actuated system capable of controlling motion across three degrees of freedom. Nevertheless, when considering the propulsion properties of the propellers and rudders, as demonstrated in Eq. (8), the system exhibits specific characteristics of being partially under-actuated.
3. Berthing Trajectory Optimization
Given the initial and target berthing states, a trajectory optimization algorithm can be devised to minimize both the berthing duration and control effort, while taking into account the motion and control characteristics represented by Eqs. (1)–(8). However, the nonlinear nature and complexity of the optimization problem present a challenge in assuring optimal solutions. To tackle this issue, we propose an optimization approach that separates the trajectory into two distinct phases, thereby effectively reducing the complexity of the problem.
3.1 Two-phase Approach
The berthing process can be strategically segmented into two phases. The first, referred to as the “approaching phase,” guides the ship towards a region proximate to the final berthing position. The second, termed the “terminal phase,” involves the precise maneuvering of the ship to reach the final position. During the approaching phase, the ship retains sufficient speed, thus hindering the bow tunnel propeller from generating effective force. As a result, in this phase, only the stern propellers and rudders are employed as control inputs, as described below:
Conversely, the terminal phase occurs at relatively lower speeds, thus allowing the use of the tunnel thruster. In this phase, the ship's movements and rotations are slower, diminishing the effects of the Coriolis and nonlinear damping matrices. This reduction permits a simplified model approximation similar to those used in dynamic positioning (Skjetne et al., 2004). Accordingly, the dynamic model and control input vectors are formulated as follows:
3.2 Two-point Boundary Value Problem
Employing models for each phase allows for the formulation of the two-point boundary value problem with the state vector x =[x,y,ψ,u,v,r]⊤, as detailed below:
Here Tf1 and (Tf2 −Tf1) represent the time durations for each phase, respectively. Additionally, JT denotes the time penalty cost function, which is defined as follows:
Here ρt is the weighting scalar. Ja(t),
In these equations, the matrices Qa, Pa, and Ra denote the weight matrices that penalize the velocity, control input, and rate of change of control input, respectively.
In this context, the matrices Qt, Pt, and Rt represent the weight matrices that penalize the velocity, control input, and rate of change of control input, respectively. The optimization problem formulated above also encompasses several constraints, which are as follows:
Here fa and ft represent the dynamic models of the approaching and terminal phases, respectively, while x0 and xf denote the initial and target berthing states.

The illustration of collision avoidance constraints. (Ship 𝕊v with a safety boundary 𝕊b, as well as state constraints 𝕊s)
To address the nonlinear optimization problem formulated in this manner, we utilized the Interior Point Optimizer (IPOPT) (Wächter and Biegler, 2006), implemented in the CasADI framework (Andersson et al., 2019), within the in the MATLAB environment.
4. Simulation Results
Simulations were executed within the MATLAB environment to evaluate the effectiveness of the proposed trajectory optimization algorithm. We incorporated the port geometry of Jangsaengpo Port in Ulsan, Korea, and devised two scenarios featuring distinct initial and final positions. The state constraints were formulated convexly, considering the berthing position, the port layout, and the ship's navigable area. It is worth noting that the specific configuration of these constraints can be altered based on the available space in the intended target port. The parameters of the supply ship's model used for simulation are derived from (Skjetne et al., 2004), with the remaining parameters detailed in Table 1. The parameters specific to our proposed algorithm can be found in Table 2. The results of the first simulation are visually represented in Figs. 5–7.
Fig. 5 illustrates the time trajectory for a port side berthing scenario. In this figure, the blue ship trajectory corresponds to the approaching phase, while the red ship trajectory represents the terminal phase. Fig. 6 illustrates the variation in velocities over the course of the berthing process, which lasts approximately 1026 seconds, with the approaching phase accounting for 940 seconds of this duration. This highlights a distinct phase switch. Fig. 7 shows the alterations in control input over time. These results corroborate that the proposed algorithm effectively considers the characteristic of not utilizing a rudder when the propeller is in reverse rotation.
In the second scenario, the objective is to berth a ship on the starboard side. The results of this simulation are depicted in Figs. 8–10. Fig. 8 displays the time trajectories for each phase. Figs. 9 and 10, on the other hand, portray the velocities and control input fluctuations over time, respectively. Contrary to the first scenario, the second scenario does not require a phase transition. This result arises from the optimization process determining that a sole emphasis on the approaching phase, without a phase transition, is more efficient for this scenario.
5. Conclusions
In this study, we have proposed a two-phase berthing trajectory optimization algorithm for the autonomous berthing of a twin-propeller, twin-rudder ship. The berthing process was segregated into two distinct phases, taking into account the ship's dynamic characteristics and actuator properties. We formulated models for each phase and generated dynamically feasible trajectories using a two- phase, two-point boundary value problem. To assess the practicality and effectiveness of our proposed algorithm, we created two scenarios grounded in real-world port geometries and conducted comprehensive numerical simulations.
Notes
Jinwhan Kim serves as a editorial board member of the Journal of Ocean Engineering and Technology, but he had no role in the decision to publish this article. No potential conflict of interest relevant to this article was reported.
This research was supported by a grant from the National R&D Project “Development of an electric-powered car ferry and a roll-on/roll-off power supply system” funded by the Ministry of Oceans and Fisheries, Korea (Grant No. PMS4420).