#### Abstract

To deal with the disturbances of wave and current in the heading control of Autonomous Underwater Vehicles (AUVs), an optimal disturbances rejection control (ODRC) approach for AUVs in shallow water environment is designed to realize this application. Based on the quadratic optimal control theory, the AUVs heading control problem can be expressed as a coupled two-point boundary value (TPBV) problem. Using a recently developed successive approximation approach, the coupled TPBV problem is transformed into solving a decoupled linear state equation sequence and a linear adjoint equation sequence. By iteratively solving the two equation sequences, the approximate ODRC law is obtained. A* Luenberger* observer is constructed to estimate wave disturbances. Simulation is provided to demonstrate the effectiveness of the presented approach.

#### 1. Introduction

Nowadays, there has been increasing interest in the use of AUVs to expand the ability to survey ocean areas, for example, exploration and exploitation of seafloor minerals, oceanographic mapping, and underwater pipelines tracking [1]. However, due to highly nonlinear and strongly coupled dynamics of AUVs and the environmental disturbances (such as currents and waves), it is always a challenge to design controller for AUVs. Recently, numerous nonlinear control methods have been utilized to achieve improved performances for motion control of AUVs. Typical results include sliding control, adaptive control, and optimal control. In [2–4], the sliding mode control techniques were applied to motion control of AUVs. In [5–7], the backstepping control approach was employed to design controller for path following of underactuated AUVs. In [8, 9], and controllers were presented for motion control of AUVs. In [10–12], the adaptive control methods were utilized for motion control of AUVs to improve robustness of the control systems. In [13], a suboptimal control approach was proposed for motion control of AUVs. In [14], a feedback linearization technique was applied for AUVs tracking problem. In [15], the combined problem of trajectory planning and tracking control for underactuated AUVs in the horizontal plane was addressed, and a backstepping approach was presented. In [16], Lyapunov approach and backstepping control approach were applied to design path-following controller of an AUV in the horizontal plane with constant ocean currents. In [17], an robust fault-tolerant controller was designed to improve the security and reliability of navigation and enhance the accuracy and robustness of navigation control system for AUVs.

Note that nonlinearity and disturbances such as currents and wave are unavoidable in AUVs control systems, which affect the performance of the AUVs system. At present, there are many methods to deal with these problems. In [18], an output feedback control approach was proposed for the trajectory tracking control of AUVs, which moved in shallow water areas. In [19], for the problem of dynamic positioning and way-point tracking of underactuated AUVs in the presence of constant unknown ocean currents and parametric modeling uncertainty, a nonlinear adaptive controller was proposed. In [20], a stable sliding mode controller was designed, which can track AUVs along the desired trajectory in complex sea conditions. In [21], an adaptive output feedback controller was presented for AUVs named ODIN to track a desired trajectory with bounded errors in wave disturbances condition. In [22], a second-order sliding mode controller was proposed for an AUV, which can compensate for disturbances such as waves, currents, and buoyancy force.

In the field of modern control, one of the key ideas is the use of optimization and optimal control theory to give a systematic procedure for the design of feedback control systems [23–25], LQR approach provides one of the most useful techniques for designing state feedback controllers. In order to overcome disturbances and nonlinearities for the AUV system, in this paper, an ODRC approach is proposed based on the quadratic optimal control theory. Firstly, the AUVs model and wave disturbances model are obtained, and according to disturbances type, an integral unit is introduced to eliminate its ocean current disturbances effect, and a feedforward control is used to reject wave disturbances. Secondly, for the AUVs heading control system, the coupled TPBV problem is derived from the maximum principle of optimal control theory. Then by using a successive approximation approach [26, 27], the coupled TPBV problem is transformed into solving two decoupled linear differential sequences in state vectors and adjoint vectors. By iterative solution, the ODRC law is obtained, and a* Luenberger* disturbances observer is constructed to make it realizable. The contribution in this paper is the ODRC approach which is applied to design rejection controller for AUVs in shallow water environment, which only requires solving the* Riccati* equation and the* Sylvester *matrix equation one time, while mainly solving a recursion formula of adjoint vectors.

This paper is organized as follows. In Section 2, the model of AUVs motion in horizontal plane is introduced, and the system of shallow wave disturbances is constructed. Section 3 presented an ODRC design for AUVs. Simulation validates the effectiveness of the designed controller under wave disturbances in Section 4. Section 5 provides the concluding remarks.

#### 2. System Models

##### 2.1. Mathematical Model of AUVs

A schematic of the six-DOF AUVs model with related coordinate system is shown in Figure 1.

The two reference frames are applied to the model: Earth-fixed frame and body-fixed frame. Descriptions of the parameters are expressed in Table 1 [28–30].

The Earth-fixed frame is treated as an inertial frame. In order to facilitate the analysis and synthesis for AUVs, the coupling effect between the roll surface movement and two cases of plane motion is usually ignored, and then the vehicle motion is divided into horizontal and vertical movement. The heading motion equations in horizontal plane are given in dimensional form aswhereIn system (1), is the control rudder angle; , , and , respectively, are the vehicle’s length, quality, weight, and buoyancy; is the density of seawater; , and , respectively, are the vehicle’s moment of inertia about -, -, and -axis; is the external disturbances; and are hydrodynamic coefficients.

Suppose that the axial velocity is a given constant, and the influences of the vertical plane motion and the parameters of the rolling motion are neglected; then we have

Define the heading instruction as a constant , and , heading error is , and thenConsidering the ocean current disturbances, an integral unit is introduced to eliminate the accumulated error

Define the state vector as , the control vector , and the dynamic model of the AUVs heading control system can be rewritten as follows:where, , and are defined in (6), is the initial state, and is a limitary nonlinear vector, which includes errors and uncertainties.

*Remark 1. *The limitary nonlinear vector satisfies the following* Lipschitz *conditions:where and are positive constants.

##### 2.2. Disturbances Model of Wave Force

The external disturbances for AUVs are complex. In the near water surface, the wave force disturbances are the most important factor to the AUVs system. But ocean waves are always irregular. In present study, the irregular long storm waves are often simplified [31–33] as follows:where is the th component wave number, is the th component wave frequency, is a random phase angle uniformly distributed within , is the th component wave amplitude, , is the th component ocean power spectrum density (PSD) function, and is the frequency discretization intervals of wave spectrum.

The wave force disturbances have been represented according to the Pierson-Moskowitz (PM) spectrum, written as where , , where is the acceleration due to gravity, and is the significant wave height in meters.

Considering the stationary waves on the sea surface, let and , and choose multiple regular wave superposition to get random waves, so the point long-crested waves are written aswhere is the number of superimposed waves, is encounter angle frequency, and is the encounter wave angle.

We construct a system model to describe the irregular wave forces for the AUV in two-dimensional horizontal plane.

Define as the horizontal velocity of water particle orbital motion.

Let ; taking the derivative of , we havewhere .

Define ; thenwhere is dimensional unit matrix and is dimensional zero matrix.

According to the linear wave theory, the wave force disturbances for the AUV system are as follows: So the total wave force disturbances for AUVs can be described by the following system:where and are real constant matrices of appropriate dimensions.

#### 3. Controller Design

According to the dynamic model of the AUVs heading control system (6), we select the following average quadratic performance index:where is the weighting matrix for states, symmetric positive semidefinite, and is the weighting matrix for the control inputs, symmetric positive definite. and are properly selected to shape the response characteristics in the closed-loop AUVs heading control system (6).

The optimal control problem is to search for a control law for system (6), which makes the value of the average quadratic performance index (16) minimum.

Applying the maximum principle of the optimal control problem in (6) and (16), the optimal control law can be written aswhere is the solution to the following TPBV problem:which is the optimality necessary condition, where and .

For the AUVs heading control system (6) and wave force system (15) with the average quadratic performance index (16), we now state the following theorem.

Theorem 2. *Consider the optimal control problem described by systems (6) and (15) with the average quadratic performance index (16). Then the ODRC law is existent and unique, and its form is as follows: where is the unique positive-definite solution of the following Riccati matrix equation: is the unique solution of the following Sylvester matrix equation:*

*Proof. *Letwhere , , and are the state vector, the wave force disturbances, and the adjoint vector, respectively.

It is well known that is the unique positive-definite solution of* Riccati* matrix equation (20). Substituting into (21), then can be solved uniquely; here . When and are got uniquely, therefore, we can obtain the ODRC law uniquely as follows:where and are the solutions of the following equations:and is the solution of the wave forces system (15).

By using the successive approximation approach [26, 27, 31, 34], we construct the adjoint vector sequenceand the state equation sequenceIt can be proved that the adjoint vector solution sequence in (25) uniformly converges to , and the state vector solution sequence in (26) uniformly converges to [26, 27, 31, 34].

When , the limits of and become the optimal state vector and the optimal adjoint vector .

Define ; then the ODRC law is rewritten as (19). This completes the proof.

*Remark 3. *It is usually impossible to obtain the exact adjoint vector when designing the ODRC law in practice. In many cases, it may be better to choose an as the approximation of where depends on a concrete error coefficient . The th-order ODRC law is as follows:

*Remark 4. *The th-order ODRC law consists of a feedback term , a feedforward disturbances rejection term , and a nonlinear compensatory term .

*Remark 5. *The wave disturbances are difficult to be measured and obtained, and is the state vectors of system (15); the ODRC law is physically unrealizable in practice. So, we construct a* Luenberger* disturbances observer to make it realizable as follows:where is the observation value of and is the observer matrix of appropriate dimensions. We can choose the appropriate dimensions matrix , and the eigenvalues of the matrix have negative real parts. Then the th-order ODRC law is as follows:

#### 4. Example and Simulation

##### 4.1. Simulation Model and Parameters for AUVs and Wave Force Disturbances

In this section, a simulation study is carried out using a typical AUV model [35] to demonstrate the performance of the proposed approach. The hydrodynamic coefficients of an AUV are shown in Table 2.

Assuming that the axial velocity is , the significant wave height is , and encounter angle frequency of wave is 0.6320 and 1.0470, then the PSD of the wave height is shown in Figure 2.

And the wave force can be calculated from (11), which is shown in Figure 3.

The matrices and vector of the AUVs heading control system (6) are as follows:

The parameters for the average quadratic performance index (16) are chosen asBy solving (20) and (21), we obtain

##### 4.2. Simulation Results and Analysis

Based on the AUV model and parameters, the state vector is considered as ; the simulation curves and at different iteration times are shown in Figures 4–8.

The average quadratic performance index values and errors , at different iteration times, are listed in Table 3, and is the control precision.

From Table 3, it can be seen clearly that the average quadratic performance index values decrease as iteration times increase and tend to a deterministic optimal value ultimately. If we choose the control precision , then the relative error of the average quadratic performance index values satisfies . It indicates that the 4th ODRC law is very close to the optimal control law . It is obvious that the proposed approach requires a few iterations to get the approximate ODRC law. And it is more robust about current and wave disturbances. Simulation results show that the proposed approach applied to the AUVs is effective.

#### 5. Conclusion

In this paper, the disturbances rejection control problem for the AUVs heading control system has been considered, and an ODRC approach has been designed. For the design, nonlinearities in the AUVs system are retained, and disturbances for the AUVs system are considered. By using a successive approximation approach, an ODRC law is proposed based on the quadratic optimal control theory, which consists of the optimal feedback item, the feedforward disturbances rejection item, and the nonlinear compensatory item. Finally, the effectiveness of the proposed approach has been illustrated by an AUV model.

#### Conflicts of Interest

The authors declare that they have no conflicts of interest.

#### Acknowledgments

This study was supported in part by the National Natural Science Foundation of China (61673357, 41276085, and 61572448) and by the Natural Science Excellence Foundation of Shandong Province (ZR2015FM004 and ZR2014JL043).