Full text
www.ietdl.org Published in IET Control Theory and Applications Received on 23rd September 2010 Revised on 2nd May 2011 doi: 10.1049/iet-cta.2010.0554 ISSN 1751-8644 Passivity-based control applied to the dynamic positioning of ships S. Muhammad1A. Dòria-Cerezo2 1Delft Institute of Applied Mathematics, Delft University ofTechnology, Mekelweg 4, 2628 CD, Delft,The Netherlands 2Department of Electrical Engineering and Institute of Industrial and Control Engineering, Universitat Politècnica de Catalunya, EPSEVG, 08800 Vilanova i la Geltrú, Spain E-mail: [email protected] Abstract: A family of passivity-based controllers for dynamic positioning of ships is presented. The authors exploit the idea of shaping the energy function of the closed-loop system to obtain different formulations of the passivity-based control law using the interconnection and damping assignment-passivity-based control (IDA-PBC) methodology. A salient feature of this study is that the proposed control laws are output feedback controllers and the relative velocity measurement is not required. First, we design and analyse two static controllers which can be seen as a non-linear version of the conventional proportional-derivative (PD) controllers. In presence of unknown disturbances, these controllers do not provide the desired regulation properties. To remove this discrepancy we propose, also in the context of the IDA-PBC technique, a dynamic extension of the system and obtain two new controllers that have the desired regulation properties. These new control laws can be seen as a non-linear version of the conventional proportional-integral-derivative (PID) controllers. Simulations are included to validate the theoretical results. 1 Introduction A dynamic positioning (DP) system is a computer controlled system which automatically maintains a vessel’s position and heading by using propellers and thrusters. The computer program contains a mathematical model of the vessel which includes information pertaining to the wind and current drag of the vessel and the location of the thrusters. This knowledge, combined with the sensor information, helps the computer to calculate the required steering angle and thruster output for each thruster. The first DP system was introduced in 1960 and since then they have emerged as a popular alternative for the conventional mooring and anchoring techniques for the dynamical positioning of the ships. Over the past decades, with the revolutionary developments in microprocessor technologies and availability of fast computing machines, DP systems have become more economical and reliable. Generally, in DP problems, only position and heading measurements are available. This leads to the use of observers to estimate the state (mainly the velocities and the bias term) which are required for feedback into the control law. This problem is studied in many papers. Some examples include the Luenberger observer used in [1], a nonlinear observer designed in [2], or a passivity-based scheme considered in [3,4]. Furthermore, the measured position and heading signals are noisy and, also, with two different frequency components. The total ship motion can be seen as a superposition of a low frequency component (because of the wind, sea currents and thruster forces and moments) and an oscillatory term (the so-called wave-induced wave frequency (WF) motion), which represents the effect of the waves [5]. However, DP only considers the slow variations and, consequently, the motion because of the waves should be removed before it enters in the controller algorithm. Kalman filtering techniques were proposed in [6,7] or see [8] for a recent overview. As pointed out in [3], Kalman filters require the use of a linear model, and the non-linear motion should be linearised at various operation points. To overcome this drawback, in [3,4], a WF observer is added to compensate the wave disturbances. Owing to the important role of the estimation and filtering process, the motion control system in the DP problem can be grouped in two basic subsystems: the observer system (or wave filter) and the controller; see Fig. 1. This paper is focused on the design of the control law assuming that the filtering and observation process are previously done. Various controllers have been proposed to stabilise the ship to the desired position. PI controllers are often used [5]; however, more advanced techniques are applied to this problem resulting in interesting control algorithms. Backstepping design, which also includes the observer stage, are presented in [2,9]. In [4] the whole stability of a proportional-derivative (PD)-type controller with a passive observer is proved using a separation principle argument. Recently, sampled-data control theory has also been applied to the DP problem for designing the control law [10]. Passivity-based techniques have been used in many applications. A nice feature of the passivity-based control 680 IET Control Theory Appl., 2012, Vol. 6, Iss. 5, pp. 680–688 © The Institution of Engineering and Technology 2012 doi: 10.1049/iet-cta.2010.0554
www.ietdl.org Fig. 1 Basic scheme of components of a ship motion-control system design is the physical meaning of the resulting control laws and the concepts, such as storage energy or dissipation play a fundamental role in the stability analysis and performance. Stability properties, based on the Lyapunov theory, can be easily studied for the obtained closedloop systems. In the last decade, the interconnection and damping assignment-passivity-based control (IDA-PBC) methodology has emerged as an easy and a (quasi-) stepby-step methodology to obtain passivity-based controllers; see for instance [11]. The IDA-PBC technique comes from the port-Hamiltonian formalism, which is based on shaping the energy function (called Hamiltonian function) of the system. This paper introduces the port-Hamiltonian model of a vessel with 3 degrees of freedom in the horizontal plane. The obtained port-Hamiltonian equations are the starting point for the design of controllers using the IDA-PBC technique. The main contribution of the paper is a family of passivity-based controllers, which use the energy shaping of the closed-loop system to ensure (local/global) asymptotic stability. The resulting control laws are output-feedback and robust in front of eventual disturbances. Two different energy functions are proposed in this paper. We start by illustrating the methodology using a quadratic and a trigonometric Hamiltonian function and recover a simple static controller, which guarantees asymptotic stability. The energy shaping, based on a trigonometric function, improves the heading control. These controllers do not produce the desired regulation properties in presence of unknown disturbances. Consequently, in order to achieve the desired performance, a dynamic extension is proposed, and it results in a control law that can be interpreted as a non-linear version of the conventional PID controller. A salient feature of the proposed controllers is that they do not require the relative velocity measures and, thanks to a dynamic extension, they also ensure a good regulation behaviour even in presence of disturbances or unknown (or non-estimated) terms. The presentation of the contents of this paper is as follows: Section 1 is reserved for the introduction. It explains some of the basic details of the problem under consideration and recalls some existing works on this subject. In Section 2, the port-Hamiltonian framework is introduced and an overview of the IDA-PBC methodology for the design of passivity based controllers is given. Section 3 contains the details of the ship model that we study in this paper and its port-Hamiltonian form is derived. In Section 4, a static controller based on the IDA-PBC methodology is obtained. Two variants, a quadratic and a trigonometric, of this controller are then analysed. The limitations of the static controller are studied in Section 5. Then, a dynamic extension is proposed to revamp the static controller for an improved performance. Section 6 contains the simulation results to give a qualitative measure of the performance of the proposed controllers and, finally, Section 7 consists of the concluding remarks. 2 Hamiltonian-based control 2.1 Port-Hamiltonian modelling A large class of physical systems of interest in control applications can be modelled in the general form of port-Hamiltonian systems (PHS) [12]. PHS generalise the Hamiltonian formalism of classical mechanics to physical systems connected in a power-preserving way and encodes the detailed energy transfer and storage in the system, and is thus suitable for the control schemes based on the IDA-PBC. A PHS can be written, in an implicit form, as ˙x=(J−R)∂H(x)+g(x)u(1) where x∈Rnis the state (or Hamiltonian variables) vector, J(x)∈Rn×nis the interconnection (skew-symmetric, J= −JT) matrix , R(x)∈Rn×nis the dissipation matrix (which is symmetric positive semidefinite, R=RT≥0), g(x)∈ Rn×mis the external connection matrix, u∈Rmis the control input vector, and H(x)is the Hamiltonian (or energy) function. The ∂x(or ∂, if no confusion arises) operator defines the gradient of a function of x, and in what follows we will take it as a column vector. The so-called passive output, y∈Rm, is given by y=gT(x)∂H(x)(2) and the product uTyhas, usually, unity of power. 2.2 IDA-PBC technique The IDA-PBC, [11], is a technique for designing controllers based on the port-Hamiltonian framework. It uses the passive stability properties to ensure the convergence of the system to the desired fixed point. The main idea behind the IDA-PBC is to define a new closed-loop (or target) system with a Hamiltonian structure. The design problem summarises into finding a control law such that the system behaves as ˙x=(Jd−Rd)∂Hd(3) where Jd(x)=−JT d(x),Rd(x)=RT d(x)≥0 and Hd(x) has a minimum at the desired regulation point xd,xd= arg min(Hd(x)). The stability of this system can be easily proved by using Hdas a Lyapunov function ( ˙ Hd(x)= −(∂Hd)TRd∂Hd≤0, see for instance, [11,13] for a detailed discussion). The design procedure reduces to finding matrices Jd(x) and Rd(x)and a desired closed-loop energy function Hd(x), which solve the so-called matching equation (J−R)∂H+gu=(Jd−Rd)∂Hd(4) Then, the control law becomes u=(gTg)−1gT((Jd−Rd)∂Hd−(J−R)∂H)(5) A drawback of the IDA-PBC controllers is that they are, in general, not able to reject disturbances. To remove this discrepancy of the control design usually a dynamic IET Control Theory Appl., 2012, Vol. 6, Iss. 5, pp. 680–688 681 doi: 10.1049/iet-cta.2010.0554 © The Institution of Engineering and Technology 2012
www.ietdl.org extension of the system is done to obtain an integral action on the output error. Extension of the closed-loop dynamics in the IDA-PBC framework can be done, in a natural way, only for passive outputs, [13]. A completely different problem addresses for non-passive outputs (or higher relative degree one outputs). In this case, a Hamiltonian-based controller with an integral action can be obtained via a change of variables [14]. Let us consider that the xo∈Rrare the higher relative degree one (or non-passive) outputs. The main idea is to introduce a new variable ze∈Rr, which is used to enforce the equilibrium point of the closed-loop system to the desired one, and a change of variables z=f(x,ze)∈Rn−rto cast the target system in a Hamiltonian structure as follows ˙xo ˙z ˙ze=⎡ ⎣ Jo−RoJzo−RzoJe −JT zo−RT zoJz−RzO3 −JT eO3O3⎤ ⎦∂Hde (6) The power-preserving interconnection structure of the proposed target system is defined by, Jo=−JT o∈Rr×r,Jz= −JT z∈R(n−r)×(n−r),Jzo∈Rr×(n−r)and Je∈Rr×r. Dissipation is given by Ro=RT o∈Rr×r,Rz=RT z∈R(n−r)×(n−r), and Rzo∈Rr×(n−r). Finally, the Hamiltonian function, Hde takes the form Hde =Hd(xo,z)+1 2zT eKeze(7) where Hdhas a minimum at the desired regulation point (xd o,f(xd o,0),0). Following the idea of the IDA-PBC technique, the stability is guaranteed if the dissipative matrix is positive semidefinite, that is, Ro≥0, Rz>0 and Ro−RzoR−1 zRT zo≥0. The key point of the PHS structure in (6) is that, the existence of a minimum of Hde in xd o, implies ∂xoHd|xd o=0 which, evaluated in the zedynamics, ˙ze=−JT e∂xoHd(8) ensures that xd ois an equilibrium point. 3 Ship model A useful model describing the dynamics of a surface ship sailing in a horizontal plane having 3 degrees of freedom, is given in [5], and it can be written as the following non-linear system ˙ η ˙ ν=O3J(ψ) O3−M−1Dη ν+O3 M−1τ+O3 M−1JT(ψ)b (9) where η=[xyψ]Tis the position coordinate vector in the Earth-fixed reference frame, ν=[uvr]T=[˙xr˙yr˙ ψr]T is the relative vessel-frame velocity coordinate vector, τ= [τuτvτr]Tis the vector describing the forces and the torque in vessel-fixed reference frame provided by the propulsion system of the ship acting in the surge, sway and yaw directions, respectively, and J(ψ) =cos ψ−sin ψ0 sin ψcos ψ0 001 is the coordinate transformation matrix, which relates the Earth-fixed frame to the relative-frame of reference. A Fig. 2 Description of the Earth-fixed and the vessel-fixed frames of reference description of the two frames of reference is given in Fig. 2. The Dand Mmatrices are given by D=d11 00 0d22 d23 0d23 d33,M=m11 00 0m22 m23 0m23 m33 which are positive definite, D=DT>0 and M=MT> 0, and O3isa3×3 zero matrix. The environmental disturbances because of the sea currents, waves, and wind are represented by b=[b1b2b3]T∈R3in the Earth-fixed reference frame. This bias term is constant in the Earth-fixed reference frame, under assumption of constant or slowly varying currents. Along this paper, it is assumed that these nature effects (some times called as bias forces and moments), which can also be modelled as a first-order Markov process [5], are either known or an estimate of the bias vector is available. Adding a note on the output of the system, we consider that the measurement system gives us noise free position and orientation measurements and that the WF components from the measured output are filtered or estimated. Hence, in this paper, we skip the dynamics of the bias and the WF components. The main goal in the dynamic positioning problem is to stabilise the ship in a given η-coordinate. Without loss of generality, our objective is to design an appropriate control law τ, which stabilises the system to the origin (x,y,ψ) = (0, 0, 0). Additionally, as the measurement of the relative velocity vector is not available, the control law should be independent of ν, and must be able to reject unknown disturbances or uncertainties. We can write the system described in (9)inaPHS form (1) by using as a state xT=[qT,pT]∈R6, where q=[q1q2q3]T∈R3represents the Earth-fixed position and heading, and the momentum p=[p1p2p3]T∈R3, is defined as p=Mν. Substituting η=qand ν=M−1pin (9), we obtain the following system ˙x=(J(q3)−R)∂H+gττ+gb(q3)b(10) with the following interconnection and damping matrices J(q3)=O3J(q3) −JT(q3)O3,R=O3O3 O3D(11) the external connection matrices gτ=O3 I3,gb(q3)=O3 JT(q3)(12) 682 IET Control Theory Appl., 2012, Vol. 6, Iss. 5, pp. 680–688 © The Institution of Engineering and Technology 2012 doi: 10.1049/iet-cta.2010.0554
www.ietdl.org and the Hamiltonian function given by H=1 2pTM−1p. (13) Note that the Hamiltonian function contains only a kinetic energy term, associated with the momentum variable. A potential energy, artificially added by the controller will play a key role to stabilise the ship in the desired position. From (2), we observe that the passive output for the system (10)is the velocity vector, which does not correspond to the actual output of the system, the position and the orientation. This is an important consideration for the control design, especially for the dynamic IDA-PBC control design in Section 5. 4 Static IDA-PBC controllers A family of static feedback controllers can be obtained via the IDA-PBC methodology. In the design process, a nominal case is considered (i.e. where the disturbances are assumed to be completely known), and then the stability against an unknown disturbance vector is analysed. As presented in Section 2, the control laws are obtained from matching the dynamical system (10) with the target dynamics (3). To solve this, the desired interconnection matrix is fixed as in (10), that is Jd=O3J(q3) −JT(q3)O3(14) the dissipation matrix set as Rd=O3O3 O3Rp(15) where Rp∈R3×3is a symmetric positive definite matrix (Rp=RT p>0), and the closed-loop energy function, Hd(x), is shaped as Hd(q,p)=(q)+1 2pTM−1p(16) where (q)has a minimum at the origin, that is, ∂q|q=0= 0 and ∂2 q|q=0>0. This implies that the desired energy function has the minimum at the desired stabilising point (q∗,p∗)=(0, 0). From a physical point of view, the controller adds some potential energy, in the qcoordinates, with respect to the original Hamiltonian function (13). From the resulting matching equation (4), equality corresponding to the first row is automatically satisfied while, from the second equality, we obtain the following control law τ=−JT(q3)(∂q+b)−(Rp−D)M−1p(17) From the qdynamics in (10), we obtain p=MJT(q3)˙q, and defining KD:=Rp−D, the state feedback algorithm (17) takes the form τ=−JT(q3)∂q−KDJT(q3)˙q−JT(q3)b(18) which can be seen as a non-linear output feedback PD controller with a feedforward term, −JT(q3)b. Note that with the choice Rp=D, the controller simplifies because KD=0. But, we keep the general result because, as we point out in the simulations, by increasing the dissipation of the system improves considerably the performance of the closed-loop system. Proposition 1: Consider the dynamical system (10)ina closed-loop with the control law (18), where the origin q=0 is a local minimum of (q), and that the bias vector band the Dmatrix are known. Then, the desired regulation point, (q∗,p∗)=(0, 0)is locally asymptotically stable. Furthermore, if q=0 is the global minimum of (q), then (q∗,p∗)=(0, 0)is globally asymptotically stable. Proof: Replacing (18)in(10), we obtain a PHS in the form (3) with (14) and (15). Using the Hamiltonian function (16) as a Lyapunov function, we obtain ˙ Hd=−pT(M−1)TRpM−1p≤0 (19) and invoking LaSalle’s invariance principle, asymptotic stability is proved. See further details in Section 3.4.3 of [15]. In (18), we have a rather general expression for the control law depending on (q). What follows are two special cases of the control law depending upon two different energy shapings. 4.1 Quadratic energy shaping The simplest function with a global minimum has a quadratic form: (q)=(1/2)qTKq, where K=KT>0is a gain matrix. It is easy to see that q=0 is a minimum of (q)and the desired energy function (16) becomes Hd1(q,p)=1 2qTKq+1 2pTM−1p(20) which implies, from (18), the following control law τ=−JT(q3)(Kq+b)−KDJT(q3)˙q(21) Using Proposition 1, we can conclude that the closed-loop system (10) with (21), is globally asymptotically stable. 4.2 Trigonometric energy shaping Inspired by the energy function of a pendulum, we propose to shape the desired Hamiltonian containing a trigonometric function with the form (q)=1 2qT 12C12q12 +c3(1−cos q3)(22) where q12 =[q1q2]T,C12 =diag{c1,c2}and c1,c2,c3>0. This function, contains multiple local minimums at q= (0, 0, a2π), where a∈Z. With this choice the desired energy function (16) becomes Hd2(q,p)=1 2qT 12C12q12 +c3(1−cos q3)+1 2pTM−1p(23) Fig. 3illustrates the difference between the two proposed energy shapings (20) and (23). The main motivation for this kind of energy shaping is that, for certain applications where there are no constraints (for instance, links with external objects), stabilisation in q3=0orq3=2πis exactly the same. Fig. 4, shows a possible scenario, where the path for stabilising in q3=2π is shorter than stabilising in q3=0. IET Control Theory Appl., 2012, Vol. 6, Iss. 5, pp. 680–688 683 doi: 10.1049/iet-cta.2010.0554 © The Institution of Engineering and Technology 2012
www.ietdl.org Fig. 3 Comparison between the quadratic and the trigonometric functions, Hd1 and Hd2, respectively, in the coordinates q1and q3 Trigonometric path Quadratic path x y x r y r Fig. 4 Possible scenario when it is advantageous to use the trigonometric energy function instead of the quadratic energy function The Hamiltonian (23) with the target closed-loop system defined by (14) and (15), implies that the control law (18) takes the final form as τ=−JT(q3)Cq1 q2 sin q3−KDJT(q3)˙q−JT(q3)b(24) where C=diag{c1,c2,c3}is a positive definite gain matrix. As in the previous subsection using Proposition 1, we can conclude that the closed-loop system (10) with (24), is (locally) asymptotically stable. 5 Dynamic IDA-PBC controllers 5.1 Motivating problem The control law (18) assumes that bis known and that (10) perfectly models the ship motion. In practical situations, the ship model only represents a simple dynamics of the actual system and furthermore the bias vector, b, has to be estimated. Let us study the influence of unmodelled behaviours, wrong estimations or, in general case, the presence of disturbances. In order to analyse the performance of the proposed passivity-based controller, we study the closed-loop system with the perturbed system ˙q ˙p=O3J(q3) −JT(q3)−D∂H+O3 I3τ +O3 JT(q3)b+O3 I3(25) where ∈R3is a vector, which represents the disturbances. As a first approximation, and only to motivate the use of the extended dynamics, we consider this vector as a constant. The system (25) in a closed-loop with (18) results in the following system ˙q ˙p=O3J(q3) −JT(q3)−Rp∂Hd+O3 I3(26) which has an equilibrium point which satisfies ∂|q=q∗= J(q∗ 3)and p∗=0. It implies that in presence of disturbances, the closed-loop system (25) with (18) has a different equilibria than (0, 0). However, stability should be also further analysed. Moreover, in the special case where the disturbances are also affected by a JT(q3), given by ˙q ˙p=O3J(q3) −JT(q3)−D∂H+O3 I3τ +O3 JT(q3)b+O3 JT(q3)(27) it can be seen that some stability properties still remain. With the control law (21) global asymptotic stability can be proved by shifting the Hamiltonian function to the new equilibrium point, that is, with ˜ Hd1 =1 2(q−q∗)TK(q−q∗)+1 2pTM−1p(28) as a Lyapunov function, where q∗=K−1. Similarly, the closed-loop with the control law derived from the trigonometric energy shaping (24) has the new equilibria in q∗=1 c1 ,2 c2 , arcsin3 c3T (29) and p∗=0. Local asymptotic stability of this new set of equilibria can be proved with the Hamiltonian function ˜ Hd2(q,p)=1 2(q12 −q∗ 12)TC12(q12 −q∗ 12) +c31−cos q3−q3 3 c3+1 2pTM−1p(30) which has local minima if (3/c3)<1. Summarising, the presence of unknown disturbances results in a bad positioning of the ship. Although, in case (27), a high gain in the Kand Cmatrices (in controllers (21) and (24), respectively) implies stabilisation close to the desired equilibrium point but it may not be a rational strategy because of practical limitations of the propulsion units. This discrepancy in the desired performance of the control law motivates the use of a dynamic extension in order to achieve the stabilisation at the desired point. 684 IET Control Theory Appl., 2012, Vol. 6, Iss. 5, pp. 680–688 © The Institution of Engineering and Technology 2012 doi: 10.1049/iet-cta.2010.0554
www.ietdl.org 5.2 Target-extended system A dynamic extension for a non-passive output, maintaining the port-Hamiltonian structure, is possible by means of a change of coordinates. The controller is designed for a nominal case, without disturbances, and then the presence of unknown terms is analysed. Following the idea in [14], we introduce a new state variable, ze∈R3, which is used to enforce the equilibrium point of the closed-loop system to the desired one, and a change of variables z=f(q,p,ze). We define the target system, with the form of (6), as ˙q ˙z ˙ze=⎡ ⎣ O3J(q3)J(q3) −JT(q3)−RzO3 −JT(q3)O3O3⎤ ⎦∂qHde ∂zHde ∂zeHde(31) where Rz=RT z≥0, is a 3 ×3 matrix to be defined. The desired Hamiltonian function is defined as Hde(q,z,ze)=(q)+1 2zTM−1z+1 2zT eKeze(32) where Ke=diag{ke1,ke2,ke3}>0. As in the static case, (q) must be designed with a minimum at the desired regulation point. Then, the whole Hamiltonian function (32) has a minimum at (q∗,z∗,z∗ e)=(0, 0, 0). Matching the qdynamics, from (10) and (31), the change of variables zis defined as z=p−MKeze(33) The state feedback control law is obtained from the second row of (31) and the time derivative of (33) τ=−KPJT(q3)∂q−KDM−1p+KIze−JT(q3)b(34) ˙ze=−JT(q3)∂q(35) where we define KP:=MKe+I3(36) KD:=Rz−D(37) KI:=Ke(38) Similarly to the static controller in the previous section, using p=MJT(q3)˙q, the control law (34)–(35) takes the following form τ=−KPJT(q3)∂q−KIJT(q3)∂qdt −KDJT(q3)˙q−JT(q3)b(39) which has the same structure as a non-linear PID controller with a feedforward term, JT(q3)b. Proposition 2: Assume that qis measurable, and that the disturbances vector band the matrices Mand Dare known. If Ke=diag{ke1,ke2,ke3}>0, and (q)has a (local) minimum at the origin, q=0, then the system (10)ina closed-loop with (39), is (locally) asymptotically stable at the point (q,z,ze)=(0, 0, 0). Furthermore, if q=0 is a global minimum of (q), then the origin is globally asymptotically stable. Proof: The closed-loop system (10) with (39) takes the form of (31). Then, the Hamiltonian function (32) is a Lyapunovcandidate function and its time derivative is ˙ Hde =−zT(M−1)TRzM−1z≤0 (40) Then, the stability can be proved invoking LaSalle’s invariance principle. Equation (39) is a rather general formulation of the control law. What follows are two special cases depending on two different formulations of the energy shaping (32). 5.3 Quadratic energy shaping Let us first take the same quadratic energy shaping as in Section 4, (q)=(1/2)qTKqwith K=diag{k1,k2,k3}>0, the Hamiltonian function (32) becomes Hde1(q,z,ze)=1 2qTKq+1 2zTM−1z+1 2zT eKeze(41) with a global minimum at the origin, (0, 0, 0). The control law (39) becomes τ=−KPJT(q3)Kq+KIze−KDJT(q3)˙q−JT(q3)b(42) ˙ze=−JT(q3)Kq(43) From Proposition 2 the controller (42)–(43) ensures the global asymptotic stability. 5.4 Trigonometric energy shaping The trigonometric energy shaping proposed in the previous section can also be considered for the extended controller. Taking again (q)=1 2qT 12C12q12 +c3(1−cos q3)(44) where q12 =[q1q2]Tand C12 =diag{c1,c2}, and c1,c2,c3> 0 the desired Hamiltonian function (32) becomes Hde2(q,z,ze)=1 2qT 12C12q12 +c3(1−cos q3) +1 2zTM−1z+1 2zT eKeze(45) As previously mentioned, this function has multiple local minimums at q=(0, 0, a2π),a∈Z. From Proposition 2, this case ensures local asymptotic stability, and the control law (39) becomes τ=−KPJT(q3)Cq1 q2 sin q3+KIze−KDJT(q3)˙q−JT(q3)b (46) ˙ze=−JT(q3)Cq1 q2 sin q3(47) where C=diag{c1,c2,c3}. IET Control Theory Appl., 2012, Vol. 6, Iss. 5, pp. 680–688 685 doi: 10.1049/iet-cta.2010.0554 © The Institution of Engineering and Technology 2012
www.ietdl.org 5.5 Analysis in presence of disturbances The main contribution of the extended dynamics excels in presence of unknown disturbances. As before, let us to analyse the closed-loop system in presence of disturbances. First, we consider constant (or, at least, very slow) disturbances. Taking the perturbed system (25) with the designed control law (39), we obtain ˙q ˙z ˙ze=⎡ ⎣ O3J(q3)J(q3) −JT(q3)−RzO3 −JT(q3)O3O3⎤ ⎦∂q M−1z Keze+O3 I3 O3 (48) From the zedynamics, and because of ∂q|q=0=0, this system has the following equilibrium point. q∗=0 (49) z∗=MR−1 z(50) z∗ e=−KeR−1 z(51) Note that, contrary to the static controller, in presence of unknown disturbances, the origin is still the equilibrium in the position coordinates. It can be easily checked that for the case of the trigonometric controller, the equilibria becomes q∗=(0, 0, a2π). The question that now arises is about the stability of (48). A simple stability analysis is possible using the error coordinates ˜z=z−z∗and ˜ze=ze−z∗ e. Shifting the energy function (32) to the new equilibria, we obtain ˜ Hde(q,˜z,˜ze)=(q)+1 2˜zTM−1˜z+1 2˜zT eKe˜ze, (52) and (48) can be written as ⎡ ⎣ ˙q ˙ ˜z ˙ ˜ze⎤ ⎦=⎡ ⎣ O3J(q3)J(q3) −JT(q3)−RzO3 −JT(q3)O3O3⎤ ⎦∂q M−1˜z Ke˜ze(53) This closed-loop system still has the desired structure (6), with a energy function, that has a minimum at (49)–(51). The asymptotic stability is automatically derived. In a more realistic case, the disturbance could be considered as a vector that depends on time, that is, = (t). Then, we can no longer study the stability of an equilibrium point, and we only can expect that the solution of the system becomes bounded because of the special structure of the closed-loop system, that can be seen as a forced oscillator with damping in the ˜zcoordinates. 6 Simulations In order to test the performance of the designed controllers we performed some numerical simulations. For this validation, we used the data of a supply ship from [2]. The (Bis-scaled non-dimensional [5]) matrices Mand Dare given by M=1.1274 0 0 0 1.8902 −0.0744 0−0.0744 0.1278 and D=0.0358 0 0 0 0.1183 −0.0124 0−0.0124 0.0308 −12 −10 −8 −6 −4 −2 0 2 4 6 8 −14 −12 −10 −8 −6 −4 −2 0 2 4 6 q1[m] q2[m] Fig. 5 Simulation results: ship position trajectories in the q1,q2 plane, for the static quadratic controller with extra damping (solid line) and the original damping coefficient (dashed line) The bias vector has been set to b=(0.05, 0.05, 0.01). For all simulations, we considered that the initial conditions of the ship are (q1,q2)=(−10, −10), and the heading angle q3=4 rad, and the desired stabilisation position is the origin. Precisely, the starting heading angle is set greater than πto show the ability of the so-called trigonometric controller to stabilise to the closer minimum, in this case 2π. 6.1 Simulation results for the static controller In this subsection, we present the simulation results for the static (quadratic and trigonometric) control laws (21) and (24), respectively. The gain matrices we used are K= C=diag{0.05, 0.05, 0.01}and Rp=diag{0.75, 0.75, 0.1}. Precisely, for this system, we enlarged the damping (about one order of magnitude in the first and third components), to improve the performance. In Fig. 5, we show the trajectories of the same static controller (the quadratic case) with extra dissipation, setting Rpto the values proposed before, and keeping the original damping, Rp=D. This comparison justifies the use of the extra damping to obtain more suitable paths. Fig. 6shows the trajectories of the position coordinates q1and q2, and the heading angle, q3, of the quadratic and the trigonometric versions. Both controllers stabilise the ship at the desired position and angle. The notable point is the difference in the orientation profiles. While the quadratic controller stabilises the heading angle at q3=0, the trigonometric controller does so at q3=2π. Fig. 7compares the trajectories in the q1q2-plane for two versions of the static controller. In both cases, the performance is similar but, even the controllers for the q1 and q2coordinates are the same (with the same gain values), the trajectories take different paths. This fact is associated with the different heading angle trajectories. 6.2 Simulation results in presence of disturbances In this subsection, we present the simulation results in presence of disturbances. The key point is to show that the dynamic controllers proposed are able to reject unknown terms. For this scenario, we considered that the disturbance because of the bias term, b, is not available. 686 IET Control Theory Appl., 2012, Vol. 6, Iss. 5, pp. 680–688 © The Institution of Engineering and Technology 2012 doi: 10.1049/iet-cta.2010.0554
www.ietdl.org 0 20 40 60 80 100 120 140 160 180 200 −10 −5 0 5 q1[m] 0 20 40 60 80 100 120 140 160 180 200 −10 −5 0 5 q2[m] 0 20 40 60 80 100 120 140 160 180 200 0 2 4 6 8 q3[rad] time[s] Quadratic Trigonometric Quadratic Trigonometric Trigonometric Quadratic Fig. 6 Simulation results: ship position coordinates, q1and q2, and heading angle, q3, for the static quadratic (solid line) and trigonometric (dashed line) controllers −12 −10 −8 −6 −4 −2 0 2 4 −12 −10 −8 −6 −4 −2 0 2 4 q1[m] q2[m] Trigonometric Quadratic Fig. 7 Simulation results: ship position trajectories in the q1q2-plane, for the static quadratic (solid line) and trigonometric (dashed line) controllers Consequently, the feedforward term, JT(q3)b, is removed in all the tested controllers. The gain matrices for the static controllers, (21) and (24), are the same as in the previous subsection. The corresponding gain matrices used for the dynamic controllers, (43) and (47), are Rz= diag{0.75, 0.75, 0.4},K=C=diag{0.05, 0.05, 0.025}and Ke=diag{0.01, 0.01, 0.015}. In Fig. 8,qtrajectories for the four controllers are plotted. Clearly the dynamic controllers steer the ship to the desired equilibrium position, while the static controller fails to do so and have some steady-state error. This difference between the performance of the static and the dynamic controllers 0 20 40 60 80 100 120 140 160 180 200 −10 −5 0 q1[m] 0 20 40 60 80 100 120 140 160 180 200 −10 −5 0 q2[m] 0 20 40 60 80 100 120 140 160 180 200 0 2 4 6 8 q3[rad] time[s] Dynamic controllers Static controllers Dynamic controllers Static controllers Dynamic Trig. Static Quad. Static Trig. Dynamic Quad. Fig. 8 Simulation results: ship position coordinates, q1and q2, and heading angle, q3, for the static and dynamic (quadratic and trigonometric) controllers −12 −10 −8 −6 −4 −2 0 2 4 −12 −10 −8 −6 −4 −2 0 2 4 q1[m] q2[m] Dynamic Quad. Static Quad. Dynamic Trig. Static Trig. Fig. 9 Simulation results: ship position trajectories in the q1,q2 plane, for the static and dynamic (quadratic and trigonometric) controllers can also be seen from the respective trajectory profiles; see Fig. 9. 7 Conclusions A passivity-based approach called IDA-PBC is used to obtain a set of controllers for the dynamic positioning of a ship. This methodology is based on the port-Hamiltonian description, which gives a physical interpretation of the dynamical systems. Under this point of view, the controller design problem is addressed as to shape the energy function of the closed-loop system. After a general formulation we propose two different controllers: first with a quadratic IET Control Theory Appl., 2012, Vol. 6, Iss. 5, pp. 680–688 687 doi: 10.1049/iet-cta.2010.0554 © The Institution of Engineering and Technology 2012
www.ietdl.org energy function and second, inspired by the physics of a pendulum, with a trigonometric energy function. Also, the presence of disturbances is studied and it turns out that the obtained static control laws do not stabilise the system at the desired position. This discrepancy is the starting point for a second set of controllers, which consists of a dynamic extension of the system that provides stability at the desired regulation point, also in presence of disturbances. Simulations are done to validate and compare the performance of the controllers designed. It is worth to mention that the obtained control laws, with a general form of state feedback, can be easily converted to output feedback algorithms that only requires the position measurement. Furthermore, they exhibit a simple structure that can be interpreted as non-linear version of PID controllers. Future work can be oriented in to determine other energy functions, (q), to improve the performance, as well as to consider the optimisation of the resulting path. Further analysis depending on the nature of the disturbance vector (including the WF and wind models) are possible. Also, this work could be a starting point for a new design, using the port-Hamiltonian perspective, of the complete motioncontrol system (controller and observer) for a DP problem. 8 Acknowledgments Shah Muhammad would like to express his gratitude to the Higher Education Commission (HEC) of Pakistan (Ref: 12-1/PM-OS/NETH/PHASE-IIB/2005), the Delft Institute of Applied Mathematics (DIAM-TU Delft), and Netherlands Universities Foundation for International Cooperation (NUFFIC). Arnau Dòria-Cerezo was partially supported by the Spanish government research project DPI2010-15110. 9 References 1 Sørensen, A.J., Sagatun, S.I., Fossen, T.I.: ‘Design of a dynamic positioning system using model-based control’, Control Eng. Pract., 1996, 4, pp. 359–368 2 Fossen, T.I., Grøvlen, Å.: ‘Nonlinear output feedback control of dynamically positioned ships using vectorial observer backstepping’, IEEE Trans. Control Syst. Technol., 1998, 6, pp. 121–128 3 Fossen, T.I., Strand, J.P.: ‘Passive nonlinear observer design for ships using Lyapunov methods: full-scale experiments with a supply vessel’, Automatica, 1999, 35, pp. 3–16 4 Loria, A., Fossen, T.I., Panteley, E.: ‘A separation principle for dynamic positioning of ships: theoretical and experimental results’, IEEE Trans. Control Syst. Technol., 2000, 8, pp. 332–343 5 Fossen, T.I.: ‘Guidance and control of ocean vehicles’ (Wiley, 1994) 6 Grimble, M.J., Patton, R.J., Wise, D. S.: ‘Use of Kalman filtering techniques in dynamic ship-positioning systems’, Proc. IEED, 1980, 127, pp. 93–102 7 Fung, P.T-K., Grimble, M.J.: ‘Dynamic ship positioning using a self-tuning Kalman filter’, IEEE Trans. Autom. Control, 1983, 28, pp. 339–350 8 Fossen, T.I., Perez, T.: ‘Kalman filtering for positioning and heading control of ships and offshore rigs,’ IEEE Control Syst. Mag., 2009, 29, pp. 32–46 9 Snijders, J.G.: ‘Wave filtering and Thruster allocation for dynamic positioned ships’. M.Sc. thesis, Mathematical Systems Theory Group, DIAM, EWI Faculty, TU Delft, The Netherlands, 2005 10 Katayama, H.: ‘Nonlinear sampled-data stabilisation of dynamically positioned ships’, IEEE Trans. Control Syst. Technol., 2010, 18, pp. 463–468 11 Ortega, R., van der Schaft, A., Maschke, B., Escobar, G.: ‘Interconnection and damping assignment passivity-based control of port-controlled Hamiltonian systems’, Automatica, 2002, 38, pp. 585–596 12 van der Schaft, A.J.: ‘L2gain and passivity techniques in non-linear control’ (Springer, 2000) 13 Ortega, R., García-Canseco, E.: ‘Interconnection and damping assignment passivity-based control: a survey’, Eur. J. Control, 2004, 10, pp. 432–450 14 Donaire, A., Junco, S.: ‘On the addition of integral action to port-controlled Hamiltonian systems’, Automatica, 2009, 45, pp. 1910–1916 15 Slotine, J.J.E., Li, W.: ‘Applied nonlinear control’ (Prentice-Hall, 1991) 688 IET Control Theory Appl., 2012, Vol. 6, Iss. 5, pp. 680–688 © The Institution of Engineering and Technology 2012 doi: 10.1049/iet-cta.2010.0554