<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">OALibJ</journal-id><journal-title-group><journal-title>Open Access Library Journal</journal-title></journal-title-group><issn pub-type="epub">2333-9705</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/oalib.1104625</article-id><article-id pub-id-type="publisher-id">OALibJ-84729</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Biomedical&amp;Life Sciences</subject><subject> Business&amp;Economics</subject><subject> Chemistry&amp;Materials Science</subject><subject> Computer Science&amp;Communications</subject><subject> Earth&amp;Environmental Sciences</subject><subject> Engineering</subject><subject> Medicine&amp;Healthcare</subject><subject> Physics&amp;Mathematics</subject><subject> Social Sciences&amp;Humanities</subject></subj-group></article-categories><title-group><article-title>
 
 
  Simulation Research on PID Control of Automotive Stability Based on Genetic Algorithm Optimization
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Rongxu</surname><given-names>Zhang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Bo</surname><given-names>Zhao</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Shanghai University of Engineering Science, Shanghai, China</addr-line></aff><pub-date pub-type="epub"><day>04</day><month>05</month><year>2018</year></pub-date><volume>05</volume><issue>05</issue><fpage>1</fpage><lpage>9</lpage><history><date date-type="received"><day>26,</day>	<month>April</month>	<year>2018</year></date><date date-type="rev-recd"><day>20,</day>	<month>May</month>	<year>2018</year>	</date><date date-type="accepted"><day>23,</day>	<month>May</month>	<year>2018</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  According to the ideal vehicle model with two degrees of freedom of the transverse effect of yaw rate and sideslip angle of the vehicle stability, the yaw rate and side slip angle as the control parameter of vehicle stability control system, through the PID control algorithm and the Genetic Optimization PID control algorithm is studied on the simulation diagram, and building in matlab/simulink, the author makes a comparison an
  d simulation analysis results of the two algorithms. Through the combination of simulation results, Genetic Optimization PID control algorithm has better control effect than PID control algorithm. The amplitude of the yaw rate and sideslip angle and the overshoot is significantly reduced, significantly improving the stability of automobile when steering.
 
</p></abstract><kwd-group><kwd>Vehicle Stability Control</kwd><kwd> Combined Simulation</kwd><kwd> Genetic Optimization PID Algorithm</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>The stability of a car during a sharp turn has always been an important issue when it comes to high speed and safety. When the vehicle turning or changing lanes is at high speeds, the car will produce yaw motion in centrifugal force greatly; when the ground adhesion coefficient is low, the car will take place immediately and sideslip; once produced, road vehicles will face lateral effect weakened rapidly; the driver through the steering wheel control effect on the car will become very obvious; the car will quickly lose stability [<xref ref-type="bibr" rid="scirp.84729-ref1">1</xref>] . Based on the research status of automotive stability at home and abroad, this paper selects two control parameters for the stability of the vehicle, and optimizes the PID control through genetic algorithms.</p></sec><sec id="s2"><title>2. Vehicle Two Degree of Freedom Model</title><p>Forward at a constant speed for the car’s lateral movement and horizontal pendulum movement can make use of two degrees of freedom linear model of a car, and it only yawing angular velocity and mass center side-slip Angle two degrees of freedom, this article selects two degrees of freedom linear model car as the research object, according to the Newtonian mechanics for two degrees of freedom vehicle movement differential equation is as follows.</p><p>{ ( k 1 + k 2 ) β + ( l f k 1 − l r k 2 ) r v x − k 1 δ f = m ( v ˙ y + v x r ) ( l f k 1 − l r k 2 ) β + ( l f 2 k 1 − l r 2 k 2 ) r v x − l f k 1 = I z r ˙</p><p>In the formula, k<sub>1</sub> and k<sub>2</sub> are the front and rear wheel’s cornering stiffness respectively, and the unit is N/rad; IZ is the moment of inertia of the car around the z-axis, and the unit is kg・m<sup>2</sup>; β is the centroid side-bias angle and the unit is rad; The yaw rate is rad/s; v<sub>x</sub>, v<sub>y</sub> are the longitudinal and lateral speeds, respectively, in units of m/s; l<sub>f</sub>, l<sub>r</sub> are the distances from the center of mass of the vehicle to the front and rear axles, in mm; δ<sub>f</sub> For the front wheel corner, the unit is; m is the whole vehicle mass, and the unit is kg.</p></sec><sec id="s3"><title>3. Genetic Optimization PID Control Algorithm Research</title><sec id="s3_1"><title>3.1. PID Control Algorithm and Parameter Selection</title><p>PID control algorithm [<xref ref-type="bibr" rid="scirp.84729-ref2">2</xref>] is mainly composed of PID controller and controlled object. The schematic diagram is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>In <xref ref-type="fig" rid="fig1">Figure 1</xref>, u(t) is the control output, r(t) is the given value, y(t) is the output of the controlled object, and e(t) is the deviation between the given value and the actual output value.</p></sec><sec id="s3_2"><title>3.2. PID Parameter Optimization Strategy Based on Genetic Algorithm</title><p>The basic operation of genetic algorithm [<xref ref-type="bibr" rid="scirp.84729-ref3">3</xref>] can be divided into three steps: selection, crossover, and mutation. The selection operation is also referred to as a copy operation, and it is determined based on the degree of merit of the individual’s fitness function value to determine whether it is inherited or eliminated. The crossover operation is to exchange the partial code values of the selected two individuals. The variability operation is to change the digits in a position on the digital string. The genetic algorithm operation process is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>Firstly, the three parameters of PID K<sub>p</sub>, K<sub>i</sub>, and K<sub>d</sub> are combined together as each individual in the genetic algorithm group, and then the fitness value of each group of parameters is calculated according to the fitness function; secondly, the groups are selected, crossed, and mutated. The operation continues to evolve until it finds the optimal target individual in the population, thereby obtaining the optimal parameters of the PID controller. The controller based on genetic algorithm optimization is mainly composed of three parts: PID controller: it directly controls the controlled object in closed loop, and performs online dynamic optimization of three parameters K<sub>p</sub>, K<sub>i</sub>, K<sub>d</sub>; genetic algorithm: it is based on the system Dynamic operating state, adjust the three parameters of the PID controller to achieve the optimization of a certain performance index; evaluation link: According to the initial input data, the data adjusted by the PID controller and the output data are compared and analyzed to see if it reaches a certain The performance index requirements are then fed back to the genetic algorithm for further optimization. Its control system block diagram is shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p></sec><sec id="s3_3"><title>3.3. PID Controller Genetic Optimization</title><p>Genetic optimization has the following steps for PID [<xref ref-type="bibr" rid="scirp.84729-ref4">4</xref>] controller parameter optimization:</p><p>1) Parameter coding</p><p>Binary parameter encoding is generally used. First of all, each parameter is generated by sub-string binary coding, and then in accordance with a certain sequence of each sub-string into a large binary string, that is, our individual. Set the range of each parameter, and then determine the length of these three substrings based on the accuracy. The spatial binary parameters and the solution set space integer determine a mapping relationship.</p><p>2) Generation of the initial population</p><p>First, based on the specific problem, determine the number of populations as N. The smaller the value of N, the faster the genetic algorithm will operate, but it will reduce the diversity of individuals, which will cause the algorithm to appear early convergence. On the contrary, the greater the value of N, the greater the diversity of the population, and the corresponding genetic algorithm will reduce the speed of calculation, and the value of N is generally taken as <inline-formula><inline-graphic xlink:href="/html.scirp.org/file/84729x6.png" xlink:type="simple"/></inline-formula> [<xref ref-type="bibr" rid="scirp.84729-ref5">5</xref>] . Secondly, according to the population N, we randomly generate the first generation population.</p><p>3) Fitness function</p><p>The so-called PID parameter optimization, in fact, is to use an optimization algorithm to optimize the three parameters of the PID K<sub>p</sub>, K<sub>i</sub>, K<sub>d</sub>, the essence of which is based on a certain target function parameter optimization problem, and the objective function is the fitness function.</p><p>4) Setting control parameters</p><p>Setting the control parameters determines the number of iterations G, the mutation probability Pm, and the crossover probability P<sub>c</sub>.</p><p>The number of iterations G. Iterations is actually the parameter of the genetic algorithm at the end of the run. It means that the genetic algorithm runs after reaching the specified number of iterations, and the output optimal solution is the best individual of the current population.</p><p>Variation probability Pm. Considering the influence of mutation operation in genetic algorithm, if the value of Pm is relatively large, a relatively large number of new individuals will be generated, but it is also possible to destroy more good models; if the value of Pm is small, the mutation operation will produce new ones. The individual’s ability will weaken. Crossover probability P<sub>c</sub>. Crossover is the main method of generating new individuals by genetic algorithms, so the crossover probability generally takes a larger value. If the value of P<sub>c</sub> is large, it will destroy the fine patterns in the population; if the value is small, the speed of producing new individuals will be slower. Usually the value of P<sub>c</sub> is <inline-formula><inline-graphic xlink:href="/html.scirp.org/file/84729x7.png" xlink:type="simple"/></inline-formula> [<xref ref-type="bibr" rid="scirp.84729-ref6">6</xref>] .</p><p>5) Select operation</p><p>The selection operation is based on the evaluation of the individual’s fitness. Individuals with higher fitness are more likely to inherit to the next generation, and those with less fitness are less likely to inherit. In this paper, we use the more common selection operator-proportional selection operator in genetic algorithm.</p><p>6) Crossover operation</p><p>A crossover operator refers to the exchange of some genes between two mutually matched chromosomes in a certain way, thus creating two new individuals. Crossover operation is an important feature of genetic algorithm that is different from other evolutionary algorithms. It plays a key role in genetic algorithm and is the main way to generate new individuals.</p><p>7) Mutation operation</p><p>From the aspect of the ability of genetic algorithm to generate new individuals, cross-operation is the main method to generate new individuals, which determines the global search ability of genetic algorithm; while mutation operation is an auxiliary method to generate new individuals, but it is also not an option. Missing operation steps because it determines the local search ability of the genetic algorithm. The block diagram of the genetic optimization PID is shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p></sec></sec><sec id="s4"><title>4. Simulation Research and Analysis</title><p>In this study, a virtual vehicle model was established in ADAMS/Car, and a joint simulation of MATLAB and ADAMS was performed. Simulate the analysis of a car under extreme conditions to verify the effectiveness of the controller, and compare the PID algorithm with the control effect of genetic optimization PID algorithm. The main parameters of the vehicle model are shown in <xref ref-type="table" rid="table1">Table 1</xref>.</p><p>The simulation conditions are as follows: vehicle speed 120 km/h, steering wheel angle 90˚, step time 1 s, and road surface adhesion coefficient 0.4. Simulation results are shown in <xref ref-type="fig" rid="fig5">Figure 5</xref>.</p><p>It can be seen from <xref ref-type="fig" rid="fig5">Figure 5</xref>(a) and <xref ref-type="fig" rid="fig5">Figure 5</xref>(b) that the steady-state values of the PID control algorithm and the genetic optimization PID control algorithm</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> The main parameters of the vehicle model</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >parameter name</th><th align="center" valign="middle" >Value</th><th align="center" valign="middle" >parameter name</th><th align="center" valign="middle" >Value</th></tr></thead><tr><td align="center" valign="middle" >Wheelbase L/mm</td><td align="center" valign="middle" >2690</td><td align="center" valign="middle" >Second gear ratio</td><td align="center" valign="middle" >2.125</td></tr><tr><td align="center" valign="middle" >Track distance B/mm</td><td align="center" valign="middle" >1500</td><td align="center" valign="middle" >Third gear ratio</td><td align="center" valign="middle" >1.789</td></tr><tr><td align="center" valign="middle" >Centroid distance from the rear axis B/mm</td><td align="center" valign="middle" >1450</td><td align="center" valign="middle" >Four gear transmission ratio</td><td align="center" valign="middle" >1.55</td></tr><tr><td align="center" valign="middle" >Centroid height h/mm</td><td align="center" valign="middle" >700</td><td align="center" valign="middle" >Five speed transmission ratio</td><td align="center" valign="middle" >0.9</td></tr><tr><td align="center" valign="middle" >Front wheel camber angle α/(˚)</td><td align="center" valign="middle" >−0.5</td><td align="center" valign="middle" >Reverse transmission ratio</td><td align="center" valign="middle" >−3.0</td></tr><tr><td align="center" valign="middle" >Anterior beam angle φ/(˚)</td><td align="center" valign="middle" >0.1</td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr></tbody></table></table-wrap><p>[<xref ref-type="bibr" rid="scirp.84729-ref7">7</xref>] are basically the same, but the yaw rate and the centroid slip angle of the PID control algorithm are genetically optimized. The amount of adjustment should be less than the use of PID control algorithm and overshoot when there is no control. It can also be seen from <xref ref-type="fig" rid="fig5">Figure 5</xref>(b) and <xref ref-type="fig" rid="fig5">Figure 5</xref>(c) that the stability time of the yaw rate and the centroid slip angle based on the genetic optimization PID control algorithm is obviously less than the other two cases. In terms of lateral acceleration, <xref ref-type="fig" rid="fig5">Figure 5</xref>(c) shows that the genetic optimization PID control algorithm first enters the steady state range [<xref ref-type="bibr" rid="scirp.84729-ref8">8</xref>] , and the overshoot and the stability value are smaller.</p><p>It can be seen from the comparison that the genetic optimization PID control</p><p>algorithm can effectively improve the transient dynamic response of the vehicle while maintaining the steady state response [<xref ref-type="bibr" rid="scirp.84729-ref9">9</xref>] . Because the algorithm uses yaw rate and the slip angle of the mass center as the state variables to control, and these two variables are the two main parameters describing the dynamic performance of the car, the simulation results obtained will be more comprehensive and accurate. And it is an ideal control algorithm.</p></sec><sec id="s5"><title>5. Conclusion</title><p>This study discusses the causes of automotive side-slip, and briefly outlines the linear two-degree-of-freedom vehicle dynamics model. In order to overcome the shortcomings of vehicle steering instability, the designed controller is compared with no-control and PID controller. The simulation results show that the genetic algorithm to optimize the PID control is significantly better than the first two and that the optimized parameters are effective. The optimized yaw rate and lateral slip angle of the mass center are smaller, the tracking effect is good, and the lateral acceleration enters the steady-state range quickly. At the same time, the stability of the car is obviously improved.</p></sec><sec id="s6"><title>Cite this paper</title><p>Zhang, R.X. and Zhao, B. (2018) Simulation Research on PID Control of Automotive Stability Based on Genetic Algorithm Optimization. Open Access Library Journal, 5: e4625. https://doi.org/10.4236/oalib.1104625</p></sec></body><back><ref-list><title>References</title><ref id="scirp.84729-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Automotive Encyclopedia Editorial Committee. (1992) Car Encyclopedia. Volume 1, Mechanical Industry Press, Beijing, 70-80.</mixed-citation></ref><ref id="scirp.84729-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Tao, Y.H. (1998) New Type PID Control and Its Application. Mechanical Industry Press, Beijing, 165-191.</mixed-citation></ref><ref id="scirp.84729-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Ding, Y.L. (2008) Research on Parameter Optimization of PID Controller Based on Genetic Algorithm. North China Electric Power University, Hebei.</mixed-citation></ref><ref id="scirp.84729-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Niu, J.J., Wang, Y.J. and Tang, J. (2010) Research on Parameter Optimization of PID Controller Based on Genetic Algorithm. Computer Simulation, 27, 180-182.</mixed-citation></ref><ref id="scirp.84729-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Feng, J.Z. (2005) Study on Electronic Throttle and Genetic PID Algorithm of Light Vehicle TCS. Master Thesis, Jilin University, Changchun.</mixed-citation></ref><ref id="scirp.84729-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Zhou, M. (1999) Principles and Applications of Genetic Algorithms. National Defense Industry Press, Beijing.</mixed-citation></ref><ref id="scirp.84729-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Zhou, H.N. and Tao, J.M. (2008) The Influence of Lateral Slip Angle and Yaw Rate on Vehicle Stability. Journal of Hubei Automotive Industry Institute, 22, 6-10.</mixed-citation></ref><ref id="scirp.84729-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Liu, Y. (2003) Study on the Control Algorithm of Vehicle Stability under Driving Con-ditions. Jilin University, Changchun.</mixed-citation></ref><ref id="scirp.84729-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Li, Z.F. (2000) Dynamic Simulation of Multi-Body System of Vehicle. Tongji Uni-versity, Shanghai.</mixed-citation></ref></ref-list></back></article>