Adaptive Control System for Steering the Ship Along the Desired Trajectory - Based on The Optimal Control and Filtering Theory

Adaptive Control System for Steering the Ship Along the Desired Trajectory - Based on The Optimal Control and Filtering Theory

ADAPTIVE CONTROL SYSTEM FOR STEERING THE SHIP ALONG THE DESIRED TRAJECTORY - BASED ON THE OPTIMAL CONTROL AND FILTERING THEORY WLODZIMIERZ CHOCIANOWI...

3MB Sizes 1 Downloads 86 Views

ADAPTIVE CONTROL SYSTEM FOR STEERING THE SHIP ALONG THE DESIRED TRAJECTORY - BASED ON THE OPTIMAL CONTROL AND FILTERING THEORY

WLODZIMIERZ CHOCIANOWICZ MsC eng. AUTOKOMP Automatization and Computerization Co.Ltd Szczecin, ul.Boh.Warszawy 34/35, POLAND JERZY PEJAS, PhD eng. Institute of Informatics and Marine Automation Technical University Szczecin, AI.piast6w 41, POLAND ABSTRACT The paper presents the synthesis of the system for the steering the ship along the trajectory defined as a sequence of adjacent lines. The system enables the steering according to the required value of the velocity. That value belongs to the full range of accessible velocities including Dynamic Posi tion-ing- case (velocity equals zero). Three main aspects of the synthesis are considered. The separation of high-frequency motions (induced by wave and wind's gusts) from low-frequency motions (used by controllers) is solved by using the extended Kalman filters cooperating with adaptive filters for estimation of high-frequency motions. The synthesis·of a nonlinear optimal controller is presented. The quadratic performance index is formulated. Also the problem of a proper modif ication of set points for controllers is considered. In particular it is important during the turn manoeuver (the change of the trajectory section). Assuming the redundancy of a thruster system the decomposition of tasks is presented (thruster logic allocation). That method takes into account the differences in thrusters' characteristics. The results of computer simulation are included. INTRODUCTION

A main purpose of an automatic system for trackkeeping is to move a ship along desired trajectory with constant velocity. Accurate following of a desired track is of great importance, for example, during dredging operations and for hydrographical surveying. Although strictly speaking normal navigation is also a trackkeeping process, this paper particularly discusses a system for automatic slow-speed tracking. The control system is designed for a wide range of ship types and for different kinds of actuators (e.g. controllable thrusters, tunnel thrusters, etc.). Generally, the track to be followed can be treated as a number of straight sections, each defined by two points (initial and final) and by a desired, stabilized speed between these two points. When the track is defined by one point only the system for track-keeping must change its standard tracking mode to typical Dynamic Positioning (DP) mode. A good system for the trackkeeping should control the ship's motion with either a specified cross-track and speed limits (tracking mode) or a position and heading limits (DP mode). In the trackkeeping system algorithms are based to minimize a fuel consumption and the wear on the propulsion system, by suppressing the influence of disturbances such as current, wave and wind as well as the noise on the measurements of the position. This results

319

in an accurate control system and prevents unnecessary highfrequency propulsion system actions. In real conditions the behavior of the vessel can be treated as the combination of a low-frequency drift and a high- frequency oscillation. The last component generated by the waves causes troubles mainly because of the limited speed of the retuning of the propulsion system. The properties of propulsion system determine the maximum forces and moments, which can be applied to counteract forces and moments of the wave. On the other hand, when there are high-frequency disturbances, the limited speed of the retuning is essential to prevent great phase lags. When this phase lag is large the propulsion system may even enlarge the motions of the ship caused by disturbances rather than reduce them. Since it is not possible to counteract the oscillatory movements due to waves, the control action of the propulsion system is derived from the estimated state of the low-frequency drift, the state of current and a feedforward from the wind measurement. This control and estimation process is based on modern control theory, such as Kalman filtering and optimal control. Kalman filtering technique was first applied to this type of systems (exactly to DP system) by Balchen et al.[l,2,3]. Next, the similar solution was proposed by Grimble et al.[4]. In both cases the main attention was paid to the problem of the high- frequency motions estimation. The earlier versions of these estimators (Balchen et al.[l,2J) are based on the high-frequency model consisting of three harmonic oscillators without damping in which the frequencies were updated using a simplified extended Kalman f i 1 ter . Later this structures had been improved, introducing a damping term in the oscillators and employing a more robust parameter estimation algorithm (Balchen et al.[3J). An alternative extended Kalman filtering scheme proposed by Grimble et al. [5J employed the higher order wave model. The next solutions described by Fung and Grimble [6,7] are based on the concept of the selftuning filter and concern a linearized model of a ship LF-motion. The approach presented in this paper is based upon a similar decomposition, but is used together with a nonlinear ship's model and an adaptive extended Kalman filter .. The adequate state estimation is the center of interest in works published up to date. The problem of controller synthesis is mostly reduced to the linearized case. It is satisfied in DP mode but can be unsatisfactory when desired values of velocity are not zero. In this paper the nonlinear controller is proposed, too. Another problem is connected to thruster logic allocation. Besides the classical approach equalizing the energy consumption with the quadratic performance index dependent on the sum of forces' squares more realistic approach is presented. CONTROL ALGORITHMS OF THE SYSTEM FOR THE TRACKKEEPING

A synthesis process of an automatic system for trackkeeping can be divided into four tasks: 1 - definition of the mathematical models which are needed to synthesis anq analysis of the filtering and control algorithms, 2 - definition df the environmental forces and motions of the vessel (estimation task), 3 - control of a ship motion along a desired trajectory, and 4 - thrust allocation of the propulsion units.

320

Mathematical models When def ining the position and speed of the vessel only horizontal motions are of interest: surge, sway and yaw. The position and speed in these degrees of freedom form the state of the vessel. It is assumed that the motions of the vessel consist of low-frequency (LF) and high-frequency (HF) motions. Therefore the total vessel motion can be modelled as the added outputs of a LFmodel and HF-model (see x El Balchen et al. [1,2]). The equations for the horizontal low-frequency motion are obtained from Newton's laws y expressing conservation of linear and angular momentum. Model of these motions (based on Fig. 1 Def ini tions of the coordina tOe Norrbin's work [8]) has system the following form (in the vessel parallel xy coordinate system - see Fig.1):

(1)

where: (x 1L,uL)-position and velocity in surge direction (LF-part), (Y1L' v~) -position and velocity in the sway direction (LF-part), (tp , r L) -heading and heading rate (LF-part of yaw), (u c ' vc) -current velocities in surge and sway direction, (f 1T ,f 1T )-thrust forces in surge and sway direction, (f 1W ' f 1W ) -wind forces in surge and sway direction, (f 3W ' f 1T ) -moments from wind and thrust, respectively, f 3c residual current moment, fJ· (i=1,2,3) zero mean gaussian white p~ocess, di=aid*i and ci~/3ic* i 1 (i=l, 2,3). T~e co~fficient~
321

equation (2): (2)

where (x H ,u H) - position and velocity in surge direction (HF-part), w - angular frequency of HF-motion in surge direction, p - damping c~efficient, ~H1 - zero mean gaussian white noise process. The same model structure is applied to the sway and yaw motions. The discrete form of ~quation (2) can be described by autoregressive moving-average model (compare Fung and Grimble [6)): (1 + a~q-l + a~q-2) x H ( t k ) -

(cfq-l + c1q-2) 11 (t k )

(3)

(q - means the backward shift operator). The parameters of the model (2) or (3) are treated as unknown, since in practice the wave disturbances spectrum varies slowly with weather conditions. These set of parameters must be estimated. Estimation of the vessel state Above there was pointed out that in the system for trackkeeping only LF motions need to be controlled. Thus the HF motions and LF motions must be estimated separately. The each measured output consists of LF components, HF components and measurement noises. Usually, in order to estimate the separated LF and HF motions, there is used the Kalman filter or extended Kalman filter. especially the last filtering tool is very interesting, because extended Kalman filter besides of the state variable estimation task, can also realizes the estimation of LF-model's parameters. However, the extended Kalman filter, when is applied to this problem in its basic form leads to increasing the computing load. But there can be seen that the HF-models are not coupled. Hence the computational load imposed by the filtering algorithm can be reduced by introducing the following approximations (see Balchen et al. [2)): (1) the estimation of the wind states and the estimation of the vessel motion are decouple, (2) the estimation of the surgesway- and yaw-motions are decouple too, in the sense that the prediction error in one of the measured coordinate is not used for updating the position and velocity in the another coordinates, (3) current estimates are updated by the prediction errors of surge and sway measurements and the current moment variable by yaw measurement prediction error, and (4) because the state filter gain matrix depends (among other things) on the surge-, sway- and yawvelocities, so there is assumed that this filter matrix is time varying. Some additional simplification of the extended filtering solutions can be derived from the fact that only LF-motion states must be estimated for control purposes. Therefore it is sensible to make such separation of the LF- and HF-filters in order to get their simplified structure form. This philosophy for solving the filtering problem was first proposed by Fung and Grimble [6,7). The solution presented below extends the Fung's and Grimble's ideas and applies the extended Kalman filter with discrete measurements to the estimation of LF-model's parameters, too.

Synthesis of the surge-, sway- and yaw-filter As has been mentioned above the synthesis of the surge-, swayand yaw-filters leads to the individual, decouple filters, which

322

can be used to estimation the surge-, sway- and yaw-motions, respectively. The synthesis process of the filtering algorithm for surge motions case is described briefly below. The surge model consists two parts, which according to equations (1) and (3) have the following form: (LF) : XL (t) - fL (XL' u c ' f 1T , f 1W ) ZL(t k ) - CLXL(t k ) yL(t k ) - ZL(t k ) + v(t k )

+ w( t)

(4)

where CL=[l 0 0 0), x L(t)=[X'L(t),U L,cx",8,)T and YL(t k) is the LF-part of the position measurement in x-direction at the moment t k , (HF) : AH(q-l) ZH( t k ) - CH(q-l) 11 (t k )

(5)

measurements: y(t k ) - YL(t k ) + ZH(t k ) - yL(t k ) + XH(t k )

(6)

The LF-motion estimator is based on the extended Kalman filtering technique and has the following form (Jazwinski (3)): predictor: tk

XL(tklt k _1 )

-

+!

XL(tk-lltk-l)

fL(xL('tlt k _1 )

,

uC,f1W' f1T ) d't

(7)

t k- 1

(8) tk

PL(tklt k - 1 )

-

PL(tk-lltk-l) + !{FL(XL('tltk_l),UC'£lW'£lT)* t

_ k 1

*PL(tlt k _1 ) + PL(tjtk-l)FI(XL(tjtk-l) ,uc ' f

1W '

f

1T )

(9)

+ Q(t)}dt

corrector: XL(tklt k ) - XL(tklt k _1 )

+ KL(tk)€L(t k )

z(tklt k ) - CLXL(tklt k ) PL(tklt k ) - PL(tklt k - 1 )

-

KL(tk)CLPL(tkltk-l)

(10) (11) (12) (13)

where Q (t) = E{w (t) wT (t)}, R = E{v (t) v T (t)} and EL (t k ) surge coordinate prediction error. In comparison to the standard extended Kalman filter the prediction error signal EL (t k ) is not defined as a difference between a measured and an estimated output system (4), but is approximated indirectly as a function of some innovation model (see Fung and Grimble [7)): AH(q-l) mH ( t k ) - DH(q-l) e (t k ) + g( t k ) (14) and relation

(cS/

e L ( t k) a~) e ( t k) where parameters mH(t k) and D(q-') are defined as follows: mH(t k ) - y(t k ) D(q-l)

ZL(tklt k - 1 )

- 1 + ~q-l +

323

cSq-Z

(15)

The quantity g(t k) can be treated as a constant over a short time interval and €(t k) - the innovation signal. The modified innovations signal model (14) can be represented in the usual ~orm for parameter estimation: mH(t k ) - T(tk)e + e(t k )

(16)

where (17)

e

T

-

[a~ a~ ~ ~ 1

1

1

1

g]

(18 )

Because in practice the parameters 8 are innovation'signal €(tk) cannot be measured, so be computed with the aid, for instance, parameter identification algorithms and the signal €(tk) can be substituted by

not known and the parameters 8 should maximum likelihood unknown innovation

~(tk) - mH(t k ) - T(tkH)(tk - 1 )

(19)

where 8(t k_,) represents the estimated parameter vector 8. The consideration presented briefly above leads to the following filtering algorithm, formulated here for the surge motion only (compare Fung and Grimble [7J): FILTERING ALGORITHM: step 1: initialize O(t o)' initial parameter covariance and the forgetting factor A(t o); initialize state estimates, step 2: calculate the extended Kalman filter estimation *l(t k lt k-1 ) and ~l (tkl t k- 1 ) using (7) and (8), step 3: calculate mH(t k) using its definition (see eq.(13», form the vectors A


11]

and I{JT(tk) as step 4: calculate the estimated innovation signal ~(tk) - mH(t k ) - T(tkH~(tk_l)

and its variance r(t k) r ( t k ) - r ( t k _1 )

+ p{e 2 (tk)

- r ( t k _1 )}

(O
step 5: calculate the forgetting factor A(t k>

A (t k )

-

l-a~2 (t k ) f{[r (t k ) +~2 (t k ) ][l+


step 6: covariance and gain update Ke (t k +1 ) - Pe (t k ) q> (t k +1 ) f {A (th1 ) +

(t k + 1 ) } P (t

e

) k+l

J:. A

){p

(t k

e

( t ) _ Pe(tk)q>(tk+l)q>T(tk+l)Pe(tk) } k A (t k ) +

(t k + 1 )

Divergence problems due to computational factors, which may cause the estimation parameter covariance matrix Po(t k) to lose its positive semidefinite character, can be countered by use of what is termed UD-factorization (Bierman [10]), step 7: parameter update 9(t k ) - 9(tk _1 ) + Ke(tk)@(t k

324

)

step 8: calculate the estimation error €L(t k ) -

(~/~)~(tk)

Step 9: generate the state XL(tkltk) and the output ZL(tklt k) using (10) and (11), respectively; return to the step 2.

The structure of the extended Kalman filtering scheme for trackkeeping system is shown in Fig.3. This scheme consists also the other filtering subsystems (sway- and yaw-filter), which a structure is based on the same philosophy as in the case of the surge-filter. Wind filter Involved in equations of LF-motion estimates of forces induced by the wind require performance of wind parameters (i.e. velocity and direction) estimation and knowledge of aerodynamic characteristics as well. The estimation is provided by means of Kalman filtering. It is assumed that dynamics of velocity and direction are described by equations (20), where subscript L points average values, H - gusts of the wind, Vw-velocity, aw-direction, a v and aaparameters of gusts correlation, f]vi and f]ai-whi te noises. Vw - VWL + VWH

VWL -

a

-

aWL

+

0: WL- 11 «1

11Vl

VWH--aVvWH + 11v2

O:WH--aUaWH

av

au

-

a WH

11v3

-

(20 ) + 11U2

11«3

Equations presented above determine the dynamics of wind in earth fixed system of coordinate and are used to obtain the estimates of wind velocity ~w and wind direction a~. After transformation to relative values 'VWR and WR proper vessel motions estimation, the forces induced by wind can be estimated as follow: P W ,,2

a

l lW

-

Cwx (cl WR )

2"" VWRSx

( 21)

where ~WR is the estimate of the average wind speed, Sx - projected front area above water line, S - projected side area above water line, Lpp - length of the ship between perpendiculars. The wind coeff~cients CWx ' Cw and Cwn as ~unctions of ,t~e ,wind direction WR relatlve to the ShlP can be estlmated by utlllzlng the results of the model experiment in a wind tunnel.

a

Current filter The problem of current estimation is more complex than estimation of wind. Estimates of velocity ~ and direction a are obtained from equations concerning the dyna~ics of estimation ~rror in LF-motion estimation. Tuning of this filter is more sophisticated and requires to take into account the dynamics of closed loop, i.e. estimators and controllers. The details are not presented in .this paper. After obtaining ~c and c relative estimates - corre-

a

325

sponding forces can be calculated: PW

l le

-

Cex(a eR )

2

l 2e

-

Cey(a eR )

2

l 3e

-

Cen ( cx. eR

2

~

PW

~2

VCRBT ~2

(22)

VCRLppT

)Pw~2

2

VCRLppT

where a R is the angle between the speed ~R through the water and the ship's heading, T-draught of ship. Thecresistance coefficients Ccx' CCY. a~d Ccn are functions of the relative angle and are based on emplrlc~l data.

a;R

position and heading control The dynamic properties of the trackkeeping system depend on the Kalman filter as well as the control law. This control law can be divided into two main parts: first - feedback, taken from the predicted state estimates and second - feedforward from wind and current, which yields integral action in the control loops. Controller The coefficients of feedback gain matrix are solution of the optimization problem with quadratic performance index for each considered motion (i.e. surge, sway and yaw). Assuming properly compensation of disturbances induced by wind the state equations can be reformulated as follows: SURGE:

.KlL - u L { u L --C1IUL-Ucl (uL-U ) + d (flR-f ) c l lC

{ilL - vL vL --C2 v L- v cI (vL-v

SWAY:

I

lfr L {iL

YAW:

-

-

+

e)

(23)

d 2 (f2R - f2c )

rL

a3

(UL-U c ) (vL-VC) -

c 31r dr L

+

d 3 (f3R -f)c)

Above equations linearized at demanded values of velocity and heading rate on the trajectory (u o ' Vo and ro respectively) yield: SURGE:

!1.K1L - !1 UL {!1u L --2Cl lu -u l!1u + dlf L o L lR

(24)

SWAY:

YAW:

Quadratic performance indexes are: JSURGE -

J

SWAY -

~

Jo {P

ll

~ J{P21 (!1Y1L) 2

12R}d~

P

(!1 U L )

2

+

%f

+

P 22

(.~VL) 2

+

%f2~}d't

+

2 P 32 (!1r L)2 + %f3 R}d't

(!1x 1L ) 2 +

12

o J

yAW

~ ~J{P31(LlWL)2 o

326

where coefficients P", P'2' P2" P22' P3" P32' q" q2 and q3 > o. Such a problem leads to following law of control (compare Sage [10]): SURGE:

flR(t)

- -Qll{XlL (t)

- xo(t)} - %z{uL(t)

- u o )}

where the gain coefficients are defined by the equation (25). The

(25)

control signals fZR and f3R are defined similarly as above for surge motion. The results of optimization should be satisfactory as long as lineazization is justified. For greater values of set velocities Uo and v o' i.e. the conditions (26) are true, nonlinear controller {luo-ucl

IVo-Vcl}

or

(26)

should be more effective. It is proposed to combine the action of two controllers: first given by above solutions of linear problem, and second obtained from optimal controller synthesis for the problem stated as: min ( ~

J[P ll (L~xIL)

2

+

P (8U L ) 12

2

+ Qlf12R]

d~)

o

subject to the constraints 8XlL - I!.. u L { l!..u

L

- -2cl lu o-ucl- clsign(uo-u c ) (8U L )2 + d l f12R

where P", P'2 and q, > o. According to the principles presented by Sage and White in [10], the solution of above problem is: flR (t)

-

-glO [XlL (t) -Xo (t)] - gll [u L (t) -u o (t)] + gl2 [u L (t) -u o ] 2

where the gain coefficients are defined below:

gll-

c

l o- cl

1 U

U

dl

2 2 4c (uo-u c) +

1

d

+

2

P - 12 %

+

2gl0 dl

1

-3 clluo-ucl + dlgll

The switching between linear and nonlinear controller in appropriate channel depends on condition (26). To determine the final control force the feedforward from the wind and the current must be added to feedback (see also Fig.3): f lT ( t)

- fIR ( t)

- [lW( t)

327

-

f lc ( t)

where

r 1101 (t)

is defined by eq.

(21) and f~c - by eq.

(22).

TURNING

In automatic slow-speed tracking the vessel should move along trajectory defined as sequence of lines between so called turnpoints. In the middle of the line trackkeeping .. system performs control accordinq to control laws described above. It is important question how to control the vessel during manoeuver of turning. It is obvious, (k+1) that stopping it at the turnpoint, changing the heading according to the coordinate of next turnpoint and then continuation, in many cases is .. ,, inadmissible. ~k+1 Presented trackkeeping system performs turning as follows. If turn-point is the last in sequence at some distance from turn-point the trackkeeping system begins performance of classical oP-task (i.e. setpoints for velocity equals to zero). That (k+1) distance is dependent on vessel speed stabilized along last line of trajectory. In another case trackkeeping system per- Fig.2 Two variants of the desired (solid forms the turning manoline) and "substitutionaP' (dashed line) trajectory euver (see Fig.2, which presents the tracks in two variants - first one for the course changing n~€<60o,180o> and second one for n~€
··

....

. ,

I

...... ~I

,

THRUSTER LOGIC ALLOCATION

The forces needed to keep the vessel in position are generated by the propulsion units. The controller calculates the total demand

328

in surge, sway and yaw direction in normal (automatic) operation mode. If manual (joystick) control is used, the force command comes from the joystick module. The force demand has to be satisfied by available thrusters as economically as possible. The power limits of the thrusters and the generators are taken into account as well. In general the configuration of propulsion units on the board of trackkeeping ship is redundant. The algorithm of the thrust allocation should select the best way of tasks distribution for all thrusters. Demanded forces are determined by controller and are represented as 3D-vector: F - {f 1T , f

2T ,

f

3T}

Assuming that M independent thrusters exist and axis of each one are fixed (no possibility of axis rotation) the following quality is fulfilled: (27) F - CT where T = [t"t2, ... ,t~]T- the vector of forces generated by thrusters, C - the matr1x with dimensions 3xM containing constant elements dependent on a geometry of thrusters' configuration. The task of thrusters • allocation is to determine the values of t.1 • • (1=1,2, ... ,M) fulf1111ng (27). Firstly the linear approach is presented. Let will be def~ned the quadratic performance index Q(T) = TTRT, where the matrix R is diagonal and all elements on the diagonal are positive and constant. The selection of values for these elements can take into account the relations between maximum forces obtainable for every thruster and costs of the energy consumed by them. In such an approach the inequality constraints for maximum forces determined by technical construction of the thruster can be neglected in formulated below problem of optimization: min {Q( T) - T TRT} (28) T

with equality constraints: CT-F-O

The problem is solved according to the method of Lagrange multipliers. The Lagrange function for above problem has form: L(T,')..) - TTRT + )..T(CT - F)

(29)

where A - the vector of Lagrange multipliers. Linear and equality constraints and positive definite R matrix yield the necessary and sufficient conditions for existing of the minimum: aL (T, )..)

at i

aL(T, ')..) ')..j

- 0,

i - 1,2, .. .

- 0,

j

- 1,2,3

,M

(30)

The solution of equations (30) exists if only the matrix CR-'C T is nonsingular (this condition is fulfilled according to positive values on diagonal of the matrix R) and is presented by eq. (31) .

329

Hence the required equation for thruster allocation has form (32), T - R -1 C T ( CR -1 C T) -1 F ( 32 ) and only linear transformation of controllers output is necessary. The direct consideration of inequality constraints leads to the following minimization problem: min {Q(T) - TTRT} (33) T

with constraints: CT-F-O T imin :$; t i:$; T imax ,

i - 1,2, ... , M

where T imin and T i!{1ax are extremal ob~ainable values of t i . The approach to solv1ng this problem 1S to expand the Lagrange multipliers vector up to dimension 3+2xM and to introduce so called slack variables J..L . for every inequality constraint. Introducing Lagrange multipliets vectors: A - connected to equality constraints (dim A = 3), A, - connected to maximum force limits (dim A, = M), Az - connected to minimum force limits (dim Az = M) and s.lack variables vectors: J..L, - connected to maximum force limits (dim J..L, = M), J..Lz - connected to minimum force limits (dim J..Lz = M), then Lagrange function (34) can be created. Because L(T,A,A 1 ,A 2 ,!-11,!-12) - TTRT + AT(CT - F) + 2 + t{Ali(t i + !-11 i

- T ima )

2

+ A 2i (-t i + J.L2 i

(34) + T imin )}

~-1

performance index Q(T) is strictly convex and all constraints are linear the necessary conditions for existing of function's (34) minimum are equivalent Kuhn-Tucker conditions: aL(J;)..)

~2TTR+ATC + Ar-AI-o

aL (T, A)

=

CT - F - 0

(35)

A

Ali

(t i - T ima )

T imi n

:$;

- 0,

ti ~ T imax '

A2i (t i - T imin ) - 0 } ~

II.li

~

0,

~

1I.

2i ~ 0

i-1,2,,,.,M

It is obvious that the process of optimization presented above requires more calculations than algorithm determined in (32). And now more realistic approach will be stated. Any performance index should be referred to real energy costs. These costs are dependent not only on the value of the thrust generated by the thruster but on the energy consumed by the whole propulsion system as well. Of course this dependency includes also influence of the ship's velocity (mostly the projection of the velocity vector to the thruster's axis). Regardless of the difficulties it is possible to determine for ith thruster the nonlinear function of costs r 2,.(t . ,u.) >• 0 in such a way that value t 1.r,.(t . ,u 1. ) represents global 1 1 1 1 1 costs of 1th thruster exploitation, when the thruster generates force ti and the value of the velocity vector projection to the thruster's axis equals to u i . Extremal values of the obtainable force also depends on u i ' i.e. Timin=Timin(ui) and Timax=Timax(ui).

330

creating the penalty function: 0 I 2i (t i ,U i ) -

_

Wmax(t i

when T imin (u) Timax(U))

{ Wmin(ti-Timin(ui))

<-

ti ~ Timax(u)

>0

when ti

>

Timax(U)

>

when ti

<

Timin(ui)

0

( 36)

and extending the function of costs to: Ii(ti,UJ

- I1i(ti,U i ) + I 2i (t i ,U i ),

(i-1,2, ... ,M)

the new formulation of the optimization problem is set: min {Q(T) - TTR(T, U) T} T

(37)

(38)

subject to the constraints: CT-F-O

where U [u"u 2 ' ••• ,uMJ the vector of the ship's velocity projections,• R-the diagonal matrix with rj(t 1. ,u 1. ) on the diagonal. • Interpretatlon of the functlon of costs should guarantee the convexity of it. The practice in construction and identification of costs functions leads to the polynomial representation satisfying the conditions for continuity and smoothness (differentiability). In conclusion - the solution of the problem (38) exists and is obtainable by using the standard optimization methods. RESULTS OF THE SIMULATION

It is usual to test the ship motion control designed for real applications using simulated rather than measured data. This is partly due to the difficulty in investigating this kind of systems in real conditions, but also reflects the fact that tests over a range of different conditions must be made. In this section we snaIl give some simulation results where the control system is working against a vessel simulator realized by a computer program. The simulator includes realistic excitations from wind, wave and current, measurement noises, etc. The simulation results presented below were obtained using the nonlinear model of the ship motion (see Hoft, Drinoczy [13J) and models of disturbances (Kallstrom [12J). The tests were made for B90 ship type (length L =56.4 m, breadth B=13.8 m,draught T=4.7 m and displacement v=230~m3) and for weather conditions corresponding to 6° in Beaufort scale (Baltic sea, wind speed 11 m/ sand relative direction 45°, wave height 1.6 m). The figures 4 + 7 show some typical results for the case in which the ship was in trackkeeping mode. The set of filtering results of the total motions, estimated and modeled low frequency motions are shown in Fig. 4 and Fig. 5. The estimate of the low frequency motion is required for control purpose and it is clear that the estimate is good throughout the time interval. It is important that the LF-motion estimates are relatively smooth and reduce undesirable variations in the control action. Simultaneously the parameter estimates for the low- and high-frequency were registered. Figures 6 and 7 shows the parameter estimates progress of the coefficients in LF- and HF-model. The parameters converged to their steady values. It is, of course, well known that the convergence rate of any technique, where the innovations must be approximated, is slower.

331

Fig.4 Desired (dashed line) and estimated (solid line) position of the ship (h)

t,[~J

I

!

) ...

Fig.S Actual and estimated motions: (a) and (h) hue (LF+HFl and estimated (LF) surge (UI~ L)' and sway (v I0L) velocities, (c) and (0) estimated x,,(surge) and YH (sway) HF position 332

·----------~~----------~-----------

(; .~. 11 I 1

\

~------_ v'V---- Pl --l\~~t[sl-

;) . ~ (:,+'!--,------r--,-----,--...,---,----,---,--,---,,---,--r----.-.,-----r--;---7) . 'L ::~ 1. is 1. !t ! ;) :,:

!

'I

!;

Fig.6 EstiMated paraMeters of the surge and sway LF-Models

l·3.'· ;· Id. "z1d ' "';, Id";,.; [.] 1 ~

1

/"

1~~---------------------4~

d:-------------

(1. (1~.,r_ 1 _ _ _ _ _ _ _ _ _ _ _-;-_ _---:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __

A I

"

"

.i

~

~

'-' It

H.: 13.; 1d~

' , ,, 1

:.'

d'.... [ . ]~----------~ a~ ~---r---"

,'-,

. . . .~____ f{ ---~-

~--~~---.----~~

i

'). ')t~r--------------------------------

i

< · (' 7~1

i

• U (.,+'(; .':H)

..:.'

,

d l ____~-------

-----~~-

{I j-t[s]-

-,---,--..,.---,---...,---,----,--,--,--,---,--,---,------.-,__-4). O ,S~

1. H:

Fig. 7 E:d im3.ted pai'rtll1eters of the sUi'ye and

333

1.7t.

SWiPJ

HI;:

HF-iU ode ls

According to practice obtained in computer simulation - when the turning manoeuver is held the HF-filter is switched off. Remarkable changes of LF-parameters estimates are visible in tine moments when the turns are made. It is the consequence of the relative wind changes. The influence of that fact is also visible at figures presenting HFparameters. The tuning phase for estimation after turning is relatively short but it is closely connected to the procedure of HFfilter switching.

m.asurements WInd ~urements

Surge

+

meuurement. SWay

measurements y~

meouurementl

+ Feedforward

CONCLUSIONS

Thrusters

command.

As could be expected, the trackkeeping control system based on the Kalman filter works extremely well. The efficient filtering of Fig.3 The filters and controllers measurement signals has structure signif icantly reduce the thruster control excitations from environmental noises. However, to achieve these advantages, a substantial amount of computational work has to be carried out before installation and testing, i. e. one has to compute mathematical model parameters, thruster parameters, etc. During a sea trial period all these computations and simulation results have to be verified. REFERENCES [1]

[2 ]

[3]

[4]

J.G.Balchen, N.A.Jenssen and S.Saelid - DYNAMIC POSITIONING USING KALMAN FILTERING AND OPTIMAL THEORY, in Automation in Offshores Oil Field Operation, 00.183-188, 1976 J. G. Balchen, et al. - A DYNAMIC POSITIONING SYSTEM BASED ON KALMAN FILTERING AND OPTIMAL CONTROL, Modeling, Identification and Control, Vol.l, No.3, 1980 S.Saelid, N.A.Jenssen and J.G.Balchen - DESIGN AND ANALYSIS OF A 11 DYNAMIC POSITIONING SYSTEM BASED ON KALMAN FILTERING AND OPTIMAL CONTROL, IEEE Trans.on Autom.Control, Vol.AC-28, NO.3, pp.331-339, 1983 M.J.Grimble, R.J.Patton and D.A.Wise - THE USE OF KALMAN FILTERING TECHNIQUES IN DYNAMIC SHIP POSITIONING SYSTEMS, Oceanology Interna tional Conference, Brighton, England, 1978

334

[5J

[6J

[7J

[8J

[9J [10J [llJ [12J

[13J

M.J.Grimble, R.J.Patton and D.A.Wise - THE DESIGN OF DYNAMIC SHIP POSITIONING CONTROL SYSTEMS USING EXTENDED KALMAN FILTERING TECHNIQUES, Proc. IEEE Oceans'79 Conf., San Diego, CA, 1979, pp.488-498 P.T.K.Fung and M.J.Grimble - SELF-TUNING CONTROL OF SHIP POSITIONING SYSTEMS, IEEE Workshop on Theory and Application of Adaptive and Self-Tuning Control, Oxford University, 1981 P.T.K.Fung and M.J.Grimble - DYNAMIC SHIP POSITIONING USING A SELFTUNING KALMAN FILTERS, IEEE Trans. on Automatic Control, Vol. AC28, No.3, pp.339-349, 1983 N.H.Norrbin - THEORY AND OBSERVATIONS ON THE USE OF A MATHEMATICAL MODEL FOR SHIP MANOEUVREING IN DEEP AND CONFINED WATERS, Publ. of the Swedish state Shipbuilding Experimental Tank, No.68, Goteborg, 1971 A.H.Jazwinski - STOCHASTIC PROCESSES AND FILTERING THEORY, Academic Press, New York 1970 G.J.Bierman - Factorization methods for discrete sequential estimation, New York, Academic Press, 1977 A.P.Sage and Ch.C.White - OPTIMUM SYSTEMS CONTROL, Prentice Hall, Inc, New Jersey, 1977 C.G.Kallstrom - IDENTIFICATION AND ADAPTIVE CONTROL APPLIED TO SHIP STEERING, Swedish Maritime Research Center SSPA, Publ. No.93, 1982 J.P.Hoft and A.J.A.M.Drinoczy - DESIGN INFORMATION ON THE SHIP MANEUVERABILITY, PART 1, Netherlands Ship Model Basin, Report No.45931-1-NS, 1984

335