<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Design of Internal Model Controller for Ship Dynamic Positioning Based on Inverse Algorithm 1</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Baoyu Ye</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Xiaojing Lv</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yun Liu</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Shixin Liang</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jianbin Xiong</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Guangdong Polytechnic Normal University</institution>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Guangdong University of Technology</institution>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Guangzhou Civil Aviation College</institution>
          ,
          <addr-line>Guangzhou, Guangdong</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
      </contrib-group>
      <fpage>99</fpage>
      <lpage>104</lpage>
      <abstract>
        <p>Aiming at the problems of multivariable coupling, nonlinearity and delay in ship motion, this paper proposes an internal model controller design for ship dynamic positioning based on the inverse algorithm. The simulation results show that compared with the traditional PID, the internal model control has the characteristics of strong robustness, high positioning accuracy and green control.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;dynamic positioning</kwd>
        <kwd>internal model</kwd>
        <kwd>Kalman Filter</kwd>
        <kwd>stability</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. INTRODUCTION</title>
    </sec>
    <sec id="sec-2">
      <title>2. MATHEMATICAL MODEL OF SHIP DYNAMIC POSITIONING</title>
      <p>
        According to [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], the low-frequency motion equation of ship dynamic positioning can be expressed
as
      </p>
      <p>MV + DV =τ + RT (ϕ )b + E w
v v</p>
      <p>
        Where:τ is the control force and moment; M is the inertia matrix (including hydrodynamic added
mass), which meeting the positive definite requirements; D is the damping matrix, R(φ) is the
transformation matrix, b is unmodeled external disturbance forces such as wind, wave and current,
which can be described by the first-order markov deviation model [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]:
b = −Tb−1b + E w
      </p>
      <p>b b
(1)
(2)</p>
      <p>Where: Tb is a three-dimensional diagonal matrix containing time constants;  ∈  is a zero
mean Gaussian white noise and  ∈  is a three dimensional diagonal matrix indicating the
amplitude range of environmental forces. M, D is defined as follows:</p>
      <p>m − X u
M =  0
 0</p>
      <p>0
m − Yv
mxG − Yv
0 </p>
      <p>
mxG − Yr 
IZ − Nr  ，</p>
      <p>− X u
D =  0
 0</p>
      <p>0
− Yv
− Nv
− Nr  ,</p>
      <p>0  cosϕ − sinϕ 0
− Yr  R(ϕ ) = sinϕ cosϕ 0
 0 0 1</p>
      <p>Where: X u ,Yv ,Yr , Nv , Nr refers to the added mass coefficient of hydrodynamic force caused by
acceleration, X u ,Yv ,Yr , Nv , Nr represents the hydrodynamic linear damping coefficient.</p>
    </sec>
    <sec id="sec-3">
      <title>3. DESIGN OF INTERNAL MODEL CONTROLLER</title>
      <p>Before the dynamic positioning control system is applied in the actual environment, the simulation
test must be carried out in the simulated environment. The purpose of the simulation is to verify
whether the control method used by the ship in the simulated bad environment can meet the
requirements of engineering control. When some control performance does not meet the requirements,
adjust the controller parameters or structure to make the whole control system more perfect.</p>
      <p>
        Matlab simulation software is an open system, which can carry out matrix calculation, numerical
analysis and scientific data visualization in an easy to use windows environment. Matlab simulation
software supports the analysis of single input and single output systems and multiple input and
multiple output systems, as well as the analysis and simulation of discrete systems and continuous
systems. In Matlab / Simulink environment, many control algorithms can be simulated and verified,
such as classical PID control algorithm and other intelligent control algorithms. This paper mainly
carries out the simulation verification of dynamic positioning control for the commonly used ship
dynamic positioning control algorithms, such as PID control algorithm and internal model control
algorithm, and analyzes the advantages and disadvantages of the algorithm [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
    </sec>
    <sec id="sec-4">
      <title>3.1. Simulation of Classical PID Controller</title>
      <p>
        The longitudinal motion of a 2.8m experimental ship in the key laboratory of ocean engineering of
Guangdong university of technology is studied. During the simulation, the surge motion part of the
low-frequency model structure proposed by Fossen of Norway is selected as the MATLAB simulation
model of this paper [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The model selected for control is
(m − X u ) ⋅ u − X u ⋅ u ⋅ u = Fu
(3)
m − Xu = 223.7 , Xu = −46.4 .
      </p>
      <p>Where</p>
      <p>Classical PID control method is adopted, and PID control is adopted for speed loop and position
loop. The Simulink simulation structure diagram of the position ring is as Fig.1 shown.</p>
      <p>The subsystem is the speed loop subsystem, and the speed loop also adopts the same PID control
structure. The given position signal is 2, and the response result of the PID control system to the
position signal is shown in Fig.2.</p>
      <p>It can be seen from Fig.2 that the system cannot track and respond effectively and quickly when
the double loop PID control is applied to the ship model. The control system has a huge overshoot. In
the actual ship dynamic positioning, this control method is time-consuming and labor-consuming.</p>
    </sec>
    <sec id="sec-5">
      <title>3.2. Design of Ship Dynamic Positioning Controller Based on Inverse System</title>
    </sec>
    <sec id="sec-6">
      <title>Theory and Internal Model Control Algorithm</title>
      <p>In practical industrial control applications, most of the controlled objects are not linear models
with single input and single output, but nonlinear models with multiple input and multiple output and
mutual coupling. Especially for complex systems such as ship dynamic positioning, decoupling
control is required during internal model control, which increases the complexity of internal model
control.</p>
      <p>The inverse system method is a kind of decoupling control method which deals with nonlinear
model by feedback linearization. Internal model control (IMC) is applied to the pseudo linear system.
The internal model control based on inverse system method has clear structure and simple algorithm.</p>
      <p>Based on the inverse system theory, the α order inverse system of the original system is
constructed to perform internal model control on the new system composed of the original system and
the α order inverse system. The system structure diagram is as follows:</p>
      <p>The structure diagram of internal model control under pseudo linear system is shown as Fig.3, in
which r is the system input, d is the system disturbance, y is the control system output, and ym is
the internal model output. The new system constructed by the inverse system and the original system
has a simple model, and the internal model controller design is easy and convenient, which solves the
problem of constructing the inverse model of the original nonlinear system.</p>
      <p>(1) Basic Theory of the Inverse System Principle</p>
      <p>As a new control method, the inverse system theory has established a relatively complete design
theory for general nonlinear systems in recent years. The inverse system method has no special
requirements for the form of equations, so it has extensive research significance. The essence of
inverse system method is to use feedback linearization to realize decoupling linearization of nonlinear,
multivariable and strongly coupled systems. In this method, the nonlinear, multivariable and strongly
coupled system is linearized in the global by state feedback to realize decoupling. Inverse system
theory does not need to introduce problems into differential geometry and other fields, so it does not
require a deep mathematical theoretical basis, which is very suitable for engineering applications.</p>
      <p>
        The basic idea of inverse system theory is to generate an α order integral inverse system for the
original system by using the mathematical model of the controlled object and the feedback method.
The inverse system refers to the system that realizes the transformation from the output of the
original system to the input. For the system with known and relatively accurate model, the α order
inverse system of the original system can be obtained by mathematical derivation method, and the
new system composed of the α order inverse system and the original system is pseudo linear system.
Finally, various design methods and theories of linear systems are used to complete the synthesis of
pseudo linear systems [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>For a continuous nonlinear or linear system Σ , assuming that the input is u , the output is y , and
the initial state is x0 , note that the operator describing the mapping relationship of the system is θ :
u → y , that is
y = u ⋅θ
(4)</p>
      <p>Construct another continuous nonlinear or linear system Π , assuming that the input is η and the
output is ud , the mapping operator of the system is θ :η → ud , if η = y∂ , that is, η is α order
derivative of y . If the operator θ satisfies:
θ ⋅θ ⋅η = θ ⋅θ ⋅ y ∂ = θ ⋅ ud =η
(5)</p>
      <p>Then the system Π is the α order inverse system of the system Σ . α = 0 is a special case of α
order inverse system, which is the unit inverse system.</p>
      <p>
        The composite new system composed of the original system and its inverse system is called
pseudo linear system, which composed of θ ⋅θ . The relationship between input and output of the new
composite system is linear, showing an identity mapping relationship, but the internal structure of the
composite system may also be nonlinear and coupled. Only when the mapping operator θ of the
original system itself is linear, the internal structure of the new composite system can be linear.
Obviously, the new system composed of the inverse system and the original system can be controlled
according to the general linear control method, and the whole control becomes relatively simple and
clear [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. The composition and structural composition of pseudo linear systems can be represented by
the Fig.4.
(2) Controller Design
      </p>
      <p>
        The dynamic positioning control system of a ship at sea includes two parts, one is to control the
speed of the ship, and the other is to control the position of the ship. In the design of this paper, the
internal model control method is used to control these two parts, forming a double closed-loop
internal model control system, that is, the inner loop is the speed loop control system, and the outer
loop is the position loop control system. At the same time, for the ship model, the principle of inverse
system is adopted to decouple and linearize the coupled and nonlinear ship model [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>Regardless of the coordinate conversion in the actual motion control of the ship, the structure
diagram of the ship control system based on the inverse system and internal model control algorithm
is shown in Fig.5:</p>
      <p>
        Where: G1 is the pseudo linear system, which is the controlled object of the inner loop (speed loop)

control system; Δ is the inner loop (speed loop) control system; G1 is the pseudo linear system

model; G2 is the outer loop (position loop) controlled object; G2 is the reference model of the
controlled object of the outer loop (position loop) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>(3) Simulation analysis</p>
      <p>According to the actual ship model, control the surge, sway and yaw of the ship. The set values of
surge, sway and yaw are 3m, 2m and 2 rad respectively. The system response is shown as Fig.6.</p>
      <p>It can be seen from the simulation results in Fig.6 and Fig.7 that the simulation effect of the ship
dynamic positioning controller based on the inverse system principle and internal model control
algorithm proposed in this paper is good. The ship has no overshoot and error in response, stable
dynamic performance and fast response. At the same time, considering the limitation of propeller
thrust capacity and the imprecision of ship model in actual conditions, the ship dynamic positioning
controller can still work with maximum efficiency and no deviation in response. The simulation
results show the effectiveness and availability of the ship dynamic positioning controller based on the
inverse system principle and internal model control algorithm.</p>
    </sec>
    <sec id="sec-7">
      <title>4. CONCLUSION AND PROSPECT</title>
      <p>For nonlinear ships, this paper proposes an inverse system control algorithm based on the internal
model algorithm, the simulation results show that compared with the formation of classical PID
control, the ship direction dynamic positioning controller based on the inverse system theory and
internal model control algorithm has better dynamic characteristics and faster response speed, with
less overshoot and strong anti-interference ability, it is suitable for engineering practice.</p>
    </sec>
    <sec id="sec-8">
      <title>ACKNOWLEDGMENT REFERENCES</title>
      <p>This work was supported in part by China Youth Innovation Talents Project of Guangdong
Education Department under Grant 2017GKQNCX001, in part by China Characteristic innovation
projects of Guangdong Education Department under Grant 2019GKTSCX003, in part by Guangzhou
science and technology plan project (Grant No. 202102020860), in part by 2020 youth innovative
talents project of Guangdong province ordinary university (Grant No. 2020KQNCX142) .</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Serhii</given-names>
            <surname>Zinchenko</surname>
          </string-name>
          , Vladyslav Moiseienko, Oleh Tovstokoryi, Pavlo Nosov and
          <string-name>
            <given-names>Ihor</given-names>
            <surname>Popovych</surname>
          </string-name>
          . “
          <article-title>Automatic Beam Aiming of the Laser Optical Reference System at the Center of Reflector to Improve the Accuracy and Reliability of Dynamic Positioning”</article-title>
          . International Conference on Computer Science, Engineering and
          <string-name>
            <given-names>Education</given-names>
            <surname>Applications</surname>
          </string-name>
          ,
          <fpage>pp3</fpage>
          -
          <lpage>14</lpage>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>D.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z. H.</given-names>
            <surname>Ye</surname>
          </string-name>
          , G. Feng,
          <string-name>
            <given-names>H. Y.</given-names>
            <surname>Li</surname>
          </string-name>
          .
          <article-title>“Intelligent Event-Based Fuzzy Dynamic Positioning Control of Nonlinear Unmanned Marine Vehicles Under DoS Attack”</article-title>
          .
          <source>IEEE Transactions on Cybernetics</source>
          , DOI: 10.1109/TCYB.
          <year>2021</year>
          .
          <volume>3128170</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Asgeir</surname>
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Sørensen</surname>
          </string-name>
          , “
          <article-title>A survey of dynamic positioning control systems, Annual Reviews in Control”</article-title>
          . vol.
          <volume>35</volume>
          , no.
          <issue>1</issue>
          , pp.
          <fpage>123</fpage>
          -
          <lpage>136</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>B.</given-names>
            <surname>Ban</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. J.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. G.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. B.</given-names>
            <surname>Xiong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q. R.</given-names>
            <surname>Wang</surname>
          </string-name>
          . “
          <article-title>Ship track regression based on support vector machine”</article-title>
          .
          <source>IEEE Access</source>
          , vol.
          <volume>5</volume>
          , pp.
          <fpage>18836</fpage>
          -
          <lpage>18846</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          . “
          <article-title>Research on internal model control and inverse system theory in the imulation of ship motion control”</article-title>
          .
          <source>Ship science and technology</source>
          , vol.
          <volume>8</volume>
          , no.
          <issue>11</issue>
          , pp.
          <fpage>111</fpage>
          -
          <lpage>119</lpage>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>B.</given-names>
            <surname>Ban</surname>
          </string-name>
          . “
          <article-title>Research on several key problems of dynamic positioning model of surface ship”</article-title>
          .
          <source>PhD. dissertation</source>
          , Guangdong university of technology,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S. X.</given-names>
            <surname>Liang</surname>
          </string-name>
          .
          <source>CThe Research and Application of Nonlinear Kalman Filter Based on Ship Dynamic Positioning”. MA. dissertation</source>
          , Guangdong university of technology,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>B. Y.</given-names>
            <surname>Ye</surname>
          </string-name>
          . “
          <article-title>Study on Control Strategy and Stability of Ships Dynamic Positioning with observer”</article-title>
          .
          <source>PhD. dissertation</source>
          , Guangdong university of technology,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>