1. Introduction
Autonomous underwater vehicles (AUVs) are a unique solution for underwater missions, including resource exploration, target search, submarine pipeline tracking, environmental monitoring, and submerged floating operations [
1,
2,
3]. AUVs’ motion control is a significant part that helps them to complete their tasks and confront many difficulties, such as model uncertainties [
4], limited resources [
5], and constraints [
6]. The limited onboard energy resource is one of the key factors affecting long-term AUV detection, cruise, operation, and other missions in the complex marine environment [
5,
7]. One of the most perceivable trends for marine robotics is the development of energy efficiency [
8]. Therefore, energy consumption optimization is an important part of AUVs’ ability to complete their tasks [
9,
10].
An energy consumption reduction for underwater vehicles can be achieved by a variable buoyancy system (VBS) and improvement of the control method. A VBS is one effective approach to reduce the energy consumption that is widespread in the gliders of AUVs that need a large depth change [
5]. However, it cannot be implemented in AUVs without a VBS. Unlike the depth control for VBS-equipped AUVs in which the buoyancy can be adjusted, researchers can achieve the goal of an energy consumption reduction by optimizing the rudder or thruster control inputs calculated by an improved control method, e.g., model predictive control (MPC), which can reduce the energy consumption by tuning the matrices of the cost function to optimize the predictive inputs.
Nowadays, many control methods have achieved high tracking accuracy, such as sliding mode control [
11,
12], neural network control [
13,
14], and fuzzy control [
15,
16]. In addition, some published articles, such as [
17,
18,
19,
20], pay attention to the energy consumption optimization of AUVs by improving the control method. In [
17,
18], an energy suboptimizer block based on the Euler–Lagrange equation is introduced into the cost function to address the issue of energy optimization. The simulation results illustrate that the energy suboptimizer block saves a substantial amount of energy at the cost of sacrificing accuracy within an acceptable bound. A reward function is proposed to reduce energy consumption and sudden variations of the control signals when a reinforcement learning neural networks method is used for AUV control in [
19]. The reward function consists of a square tracking error, an input, and input changes. The square tracking error term is used to penalize deviations of the actual trajectory from the desired trajectory, and the input and input changes terms are used to minimize the thruster use to optimize energy consumption. An improved linear quadratic regulator (LQR) is developed in [
20], which chooses a cost function composed of a square tracking error and a square input. Energy consumption is reduced by optimizing the weight matrices with the genetic algorithm.
For its advantages of receding horizon optimization and handling constraints explicitly, MPC has become a mature technology in industries today [
21], and many researchers implement MPC in the control of AUVs [
22]. With respect to the efficient usage of resources, in [
23,
24], an event-based generalized predictive control (GPC) solution is developed to deal with the actuator deadband, with the core idea of tuning the control signal only when significant modification is needed to reduce frequent changes in the actuators, to reduce the resources’ utilization. In [
25], an innovative hybrid agent-based MPC control method is developed, with a cost function that depends on the fuel cost, the exergy destruction cost, and the primary exergy destruction cost, to reduce energy consumption for room air temperature maintenance. A novel cost function for energy consumption, with the addition of a controlled heating/cooling power term, is defined in [
26], and the efficiency of the cost function for energy consumption is illustrated by test cases. However, as far as we know, there are no results on the energy consumption optimization of AUVs with the MPC method.
The control law of MPC is constructed by minimizing the cost function. The terms of the cost function are linked to the minimization of some control objectives. Generally, these are the deviations of the predicted outputs from the reference trajectory and the predicted changes of the input vector [
27,
28,
29]. For its attractive features of the receding horizon control principle and the ability to handle constraints explicitly [
30], MPC has been implemented in the control of AUVs and remotely operated vehicles (ROVs). A simulation in [
31,
32,
33] confirms the feasibility of MPC. Experiments with an MPC controller for AUVs or ROVs have been carried out, and the experimental results provide clear evidence to show that MPC can achieve a high control accuracy [
34,
35,
36]. However, there is no term that optimizes the energy consumption in the cost function of MPC.
In our previous work, we have applied MPC to the depth control of AUVs together with a predictive model of a state-space model [
37]. The advantage of high accuracy during trajectory tracking control makes it possible to reduce the energy consumption at the cost of compromising accuracy within an acceptable boundary. It is worthy of study for AUVs with limited energy resources.
This paper focuses on energy consumption optimization using MPC based on the state space model of AUVs. A quadratic energy term is added into the cost function of MPC to reduce the energy consumption while minimizing the deviations of the predicted outputs from the reference trajectory and the predicted changes of the input. Furthermore, a simulation with the UVIC-I AUV model [
37,
38] is carried out to validate the effectiveness of the proposed MPC methods.
This paper is organized as follows.
Section 2 describes MPC based on an AUV’s state-space model, and an analysis of the shortcoming of energy consumption for the cost function of MPC is given. A quadratic energy term is introduced into the cost function, and the MPC control law is reconstructed in
Section 3. The effectiveness of the proposed approaches is verified by simulations in
Section 4. Finally, we conclude the paper in
Section 5.
4. Simulation Results and Discussion
In this section, simulation results are given to illustrate the effectiveness of the proposed method (i.e., MPC using the cost function considering energy consumption), and the comparison method is the conventional MPC (i.e., MPC using the cost function without considering energy consumption). At the end of this section, different uncertainties in system dynamics are considered, and a simulation of tracking the sinusoidal and triangular trajectory is added to demonstrate the effectiveness of the proposed method in coping with model uncertainties.
The reference trajectories in this paper are the step trajectory, the sinusoidal trajectory, and the triangular trajectory. We evaluate the simulation results with the settling time, the average of absolute tracking error, and the quadratic energy consumption, when tracking the step trajectory. The maximum of absolute tracking error, the average of absolute tracking error, and the quadratic energy consumption are used to evaluate the simulation results, when tracking the sinusoidal trajectory and the triangular trajectory. All of the values are calculated from the data in the simulation intervals.
According to [
17,
39], quadratic energy consumption is calculated using Equation (28):
and the percentage of energy consumption reduction is calculated with Equation (29):
where
Tsim is the simulation interval,
Tc is the control interval,
ui is the input of MPC of this paper at time
i, and
ui′ is the input of conventional MPC at time
i.
In the simulation, the input subjects to −16 N ≤
u(
k) ≤ 16 N. The depth sensor we usually used for the AUV has a Gauss noise with an intensity of about 20–28 dBW, which is caused by an output ripple of the power depth sensor supply, circuit interference, or other reasons. Thus, in this paper, a Gauss noise with an intensity of 28 dBW, in millimeters, is added to the output to simulate interference in practice. It can be seen from
Figure 1 that the amplitude of eigenvalues of
K∆x increases as
α and
β increase. The smaller
α and
β, the better the system stability becomes. Thus, we choose
α in the interval of [0, 0.05] and
β in the interval of [0, 0.005]. To obtain an acceptable trade-off between the tracking error and energy consumption, finally we set
α = 0.01 and
β = 0.0001. To simulate the practice in [
27] as much as possible, the control interval
Tc is set to 1/6 s and the simulation interval
Tsim is set to 400 s. The parameters for the simulation are summarized in
Table 2.
4.1. Simulation of Tracking the Step Trajectory
In this simulation, the initial depth of the AUV is 0 m, and the initial speed is 0 m/s. The reference depth trajectory in this paper is considered as:
The contrast simulation results of tracking the step trajectory with conventional MPC and MPC of this paper are shown in
Figure 2.
It can be seen from
Figure 2a,b that both the conventional MPC and MPC of this paper can track the reference trajectory precisely. The settling time with MPC of this paper is little longer than that with conventional MPC, changing from 12.67 s to 12.83 s. The depth simulation curves of the contrast methods are almost same in the steady stage. From
Figure 2c, the input with MPC of this paper has less fluctuation than the input with conventional MPC, resulting in less energy consumption.
To give a quantitative analysis, the results of
Figure 2 are summarized in
Table 3. From
Table 3, it can be seen that the average of absolute error over the entire simulation changes from 0.05600 m to 0.05622 m and the average of absolute error over the steady stage changes from 0.02020 m to 0.02001 m, implying that the tracking accuracy with MPC of this paper is a little worse than that with conventional MPC. However, the quadratic energy consumption reduces from 69,813 N
2 to 46141 N
2, with a reduction percentage of 33.91%. The data in
Table 3 shows that MPC of this paper can reduce the energy consumption obviously when tracking the step trajectory.
4.2. Simulation of Tracking the Sinusoidal Trajectory
In this simulation, the initial depth of the AUV is 0 m, and the initial speed is 0 m/s. The reference depth trajectory in this paper is considered as:
The contrast simulation results of tracking the sinusoidal trajectory with conventional MPC and MPC of this paper are shown in
Figure 3.
From
Figure 3a, we can see that both the conventional MPC and MPC of this paper can track the reference trajectory well, even if the initial deviation of the depth from the reference trajectory is large. It can be seen from
Figure 3b that the maximum of absolute tracking error with MPC of this paper is a little larger than that with conventional MPC when the initial deviation is eliminated. Similar to tracking the step trajectory, from
Figure 3c, the input with MPC of this paper has less fluctuation than the conventional MPC, leading to less energy consumption.
To give a quantitative analysis, we summarize the results of
Figure 3 into
Table 4. It can be seen from
Table 4 that the maximum of absolute tracking error changes from 0.12526 m to 0.13748 m and the average of absolute error over the entire simulation changes from 0.03264 to 0.05479 m, meaning that the tracking accuracy with MPC of this paper is a little worse than that with conventional MPC. However, MPC of this paper cuts the quadratic energy consumption down from 113,380 N
2 to 88,334 N
2, with a reduction percentage of 22.09%. The data in
Table 4 can illustrate that MPC of this paper is feasible for energy consumption reduction when tracking the sinusoidal trajectory.
4.3. Simulation of Tracking the Triangular Trajectory
In this simulation, the initial depth of the AUV is 1 m, and the initial speed is 0 m/s. The reference depth trajectory in this paper is considered as:
The contrast simulation results of tracking the triangular trajectory with conventional MPC and MPC of this paper are shown in
Figure 4.
Similar to the simulation of tracking the sinusoidal trajectory, in
Figure 4, both the conventional MPC and MPC of this paper can track the reference trajectory well. The maximum of absolute tracking error using MPC of this paper is a little larger when the initial deviation is eliminated. In
Figure 4c, the input with MPC of this paper, with less fluctuation, results in less energy consumption.
The results of
Figure 4 are summarized into
Table 5 for a quantitative analysis. It can be seen from
Table 5 that the maximum of absolute tracking error changes from 0.12219 m to 0.14056 m and the average of absolute error over the entire simulation changes from 0.03073 to 0.05173 m. The tracking accuracy with MPC of this paper is a little worse. The quadratic energy consumption reduces from 89,207 N
2 to 65,113 N
2, with a reduction percentage of 27.01%. The results illustrate that MPC of this paper has the ability to reduce the energy consumption when tracking the triangular trajectory.
4.4. Simulation with Model Uncertainties
Similar to [
42,
43], we use multiplicative uncertainty in this simulation, e.g., 10% uncertainty means that the plant model is (1–10%) of the model used for control design in the continuous-time domain. Three cases (10%, 30%, and 50%) of uncertainty in system dynamics are simulated, with the same Gauss noise.
In this simulation, the initial depth of the AUV is 0 m, and the initial speed is 0 m/s when tracking the sinusoidal trajectory. The reference depth trajectory is as shown in Equation (31). The initial depth of the AUV is 1 m, and the initial speed is 0 m/s when tracking the triangular trajectory. The reference depth trajectory is as shown in Equation (32). The results are shown in
Figure 5, and the results of
Figure 5 are summarized into
Table 6 and
Table 7.
It can be seen from
Figure 5,
Table 6 and
Table 7 that the system dynamics uncertainty has a tiny effect on the maximum of absolute tracking error and the average of absolute tracking error, meaning that the MPC method in this paper is insensitive to the uncertainty in system dynamics on tracking accuracy. The percentage of energy consumption reduction decreases slightly with the increase of model uncertainty, whereas the reduction percentage is still more than 20%, meaning that the proposed method is feasible and effective for reducing energy consumption in AUVs even with great model uncertainty.