<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "https://jats.nlm.nih.gov/publishing/1.3/JATS-journalpublishing1-3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.3" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="publisher-id">jcse</journal-id><journal-title-group><journal-title>Journal of Computational Science and Engineering</journal-title></journal-title-group><issn>1710-4068</issn><publisher><publisher-name>Advancersin</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">jcse-v59-a02</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group></article-categories><title-group><article-title>A generalized- α projection control method for multi-agent formation preserving</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Wang</surname><given-names>Junjie</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Kong</surname><given-names>Lingfeng</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Ding</surname><given-names>Jieyu</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff id="aff-1">School of Mathematics and Statistics, Qingdao University, Qingdao 266071, China</aff><pub-date publication-format="electronic" date-type="pub" iso-8601-date="2022-12-30"><day>30</day><month>12</month><year>2022</year></pub-date><volume>59</volume><fpage>9</fpage><lpage>17</lpage><permissions><copyright-statement>2022@ The American Computational Science Society.</copyright-statement><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><ali:license_ref xmlns:ali="http://www.niso.org/schemas/ali/1.0/">https://creativecommons.org/licenses/by/4.0/</ali:license_ref><license-p>This article is licensed under the Creative Commons Attribution 4.0 International license (CC BY 4.0), which permits sharing and adaptation, including commercial reuse, subject to attribution, a link to the license and an indication of changes. Third-party material separately credited with different terms is governed by the license or rights notice stated for that material.</license-p></license></permissions><self-uri content-type="fulltext" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v59-a02/index.html"/><self-uri content-type="pdf" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v59-a02/jcse-v59-a02.pdf"/><abstract><p>For the formation preservation problem of multi-agent described by Lagrangian system, a generalized-α projection control method based on differential algebraic equations is proposed. Firstly, the Lagrange equation is used to model the general multi-agent system, then the geometric algebraic equation is designed to describe the formation, and the Lagrange multiplier method is used to calculate the control rate, so as to achieve the precise control of the multi-agent system formation. This method uses the idea of analytical mechanics to control the virtual structure among multiple agents by binding force, and uses the advantage of generalized-α projection method to maintain the constraint accurately to achieve accurate control. Compared with the Baumgarte stabilization method, the numerical results show that the generalized-α projection control method can avoid the difficulty of parameter selection and realize the accurate maintenance of multi-agent formation control at large strides.</p></abstract><kwd-group><kwd>Generalized-α method</kwd><kwd>Differential-algebraic equation</kwd><kwd>Binding force</kwd><kwd>Projection method</kwd><kwd>Multi-agent formation</kwd></kwd-group></article-meta></front><body>
    <sec>
      <title>1. Introduction</title>
      <p>Multi-agent system is a complex dynamic coupling system composed of multiple agents, whose coupling is reflected in the information interaction between agents through the network to form a specific formation and cooperate with each other to complete the target task. Due to the wide application of multi-agent systems in mechanical systems, ships, aircraft, vehicles, spacecraft, robots and other fields, the stability control of multi-agent formation has attracted more and more attention from researchers and engineers.</p>
      <p>In recent years, a lot of scientific achievements have been made in the cooperative control of multi -agent formation. A variety of formation control methods, such as the pilot following method [1,2], virtual structure method[3], behavior method[4] and graph theory method [5], virtual potential field method [6,7], etc., have been gradually proposed. In addition, four applications of nonlinear multi -agent formation are generated, including rigid body attitude system, independent wheeled robot system, multi-Lagrangian system and other nonlinear systems.</p>
      <p>Among them, Lagrangian systems have attracted much attention due to their ability to describe a wide range of mechanical systems, including practical systems such as robotic arms, unmanned vehicles, UAVs, underwater vehicles, and spacecraft. For example, in recent years, the di stributed spacecraft formation control algorithm based on output feedback for double layer structure[8], the cooperative formation control algorithm for pilot satellites [9], and the adaptive coordination control of multi-manipulator system[10] have emerged for multi-Lagrangian systems. However, the above studies are based on ordinary differential equations to establish the model, and few studies start from differential algebraic equations.</p>
      <p>In the existing differential-algebraic equation modeling[11,12,13,14], the formation control of multi-agent formation problem is realized by constructing constraint function, that is, Lagrangian term provides the reaction force to maintain the kinematic constraint, so that the multi- agent formation maintains the virtual structure. In this control method [15], the control rate of multi-agent formation is transformed into the stability problem in the differential -algebraic equation through the method of analytical mechanics, so that the multi -agent formation problem can be solved using many stabilization methods in the differential-algebraic equation [16].</p>
      <p>There are many stabilization methods in the numerical solution of differential -algebraic equations, including [17,18,19,20]. Among them, the generalized- α projection method [20] can meet the constraints of all levels of the differential -algebraic equations to a high degree, and can be solved stably when the step size is large, with high computational efficiency.</p>
      <p>In this paper, a generalized-α projection method for formation preservation of multi-agent formations in multi-Lagrangian systems is studied. In this paper, the problem of Marine surface ship formation is taken as a numerical example. Compared with the Baumgarte stabilization method, the accuracy of the generalized-α projection method is discussed and compared.</p>
    </sec>
    <sec>
      <title>2. DAE model for multi-agent</title>
      <p>For a general Lagrangian system, it can be expressed as:</p>
      <p>𝜂𝜂 = [𝜂𝜂1 𝑇𝑇 , ⋯ , 𝜂𝜂𝑛𝑛 𝑇𝑇]𝑇𝑇, 𝑀𝑀 = � 𝑚𝑚1𝐼𝐼2 0 0 0 ⋱ 0 0 0 𝑚𝑚𝑛𝑛𝐼𝐼𝑛𝑛 � ， (1)</p>
      <p>𝑇𝑇 = 1 2 𝜂𝜂̇𝑇𝑇 ⋅ 𝑀𝑀 ⋅ 𝜂𝜂̇ , 𝐿𝐿 = 𝑇𝑇 − 𝑈𝑈 − 𝜆𝜆𝑇𝑇𝐶𝐶(𝜂𝜂), 𝑑𝑑 𝑑𝑑𝑡𝑡 𝜕𝜕𝐿𝐿 𝜕𝜕𝜂𝜂𝚤𝚤̇ − 𝜕𝜕𝐿𝐿 𝜕𝜕𝜂𝜂𝑖𝑖 = 𝜏𝜏, 𝑖𝑖 = 1 ⋯ 𝑛𝑛. 𝑛𝑛 is the number of agents in a multi-agent formation. 𝑇𝑇，𝑈𝑈 are the kinetic energy and potential energy of the whole system, 𝐿𝐿 is the Lagrangian of the system, 𝑀𝑀 is the mass matrix of the system，𝜂𝜂𝑖𝑖 is the location state variable of a single agent, 𝐶𝐶(𝜂𝜂) is the constraint function, which represents the target formation of the system, 𝜏𝜏 = −𝜆𝜆𝑇𝑇 𝜕𝜕𝜕𝜕 𝜕𝜕𝜂𝜂𝑖𝑖 is the control rate.</p>
      <p>Constraint functions at all levels of the formation of the target formation:： 𝐶𝐶(𝜂𝜂) = 0, 𝐶𝐶̇(𝜂𝜂) = 𝑊𝑊(𝜂𝜂)𝜂𝜂̇ = 0, 𝐶𝐶̈(𝜂𝜂) = 𝑊𝑊(𝜂𝜂)𝜂𝜂̈ + 𝑊𝑊̇ (𝜂𝜂)𝜂𝜂̇ = 0. (2) 𝑊𝑊(𝜂𝜂) = 𝜕𝜕𝜕𝜕(𝜂𝜂) 𝜕𝜕𝜂𝜂 is the Jacobi matrix of constraint functions. Thus, the differential algebraic system of index 3 is obtained as follows:</p>
      <p>� 𝑀𝑀(𝜂𝜂, 𝑡𝑡)𝜂𝜂̈ + 𝜏𝜏 = 𝐹𝐹(𝜂𝜂̇, 𝜂𝜂, 𝑡𝑡), 𝐶𝐶̈(𝜂𝜂) = 𝑊𝑊(𝜂𝜂)𝜂𝜂̈ + 𝑊𝑊̇ (𝜂𝜂)𝜂𝜂̇ = 0. (3) The above equation is the differential algebraic equation model of multi-agent multi-Lagrange system, where 𝜏𝜏 = −𝜆𝜆𝑇𝑇 𝜕𝜕𝜕𝜕 𝜕𝜕𝜂𝜂𝑖𝑖 is the Lagrange multiplier term, which represents the control rate in the multi-agent formation problem. The control rate can be obtained by solving the above equation, so that the formation can be controlled. However, since the initial value of formation problem is usually incompatible with the constraint function 𝐶𝐶(𝜂𝜂), the above equation cannot be solved normally. Therefore, the stabilization method of the above equation, such as Baumgarte stability method, can obtain the following equation.</p>
      <p>� 𝑀𝑀(𝜂𝜂, 𝑡𝑡)𝜂𝜂̈ + 𝜏𝜏 = 𝐹𝐹(𝜂𝜂̇, 𝜂𝜂, 𝑡𝑡), 𝐶𝐶̈(𝜂𝜂) = 𝑊𝑊(𝜂𝜂)𝜂𝜂̈ + 𝑊𝑊̇ (𝜂𝜂)𝜂𝜂̇ = −𝐾𝐾𝑑𝑑 𝐶𝐶̇(𝜂𝜂) − 𝐾𝐾𝑝𝑝𝐶𝐶(𝜂𝜂). (4) The above equation is the existing differential algebraic equation model of multi-agent formation control established by Baumgarte stabilization method [11], where 𝐾𝐾𝑑𝑑 and 𝐾𝐾𝑝𝑝 are method parameters. However, the selection of parameters in Baumgarte stability method has no definite quasi -measurement, and the selection of parameters affects the solution of the equation. Secondly, The Baumgarte method can't ensure accurate preservation of all levels of constraints, and the accuracy is relatively low. Therefore, other stabilization methods are needed for further precise control[17,18,19,20], such as generalized - α projection methods that accurately preserve the constraints.</p>
    </sec>
    <sec>
      <title>3. Generalized -α projection control method</title>
      <p>The generalized - α projection method is based on the generalized - α method, which uses the projection method of displacement, velocity and acceleration to their respective constraint equations, so that the constraints at all levels are better maintained.</p>
      <p>Take the isometric step ℎ to discretize the time interval and get the time period [𝑡𝑡𝑖𝑖, 𝑡𝑡𝑖𝑖+1]，In this time period, the general formula of the generalized -α method is as follows:</p>
      <p>�𝑀𝑀𝑖𝑖+1−𝛼𝛼𝑓𝑓 𝜂𝜂̈𝑖𝑖+1−𝛼𝛼𝑚𝑚 + 𝑊𝑊𝑖𝑖+1−𝛼𝛼𝑓𝑓 𝑇𝑇 𝜆𝜆𝑖𝑖+1−𝛼𝛼𝑓𝑓 − 𝐹𝐹𝑖𝑖+1−𝛼𝛼𝑓𝑓 = 0, 𝐶𝐶(𝜂𝜂𝑖𝑖+1) = 0. (5) In the formula above, 𝜂𝜂̈𝑖𝑖+1−𝛼𝛼𝑚𝑚 = (1 − 𝛼𝛼𝑚𝑚)𝜂𝜂̈𝑖𝑖 + 𝛼𝛼𝑚𝑚𝜂𝜂̈𝑖𝑖+1, 𝜂𝜂̈𝑖𝑖+1−𝛼𝛼𝑚𝑚 can be viewed as 𝜂𝜂̈ in 𝑡𝑡𝑖𝑖+1−𝛼𝛼𝑚𝑚 = (1 − 𝛼𝛼𝑚𝑚)𝑡𝑡𝑖𝑖 + 𝛼𝛼𝑚𝑚𝑡𝑡𝑖𝑖+1 time value. 𝑊𝑊(𝜂𝜂) = 𝜕𝜕𝜕𝜕(𝜂𝜂) 𝜕𝜕𝜂𝜂 is the Jacobi matrix of constraint functions, 𝑊𝑊𝑖𝑖+1−𝛼𝛼𝑓𝑓 𝑇𝑇 =� 𝜕𝜕𝜕𝜕(𝜂𝜂) 𝜕𝜕𝜂𝜂 � 𝑡𝑡=𝑖𝑖+1−𝛼𝛼𝑓𝑓 � 𝑇𝑇 . Related formulas of state variables are as follows:</p>
      <p>𝜂𝜂̇𝑖𝑖+1−𝛼𝛼𝑓𝑓 = �1 − 𝛼𝛼𝑓𝑓�𝜂𝜂̇𝑖𝑖 + 𝛼𝛼𝑓𝑓𝜂𝜂̇𝑖𝑖+1, 𝜂𝜂𝑖𝑖+1−𝛼𝛼𝑓𝑓 = �1 − 𝛼𝛼𝑓𝑓�𝜂𝜂𝑖𝑖 + 𝛼𝛼𝑓𝑓𝜂𝜂𝑖𝑖+1, 𝜂𝜂̇𝑖𝑖+1 = 𝜂𝜂̇𝑖𝑖 + ℎ[(1 − 𝛾𝛾)𝜂𝜂̈𝑖𝑖 + 𝛾𝛾𝜂𝜂̈𝑖𝑖+1], 𝜂𝜂𝑖𝑖+1 = 𝜂𝜂𝑖𝑖 + ℎ𝜂𝜂̇𝑖𝑖 + ℎ2 2 [(1 − 2𝛽𝛽)𝜂𝜂̈𝑖𝑖 + 2𝛽𝛽𝜂𝜂̈𝑖𝑖+1]. (6)</p>
      <p>The value is described as follows: 𝛼𝛼𝑚𝑚 = 2𝜌𝜌 − 1 𝜌𝜌 + 1 , 𝛼𝛼𝑓𝑓 = 𝜌𝜌 𝜌𝜌 + 1 , 𝜌𝜌 ∈ [0,1], 𝛾𝛾 = 1 2 + 𝛼𝛼𝑓𝑓 − 𝛼𝛼𝑚𝑚, 𝛽𝛽 = �1 + 𝛼𝛼𝑓𝑓 − 𝛼𝛼𝑚𝑚� 4 . (7) The above method can solve the index 3 differential-algebraic equation directly, but it can only keep the displacement constraint with high accuracy, and the velocity and acceleration constraints will cause the breach of contract. In order to keep the high precision of the constraints at all levels, the projection method is considered to be used.</p>
      <p>At time 𝑡𝑡𝑖𝑖+1, define the constraint manifold Ω𝜂𝜂𝑖𝑖+1 = {𝜂𝜂𝑖𝑖+1|𝐶𝐶(𝜂𝜂𝑖𝑖+1, 𝑡𝑡𝑖𝑖+1) = 0}. (8) Set 𝜂𝜂�𝑖𝑖+1 for 𝜂𝜂𝑖𝑖+1 ∈ Ω𝜂𝜂𝑖𝑖+1 approximation, the 𝜂𝜂�𝑖𝑖+1 to Ω𝜂𝜂𝑖𝑖+1 projection: �𝜂𝜂𝑖𝑖+1 − 𝜂𝜂�𝑖𝑖+1 + 𝑊𝑊𝑇𝑇 (𝜂𝜂𝑖𝑖+1)𝜇𝜇𝑖𝑖+1 = 0, 𝐶𝐶(𝜂𝜂𝑖𝑖+1) = 0. (9) In the formula above, 𝑊𝑊(𝜂𝜂) = 𝐶𝐶𝜂𝜂 (𝜂𝜂) = 𝜕𝜕𝜕𝜕(𝜂𝜂) 𝜕𝜕𝜂𝜂 .</p>
      <p>Similarly, it can be obtained by projecting to the constraint manifold of velocity level and acceleration level: �𝜂𝜂̇𝑖𝑖+1 − 𝜂𝜂̇�𝑖𝑖+1 + 𝑊𝑊𝑇𝑇(𝜂𝜂𝑖𝑖+1)𝜈𝜈𝑖𝑖+1 = 0, 𝐶𝐶̇(𝜂𝜂̇𝑖𝑖+1, 𝜂𝜂𝑖𝑖+1) = 0.</p>
      <p>(10) �𝜂𝜂̈𝑖𝑖+1 − 𝜂𝜂̈�𝑖𝑖+1 + 𝑊𝑊𝑇𝑇(𝜂𝜂𝑖𝑖+1)𝜔𝜔𝑖𝑖+1 = 0, 𝐶𝐶̈(𝜂𝜂̈𝑖𝑖+1, 𝜂𝜂̇𝑖𝑖+1, 𝜂𝜂𝑖𝑖+1) = 0.</p>
      <p>(11) If the 𝑡𝑡𝑖𝑖+1, approximation 𝜂𝜂�𝑖𝑖+1, 𝜂𝜂̇�𝑖𝑖+1, 𝜂𝜂̈�𝑖𝑖+1 has been calculated, can undertake constraint projection, respectively, to solve the type, satisfy various constraints of 𝜂𝜂𝑖𝑖+1, 𝜂𝜂̇𝑖𝑖+1, 𝜂𝜂̈𝑖𝑖+1. This method is known as the generalized -α projection method.</p>
      <p>By solving the differential algebraic equation model of multi-agent formation control, the constraints at all levels can be kept accurately and the formation configuration of multi-agent formation can be controlled accurately.</p>
    </sec>
    <sec>
      <title>4. Numerical Example</title>
      <p>The above method is verified and analyzed by taking the replenishment formation action of ocean surface ships as an example. Equations of motion of a single ship in fixed coordinate system [21]: � 𝜂𝜂̇ = 𝑅𝑅(𝜓𝜓)𝑣𝑣 𝑀𝑀𝑣𝑣̇ + 𝐶𝐶(𝑣𝑣)𝑣𝑣 + 𝐷𝐷(𝑣𝑣)𝑣𝑣 + 𝑔𝑔(𝜂𝜂) = 𝜏𝜏 (12) In the formula above, 𝜂𝜂 = � 𝑥𝑥 𝑦𝑦 𝜓𝜓 � is the position vector in the ground solid coordinate system, (𝑥𝑥, 𝑦𝑦) is the position of the ship on the sea, 𝜓𝜓 is the course Angle. 𝑣𝑣 = � 𝑢𝑢 𝑣𝑣 𝑟𝑟 � is the velocity vector of the hull in fixed coordinates. The matrices 𝑀𝑀, 𝐶𝐶 and 𝐷𝐷 represent denote inertia, Coriolis plus centrifugal and damping，𝑔𝑔 is a vector of generalized forces. 𝑅𝑅(𝜓𝜓) represents the rotation matrix of transformation between two coordinate systems,</p>
      <p>𝑅𝑅(𝜓𝜓) = � 𝑐𝑐𝑐𝑐𝑐𝑐 𝜓𝜓 − 𝑐𝑐𝑖𝑖𝑛𝑛 𝜓𝜓 0 𝑐𝑐𝑖𝑖𝑛𝑛 𝜓𝜓 𝑐𝑐𝑐𝑐𝑐𝑐 𝜓𝜓 0 0 0 1 �, (13) It can be simplified as follows: 𝑀𝑀𝜂𝜂 𝜂𝜂̈ + (𝐶𝐶𝜂𝜂 + 𝐷𝐷𝜂𝜂 )𝜂𝜂̇ + 𝑔𝑔𝜂𝜂 = 𝜏𝜏𝜂𝜂 (14) In the formula above, 𝑀𝑀𝜂𝜂(𝜂𝜂) = 𝑅𝑅(𝜓𝜓)𝑀𝑀𝑅𝑅(𝜓𝜓)𝑇𝑇，𝐶𝐶𝜂𝜂 = 𝑅𝑅(𝜓𝜓)�𝐶𝐶(𝑣𝑣) − 𝑀𝑀𝑅𝑅(𝜓𝜓)𝑇𝑇𝑅𝑅̇ (𝜓𝜓)�𝑅𝑅(𝜓𝜓)𝑇𝑇，𝐷𝐷𝜂𝜂 = 𝑅𝑅(𝜓𝜓)𝐷𝐷(𝑣𝑣)𝑅𝑅(𝜓𝜓)𝑇𝑇，𝑔𝑔𝜂𝜂 = 𝑅𝑅(𝜓𝜓)𝑔𝑔(𝜂𝜂)， 𝜏𝜏𝜂𝜂 = 𝑅𝑅(𝜓𝜓)𝜏𝜏 。 For the formation problem of three ships [11]: There are three surface ships to form the desired formation to complete the actual work activities such as fitting by a specific formation configuration. The value can be:</p>
      <p>𝑀𝑀𝑖𝑖 = � 180.3 0 0 0 2.436 1.3095 0 1.3095 172.2 � × 106 (15)</p>
      <p>𝐶𝐶𝑖𝑖 = � 0 0 0 0 0 8.61 0 −8.61 0 � × 106 𝐷𝐷𝑖𝑖 = � −2.393 × 10−3|𝑢𝑢𝑖𝑖| 0 0 0 0 0 0 0 0 � + � 3.883 × 10−9 0 0 0 0.2181 −3.434 0 3.706 26.54 � × 106</p>
      <p>The differential algebraic equation model of three-ship formation control and the equation obtained by Baumgarte stabilization method are:</p>
      <p>⎩⎪⎨ ⎪⎧ � 𝑀𝑀𝜂𝜂1 0 0 0 𝑀𝑀𝜂𝜂2 0 0 0 𝑀𝑀𝜂𝜂3 � 𝜂𝜂̈ + � 𝐶𝐶𝜂𝜂1 + 𝐷𝐷𝜂𝜂1 0 0 0 𝐶𝐶𝜂𝜂2 + 𝐷𝐷𝜂𝜂2 0 0 0 𝐶𝐶𝜂𝜂3 + 𝐷𝐷𝜂𝜂3 � 𝜂𝜂̇ = � 𝜏𝜏𝜂𝜂1 𝜏𝜏𝜂𝜂2 𝜏𝜏𝜂𝜂3 � , 𝐶𝐶̈(𝜂𝜂) = 𝑊𝑊(𝜂𝜂)𝜂𝜂̈ + 𝑊𝑊̇ (𝜂𝜂)𝜂𝜂̇ = 0. (16)</p>
      <p>⎩⎪⎨ ⎪⎧ � 𝑀𝑀𝜂𝜂1 0 0 0 𝑀𝑀𝜂𝜂2 0 0 0 𝑀𝑀𝜂𝜂3 � 𝜂𝜂̈ + � 𝐶𝐶𝜂𝜂1 + 𝐷𝐷𝜂𝜂1 0 0 0 𝐶𝐶𝜂𝜂2 + 𝐷𝐷𝜂𝜂2 0 0 0 𝐶𝐶𝜂𝜂3 + 𝐷𝐷𝜂𝜂3 � 𝜂𝜂̇ = � 𝜏𝜏𝜂𝜂1 𝜏𝜏𝜂𝜂2 𝜏𝜏𝜂𝜂3 � , 𝐶𝐶̈(𝜂𝜂) = 𝑊𝑊(𝜂𝜂)𝜂𝜂̈ + 𝑊𝑊̇ (𝜂𝜂)𝜂𝜂̇ = −𝐾𝐾𝑑𝑑 𝐶𝐶̇(𝜂𝜂) − 𝐾𝐾𝑝𝑝𝐶𝐶(𝜂𝜂). (17)</p>
      <p>The above equation simplifies to:</p>
      <p>� 𝑀𝑀(𝜂𝜂, 𝑡𝑡)𝜂𝜂̈ + 𝑛𝑛(𝜂𝜂̇, 𝜂𝜂, 𝑡𝑡) = 𝜏𝜏, 𝐶𝐶̈(𝜂𝜂) = 𝑊𝑊(𝜂𝜂)𝜂𝜂̈ + 𝑊𝑊̇ (𝜂𝜂)𝜂𝜂̇ = 0. (18)</p>
      <p>� 𝑀𝑀(𝜂𝜂, 𝑡𝑡)𝜂𝜂̈ + 𝑛𝑛(𝜂𝜂̇, 𝜂𝜂, 𝑡𝑡) = 𝜏𝜏, 𝐶𝐶̈(𝜂𝜂) = 𝑊𝑊(𝜂𝜂)𝜂𝜂̈ + 𝑊𝑊̇ (𝜂𝜂)𝜂𝜂̇ = −𝐾𝐾𝑑𝑑 𝐶𝐶̇(𝜂𝜂) − 𝐾𝐾𝑝𝑝𝐶𝐶(𝜂𝜂). (19) Under the definition of position variable 𝜂𝜂 = [𝜂𝜂1 𝑇𝑇, 𝜂𝜂2 𝑇𝑇, 𝜂𝜂3 𝑇𝑇]𝑇𝑇, 𝜂𝜂𝑖𝑖, 𝑖𝑖 = 1,2,3, the target formation can be represented by constraint function 𝐶𝐶(𝜂𝜂) = 0. Suppose that three ships form a triangular formation, and let 𝑟𝑟𝑖𝑖𝑖𝑖 represent the expected distance between ship 𝑖𝑖 and ship 𝑗𝑗. At the same time, the trajectory of one of the ships is constrained by trigonometric function. The constraint function is written as:</p>
      <p>𝐶𝐶(𝜂𝜂) = �𝐶𝐶𝑟𝑟(𝜂𝜂) 𝐶𝐶𝑝𝑝(𝜂𝜂)� = 0 (20) The above equation simplifies to:</p>
      <p>𝐶𝐶𝑟𝑟(𝜂𝜂) = � (𝑥𝑥1 − 𝑥𝑥2)2 + (𝑦𝑦1 − 𝑦𝑦2)2 − 𝑟𝑟12 2 (𝑥𝑥2 − 𝑥𝑥3)2 + (𝑦𝑦2 − 𝑦𝑦3)2 − 𝑟𝑟23 2 (𝑥𝑥3 − 𝑥𝑥1)2 + (𝑦𝑦3 − 𝑦𝑦1)2 − 𝑟𝑟31 2 �, 𝐶𝐶𝑝𝑝(𝜂𝜂) = � 𝑡𝑡 𝐴𝐴𝑐𝑐𝑖𝑖𝑛𝑛(𝑤𝑤𝑡𝑡) atan (𝐴𝐴𝑤𝑤𝑐𝑐𝑐𝑐𝑐𝑐(𝑤𝑤𝑡𝑡)) �. (21) Using RK method to solve the model can be obtained:</p>
      <p>Fig 1. Location diagram of three ships of Baumgarte stabilization method</p>
      <p>Fig 2. Three-ship constraint diagram of Baumgarte stabilization method</p>
      <p>Fig 3. Location diagram of the third ship of the generalized α projection method</p>
      <p>Fig 4. Three-ship constraint diagram of generalized - α projection method</p>
      <p>The generalized -α projection method can be used to obtain the model:</p>
      <p>It can be seen from the above image that the generalized -α projection method is more accurate to the constraints, and the accuracy of displacement constraints is higher. The three levels of constraints are in the order of 10-14, that is, the control is more accurate than the Baumgarte stability method.</p>
      <p>The following is a long time simulation control:</p>
      <p>Fig 5. Location diagram of the third ship of the generalized -α projection method</p>
      <p>Fig 6. Three-ship constraint diagram of generalized - α projection method It can be seen that the constraints of the generalized -α projection method are still accurate, and the third-level constraints are still in the order of 10-14, so the long-term control can be kept accurate.</p>
      <p>When the selection of method parameters of Baumgarte stable method changes, the following situation can be obtained: From the above image, it can be found that the constraint keeping condition of Baumgarte stabilization method has changed significantly, the accuracy of acceleration level constraint keeping is low, and the magnitude has changed significantly from before. That is, the parameters of the Baumgarte stable method have a great influence on the results, and there is no efficient method for the selection of parameters. For the generalized -α projection method, there is no need to select the parameters precisely, and it can keep the displacement constraint more precisely and control it more precisely.</p>
    </sec>
    <sec>
      <title>5. Conclusion</title>
      <p>This article for multi- agent formation of the Lagrange system configurations of precise control problem, was proposed based on differential algebraic equation of the generalized - alpha projection control method, the method of generalized alpha projection method in traditional multi-body system dynamics, the superiority of constraint accurately maintain formation of multi-agent system to realize accurate control. Numerical experiments are carried out on ship, a common multi-agent system, and the results are compared with the existing Baumgarte stabilization method. The numerical results of the above examples show that, compared with the Baumgarte stable method, the generalized - α projection method can accurately maintain the formation configuration without selecting the method parameters accurately, and the accuracy of the formation constraint can reach the order of 10-14, and the control accuracy will not decrease significantly for a long time.</p>
      <p>Fig 7. Baumgarte stabilization method three ship location diagram</p>
      <p>Fig 8. Three-ship constraint diagram of Baumgarte stabilization method</p>
    </sec>
    <sec>
      <title>Acknowledgments</title>
      <p>This study has been supported by the National Natural Science Foundations of China under Grant Nos. 12172186.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref-001">
        <mixed-citation>[1] Jin-Liang Wang,Huai-Ning Wu. Leader -following Formation Control of Multi -agent Systems Under Fixed and Switching Topologies[J]. International Journal of Control, 2012, 85(6):695-705.</mixed-citation>
      </ref>
      <ref id="ref-002">
        <mixed-citation>[2] Li W, Chen Z, Liu Z. Leader -following Formation Control for Second- order Multiagent Systems with Time -varying Delay and Nonlinear Dynamics[C]// Control Conference. IEEE, 2013:803-812.</mixed-citation>
      </ref>
      <ref id="ref-003">
        <mixed-citation>[3] Li J, Li T, Liu C, et al. Formation Control of Marine Surface Vessel Based on Sliding Mode Control and Local State Observer[C]// 2018 Eighth International Conference on Information Science and Technology (ICIST). 2018.</mixed-citation>
      </ref>
      <ref id="ref-004">
        <mixed-citation>[4] Lee G, Chwa D. Decentralized Behavior -based Formation Control of Multiple Robots Considering Obstacle Avoidance[J]. Intelligent Service Robotics, 2017.</mixed-citation>
      </ref>
      <ref id="ref-005">
        <mixed-citation>[5] Olfati-Saber R, Murray R. Graph Rigidity and Distributed Formation Stabilization of Multi- vehicle Systems[C]. Proc of the IEEE Int Conf on Decision and Control. Las Vegas, 2002: 2965-2971.</mixed-citation>
      </ref>
      <ref id="ref-006">
        <mixed-citation>[6] Lee D, Jeong J, Yong H K, et al. An Improved Artificial Potential Field Method with a New Point of Attractive Force for a &lt;obile robot[C]// 2017 2nd International Conference on Robotics and Automation Engineering (ICRAE). IEEE, 2017.</mixed-citation>
      </ref>
      <ref id="ref-007">
        <mixed-citation>[7] Khatib, O. Real-time Obstacle Avoidance for Manipulators and Mobile Robots[J]. 1985, 2:500-505.</mixed-citation>
      </ref>
      <ref id="ref-008">
        <mixed-citation>[8] Li D, Zhang W, He W, et al. Two -Layer Distributed Formation -Containment Control of Multiple Euler -Lagrange Systems by Output Feedback[J]. IEEE Transactions on Cybernetics, 2018:675-687.</mixed-citation>
      </ref>
      <ref id="ref-009">
        <mixed-citation>[9] Chen L, Guo Y, Li C, et al. Satellite Formation -Containment Flying Control with Collision Avoidance[J] . Journal of Aerospace Computing, Information, and Communication, 2018, 15(5):253-270.</mixed-citation>
      </ref>
      <ref id="ref-010">
        <mixed-citation>[10] Zhou Y C. Adaptive Coordination Control of Multi -manipulator System based on Multi -agent and its application [D]. Chongqing University,2016.</mixed-citation>
      </ref>
      <ref id="ref-011">
        <mixed-citation>[11] Ihle I, Jouffroy J, Fossen T I. Formation Control of Marine Surface Craft: A Lagrangian Approach[J]. IEEE Journal of Oceanic Engineering, 2006, 31:p.922-934.</mixed-citation>
      </ref>
      <ref id="ref-012">
        <mixed-citation>[12] Peymani E, Fossen T I. Leader -follower Formation of Marine Craft Using Constraint Forces and Lagrange Multipliers[C]// Decision &amp; Control. IEEE, 2012:2447-2452.</mixed-citation>
      </ref>
      <ref id="ref-013">
        <mixed-citation>[13] Peymani E, Fossen T I. Path following of underwater robots using Lagrange multipliers[J]. Robotics &amp; A utonomous Systems, 2015, 67:44-52.</mixed-citation>
      </ref>
      <ref id="ref-014">
        <mixed-citation>[14] Peymani E, Fossen T I. A Lagrangian Framework to Incorporate Positional and Velocity Constraints to Achieve Path- following Control[C]// IEEE. IEEE, 2011.</mixed-citation>
      </ref>
      <ref id="ref-015">
        <mixed-citation>[15] Ihle I, Jouffroy J, Fossen T I. Robust Formation Control of Marine Craft Using Lagrange Multipliers[C]// IEEE. IEEE, 2007:922-934.</mixed-citation>
      </ref>
      <ref id="ref-016">
        <mixed-citation>[16] J. Baumgarte, Stabilization of Constraints and Integrals of Motion in Dynamical Systems, Comput. Methods Appl. Mech. Eng., vol. 1, pp. 1–16, 1972.</mixed-citation>
      </ref>
      <ref id="ref-017">
        <mixed-citation>[17] E. BAYO AND A. AVELLO, Singularity-free Augmented Lagrangian Algorithms for Constrained Multibody Dynamics, Nonlinear Dynamics, 5 (1994), pp. 209–231.</mixed-citation>
      </ref>
      <ref id="ref-018">
        <mixed-citation>[18] E. BAYO AND R. LEDESMA, Augmented Lagrangian and Projection Methods for Constrained Multibody Dynamics with no Constraint Violation, University of California at Santa Barbara, Santa Barbara, CA, 1993, preprint.</mixed-citation>
      </ref>
      <ref id="ref-019">
        <mixed-citation>[19] Li B, Ding J, Li Y. L -Stable Method for Differential -Algebraic Equations of Multibody System Dynamics[J]. Mathematical Problems in Engineering, 2019, 2019.</mixed-citation>
      </ref>
      <ref id="ref-020">
        <mixed-citation>[20] Ding, J. Y. and Pan, Z. K. Generalized -α projection method for stiff dynamic equations of multibody systems (in Chinese). Scientia Sinica: Physica, Mechanica and Astronomica, 43, 572–578 (2013)</mixed-citation>
      </ref>
      <ref id="ref-021">
        <mixed-citation>[21] Bergman K , Ljungqvist O , Linder J , et al. A COLREGs-Compliant Motion Planner for Autonomous Maneuvering of Marine Vessels in Complex Environments[J]. 2020.</mixed-citation>
      </ref>
    </ref-list>
  </back>
  <floats-group>
    <fig id="fig-001" position="float">
      <graphic xlink:href="figures/fig-001.png"/>
    </fig>
    <fig id="fig-002" position="float">
      <graphic xlink:href="figures/fig-002.png"/>
    </fig>
    <fig id="fig-003" position="float">
      <graphic xlink:href="figures/fig-003.png"/>
    </fig>
    <fig id="fig-004" position="float">
      <graphic xlink:href="figures/fig-004.png"/>
    </fig>
    <fig id="fig-005" position="float">
      <graphic xlink:href="figures/fig-005.png"/>
    </fig>
    <fig id="fig-006" position="float">
      <graphic xlink:href="figures/fig-006.png"/>
    </fig>
    <fig id="fig-007" position="float">
      <graphic xlink:href="figures/fig-007.png"/>
    </fig>
    <fig id="fig-008" position="float">
      <graphic xlink:href="figures/fig-008.png"/>
    </fig>
  </floats-group>
</article>
