Quasi-optimal Quaternion Genetic Algorithm for Reorientation of the Spacecraft Orbit
Ilia A. Pankratov
Abstract — The problem of optimal reorientation of the spacecraft orbit is considered in quaternion formulation. Control (acceleration from jet thrust vector orthogonal to the plane of the orbit) is limited in magnitude. It is necessary to minimize the energy costs for the process of reorientation of the spacecraft orbit. The actual special case of the problem, when the spacecraft's orbit is circular and control is constant on adjacent parts of active spacecraft motion was considered. We have to determine the lengths of the sections of the spacecraft motion and the magnitude of control on each section. Original genetic algorithm for finding the trajectories of spacecraft optimal flights is built. Examples of numerical solution of the problem for the case when the difference between the initial and final orientations of the spacecraft's orbit is equal to a few degrees in angular measure are given. Specific features and regularities of the process of optimal reorientation of the spacecraft orbit are established.
Keywords — gene, optimal control, quaternion, spacecraft.
I. INTRODUCTION
In this paper we consider the problem of optimal reorientation of a circular spacecraft orbit regarded as a unchangeable figure in the course of motion control. It is known that the orbits of the satellite groups GLONASS and GPS are close to circular. The motion of a spacecraft, which is considered as a material point of a variable mass, is studied in the orbital coordinate system with an origin at the spacecraft center of mass. It is required to determine the optimal control u (vector of jet acceleration) which transfers spacecraft from its initial orbit to desired one. Also we have to minimize the energy consumption for this reorientation.
It is well known that the problem of spacecraft interorbital flights is greatly simplified if the start and final orbits lie in the same plane. It becomes possible to find the optimal transition trajectories analytically (accurately or approximately). This has led to the significant number of publications in this area. Note also that due to its complexity, the problem of performance was rarely solved (we can note papers [1]—[4]). Basically the energy cost or the characteristic velocity was minimized (refer to the papers of I.S. Grigoriev, K.G. Grigoriev [5]-[8], S.N. Kirpichnikov and coauthors [9], [10]).
Manuscript received May 7, 2019. This work was supported by the Russian Foundation for Basic Research (grant 19-01-00205).
I. A. Pankratov is with the Saratov State University and Institute of Precision Mechanics and Control Problems of the Russian Academy of Sciences, Saratov, Russian Federation (phone: 8-8452-518480; e-mail: PankratovIA@info.sgu.ru).
In these papers optimal control problems were solved on the basis of the maximum principle. Boundary value problems of the maximum principle were solved numerically by shooting method. In the present article we propose a genetic algorithm to solve the problem of reorientation of the spacecraft orbit.
II. Statement of the Problem
It is required to transfer spacecraft whose motion on the circular orbit is described by equations [11]
-dX . 2=X ° •
ur . c . cr
r = const,
c = const,
d 9 dt
c
from specified initial state t = 0, 9(0) = 9o, r
X (0) = Xu = A
cos—0 + i3 sin— 2 3 2 y
(1)
into the final state t = t'= ?, 9(0 = 9*,
vect X (t*) o A* o
. \
9 . . 9 cos--h i3 sin—
2 3 2 v z, Z y
(2)
0
with the bounded (in magnitude) piecewise constant control ( |u(t)| < umax)
if 0 < t < A1,
Aj < t < Aj + A2,
u (t ) =
u
u
2'
if
if ZA *< tA k= ^
k=1 k=1
Also we have to minimize the functional
«• M
J = J0 u2 = S ulA k •
(3)
k=1
Here X is the quaternion of orientation of the orbital system of coordinates, u is the projection of control u on the axis orthogonal to the orbital plane, r is the radius of the spacecraft orbit, c is the modulo of the spacecraft velocity
moment, ik, k = 1,3 are the unit vectors of a hypercomplex
space (Hamilton imaginary units), 9 is the true anomaly, X is the conjugate quaternion, " o " is the symbol of quaternion multiplication, A is the quaternion of orientation of the spacecraft orbit.
Note that the quantity of active motion parts M is assumed to be given, but the final time t* is not fixed.
Functional (3) characterizes the energy consumption for a spacecraft transfer from the initial to final state. We have to determine the value of control uk on each part of the
spacecraft active motion and durations A k of those parts.
It is known that similar problems were considered earlier by S.A Ishkov and V.A Romanenko [12]; O.M. Kamel, B.E. Mabsout and A.S. Soliman [13], [14]; A. Miele and T. Wang [15]; S.Yu. Ryzhov and I.S. Grigoriev [16]. Unfortunately, most authors were deal with equations in angular elements (or Cartesian coordinates). Also they were often studied only transfers between coplanar or closed to each other orbits.
III. Numerical Algorithm
To obtain numerical solution, the equations and relations of the boundary optimization problem were written in the dimensionless form. The dimensionless variables and control are connected with dimension analogues by the relations: r = Rrdl, t = Ttdl, u = u udl. Here R is a typical
' ' max
distance (radius of the initial orbit of the controlled spacecraft), V is a typical velocity, C is a typical sector velocity, and T is a typical time, determined as V = VfMattr / R , C = RV and T = R / V, respectively. Here f is the gravitational constant, M is
the mass of attracting body (Earth). Note that in the transition to dimensionless variables in the equations the typical dimensionless parameter Nb = umaxR3 / C2 arises.
Let us present the equations and relations of the optimization boundary value problem in the dimensionless variables (superscripts "dl" are omitted). The equations of the motion of the spacecraft center of mass take the form
„ dX . ,Tb .
= X ° a , a = Nuij +13,
dt
r = 1,
d 9 dt
= 1.
learning were considered, for example, in [21], [22]. Let us describe the main stages of the proposed genetic algorithm, following the book [23].
First of all, one needs to randomly generate a population of N max candidate solutions (individuals or phenotypes).
Each of them is a set of M pairs of real numbers. In this paper, instead of real numbers Ak and uk , we store in the
memory pair of integer numbers (a^, U™') (gene). The
relationship between the desired real numbers and the gene is given by the formula
L int
(A * , Uk ) =
A -A"
max_—
2L -1
i 2-uk
-1 +---
2L -1
mt
u,r
are from interval
The integer numbers Ak [0;2L -1].
At the second step of the algorithm for each individual one should find the quaternion of orbital coordinate system orientation at t = t * by the formula [24]:
Mt)=M t )<
raA,,
cos-
+--- Sin
t-=ZA Jj Nbukh + /3,
j=1
ra =
= ^ 1 + ( Nbuk )2 = const
with initial conditions (1) (control corresponds to chosen gene).
Fitness function is given by the formula
err(t) =
vect
A,(t) o A* o
9 . . 9 cos--+ l3 Sin—
V 2 3 2 y
(4)
The dimensionless optimal control is subject to condition -1 < u < 1.
Earlier in papers [17], [18], the posed problem was solved with the help of the L.S. Pontryagin maximum principle [19]. As a result of the maximum principle application, a boundary value problem with a movable right end was obtained. It was solved numerically using the shooting method [20]. Unfortunately, there are no formulas for finding unknown initial values of conjugate variables in this problem. The initial approximations for the values of conjugate variables do not converge well to those values that deliver zeros to the residual functions. Iterative methods constantly fall into local minima of residual functions. In this paper genetic algorithm for solving this problem is constructed. Using this algorithm, one does not need to search for the initial values of the conjugate variables. Such methods based on artificial intelligence and machine
The fitness function (4) describes accuracy of fulfillment of conditions (2) on the right end of the spacecraft trajectory.
We compute the value of the fitness function at the point
*
t = t .
It is well known that natural selection is the process whereby organisms better adapted to their environment tend to survive and produce more offspring. In our case, the smaller value of the fitness function corresponds to the more adapted individual, i.e. the candidate solution used as the argument of the fitness function. If at this step the value of the fitness function for some individual is less than the given small number £ then the algorithm ends, and the control corresponding to this individual is the solution of the problem. If the maximum number of iterations N'ter is
* max
exceeded, the control corresponding to the individual with the minimum value of the fitness function is a solution to the problem.
At the third step of the algorithm we should discard half of the individuals with the highest (worst) values of the fitness function (the number of individuals should be even). Then the crossing of the individual with the lowest value of the objective function with all the others, including itself, is performed. The method of intermediate recombination was chosen as the crossover operator [23]. Children are created
according to the following rule:
Child = Parentl + a • (Parent2 - Parentl).
Here a is a floating-point pseudo-random number in the range of -0.25 up to 1.25.
A separate multiplier a is selected for each gene of the child. Both numbers in the resulting child genes are rounded to the nearest integers lying on the interval ^ 0;2L — 1J . At
the end of this step we will create a new population of N individuals.
max
At the last step of the algorithm we calculate the average value of the fitness function for the population obtained in the third step. If it is greater than the average value of the fitness function, calculated at the second step, then individuals in the population mutate. To do this, we write genes of all individuals in binary form (for both numbers in each gene, exactly L bits are allocated) and we invert of a randomly selected bit of in these numbers with probability pmut e (0;l]. Then we return to the second step
of the algorithm.
Note that the described algorithm should be used repeatedly for different initial populations. In this case, several solutions will be obtained, from which it is necessary to choose the one that corresponds to the reorientation of the spacecraft orbit with less energy consumption.
IV. An Example of Numerical Solution
The components of the quaternion X and A can be expressed through angular elements of an orbit (the longitude of the ascending node Qu , the orbit inclination
I, the pericenter angular distance ) and the true
anomaly:
Ar o ..Q^r i . . 1
A
cos
+ l3 Sin-2 3 2
cos--+ i Sin —
-y
cos
X = A-
co
+ l3 sin
2 J
9 . . cp cos—+13 sin—
V 2 3 2 y
final spacecraft position (it corresponds to the orientation of
the orbit of GLONASS satellites):
Q* = 215.25°, / *= 64.8°, e^ = 0.0°;
A0 = -0.255650, A* = -0.162241,
A2 = 0.510674,
A3 = 0.804-694.
Scaling factors are equal to R = 26000000 m, V = 2751.405874 m/sec,
T = 9449.714506 sec.
The scaling factors correspond to spacecraft whose initial and final coordinates and velocity projections were taken from [25].
The parameters of the genetic algorithm are equal to L = 40, N = 10000, p t = 0.9.
5 max 5 mut
In table 1 the results of the numerical solution of the problem for different numbers of the sections of the spacecraft active motion are presented.
Table 1. Results of the genetic algorithm
M J M J
2 0.373953 7 0.496462
3 0.374595 8 0.513247
4 0.623807 9 0.696981
5 0.336295 10 1.257639
6 0.386022
It was found that the functional J reaches its minimal value when there are five parts of spacecraft active motion.
Figures 1-4 present the results of numerical solution of the problem of reorientation of the spacecraft orbit.
X
71
0.5 0
■0.5 -1
................./ V,
Xr
) /
5................ A '1
The quantities characterizing the forms and dimensions of spacecraft orbits, initial and final orientations of spacecraft orbit are equal to (Q 0 =Q u (0), 10 = I (0),
=ffl„ (0); Q) =QM (t) I' = I (t ^ (t *)):
umax = 0.101907 m/sec2, Nb = 0.35; initial spacecraft position (= 3.940323 rad): Q0 = 212.0°, 10 = 63.0°, = 0.0°; A0 =—0.235019, A0 =—0.144020, A 0= 0.502258, A0 = 0.819610; X0 = —0.663730, X0 = 0.518734, X2 = —0.062608, X0 = —0.535217;
012345678 9t
Fig. 1. Quaternion of orientation of the orbital coordinate system
o
A,,
0.5 0
-0.5 -1
........A -7.............
J
A 2
An
'v0
012345678
Fig. 2. Quaternion of orientation of the spacecraft orbit
err o.i
1 2 3 4 5 6 7 8 9/
Fig. 3. Difference between current and desired spacecraft orbits
Ui
0.5 0
-0.5 -1
012345678 9 t
Fig. 4. Optimal control
In this case the time of flight of a controlled spacecraft is equal to 9.007084 dimensionless units. It corresponds to approximately 85114.37 sec (or 23.643 hours). We can see that the ranges of variation of the components of the quaternion of orientation of the orbit are smaller than the ranges for the components of the quaternion of orientation of the orbital coordinate system.
Note that duration of the first part of spacecraft active motion is smaller than other parts. But we should keep this part because solution with four parts of spacecraft active motion corresponds to bigger value of minimized functional.
V. Conclusion In this paper we discussed the problem of spacecraft orbit
reorientation. The proposed genetic algorithm can help us quickly find quasi-optimal solution of the problem. To obtain more optimal solution one can assume that the number of the parts of spacecraft active motion parts is not given. Next time we will try to modify the proposed algorithm to find this quantity.
References
[1] S. N. Kirpichnikov, A. N. Bobkova, Yu. V. Os'kina, "Minimal'nye po vremeni impul'snye perelety mezhdu krugovymi komplanarnymi orbitami (Minimum-time impulse transfers between coplanar circular orbits)", Kosmicheskie issledovaniia (Cosmic Research), vol. 29, no 3, pp. 367-374, 1991 (in Russian).
[2] K. G. Grigoriev, I. S. Grigoriev, Yu. D. Petrikova, "The fastest maneuvers of a spacecraft with a jet engine of a large limited thrust in a gravitational field in a vacuum", Cosmic Research, vol. 38, no. 2, pp. 160-181, 2000.
[3] B. M. Kiforenko, Z. V. Pasechnik, S. B. Kyrychenko, I. Yu. Vasiliev, "Minimum time transfers of a low-thrust rocket in strong gravity fields", ActaAstronautica, vol. 52, no. 8, pp. 601-611, 2003.
[4] S. A. Fazelzadeh, G. A. Varzandian, "Minimum-time earth-moon and moon-earth orbital maneuevers using time-domain finite element method", Acta Astronautica, vol. 66, no. 3-4, pp. 528-538, 2010.
[5] K. G. Grigoriev, A. V. Fedyna, "Optimalnye perelety kosmicheskogo apparata s reaktivnym dvigatelem bolshoi ogranichennoi tiagi mezhdu komplanarnymi krugovymi orbitami (Optimal flights of a spacecraft with jet engine large limited thrust between coplanar circular orbits)", Kosmicheskie issledovaniia (Cosmic Research), vol. 33, no 4, pp. 403-416, 1995 (in Russian).
[6] S. Y. Ryzhov, I. S. Grigoriev, "On solving the problems of optimization of trajectories of many-revolution orbit transfers of spacecraft", Cosmic Research, vol. 44, no. 3, pp. 258-267, 2006.
[7] I. S. Grigoriev, K. G. Grigoriev, "The use of solutions to problems of spacecraft trajectory optimization in impulse formulation when solving the problems of optimal control of trajectories of a spacecraft with limited thrust engine: I", Cosmic Research, vol. 45, no. 4, pp. 339-347, 2007.
[8] I. S. Grigoriev, K. G. Grigoriev, "The use of solutions to problems of spacecraft trajectory optimization in impulse formulation when solving the problems of optimal control of trajectories of a spacecraft with limited thrust engine: II", Cosmic Research, vol. 45, no. 6, pp. 523-534, 2007.
[9] S. N. Kirpichnikov, A. N. Bobkova, "Optimalnye impulsnye mezhorbitalnye perelety s aerodinamicheskimi manevrami (Optimal impulse interorbital flights with aerodynamic maneuvers)", Kosmicheskie issledovaniia (Cosmic Research), vol. 30, no 6, pp. 800-809, 1992 (in Russian).
[10] S. N. Kirpichnikov, L. A. Kuleshova, Yu. L. Kostina, "A qualitative analysis of impulsive minimum-fuel flight paths between coplanar circular orbits with a given launch time", Cosmic Research, vol. 34, no. 2, pp. 156-164, 1996.
[11] Yu. N. Chelnokov, "The use of quaternions in the optimal control problems of motion of the center of mass of a spacecraft in a newtonian gravitational field: I", Cosmic Research, vol. 39, no. 5, pp. 470-484, 2001.
[12] S. A. Ishkov, V. A. Romanenko, "Forming and correction of a high-elliptical orbit of an Earth satellite with low-thrust engine", Cosmic Research, vol. 35, no. 3, pp. 268-277, 1997.
[13] O. M. Kamel, A. S. Soliman, "On the optimization of the generalized coplanar Hohmann impulsive transfer adopting energy change concept", Acta Astronautica, vol. 56, no. 4, pp. 431-438, 2005.
[14] B. E. Mabsout, O. M. Kamel, A. S. Soliman, "The optimization of the orbital Hohmann transfer", Acta Astronautica, vol. 65, no. 7-8, pp. 1094-1097, 2009.
[15] A. Miele, T. Wang, "Optimal transfers from an Earth orbit to a Mars orbit", Acta Astronautica, vol. 45, no. 3, pp. 119-133, 1999.
[16] S. Yu. Ryzhov, I. S. Grigoriev, "On solving the problems of optimization of trajectories of many-revolution orbit transfers of spacecraft", Cosmic Research, vol. 44, no. 3, pp. 258-267, 2006.
[17] Yu. N. Chelnokov, I. A. Pankratov, Ya. G. Sapunkov, "Optimal reorientation of spacecraft orbit", Archives of Control Sciences, vol. 24, no. 2, pp. 119-128, 2014.
[18] E. A. Kozlov, Yu. N. Chelnokov, I. A. Pankratov, "Investigation of the problem of optimal correction of angular elements of the
spacecraft orbit using quaternion differential equation of orbit orientation", Izv. Saratov. Univ. (N. S.), Ser. Math. Mech. Inform., vol. 16, no. 3, pp. 336-344, 2016 (in Russian).
[19] L. S. Pontryagin, V. G. Boltianskii, R. V. Gamkrelidze, Mishchenko E. F. Matematicheskaia teoriia optimal'nykh protsessov (The mathematical theory of optimal processes). Moscow: Nauka, 1983, 393 p. (in Russian).
[20] W. H. Press, S. A. Teukolsky, W. T. Vetterling, B. P. Flannery, Numerical Recipes 3rd Edition: The Art of Scientific Computing: Cambridge University Press, 2007, 1235 p.
[21] V. Coverstone-Carrol, J. W. Hartmann, W. J. Mason, "Optimal multi-objective low-thrust spacecraft trajectories", Computer methods in applied mechanics and engineering, vol. 186, no. 2-4, pp. 387-402, 2000.
[22] B. Dachwald, "Optimization of very-low-thrust trajectories using evolutionary neurocontrol", Acta Astronautica, vol. 57, no. 2-8, pp. 175-185, 2005.
[23] A. E. Eiben, J. E. Smith, "Introduction to Evolutionary Computing", Berlin: Springer-Verlag, 2015, 287 p.
[24] I. A. Pankratov, Yu. N. Chelnokov, "Analytical Solution of Differential Equations of Circular Spacecraft Orbit Orientation", Izv. Saratov. Univ. (N. S.), Ser. Math. Mech. Inform., vol. 11, no. 1, pp. 84-89, 2011 (in Russian).
[25] T. V. Bordovitsyna, "Sovremennye chislennye metody v zadachakh nebesnoi mekhaniki (Modern numerical methods in problems of celestial mechanics)", Moscow: Nauka, 1984, 136 p (in Russian).
Ilia Alekseevich Pankratov,
Associate Professor of the Saratov State University,
Researcher of the Institute of Precision Mechanics and Control Problems of
the Russian Academy of Sciences,
e-mail: PankratovIA@info.sgu.ru,
e-library.ru: authorid=608692.