1. Introduction
The design of a control system is usually based on a mathematical model of the object as the basis for the synthesis. In reality, the determination of the exact structure of the model and values of its parameters is not an easy task. The parameters may change in time under the influence of the properties of the object itself or as a result of changing environmental conditions. This entails the need to create adaptive control algorithms, which are characterized by learning capacity, a large range of autonomy in responding to changes in the system and the ability to perform in complex conditions. Algorithms of this type are the essence of intelligent control systems.
An example of the above problem is the steering of a ship, a complex dynamic object subject to strong disturbances. The scope and sensitivity of the steering panel operation changes as sailing conditions change (ship speed, water depth, wind force, current, waves, loading condition, etc.), but a skilled helmsman is able to allow for the changes and perform as instructed. Changing conditions, however, create great difficulties in designing autopilots because a well-designed autopilot, to perform a control task, will have to change its parameters in time based on the identified parameters of the model or even make use of the variable structure of the model.
One of the classic problems in this field is automatic ship steering along a preset route, generally defined in the form of a broken line, joining a series of preset waypoints. The ship’s track-keeping ability is crucial, because improper control of the rudder results in the reduction of the average speed, longer track and time of the voyage and, consequently, higher fuel consumption, leading to higher total operating costs. The associated operational problem is steering gear overload, which may lead to a critical breakdown. Most importantly, uncontrollable yawing, especially on waterways with increased traffic, adversely affects the level of safety, increasing the risk of collision [
1].
A common feature found in publications on strategies of ship control along a preset track is their strong dependence on the reliability of the mathematical model describing the maneuvering dynamics of the ship (linear quadratic Gaussian control [
2,
3,
4,
5], H-infinity control [
6], sliding mode control [
7,
8], backstepping control [
9,
10,
11,
12], and modal control [
13]). To avoid the above difficulties, which stem from the application of an exact mathematical model of ship dynamics, other control strategies have been developed, including the theory of fuzzy sets [
14,
15,
16] or artificial neural networks [
17,
18,
19].
The alternative solution presented herein is an adaptive system of ship control along a set track (trajectory autopilot) using the method of indirect adaptation. In the first stage of the method the model parameters are identified (it is assumed that the model structure is known), then, using the certainty equivalence principle we take the model as an exact representative of the controlled object. For these considerations, an optimal linear quadratic regulator (LQR) with a symmetric indicator of control quality was chosen. The model identification was based on the continuous version of the least squares method.
The proposed solution effectively stabilized the ship’s trajectory relative to the desired track, and the whole process ran in the online mode. This is important for the implementation of the developed system. Implementation often seems to be very difficult in the cases presented in the literature on the subject. This limitation is a consequence of the assumptions made in these methods. The proposed adaptive algorithm for the automatic track-keeping of a ship is a functional solution, characterized by the high control quality combined with the possibility of effective implementation in marine navigational systems.
2. Adaptive Control System–The General Case
Let the dynamics of a continuous object be described by a linear equation of state:
where
—a matrix with the size and fixed elements independent of time;
—a matrix with the size and fixed elements independent of time;
—n-dimensional vector of state;
—n-dimensional vector of derivatives versus time (t);
—p-dimensional vector of control signals.
with the initial condition:
while the symmetric control quality indicator has this form:
where
—symmetric, positive semidefinite matrix, with dimensions and fixed elements independent of time;
—symmetric, positive definite matrix, with dimensions and fixed elements independent of time.
The optimal control
(LQR), that meets Equations (1) and (2) and minimizes the control quality criterion (3) takes the form [
20]:
where the matrix
P (symmetrical and negative specified) is determined from the algebraic Riccati equation:
where
—zero matrix with dimensions.
The previous considerations referred to a situation where the matrices of the model coefficients are known and constant, that is, they are time-independent. However, this is generally not the case, and then it is necessary to continuously identify the said matrix elements, which translates into the need for the adaptation of regulator gain (4). The problem to be solved in this case is how to continuously and as accurately as possible estimate the model representing a real object (1):
assuming only that the state vector is measurable. Equation (1) will be considered as an accurate (but unknown and non-stationary) description of an object, while its model will be the estimation (6).
The idea of the method used for solving the formulated problem can be described as follows. Based on the error stemming from the actual state
x, and the state estimated from the model
, unknown elements of the matrices
A and
B are identified. Then, based on the results, the LQR regulator (4) is tuned (
Figure 1).
The continuous version of the least squares method was used to identify the looked-for elements of the matrices
A and
B. The estimation is based on the minimization of the integral from the squared standard error (
):
where the Euclidean standard is described by the formula:
assuming there exists a linear relationship:
where
—k-dimensional vector of estimates of identified elements of matrices A and B (its coordinates are part of the matrix and );
—measurement matrix, regressor (with dimensions ).
The Equation (7) can be written in the form of:
Therefore, vector
is determined from the relationship (derived by comparing the derivative versus
from Equation (10) to zero):
which after transformation (provided that for a set
t the vector
is treated as a constant) and has this form:
where
—a regular matrix (where the initial condition is a positive definite matrix) with dimensions.
Differentiating Equation (12) with respect to time we obtain:
where after substitution:
and simple transformations we get a formula for the identification of model parameters:
By means of the model parameters identified using the Formula (15) we can determine the LQR (4) gain, which will assure the system adaptation.
3. Stability of the Adaptive Control System
The stability of the proposed system will be proved below. The system (1) with feedback (4) is stable [
20], and therefore for a symmetric and positive definite matrix
, the matrix
is non-positive definite and symmetric. This results from the Lapunov equation for a stable dynamic linear system (in the Lapunov sense).
Taking into account the feedback in Equation (6), it will be transformed to this form:
where
—matrices identified by means of Formula (15);
—solution of the Equation (5) for , .
The derivative of error
e with respect to time can be written as:
which after substitution of the Equations (1), (4), (16) will take the form:
For clarity, the second term of the sum in Equation (18) will be omitted (as being limited) which yields:
Let the positive definite quadratic form:
be the Lapunov function of the system in question. The time derivative of the function has this form:
and by substituting the relationship (19) we get:
Therefore, because the matrix
is non-positive definite, this relation exists:
which proves the stability of the adaptive control system herein considered. If we also take into account the second term of Equation (18), to obtain the system stability we have to use the sliding mode control [
21], which consists of adding a properly selected signal to the control, which will guarantee the inequality (23) to take place. This is successfully done when we know the vector’s
component constraints and we additionally assume that only one element of the matrix
is non-zero (then
is an
n-element vector, while the control is a scalar). In such a case, the control signal in Equation (16) will be:
where
—known upper i-th vector element constraint ;
—i-th vector element ;
—j-th vector element, where j means the non-zero vector element numeral.
It will be noted in further considerations that inequality (23) will occur, which has been shown.
4. Trajectory Autopilot
The track along which the ship should be steered is defined as a broken line defined by
n preset waypoints
,
, …,
, …,
. To formalize the problem of keeping track of the ship, two reference systems will be introduced (
Figure 2):
global, stationary to the ground ;
relative (mobile) , with the origin located in the latest reached waypoint , and the vertical axis along the section (—the angle of the relative reference system rotation).
Figure 2 also depicts the ship’s gyrocompass course
and the relative course
. The relative position of the ship, and its relative course are obtained by transformation:
which defines the subsequent displacements and rotations of the global reference system depending on the current track leg. The system rotation angle is defined as follows:
The rotation of the system is made after the condition is met:
where
—radius reaching the waypoint, a positive value determined arbitrarily.
Let the model describing the ship’s movement dynamics be a Nomoto model [
22]. Then, to be consistent with the form (1), the following denotations are made:
where
—coefficients determined from model tests (different for different types of vessels);
—longitudinal speed of the ship (as an approximation the actual speed can be accepted);
—rate of turn;
—rudder angle.
The control quality, when the track for the ship to follow has been set, is most commonly expressed by the indicator:
where
—coefficients greater than zero, arbitrarily determined, which, after introducing the matrices:
will take the form (3).
If we assume that the coefficients a, c are known and fixed (and not time-dependent), the optimal control of track-keeping can be found from the relation (4).
Let the equation describing the object (ship) be the Nomoto model, but not taking into account the deviation from the course as a component of the state:
and
am,
cm (established arbitrarily) will be the estimated model parameters. To use the identification Formula (15), first the Laplace transformation will be applied (for initial zero conditions) in Equation (31), then two filtered signals will be substituted:
after transformation and returning to the time domain, we obtain:
By introducing the denotations:
we get a conformity of (33) with the form (15). Formula (15) can now be used for the continuous identification of the parameters of the Nomoto model. With the identified vector
of the Nomoto model parameters, the optimal control of track-keeping is determined from relation (4).
It should be noted that the control quality of the presented trajectory autopilot can depend on the parameters and the initial estimates a, c. The assumption here is that they are adopted arbitrarily. The automatic selection of these parameters goes beyond the framework of this work and will be examined in the future.
5. Calculation Experiments
The experiments were made in the Matlab/Simulink environment. A de Witt–Oppe model [
23] was used as an object (vessel), incorporating the dynamics of the steering gear [
22]:
where
—Cartesian coordinates (ship’s position),
—deviation from the course,
—angular velocity,
—longitudinal speed,
—lateral speed,
—rudder angle,
—preset rudder angle,
—maximum rudder angle,
—maximum rate of turn of the rudder,
S—propeller thrust,
—coefficients determined from model tests (different for different types of vessels).
The ship movement parameters assumed here are those of a ship of mariner class, such as the m.s. Compass Island [
23]:
a1 = 0.018(1/s),
a2 = 37.2(s/rad
2),
a3 = 0.001(1/s
2),
f = 0.014(1/s),
w = 124(m/rad
2),
s = 0.11(m/s
2),
r1 = −69.5(m/rad),
r3 = 0(m·s
2/rad
3). The selected ship has the following characteristics: gross registered tons 9214 (
t), 13498 DWT (Dead Weight Tonnage) (
t), single screw, length 172 (
m), maximum draft 8 (
m), maximum speed 20 (
knots), maximum (minimum) angular velocity
rmax = 0.0191(rad/s) (
rmin = −0.0191(rad/s)), maximum (minimum) rudder angle
δmax = 0.6(rad) (
δmin = −0.6(rad)), maximum (minimum) rate of turn of the rudder
= 0.066(rad/s) (
= −0.066(rad/s)).
In order to take account of disturbances, the simulations included a signal characteristic of wind-induced sea waves (the wind direction conforms with the direction of the Y axis) [
22].
The established initial parameters of the simulation were as follows: angular velocity r = 0 (rad/s), deviation from the course ψ = 0 (rad), rudder angle δ = 0 (rad), ship’s speed v = 7.7 (m/s), and ship’s position . The time span of the simulation was determined at 1000 (s).
The track to be followed by the ship was determined by setting the waypoints , , , and .
The calculation experiments were conducted to compare the performance of the proposed adaptive system and the LQR regulator without the identification of the model parameters. The values
,
,
,
R = 500 (m) were arbitrarily accepted as the LQR regulator parameters.
Figure 3 shows an example simulation result for the case where the initial estimates of the Nomoto model parameters assumed the values
a0 = 0.02 (1/s) and
c0 = 0.002 (1/s
2) (nominal values
a = 0.018(1/s),
c = 0.001(1/ s
2)). Preliminary estimates of the Nomoto model parameters were used for the determination of the LQR regulator’s gain and as input data for the adaptive algorithm. The charts illustrate, respectively, the simulation results: ship movement trajectory, control quality indicator, rudder angle, and deviation from the course. It can be observed that both the control by the proposed method and by LQR lead to the ship correctly stabilizing its position relative to the planned track. However, the proposed method had a significantly higher control quality. This applies to the value of the control quality indicator (lower for the proposed method) and to oscillations and overshoots (lower in the proposed method). It should be noted that the oscillation of the presented system (the lower left chart) can depend on the parameters
, which is interpreted as a compromise between the deviation from the route and the rudder angle (steering gear load). The automatic selection of these parameters goes beyond the framework of this work and will be examined in the future.
The situation presented in the experiment is typical of this kind of research. In all cases considered, the value of the quality indicator for the ship controlled by the proposed adaptive system was lower than in the case of the LQR regulator without the identification of the model parameters. The method led to a reduction of the control quality indicator value to 15%, depending on the assumed initial estimates of the Nomoto model parameters.
6. Conclusions
The article presented an adaptive control system for keeping track of a ship as an element of an intelligent system applicable in modern marine navigation [
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35]. An optimal LQR regulator with a symmetric indicator of control quality was adopted as the control algorithm. The model identification was based on the continuous version of the least squares method.
The results of calculation experiments clearly confirmed the high quality of control of the proposed adaptive system. This refers to the minimization of the control criterion values as well as the reduction of oscillation and overshoot. In all examined cases, the control quality of the proposed system was higher than that of the LQR regulator without the identification of the model parameters.
The proposed solution effectively stabilized the ship’s trajectory relative to the desired track, and the whole process ran in the online mode. The simplicity of the method and the lack of application limitations are relevant for the implementation of the developed system on vessels. The proposed adaptive algorithm for automatic track-keeping by a ship is a functional solution, characterized by high control quality that can be effectively implemented in navigational systems.