<?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-v10-a05</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group></article-categories><title-group><article-title>Research for Control Parameters Optimization of 6-DOF Flight Simulator Based on Particle Swarm Optimization</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Zhou</surname><given-names>Kai</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Lu</surname><given-names>Yun</given-names></name><xref ref-type="aff" rid="aff-1"/><xref ref-type="aff" rid="aff-2"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Li</surname><given-names>Weijia</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Wang</surname><given-names>Xiao</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib></contrib-group><aff id="aff-1">School of Naval Architecture and Ocean Engineering, Huazhong University of Science and Technology, Wuhan, 430074, Hubei China</aff><aff id="aff-2">Detachment of Warship Training, Dalian Naval Academy, Dalian, 11618, Liaoning China</aff><pub-date publication-format="electronic" date-type="pub" iso-8601-date="2014-01-29"><day>29</day><month>01</month><year>2014</year></pub-date><volume>10</volume><fpage>406</fpage><lpage>412</lpage><permissions><copyright-statement>2014 © 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/" start_date="2021-11-26">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-v10-a05/index.html"/><self-uri content-type="pdf" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v10-a05/jcse-v10-a05.pdf"/><abstract><p>Based on a 6-DOF flight simulator driven by electricity, the experiments show that certain parameters of the AC servo driver have a great impact on the stability of the platform. The study of the optimization for controlling parameters of the AC servo drivers is carried out by the continuous change to the controlling parameters, aiming to improve the performances of the platform in stabilization and frequency response by Particle Swarm Optimization. The result shows that the Particle Swarm optimization algorithm is fitted for the system of the controlling parameter optimization.</p></abstract><kwd-group><kwd>AC servo motor drivers</kwd><kwd>Controlling parameter optimization</kwd><kwd>Particle Swarm Optimization</kwd><kwd>Stewart platform</kwd><kwd>Roulette operator</kwd></kwd-group></article-meta></front><body>
    <sec>
      <title>1. Introduction</title>
      <p>The flight simulator provides realistic flight environment for pilot training by simulating the space 6-DOF motion. Compared with the traditional training, it can save training expenses, and also fully guarantee the safety of pilots. Therefore, the flight simulator is used to train pilots more and more. Electric 6-DOF platform is an important component of the flight simulator.</p>
      <p>The transient overload feel and the dynamic information of attitude angle changes within a certain range are given by the platform. So the stability and frequency response have some strict requirement [1]. The motivation of the platform is provided by the servo motor. The control performance of the AC servo driver which is the kernel control part of the motor system directly affects the performance of the entire platform system. However, there is always a contradiction between the speed of response and stability of the system. So the</p>
      <p>Zhou et al. / Journal of Computational Science &amp; Engineering 10 (2014) 406-412 407</p>
      <p>appropriate controlling parameters are selected to make a compromise between the speed of response and stability. In this paper, the controlling parameter optimization based on Particle Swarm Optimization effectively solves the contradiction between the speed of response and stability of the system.</p>
    </sec>
    <sec>
      <title>2. Structure of the Platform &amp;&amp; the Control</title>
      <p>Theory Analysis</p>
      <p>The research object of this paper is based on the structure of Stewart platform that simulates the space 6-DOF motion. The platform consists of six electric cylinders, the upper platform(motion platform),the lower platform(fixed platform) and cross hinge(connecting the upper and lower platforms with the electric cylinders ).It is shown in figure 1.The upper and lower platforms are connected in parallel with electric servo cylinders by the cross hinges so that the six electric servo cylinders can flex independently [2].Through the coordinate flexing of cylinders, the spatial position and attitude on the six freedom can be achieved. The electric cylinder is driven by the AC servo motor which has a working stroke of 860mm, output force 28KN and achieves the maximum speed of 600mm/s. Each set of the cylinder is driven by a AC servo motor and a corresponding driver. The motor that is the brushless servo motor of Fissler ultract Ⅲ series has a rated power of 6.7kW.And the driver is LENZE 9400H series.</p>
      <p>The motion control of the platform is based on position control. The communication of the input control instruction between host computer and the servo drivers is achieved by the CAN bus. According to the servo driver control instruction and the feedback signal of servo motor encoder, the closed loop control is realized by the internal adjustment of the driver. The optimization research of the control system is carried out based on the sinusoidal signal input. The control effect is evaluated through the feedback state information of the control system which is sent by the CAN bus communication. The corresponding control parameters of the driver gotten by the optimization algorithm can be set through RS232 serial port. The control system schematic is illustrated in figure 2.</p>
      <p>Fig. 1 6-DOF motion platform</p>
      <p>Fig. 2 control system schematic</p>
    </sec>
    <sec>
      <title>3. Analysis for the Optimization Model of</title>
      <p>Control System Parameters</p>
      <sec>
        <title>3.1 The selection of optimization parameters</title>
        <p>In theory considering the approximate linear relationship between the acceleration of the platform and the current of the servo driver, therefore the drive current directly affects the frequency response and stability of the electric cylinder. So in this paper, the drive current of the servo motor is selected as the research object. The response and motion stability of each cylinder are made to be comprehensive optimal by improving the control quality of the drive current.</p>
        <p>Accordingly, the control effect of the whole platform is also overall optimal. A great deal of experiments show that there are four control parameters in each control loop which have significant influence on the performance of the servo motor for the position control. The parameters are speed loop gain,</p>
        <p>Zhou et al. / Journal of Computational Science &amp; Engineering 10 (2014) 406-412 408</p>
        <p>integral time constant of speed loop, current loop gain and integral time constant of current loop. The four main control parameters above are selected as independent variables for optimization. With the typical sinusoidal signal input and constraint conditions of the requirements for dynamic characteristic, the disturbance value of drive current is made to be minimum through the optimization algorithm so that the motion platform can get the best performance.</p>
      </sec>
      <sec>
        <title>3.2 Optimization mathematical model</title>
        <p>(1) The design variables The design variables of the control system are X which is the parameter for position control: [ 1, 2, 3, 4]X x x x x 1x : Speed loop gain. 2x : The integral time constant of speed loop. 3x : Current loop gain. 4x : The integral time constant of current loop. (2) Objective function The drive current of servo motor is selected as the research object through the analysis above. So the objective function of the system parameter optimization is as follows. 1 2 min[f(x)] ( ) ( ) (1) ( ) ( ) (3)A A g x g x g x g x i          </p>
        <p>1( )g x is the reverse performance indicator of the electric cylinder which is decided by the mutation of the reverse current. The smaller  is the more stable the reverse current is. Then the better the performance of the reversing is. 2( )g x is the motion performance indicator which is decided by the peak-to-peak value of the current disturbance in the process of movement. The smaller A Ai  is, the more stable the movement of electric cylinder is.  and  is the weigh coefficients which are set to 0.5 based on the actual design requirements. (3) Constraint conditions According to the requirements of the drive performance, the range of control parameters has been limited by manufacturer. But the range is so large that these parameters don’t have any practical significance. Therefore, base on the reference for the range provided by manufacturer and a great deal of earlier period experiments, the control parameters are limited in a certain smaller range by factitiously removing the useless data.</p>
        <p>The constraint conditions of design variables are as follows. Speed loop gain： 0.04 1 0.1x  The integral time constant of speed loop： 300 2 1000x  Current loop gain: 1 3 50x  The integral time constant of current loop: 2 4 500x  In the engineering, the sinusoidal signal of 0.5Hz is often selected as the typical evaluation frequency of stability. And with this signal input, the requirements based on GB-2021-94 for the closed loop response of 6-DOF flight simulator are as follows.</p>
        <p>Phase lag: 15  Amplitude attenuation: 1.0A dB </p>
      </sec>
      <sec>
        <title>3.3 The selection of optimization method</title>
        <p>The optimal control parameter design of Motor Servo System is a specific engineering project. The optimized mathematical model, the restrain and objective function have been discussed before. Based on amounts of GA experiments and PSO simulation, three or more improvements are needed to solve the single-objective-function with multivariate, multiple peak value and multi-constraint. (1) Avoid prematurity: For GA, because of the variance of individual distribution ,population size etc，there will be local convergence problem. The PSO we used in the paper integrates based on the roulette wheel selection operator, make the population memoryless at initial phase to avoid local optimal solution. The prematurity problem is avoided excellently [3]. (2) Rate of convergence: PSO has perfect</p>
        <p>Zhou et al. / Journal of Computational Science &amp; Engineering 10 (2014) 406-412 409</p>
        <p>memorability on global optimal solution. Each generation of particles through self-learning and social-learnling, utilize the inertance of themselves at the same time, particles move to global optimal solution more quickly. So the rate of convergence of PSO is faster than GA’s. (3) Optimal solution available: Upon the acquisition of solution, GA gets into prematurity easily, and the solution is quasi-optimal, not the best. Where as the PSO can make global optimal solution available.</p>
        <p>For the three aspects, PSO is selected to optimize the parameter of driver and search the optimal solution.</p>
      </sec>
    </sec>
    <sec>
      <title>4. The Realization for Parameters</title>
      <p>Optimization of PSO Algorithm</p>
      <p>The model of parameters optimization has been described above.Next, based on the theory of standard particle Swarm Optimization, several improvements are proposed in this application</p>
      <sec>
        <title>4.1 Standard particle swarm optimization</title>
        <p>The iterative formula of standard PSO is as follows. 1 1 i 2 2 g (t 1) (t) C (P (t) (t)) C r (P (t) (t)) (4) (t 1) (t) (t 1) (5) i i i i i i i V V r X X X X V          </p>
        <p>iP (t) is the individual extremum, and gP (t) is the global extremum.Both 1C and 2C are constants which respectively represent the degree of influence by social cognitive knowledge and the particle individual cognition (also known as the learning rate). 1C and 2C are usually set to the same value which weight equally. 1r and 2r are the random numbers on the interval of (0, 1). As the inertial factor, can dynamically adjust the iterative velocity of the particles over time so that the particles can gradually move to the local search.</p>
        <p>The standard process of particle swarm algorithm is as follows: (1) Initialization. Setting the acceleration constants c1 and c2, the biggest evolution generations M and the size of the population, randomly generating initial particles and the particles' velocity in domain, which constitute the matrix of velocity [4]. (2) The individual evaluation (the fitness function); It is used to evaluate the merits of the particles. (3) For each particle, compare the current fitness value with the current best, if it is better than the latter, use the current fitness value as the current best, otherwise unchanged; For the best fitness value in the population, compare the current best fitness value and the ever best fitness value in the population, so as to get the current extremum of population [5]. (4) Using the formula (4) and (5), respectively update the speed and position of each particle. (5) If the result meets the termination condition, the program terminates, otherwise turn to (2).</p>
        <p>The standard process of particle swarm algorithm is showed in Figure 3.</p>
      </sec>
      <sec>
        <title>4.2 The realization of the optimization process</title>
        <p>The particle swarm optimization algorithm need to solve the problem of the optimal drive parameter matching. Correspondingly, the following key questions should be solved. (1) The construction of solution space The control parameters that are to be optimized in the system have their own ranges. In order to ensure the diversity of particle, a group of numbers within the required interval is constructed randomly [6]. For example, 1 [0.04,0.1]x  so the construction of 1x is described in formula (6). 1 0.04 (0,1) 0.06 (6)x random   Through this method, the initial values are generated randomly which are on the interval of (0, 1).And it also ensures the diversity of particle swarm. (2) Handling of the constraint condition In the process of iteration, since the individual</p>
        <p>Zhou et al. / Journal of Computational Science &amp; Engineering 10 (2014) 406-412 410</p>
        <p>Fig. 3 the standard process of PSO learning and the adjustment of the particle swarm, and its own inertia, sometimes the motion of particle ranges over the given constraint. The position of particle is needed to be updated. The general processing method is that assigning the boundary position to the current of the particle.</p>
        <p>The unsuitable particles are removed by reducing the fitness value through the penalty function. Through this method, the constraints for frequency response are easily handled. (3) The decision of operating parameters The operational parameters of particle swarm optimization algorithm mainly include: the size of particle swarm M, terminated generations T, maximum velocity maxV , inertia weight factor , accelerated factor c1 and c2, etc.Some parameters are decided as follows.</p>
        <p>According to the experience, the size of the particle swarm is usually set to 20-40.In the paper is set to 40.And the terminated generations T is set to 50.Generally, the maximum velocity is set to 10%-20% of the interval. In this paper, maxV is 10%.If the current velocity is bigger than the maximum, the current velocity is updated to the maximum. Inertia weight factor ω is 0.8 which describes the flight direction of particles.</p>
        <p>Considering that the accelerated factor is often set to 2-4, both c1 and c2 are set to 2 which respectively describe the weight of self-learning based on the individual memory and the weight of self-learning and relationship between the particles. (4) The selection of fitness function For the fitness calculation of each particle, considering that the value of objective function must be greater than zero based on the formula (1), and it belongs to the problem of searching the minimum value. Therefore, the fitness function is set as shown in following formula (7).   1(x) (7)1 (x)fit f f  The objective function value of excellent particle is small.Correspondingly; its fitness function value is large which can lead particle motion to the optimal solution. (5) Hybrid particle swarm optimization algorithm based on roulette operator As the iterative process in the early, search process tend to be controlled by a few super-particle whose fitness has the absolute advantage, if the problem of the objective function is multimodal, from a long-term perspective, such particles are not able to boot populations to the global optimum direction, so it is likely to cause the problem of premature convergence [7]. This article uses the objective function roulette selection, make the initial optimal individual selected as global extreme Pg with a smaller probability, after calculating the</p>
      </sec>
    </sec>
    <sec>
      <title>results of objective functions of all particles</title>
      <p>randomly selected by roulette operator as Pg, the probability of particle i selected is: [i] [j] (8) (xi)[i] (9) (x) i j M j P q fq f    </p>
      <p>Zhou et al. / Journal of Computational Science &amp; Engineering 10 (2014) 406-412 411</p>
      <sec>
        <title>4.3 Analysis of optimization results</title>
        <p>As the selected optimization method and the operating parameters, the servo drive parameters are matched based on the particle swarm optimization. The optimization results are as follows. (1) The distribution of the fitness function values of the particle for the initial particle group is showed in Figure 4.</p>
        <p>Fig. 4 distribution of the fitness function values for the initial particle group (2) The distribution of fitness function values of the particle after 20 iterations is showed in Figure 5.</p>
        <p>Fig. 5 The distribution after 20 iterations (3) The distribution of fitness function values of particles after 50 iterations is showed in Figure 6. (4) The distribution of the fitness function value for the optimal solution in the process of 50 iterations is illustrated in figure.7 The experiments show that the distribution of the fitness function value for the initial particles is dispersive and high random that means the diversity of particle swarm which is good for searching the optimal solution in figure 4. As</p>
        <p>Fig. 6 The distribution after 50 iterations</p>
        <p>Fig. 7 The distribution for the optimal solution shown in figure 5 and 6, the fitness function value of particle swarm tends to unity after 20 iterations. But there are still a small portion of the particles in local solution space. The fitness function value converges better and tends to be more stability basically after 50 iterations. Above all, particle swarm optimization algorithm has a good effect on solving the problem of parameter matching.</p>
      </sec>
      <sec>
        <title>4.4 Experiment results</title>
        <p>The final optimization results of the control parameters are shown in table 1 based on the analysis and experiments. Table 1 The optimization results Control parameters X1/ (Nm/rpm) X2/ (ms) X3/ (V/A) X4/ (ms) Initial solution optimal solution 0.07 0.048</p>
      </sec>
    </sec>
    <sec>
      <title>5. Conclusions</title>
      <p>Zhou et al. / Journal of Computational Science &amp; Engineering 10 (2014) 406-412 412</p>
      <p>Through repeated verification and the early experiment data, the experiment results show that hybrid particle swarm optimization algorithm based on roulette operator has better adaptability for the optimization of the drive control parameters, and well solves the contradiction between the stability and the rapidity of platform.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref-001">
        <mixed-citation>[1] W.B. Luo, Research and Implementation of the Three Degrees of Freedom Motion Platform,WuHan: Huazhong university of science and technology library, (2011).</mixed-citation>
      </ref>
      <ref id="ref-002">
        <mixed-citation>[2] W.J. Li, WuHan: Huazhong Univ. of Sci.&amp;Tech, 25 (1997) 38-40.</mixed-citation>
      </ref>
      <ref id="ref-003">
        <mixed-citation>[3] J. Long, Iournal of Civil Aviation Flight University of China, 16 (2005) 21-24.</mixed-citation>
      </ref>
      <ref id="ref-004">
        <mixed-citation>[4] H.I. Shaheen, G.I.Rashed, S.J.Cheng, Engineering Applications of Artiﬁ cial Intelligence, 23 (2010) 203-216.</mixed-citation>
      </ref>
      <ref id="ref-005">
        <mixed-citation>[5] G.Z. Sun, Optimal design and application, BeiJing: China Communications Press, (2000).</mixed-citation>
      </ref>
      <ref id="ref-006">
        <mixed-citation>[6] C.H. Sui, Xi An: Southwest Jiaotong University, (2010).</mixed-citation>
      </ref>
      <ref id="ref-007">
        <mixed-citation>[7] M. Saravanan, S. Mary Raja Slochanal, P. Venkatesh, J. Prince Stephen Abraham, Electric Power Systems Research, 77 (2007) 276-283.</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.jpg"/>
    </fig>
    <fig id="fig-003" position="float">
      <graphic xlink:href="figures/fig-003.jpg"/>
    </fig>
    <fig id="fig-004" position="float">
      <graphic xlink:href="figures/fig-004.jpg"/>
    </fig>
    <fig id="fig-005" position="float">
      <graphic xlink:href="figures/fig-005.jpg"/>
    </fig>
    <fig id="fig-006" position="float">
      <graphic xlink:href="figures/fig-006.jpg"/>
    </fig>
    <fig id="fig-007" position="float">
      <graphic xlink:href="figures/fig-007.jpg"/>
    </fig>
  </floats-group>
</article>
