Abstract

The attitude control and depth tracking issue of autonomous underwater vehicle (AUV) are addressed in this paper. By introducing a nonsingular coordinate transformation, a novel nonlinear reduced-order observer (NROO) is presented to achieve an accurate estimation of AUV’s state variables. A discrete-time model predictive control with nonlinear model online linearization (MPC-NMOL) is applied to enhance the attitude control and depth tracking performance of AUV considering the wave disturbance near surface. In AUV longitudinal control simulation, the comparisons have been presented between NROO and full-order observer (FOO) and also between MPC-NMOL and traditional NMPC. Simulation results show the effectiveness of the proposed method.

1. Introduction

Autonomous underwater vehicle (AUV) is an important tool for ocean exploitation. Due to its strong autonomous ability, AUV can complete the mission given by human and has become widely used in military and scientific research [1].

Underactuated AUV is a kind of underwater vehicles whose actual control inputs are less than degrees of freedom (DOF) [2]. When AUV navigates near surface, diving control is one of the key research fields; a variety of methods have been proposed for AUV in vertical plane. Yan et el. [3] proposed backstepping technology and IFTSMC for surge velocity and depth control, respectively. However, the coupled interaction between the two controllers was not considered. An improved dynamic fuzzy SMC is established to enhance the depth tracking control performance in [4]. Adhami-Mirhosseini et al. [5] proposed a nonlinear dynamic controller combined with Fourier series expansion and pseudospectral ideas to achieve the depth tracking objective. In [6], an analytical SMC method is used to obtain the time optimal trajectory tracking, and the effectiveness of the proposed controller was verified via simulations. The fuzzy feedback linearization methods studied in [7] abandoned two general assumptions and used the nonlinear dynamics of depth motion directly. However, discrete-time model was not taken into consideration, and there is lack of simulation verification of the proposed algorithm. Hsu and Liu [8] investigated a steady-state depth errors problem caused by center of gravity change and considered the effects of gravity and buoyancy in AUV dynamics. By adding a switching PI controller in external-loop, the steady-state depth errors were eliminated finally. A static output feedback controller was studied in [9] to complete the diving task; however a linearized model was used.

Model predictive control can calculate a sequence of future control signals in advance, in order to track a given future reference. Moreover, predictive control allows the integration of system constraints in the controller design and minimizes a cost function defined over a prediction horizon, ensuring near-optimal performance of the system. The predictive control of AUV motion is one of the promising research areas in marine control systems field. In [10], visual servoing MPC is used to bring current-influenced AUV aperiodic algorithm-generated control loop closures. A cost function minimization method is used in [11] with MPC, called least squares, whose advantage is the real-time execution ability to optimize sawtooth paths for an underwater glider. A reduced dynamical model proposed in [12] is used to control AUV in vertical and horizontal planes, respectively. The MPC is formulated as two independent optimization parts. However, by using the same initial states for both parts of linearization and neglecting the weakly coupled states, the control optimization differs from the actual situation a lot. In [13], a sampling based MPC is proposed to generate the control sequence with constraints effectively. These methods have a good performance in the field of MPC use for AUV, but they do not deal with wave disturbances. The method in [14] used MPC to predict future disturbances and counteract the wave disturbances. A linear wave theory solver is employed by estimator to approximate the fluid dynamics, but constraints were not considered. NMPC is an extension of MPC by using nonlinear systems and constraints; applications of NMPC for AUV are less frequent. In [15], NMPC is used to design the kinematic loop in a hierarchical structure for AUV DP control.

Because of fewer actuators and sensors, there is an advantage for underactuated AUV to simplify the design and reduce costs. However, it brings highly coupled nonlinear models, which increases the difficulty of controller design. In general, some state variables of AUV are unmeasured due to a lack of sensors or sensor faults. So an observer-based controller becomes significant. A dual observer in [16], which combines a state and a perturbation observer, aims to solve the problem about being sensitive to external disturbance. Zhang et al. [17] considered the elevator angle constraints and proposed a controller based on MPC with artificial bee colony algorithm, and a classical linear state observer is used. In [18], a novel discrete-time proportional and integral observer is used to estimate the states, output, input, and disturbance together. Zhang et al. [19] proposed a new reduced-order observer with multiconstrained thoughts by using specific system decomposition. However, these results only use linear models.

In contrast, most practical systems are nonlinear and therefore nonlinear models are required. Kinsey et al. [20] proposed a nonlinear observer based on dynamic model of AUV, which is used to estimate the vehicle’s velocity. However, in their model, the coupling terms are neglected and there was only one degree of freedom. Mahapatra et al. [21] investigated a nonlinear feedback control algorithm with a nonlinear state observer, but the error dynamics stability was not considered in observer design. Zhang et al. [22] extended an adaptive state observer to a class of nonlinear systems. However, due to the selected special Lyapunov matrix, there is a reduction of the accuracy of state estimation.

At the same time, MPC need state variables to achieve desired output tracking in the minimization of cost function, so the role of observer-based MPC has a prominent position in practical implementation. However, there is a situation that some states variables of underactuated AUV can be measured. So it is not necessary to estimate all the variables. Compared with FOO, reduced-order observer (ROO) has simplified structure and good estimation performance [23, 24], which can be designed to estimate only the unmeasurable states. Recently, ROO designs used in MPC are exploited in both linear [25, 26] and nonlinear systems [2730]. However, few research results are reported on NROO-based MPC for AUV. So the motivation of this paper is the aforementioned problems and deficiencies, and the aim is to design a NROO-based MPC with nonlinear AUV kinematics and dynamics model.

In this paper, a model predictive controller with nonlinear model online-linearization based on NROO is proposed to solve the attitude control and depth tracking issues. The design process is as follows. First, the nonlinear dynamics in AUV vertical plane are described and Euler approximation is used to discrete the proposed model. Second, the nonlinear reduced-order observer is designed according to the dynamics above, to estimate the unmeasured state variables of AUV. By solving a convex optimization problem and using LMI technique, the estimation performance is enhanced and the wave disturbance influence is restricted. Third, a model predictive control based on model online-linearization is presented, in which the controller design process is independent of the NROO and it is convenient for the following simulation. Finally, simulation results show the good robustness and efficiency of the proposed methods, which can be applied to AUV attitude control and depth tracking field.

The rest of the paper is organized as follows. Section 2 described the AUV vertical plane dynamics. NROO design is proposed in Section 3. Section 4 introduces the MPC-NMOL strategy. Section 5 gives the simulation results of AUV to verify the effectiveness of the proposed approach.

2. AUV Vertical Plane Dynamics

The vertical plane dynamic and kinematic model of AUV are described in this section, and the following assumptions are considered.

Assumption 1. AUV navigates at a constant speed .
To analyze the diving control, sway, yaw, and roll motions can be ignored, and that means , , and .
Center of buoyancy stays constant with no change made to external hull, but the position of center of gravity is variable.
The hydrodynamics drag terms whose order is higher than two are neglected.
Pitch angle has small perturbations at zero.
Therefore, the dynamic and kinematic model of AUV can be expressed in the nonlinear forms as follows:where, are the moment of inertia and the mass of AUV, respectively, and are the coordinates of AUV’s center of gravity and buoyancy, , , and are the surge, heave, and pitch angle velocity in body-fixed frame, respectively, are depth in earth-fixed frame, is the elevator deflection angle, , , , , , , , , , , , and are the hydrodynamics coefficients of AUV, and , are the wave force and moment.

The nonlinear model (1) can be simply expressed as the following system:where

Due to the digital controller implemented by using zero-order hold, a discrete-time vector-form nonlinear state equation is obtained by Euler approximation [31].where , , , , , is the sampling period, , , , , is the input , is a nonlinear-term vector, and denotes the output vector. In this paper, , , , , is a full-rank matrix, and , and we assume that pair is observable.

Remark 2. In this paper, the disturbance due to surface waves is considered as the main disturbance type and written as . Sea state is used to classify the sea conditions and expressed by wind speed and wave height. Wave height is affected by wind, and the wave profile is affected by water depth. For surface waves modelling, we assume the long crested and unidirectional sea state. The superposition principle is used to complete an irregular long crested wave sea state simulation. The single parameter Pierson-Moskowitz spectrum [32] is used in this model and its spectrum density is defined as follows:where is the significant wave height (m) and is wave frequency. Assuming the AUV body is small enough compared with the incoming wave and the wave speed is large enough in relation to the hull diameter , the transient force and moment are found by using Morison’s equation [33] and integration along the length of the hull at each step is obtained below:where is fluid density, is the drag coefficient, and is the added mass coefficient.

In (7), where is encountering frequency, , is the equal interval frequency waveband and chosen in this article to discretize the wave spectrum, is wave number, and is random phase shift () in relation to each frequency.

Assumption 3. is a Lipschitz function [34] vector:which is assumed to satisfy the following conditions:(1)The effect of is approximated to zero.(2),where is a Lipschitz constant and denotes the Euclidean norm. Moreover, .

Remark 4. This paper proposed MPC-NMOL design method based on NROO for a nonlinear Lipschitz model of AUV. The NROO is independent of the MPC-NMOL, which is constructed to guarantee the stability and performance of AUV diving motion. Figure 1 shows the structure of the proposed system.

3. Nonlinear Reduced-Order Observer Design

3.1. NROO Algorithm Design

Consider that is full-row rank, and there always exists a matrix such that is nonsingular ( can be given as an orthogonal basis of the null-space of ). Then under the nonsingular coordinate transformation , in which is used, the dynamics (5) can be expressed into the formwhere and are new state vectors, is identity matrix whose dimension is , and and then

By using the hypothesis input and output : we get

From the dynamics (14), NROO is constructed as where is the observer state of the reduced-order system (14), is the output of reduced-order observer, and is the observer gain matrix.

Denote and then, from (14)–(16), the state estimation error dynamics are described by the following:

Equation (18) is rewritten as the following form: where , , , and .

Theorem 5 gives a constrained NROO design, whose state estimation performance is specified via a performance index.

Theorem 5. Let a prescribed performance level , and if there exist a symmetric positive definite matrix , a matrix , and a such that the following condition holds:where and denotes the symmetric elements in a matrix, then the error dynamics (18) satisfy performance index , and the NROO gain matrix can be obtained by .

Proof. Choose the following Lyapunov function:According to error dynamics (18) and (21), the difference is Since is measurable, can be substituted by , and the observer state can be written asOne getsSince and satisfies the Lipschitz condition for a positive scalar we have The above inequality is multiplied by on both sides, and we have which is where is the smallest eigenvalue matrix.
We defineUnder zero initial conditions, one gets Substituting (22) and (28) into (30), it follows thatwhere By using the Schur complement lemma, is equivalent to Furthermore, (33) can be rewritten asLet us use Schur complement lemma again; finally, we obtain (20), which guarantees . So if (20) holds, then (19) is exponentially stable with a performance index .

Remark 6. We use the measurable output and the inequality for any matrix and real vector , to make the Lipschitz condition transform into , which guarantees the diagonal element is nonzero and negative and helps to form constraint (20).

Remark 7. In Theorem 5, the LMI constraint (20) estimates the states by suppressing the influence of the disturbance term on . By solving the convex optimization problem, the level can be obtained, in order to minimize . Apparently, the NROO order is less than the FOO [35] order , and the transfer function from to is simplified. Therefore, NROO has the advantages of simple construction and better performance, which is compared to FOO.

3.2. NROO Existence Condition

On one hand, for the existence of NROO, the necessity of condition has been proved in [36]. It is called observability with unknown input, which means the necessity of condition can guarantee the observability of systems with unknown disturbances .

On the other hand, for the existence of FOO, the necessity of condition requires the pair to be observable [35]; that means

It is not difficult to prove that the formula above is equivalent to the necessity of condition in NROO, because the nonsingular coordinate transformation which will be introduced in next section cannot transform the observability of the system, which means the NROO has the same range of application as FOO in this paper.

3.3. State Estimation

The NROO gain matrix has been derived in the previous section. However, hypothesis output includes future output which is not available in practical implementation. In this section, a novel expression will be introduced for state estimation.

Substituting (16) and (23) into (15), one gets

Then, substituting and into (36) yields

We denote in order to eliminate as follows:Finally, the state estimator is

4. Model Predictive Control with Nonlinear Model Online Linearization

4.1. Nonlinear Predictive Model Online Linearization

In this section, MPC-NMOL was proposed to deal with the nonlinear state equation (5). Due to the time-consuming and computational complex problem, nonlinear optimization is converted into a quadratic optimization, by considering an online linearized method. Using gain scheduling technique [12], the online linearized dynamics at current sampling instance are given as where the nonlinear-term is linearized from , and one gets where the current operating state is defined by the estimation state at sampling instance.

We denote the general expression as follows: where the nonlinear-term coefficient in (42) can be calculated by , , and mentioned before.

Substitute (42) into (41), and we can get where

We assume that where is the predictive horizon. Then, considering that is the difference between the estimation state and (calculated by , , and ), this means

Here the wave disturbance model can be considered as the state disturbance and we can use it to estimate the external disturbance in vertical plane of AUV motion.

Denote and then the iterative predictive states over at step is where is the predictive input at step .

When we implement MPC algorithm, an incremental predictive model is always required, and therefore the input can be replaced by which meansand here we assume that will change just at every step () and remain constant after step ().

With the assumption that the predictive value of at sample instance is zero, the vector output prediction equation can be calculated and expressed in condensed form which predicts the future dynamic behavior of the AUV longitudinal motion over the horizon :where

4.2. Consideration of Constraints

In order to guarantee the correct operation of the AUV, the constraints of the input elevator deflection over control horizon and system output over predictive horizon are used to define and for each time step considering the physical limitations of the driving device in practical implementation, and one obtains

For simplification of the following discussion, and without loss of generality, we set the control horizon , and then from (52) we can getwhere

We describe (53) by which is equivalent to the constraints in the next section, and the constraints of the elevator deflection angle and pitch angle , corresponding to the inputs and outputs of the MPC, are characterized by and .

4.3. Optimization with Constraints

Conventional MPC performance index can be written aswhere is a future reference vector and and are positive definite weighted matrices.

To simplify the expression, (56) can be rewritten as follows: where

To minimize the quadratic function subject to (55), a QP (Quadratic Programming) problem has come out. Let us consider the expression which contains the Lagrange multipliers, that is, a QP problem subject to equality constraints , by the formula below:

The minimization of is to take the first partial derivatives with respect to and , and we make them equal to zero and obtain the formula below:

The minimization of can be made by finding the optimal and via (60) and (61) where where is the global optimal solution.

The inequality constraints may comprise active constraints and inactive constraints in (55). We use both and to form the inequality constraint. If , an inequality constraint can be considered as active, and if , it is inactive. Here we use the Kuhn-Tucker conditions [37] to define the active and inactive constraints in terms of . If the active set were known, the original problem could become equality constrains problem in (59).

In the conventional active set method [38], which belongs to the primal methods, the solutions are based on (called decision variables). If the MIMO system has too many constraints, the calculations are complex and it is not a straightforward work.

A dual method can be used to identify the constraints which are inactive systematically. The inactive constraints can be eliminated in the solution, and are called dual variables here. For constrained minimization problem, this method is a very simple programming procedure. The dual problem is derived from original primal problem as follows. Substituting (63) in (59), the dual problem is written as where the matrices and are given by

Subject to , we minimize the dual performance indexwhere the set of are denoted as . By using Hildreth’s QP procedure [39] the dual problem is solved and the method can be written as withwhere is the th element in , is the th element in , and is the number of rows of . In this method, there are and in one iterative cycle. And we set , at , and the iterative procedure will converge to as a result. Substitute into (63) and we have where .

According to the receding horizon control in MPC, the first elements (elevator deflection ) in are taken to construct .

Remark 8. Because Hildreth’s QP is a search-based point-by-point algorithm, there is no matrix inversion calculation. However, if the number of the active constraints is more than the number of ’s or the active constraints are linearly dependent, then will not converge to and the iteration will terminate at the largest value of the iterative counter. But the algorithm will not end because there is no matrix inversion calculation. In this case, finally, the algorithm will end in a near-optimal solution with the violation of constraints. This is the reason why we use Hildreth’s QP here, for its good ability to automatically recover from a deterioration constrained process.

4.4. Steps of NROO-Based MPC-NMOL with Constraints

(a)Set values of , , and specify , .(b)Get the estimation of current state , sample current depth , and pitch angle .(c)Calculate matrix by online-linearization at current operating point which is defined by , to get matrixes , , and . Update constraints matrixes and by using , and then , , and can be calculated.(d)Check if the global optimal solution satisfies the constraints. If so, make equal to zero vector and go to (f). If not, go to (e).(e)Calculate matrices and , and then the dual variable can be calculated from (61).(f)Get from optimal solution .(g)Go to step (b).

5. Simulation Results

In this paper, simulations are presented to demonstrate the effectiveness of NROO-based MPC-NMOL. The method is used in a given depth control of REMUS AUV which is developed by MIT (Massachusetts Institute of Technology). The values of nonlinear model parameters are shown as follows:

Here the physical parameters of REMUS AUV, which can be found from [40], are shown in Table 1.

5.1. Nonlinear Reduced-Order Observer Design

From the result that and are observable, we can easily verify the existence of NROO.

By using Schmidt orthogonalization, we can get the matrix from the combination of and its standard orthogonal basis . Obviously, the nonsingular matrix has only one form which is

We choose as the value of the Lipschitz constant, and then the matrices parameter values in (19) can be calculated as follows:

With the help of MATLAB LMI toolbox, condition (20) is solved to obtain ; at the same time, other results are found as follows:One obtains

Figures 2 and 3 show the estimation of and by using NROO and FOO. Although both observers can make the state estimation error converge asymptotically, compared to FOO, NROO has a better performance of state estimation.

5.2. Implementation of MPC-NMOL

The parameters of MPC are chosen as , , , and . The initial values of state variables are all zero. The waves disturbance exposed on REMUS is assumed at a level 3 sea state, , , , , and . The surge speed is , the desired depth is , and pitch angle is . Input and output constraints are

Case 1. First, we assume that there is no disturbance in simulation process, and NMPC is used to compare with the proposed method. Both of the two methods (MPC-NMOL and NMPC) have all state variables measurable. Figure 4 compares MPC-NMOL and NMPC simulation results of depth output. Figure 5 compares the simulation results of pitch output. Figure 6 compares the elevator deflection angle input.

Case 2. Next, it is assumed that wave disturbance affects the state process, and the other condition is the same as Case 1. Figures 79 show the comparison of depths, pitch angles, and elevator deflection angles with wave disturbance.

Figure 10 shows the wave force and moment, which can be seen as state process disturbance and assumed to be zero-mean white noise sequence. The wave force and moment are calculated from (7), so they have the same form but different amplitude. Furthermore, when we simulate the wave force and moment, we choose multiple influential frequencies which are near the given main frequency of P-M spectrum to superimpose the irregular waves.

All these results in Cases 1 and 2 demonstrate that AUV could achieve the desired depth and pitch angle under the wave disturbance. In addition, the input signals in MPC-NMOL are smooth and without control signal saturation.

6. Conclusions

In this paper, a NROO-based model predictive controller with nonlinear model online linearization for AUV in vertical plane is presented, which controls the depth and pitch angle. This design uses the NROO to estimate the states used in MPC. The design process of the controller also takes into account the practical elevator deflection constraints and output constraints. By using a Hildreth’s QP procedure, the constraints can be simply handled. Making use of the proposed MPC methods, the AUV can navigate in vertical plane with desired depth and pitch angle. It is robust against rough wave disturbance near surface. The simulations carried out provide the validation of the proposed methods, presenting fast dynamical response and strong robustness to external disturbances. Accurate control and state estimation can also be achieved.

Competing Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

The project is financially supported by the NNSF (National Natural Science Foundation) of China under Grant 51279039.