1. Introduction
The initial value problem of special form
where
and
is considered here.
We approximate the solution of (
1) at a set of discrete points
with an explicit Runge-Kutta-Nyström (RKN) pair of orders
. This method has the form
with
while the number of the stages of the method is
s. The solution is propagated by the higher order approximations
. In consequence,
and
correspond to the lower order method.
Some norm of the vector estimating the error
is used in comparison with the requested tolerance
, for step-size control algorithm
This formula is used even if
, but then
is actually a new smaller version of
. For extended details in the issue, see [
1].
All the coefficients can be formulated using the Butcher tableau [
2,
3]. So the method takes the form
with
Here, matrix
A is strictly lower triangular since the methods considered are explicit. By this we mean that the function evaluations (i.e.,
’s) are calculated directly and successively. On the contrary, when the method is implicit we have to solve non linear equations for evaluating the stages, which increases the computation time. Implicit methods are used when the problems are stiff [
4]. The problems we are dealing with in the following do not fall into the latter category [
5].
Here we are interested in studying nine stages (i.e., ), FSAL (First stage As Last) pair of orders eight and six (i.e., and ). This method spends only eight stages per step since the last stage is used again as the first stage in the next step. Thus, the coefficients in the ninth stage coincide with , i.e., for .
2. The Dormand-El Mikkawy-Prince Family of Runge-Kutta-Nyström Pairs of Orders 8(6)
This family is used for the derivation of the famous DEP8(6) pair presented in [
6]. Further investigation is given in [
1]. Thus, we may deploy here the algorithm for the derivation of the parameters of the pair with respect to the free terms
and
.
Initially, set
. All the coefficients not presented below are zero, e.g.,
.
Then solve
for
and
.
In these equations, “∗” is to be understood as a component-wise multiplication among vectors and has the lowest priority after all other operations. Also,
This latter operation (“raising” a vector to a power) has highest priority and is evaluated before the dot products and “∗”.
Set for
In consequence from FSAL property follows that
Continue evaluating successively
Then solve simultaneously
and
for
and
assuming that
.
Also set for
Proceed solving
for
and
After this, evaluate successively
Conclude with
Because the ninth stage is used as the first stage of the next step, even though , the family wastes only eight stages each step.
The challenge now is how to choose the free parameters. The norm of the principal coefficients of the local truncation error is traditionally minimized, i.e., the coefficients of in the residual of Taylor error expansions corresponding to the 5th order formula of the underlying RK pair.
Since our concern here is to deal with Keplerian type orbits, we shall try another approach and train these free parameters in order for the resulting pair to perform best in our problems of interest.
3. Comparison of Outcomes from Various Pairs
Comparison of the results observed by various pairs is an interesting issue. It is of crucial importance in our present work. We thus deal with the Kepler problem. This has a form that follows
with
,
and the theoretical solution is [
5]
In the above, , is the eccentricity, and the left superscript denotes the components of . We have to avoid confusion with , that correspond to the vectors approximating the solution at .
When running DEP8(6) for
and tolerances
,
,
, we get the results summarized in
Table 1. There we recorded the error observed at the end-point and the stages used by each pair.
Then, we try the PT8(6) pair given in [
1] and get the results presented in
Table 2.
The question we raise now is regarding which pair delivers the better results. It is not clear from what can be seen in the tables. Thus, we use a technique similar to the one described in [
5].
We form a linear least squares fit on the logarithms of data (i.e., function evaluations and accuracies achieved). Then we arrive at a slope that corresponds to the order of the method. These parallel slopes for DEP8(6) and TP8(6) can be seen in
Figure 1. See [
3] (p. 214) for more explanations on this issue.
Now, we are able to compare the results of the pairs in the selected problem.
In
Table 3 we present the function evaluations that might have been used for achieving various accuracies by both pairs. These values follow the linear fit, as mentioned in [
5], but the constant ratio is explained by parallel slopes amongst techniques of the same order. The latter observation might not be present for every problem. Some special characteristics of various problems may be exploited differently by various pairs of the same orders and thus may provide steeper slopes than anticipated. As a result, the numbers in the second column of
Table 3 are interpreted as
while the stages in the third column can be computed from the relation
Averaging the ratios in the fourth column of
Table 3, we conclude that DEP8(6)) is considered to be about
costlier than PT8(6) in the problem under consideration. After this we may ask for free parameters that may derive a new pair, which is cheaper in a wider class of Keplerian type orbits.
4. Pairs’ Performance in a Diverse Range of Problems in Keplerian-like Forms
Our purpose here is to construct a RKN8(6) pair from the family discussed above. This pair has to deliver the best results on problems of Keplerian form. For this reason, we have selected the problems that follow.
4.1. The Kepler Problem
We have already dealt with this. We used the eccentricities , and recorded the cost (i.e., the stages used) and the errors observed at . In the tables with the results, these five problems are referred to as the numbers one through five.
4.2. The Perturbed Kepler
The Schwarzschild potential is used to explain the motion of a planet according to Einstein’s general relativity theory. The equations are:
and the analytical solution is
We solved the problem through
. The parameters used are
. In the tables with the results, these 5 problems are referred to as numbers 6 through to 10, respectively.
4.3. The Arenstorf Orbit
Another fascinating orbit displays a spacecraft’s steady journey around the Earth and Moon [
7] (p. 129).
with
and initial values
and the solution is periodic with period
. We solved the Arenstorf problem and recorded the cost (i.e., the stages used) and the errors observed to
and
. In the tables with the results, these two problems are referred to as the numbers 11 and 12, respectively.
4.4. The Pleiades
Finally, we considered the problem “Pleiades” as given in [
7] (p. 245).
with
The initial values can be retrieved from [
7]. We integrated the problem to
and
. Similarly, we recorded the cost (i.e., the stages used) and the errors observed at the endpoints. In the tables with the results, these two problems are referred to as the numbers 13 and 14, respectively.
We have formed a set of 14 problems and we tested the pairs DEP8(6) and PT8(6) over 7 tolerances, namely .
In
Table 4 we record the corresponding ratios (as those appeared in the rightmost column of
Table 3) of DEP8(6) vs. PT8(6). In the first column of
Table 4 we see the expected errors. In the last row we record the average performances over all runs (i.e., tolerances used) for each problem. Numbers greater than 1 are in favor of the second pair. The overall average of these means is 0.99, which means that PT8(6) was in average about
more expensive than DEP8(6) in all these
runs.
Our aim now is to choose the five free parameters in a way to get a new pair that will be more efficient and perform better than the achieved above.
5. Training the Free Parameters in a Wide Set of Keplerian-like Problems
The idea we apply here is based on a previous work [
8]. After selecting values for the free parameters
we get pairs named NEW8(6) and construct tables similar to
Table 4. There we record the efficiency ratios of DEP8(6) vs. NEW8(6) and calculate the average of means. This latter value is a fitness measure and is meant to be maximized. For the maximization process we may choose from a variety of population-dependent techniques.
We have chosen the differential evolution (DE) technique [
9]. We already have achieved some very interesting results using DE [
10]. The latter work is about Runge-Kutta pairs of orders 5(4) addressing equations of the form
, i.e., a clearly different type of methods and problems. DE is an iterative procedure, and in every iteration, named generation
g, we work with a “population” of individuals
with
N the population size. An initial population
is randomly created in the first step of the method. We also used the average of the means from
Table 4 as the fitness function. Following that, the fitness function is assessed for each member in the initial population. A three-phase sequential approach updates all of the persons participating in each iteration (generation)
g. Differentiation, crossover, and selection are the phases involved. For the latter method, we utilized MATLAB Software DeMat [
11].
Among the numerous quintuplets we got by the technique selected, we concluded the following
In
Table 5 we present the derived pair. Coefficients that did not appear there are zero.
For the above selection of the free parameters, we get the efficiency rations tabulated in
Table 6.
The average efficiency is 1.29, i.e., DEP8(6) is about
more expensive for these 98 runs over the selected 14 orbital problems. In reverse, this means that about
digits were gained in average for NEW8(6) at the same costs.
6. Numerical Tests
We tested NEW8(6) presented here in comparison with the DEP8(6) pair, which appeared in [
6]. DEP8(6) is the most widely used Runge–Kutta-Nystöm pair of orders 8(6) [
12]. Both pairs were run for tolerances of
We set NEW8(6) as the reference pair and thus numbers greater than 1 indicate that NEW8(6) is more efficient. Thus, we can interpret the number
as DEP8(6) being
more expensive than NEW8(6).
The main difference here is that we recorded the global errors observed over all grid points of the integrations. We proceed by presenting in
Table 7 the ratios for global errors for Kepler and perturbed Kepler (i.e., problems 1–10) in the intervals
changing the parameters. Thus let us name as problems
Kepler orbits with various random eccentricities, namely
and
, respectively. We also name as problems
the perturbed Kepler orbits with parameters
and
, respectively.
We also recorded the global errors for Arenstorf for intervals through
and
, now naming the problems
and
, respectively. Finally we run Pleiades to
and
now naming the problems
and
, respectively. The efficiency ratios for these 14 problems are presented in
Table 7. The latter four problems come with no analytical solutions. Thus the true values were approximated by a parallel integration with much stringent tolerance.
The overall image is almost the same as the one observed in the previous Table, which is also quite a positive result.
The implementation of Runge-Kutta-Nyström methods is a subject of ongoing interest. This year we presented the Runge-Kutta-Nyström pair RKNST7(5) of orders 7(5) [
13]. Another issue of research is producing methods that are symplectic. The latter methods have the property of linear error growth with respect to the length of integration interval when applied to Kepler problems [
14]. Their disadvantage is having higher truncation errors and that they need more stages per step. On the contrary, conventional methods (like the one presented here) have quadratic error growth. One of the most known eighth order symplectic methods is the 15-stages Y8, given by Yoshida [
15] in
Table 1, column D.
We run the methods NEW8(6), DEP8(6), RKNST7(5) and Y8 on problems 1b and 6b. The intervals of integration were lengthened to 10,000
and 10,000
, respectively, in favor of symplectic methods. We recorded the stages taken versus the end-point error achieved and plot it in
Figure 2 and
Figure 3.
RKNTS7(5) pair was less efficient at higher tolerances than eighth order pairs since it attains lesser algebraic accuracy and it was not designed to perform best on Keplerian type orbits. DEP8(6) remains less efficient than NEW8(6) on these intervals and problems. Symplectic methods are not competitive at all. It seems to share interesting properties for geometers but not for numerical analysts. Their poor performance has already been remarked elsewhere [
16].
7. Conclusions
In this study, we considered the Runge-Kutta-Nyström pairs of orders 8(6) for addressing the special second order Initial Value Problem. We focused on problems of the Keplerian type. Thus, we proposed a pair with coefficients specially trained in order to address such kinds of orbits. Extensive results justified our effort.