<?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">IJAA</journal-id><journal-title-group><journal-title>International Journal of Astronomy and Astrophysics</journal-title></journal-title-group><issn pub-type="epub">2161-4717</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ijaa.2016.64035</article-id><article-id pub-id-type="publisher-id">IJAA-72886</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Evolutionary Algorithms in Astrodynamics
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Marcin</surname><given-names>Misiak</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>UAM, Poznan, Poland</addr-line></aff><author-notes><corresp id="cor1">* E-mail:</corresp></author-notes><pub-date pub-type="epub"><day>09</day><month>11</month><year>2016</year></pub-date><volume>06</volume><issue>04</issue><fpage>435</fpage><lpage>439</lpage><history><date date-type="received"><day>January</day>	<month>25,</month>	<year>2016</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>December</month>	<year>18,</year>	</date><date date-type="accepted"><day>December</day>	<month>21,</month>	<year>2016</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>
 
 
   This paper presents the method of solving the equations of motions by evolutionary algorithms. Starting from random trajectory, the solution is obtained by accepting the mutation if it leads to a better approximations of Newton’s second law. The general method is illustrated by finding trajectory to the Moon. 
 
</p></abstract><kwd-group><kwd>Genetic Algorithms</kwd><kwd> Newton’s Equations of Motion</kwd><kwd> Principle of Least Action</kwd><kwd>  Astrodynamics</kwd><kwd> Celestial Mechanics</kwd><kwd> Orbital Motion</kwd><kwd> Optimal Control</kwd><kwd> Two-Point  Boundary Value Problem</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>In this paper, we examine the application of a simple evolutionary algorithm with mutation only (no recombination) for solving general dynamical problems resulting from Newton’s second law and will use it to solve the special astrodynamical problem, namely finding the trajectory to the Moon.</p><p>In the last decades, there is a growing interest in the algorithms inspired by nature [<xref ref-type="bibr" rid="scirp.72886-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.72886-ref2">2</xref>] . “Surviving of the fittest” applied so successfully by nature in the real world can be also very efficient in computer simulations.</p><p>The usual way of solving problems in astrodynamics is to start from differential equations resulting from Newton’s second law, discretizate it and apply one of the standard numerical procedure like Runge-Kutta scheme. However this approach has some draw- backs. First, if we start the procedure from given positions and velocities, we don’t know the destination, so if we want to, for example, land on the Moon, we have to try many different initial velocities to find the one which actually brings us to the Moon. Second, the errors grow in each numerical steps, so the obtained trajectory can be very different from the real one, especially for the chaotic systems.</p><p>The evolutionary (genetic) algorithm method is free from this weakness. In this approach, we fix the initial and final destination, start from the random initial trajectory and modify it as long as it necessary to approximate physical laws with a desired accuracy.</p><p>One way to apply evolutionary algorithm is to use the principal of least action as the fitness of the solution by choosing the value of the action. In the case of a motion of single body in the potential<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x2.png" xlink:type="simple"/></inline-formula>, the action S is:</p><disp-formula id="scirp.72886-formula211"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-4500541x3.png"  xlink:type="simple"/></disp-formula><p>We could start with a random trajectory, modify it and choose it if it leads to the smaller value of the above integral. Although this procedure may be efficient in finding solution of Hamiltonian systems, its limitation is that it is restricted only to forces which possess potential energy. To circumnavigate this limitation, we will apply evolutionary algorithm directly to the Newton’s second law.</p></sec><sec id="s2"><title>2. Description of the Method</title><p>Let’s start with Newton’s second law:</p><disp-formula id="scirp.72886-formula212"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-4500541x4.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x5.png" xlink:type="simple"/></inline-formula> and instead of the initial conditions<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x6.png" xlink:type="simple"/></inline-formula>, the boundary condition are given<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x7.png" xlink:type="simple"/></inline-formula>.</p><p>As a starting point we choose randomly the trajectory<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x8.png" xlink:type="simple"/></inline-formula>. This trajectory of course doesn’t satisfy Equation (2). We compute for this trajectory the left and right- hand side of (2) and construct the distance d between them:</p><disp-formula id="scirp.72886-formula213"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-4500541x9.png"  xlink:type="simple"/></disp-formula><p>Generally this give us at the beginning a huge number which express the fact that our chosen trajectory is far away from the actual trajectory which has to follow Newton’s second law.</p><p>Next we choose random point on the trajectory, except boundary points which stay fixed, modify it and as a result obtain a new trajectory. By that we mean, we randomly choose time <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x10.png" xlink:type="simple"/></inline-formula> somewhere between initial time <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x11.png" xlink:type="simple"/></inline-formula> and destination time <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x12.png" xlink:type="simple"/></inline-formula> and add a random, small numbers <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x13.png" xlink:type="simple"/></inline-formula> to the variables at that time<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x14.png" xlink:type="simple"/></inline-formula>,</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x15.png" xlink:type="simple"/></inline-formula>,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x16.png" xlink:type="simple"/></inline-formula>. If the computed distance d according to (3) for the new trajectory is smaller than for the old trajectory we accept the change. In this manner after many iteration we can get very close to the real solution.</p><p>This approach, based directly on bringing acceleration and forces to fit each other has the advantage over the minimalization of action (1) not only it allows to apply the procedure to nonconservative forces but also making sure about approaching the real solution because we know that the true solution satisfies the condition <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x17.png" xlink:type="simple"/></inline-formula> whereas we don’t know a priori the value of the action.</p></sec><sec id="s3"><title>3. Trajectory to the Moon</title><p>As an application of the method laid down in section 2 we consider the special astro- dynamical problem, namely finding the trajectory to the Moon [<xref ref-type="bibr" rid="scirp.72886-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.72886-ref4">4</xref>] . In many astro- dynamical cases we face a problem of finding trajectory with given initial and final position. Imagine, for example, a future space colony on the Moon or any planet which should obtain a supply (food, water) from the Earth in a given time to survive. Finding the trajectory to the Moon is interesting as all the forces acting on the spaceship in most parts of its trajectory are comparable. As a result we can achieve interesting chaotic, low-energy trajectories which was demonstrated by Belbruno to rescue Japanese space- craft Hiten [<xref ref-type="bibr" rid="scirp.72886-ref5">5</xref>] .</p><p>We choose a rotating coordinate system with angular velocity equal to Sun-Earth system. The Earth lay at the beginning of the system. The equations of motion are as follow:</p><disp-formula id="scirp.72886-formula214"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/7-4500541x18.png"  xlink:type="simple"/></disp-formula><p>where x, y, z are the position of the spacecraft, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x19.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x19.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x20.png" xlink:type="simple"/></inline-formula>position of the Moon, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x19.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x21.png" xlink:type="simple"/></inline-formula>constant of gravity, d Sun-Earth distance, M, m, m denote respectively the mass of the Sun, Earth and Moon, w angular velocity of the Sun-Earth system, and the two last terms in the first two equations describes centrifugal and Coriolis force.</p><p>Applying the scheme presented in section 2, we wrote simple C++ program. In every step the algorithm chooses one point on the trajectory, change it and accept the mutation if it leads to the smaller value of the distance d (3). In our simulations we constrained the numbers of points between initial and final time to 200, restricted the maximal mutation value in one step to less than 10<sup>−</sup><sup>4</sup> Earth-Moon distance, and as a starting and final position of the spacecraft choose respectively the point at 6500 km from Earth center and 2000 km from Moon center. After <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x22.png" xlink:type="simple"/></inline-formula> iterations from the random trajectories we obtained the solution which differ from the real one by<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x22.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/7-4500541x23.png" xlink:type="simple"/></inline-formula>. Some trajectories obtained in this matter are presented in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><fig-group id="fig1"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Trajectory to the moon in 7, 14, 21 days.</title></caption><fig id ="fig1_1"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-4500541x24.png"/></fig><fig id ="fig1_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-4500541x25.png"/></fig><fig id ="fig1_3"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/7-4500541x26.png"/></fig></fig-group></sec><sec id="s4"><title>4. Summary</title><p>We presented simple evolutionary algorithm with one trajectory at any given time and mutation as a selection mechanism. By changing the trajectory so as to make equal accelerations and forces, we were able to find a true trajectory which satisfies the Newton’s second law. Trying this scheme for longer times could lead us to find interesting trajectories, for example, with small initial velocity (small rocket fuel consumption).</p><p>The general method presented in this article can be used to obtain solution to any physical problem described by mathematical equation. In particular, apart of astrody- namical problems similar to the one presented here, it can be useful in finding the solution of the internal structure of the stars (the values of the observable parameters both at the center and at the surface are given), in statistical mechanics problems like Ising model to obtain phase transition, in fluid dynamics problems where no-slip condition fixes the velocity on the boundaries or heat transfer problems.</p></sec><sec id="s5"><title>Cite this paper</title><p>Misiak, M. (2016) Evolutionary Algorithms in Astrodynamics. International Journal of Astronomy and Astrophysics, 6, 435-439. http://dx.doi.org/10.4236/ijaa.2016.64035</p></sec></body><back><ref-list><title>References</title><ref id="scirp.72886-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Fraser, A.S. (1957) Simulation of Genetic Systems by Automatic Digital Computers. Australian Journal of Biological Sciences 10, 484-491. http://dx.doi.org/10.1071/BI9570484</mixed-citation></ref><ref id="scirp.72886-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Koza (1992) Genetic Programming. MIT.</mixed-citation></ref><ref id="scirp.72886-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Lei, H.L., Xu, B. and Sun, Y.S. (2013) Earth-Moon Low Energy Trajectory Optimization in the Real System. Advances in Space Research, 51, 917-929. http://dx.doi.org/10.1016/j.asr.2012.10.011</mixed-citation></ref><ref id="scirp.72886-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Bate, R.R., Mueller, D.D. and White, J.E. (1971) Fundamentals of Astrodynamics. Dover Publications, New York.</mixed-citation></ref><ref id="scirp.72886-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Belbruno, E. (2004) Capture Dynamics and Chaotic Motions in Celestial Mechanics. Princeton University Press, Princeton.</mixed-citation></ref></ref-list></back></article>