A State-Dependent Hybrid Integrator: Optimizing Computational Efficiency in High-Eccentricity Orbits

CWSF · 2026 Aerospace

Thumbnail supplied by the source for A State-Dependent Hybrid Integrator: Optimizing Computational Efficiency in High-Eccentricity Orbits

Overview

In orbital simulations, mathematical methods called integrators are used to predict paths of objects in space over long time periods, however, in highly elliptical orbits, integrators require excessive computational resources or fail and violate laws of physics. I engineered a state-dependent hybrid integrator in Python that uses a dynamic logic gate to switch between mathematical frameworks based on the real-time stress of the orbit. This allowed me to prioritize high-precision calculations only when necessary, reducing computing cost and maintaining control of the system's energy. In extreme stress-tests, my hybrid model successfully prevented failure seen in industry-standard methods while using significantly fewer calculations. It reduced force calculations by 38.5% and outperformed both of its components in energy preservation in high eccentricity. My project provides a practical solution for tracking high-eccentricity objects, like asteroids, using satellites with limited on-board hardware that requires high accuracy and low power consumption, maximizing mission-life.

Video

Why?

Background

Accurately simulating how planets and spacecraft move is a fundamental problem in physics, but it becomes especially difficult for highly elliptical orbits. In these systems, motion isn't uniform: objects accelerate rapidly near the closest point in their orbit and move much slowly farther away. Computational methods known as numerical integrators are used to approximate motion over time. This creates regions where numerical errors grow unevenly, making it difficult for single computational methods to remain both stable and efficient.

Existing industry standard simulation methods must balance competing goals. Such methods like Verlet, a 2nd-order integrator, preserve long-term stability but struggle with rapidly changing motion, while others like RK4, a 4th-order integrator, achieve high local accuracy at the cost of increased computation and long-term drift. These limitations become most apparent in high-eccentricity regimes (), where no single method performs well across the entire orbit.

This project explores whether these trade-offs can be reduced by adapting the simulation itself, using different methods in different regions of the orbit to manage accuracy, stability, and computational-cost.

I did this by developing an original hybrid numerical integrator that dynamically switches between methods depending on the system’s state, applying higher-precision calculations where errors grow rapidly and more efficient methods where motion is stable, drastically reducing the amount of force calculations, and outperforming its components in energy-conservation in high-eccentricity.

Improving these simulations is crucial for spacecraft/satellite trajectory design and long-term orbital prediction, especially in onboard computers in nanosatellites, where both accuracy and computational efficiency are critical.

How?

Methodology

To truly understand orbital mechanics, I allocated several days to read through all the existing literature in the field, and reviewed numerous research papers from many sources including ArXiv and Cambridge-Press. This knowledge, combined with my background in programming, I started to develop a computational simulation of a two-body gravitational system in Python to model orbital motion to evaluate numerical methods under identical physical conditions.

Three integrators were implemented: a first-order method called Euler, a stability-focused method called Verlet that preserves energy over long timescales (symplectic), and a higher-order method called RK4 that improves local accuracy at increased computational cost. I then developed a hybrid integrator that dynamically switches between the latter two methods based on the system’s orbital state. The switching condition was defined using radial distance and orbital geometry (Semi-Major-Axis). Near periapsis, where acceleration changes most rapidly, RK4 was used to minimize local error. In regions farther from the central mass, where motion is smoother, Verlet was used to preserve long-term energy stability with lower computational cost.

Performance was evaluated through multiple structured experiments. In timestep sweeps, eccentricity and switching parameters were held constant while timestep size was varied to identify stability limits. In eccentricity sweeps, timestep was fixed while orbital shape was varied to test performance under increasingly extreme conditions. A third experiment enforced a fixed computational budget to enable fair cost-accuracy comparison. For each simulation, I measured positional error relative to a high-precision reference solution, total energy error over time, and computational cost. Long-duration simulations were also performed to observe stability across multiple orbits. There were also a variety of other benchmarks conducted.

For the hybrid method, the switching condition was varied to evaluate its effect on energy error and computational cost. This allowed identification of a near-optimal threshold that balances precision and efficiency.

What?

Results

Key Result: The hybrid integrator consistently achieved a superior balance between accuracy, stability, and computational cost compared to all baseline methods. At high eccentricity (), it reduced total force evaluations by approximately 38.5% compared to RK4, while also marginally reducing energy error, whereas Verlet failed (Figure 2). The hybrid model was exceptional at low budgets in high eccentricity, at a nominal force budget of 637, the hybrid reduced energy error by a substantial 64% conserving energy better by 2.8x while simultaneously reducing force evaluations by roughly 7.5% compared to RK4 whereas all other methods failed, including RK4 itself. (Figure 3).

The simple Euler method showed rapid error growth and became unstable even at moderate timesteps. The stability-focused Verlet method preserved overall orbital structure but failed under high-eccentricity conditions, where large timestep values caused divergence near periapsis. The high-precision RK4 method maintained strong local accuracy but incurred significantly higher computational cost and exhibited gradual long-term energy drift.

In contrast, the hybrid method maintained stable orbital trajectories across all tested conditions while achieving near-identical positional accuracy to the RK4 method and significantly outperforming the Verlet method in extreme regimes.

Systematic sweeps revealed that each method has a distinct stability threshold. The hybrid integrator extended the maximum usable timestep before instability, particularly in high-eccentricity cases where Verlet failed. Eccentricity sweeps further showed that its advantage increases as orbital conditions become more extreme, demonstrating robustness across a wide parameter space. This confirms that the improvement is not due to increased computation, but more efficient allocation of computational effort.

Parameter sweeps of the switching threshold revealed a clear trade-off between energy conservation and computational cost. The selected threshold lies near a local optimum, where both metrics are simultaneously improved, supporting the effectiveness of the state-dependent switching strategy.

The hybrid integrator’s performance can be explained by its ability to allocate computational effort where it is most needed. By applying high-precision calculations only in regions of rapid dynamical change and using more efficient methods elsewhere, it avoids the uniform over-computation of RK4 while also preventing the instability observed in Verlet under extreme conditions.

This results in a consistent improvement in the accuracy-cost trade-off across all tested regimes. In particular, the hybrid method achieves lower energy error than RK4 while using fewer force evaluations in high eccentricity, and significantly higher positional accuracy than Verlet while maintaining stability. This demonstrates a Pareto-optimal improvement, where both accuracy and efficiency are simultaneously enhanced rather than traded off.

Further analysis confirmed that the heuristic switching boundary did not introduce any detectable discontinuous energy jumps due to the switch or numerical artifacts at eccentricities 0.5 and higher, because the periapsis energy jump observed in Verlet for example, was mitigated and thus outweighed the possibility of a drift being incurred from the switch. However, it is prudent to mention that at low eccentricity, I've identified a minor drift in the hybrid, observed in a very long-period (5000+) orbit simulation. Regardless, the model is not used in that scenario anyway.

So What?

Discussions and Conclusion

This project demonstrates that numerical integrators do not need to strictly trade accuracy for efficiency. By dynamically adapting to orbital conditions, the hybrid method achieves an effective use of computational resources, improving both energy accuracy and computational cost simultaneously. This establishes a practical approach to a long-standing limitation in orbital simulation, where no single method performs optimally across all regimes.

These results are especially relevant for high-eccentricity trajectories, which are commonly used in deep-space missions and orbital transfers. Mission planning for destinations such as Mars or outer planetary systems relies on running large numbers of simulations to evaluate possible trajectories. By reducing computational cost while maintaining accuracy, the hybrid method allows more simulations to be performed within the same resource constraints, enabling better-optimized and safer mission designs.

As access to space expands to smaller organizations and CubeSat platforms, computational efficiency becomes increasingly important. Reducing the number of required calculations directly lowers power consumption and increases the amount of useful work a system can perform. This can extend mission lifetimes and improve data collection capabilities.

Additionally, accurate long-term orbital prediction is critical for tracking near-Earth objects, where small numerical errors can accumulate over time. Improving simulation reliability contributes to more dependable trajectory forecasts in these contexts and benefits planetary defense.

My research bridges the gap in a very specific problem which no one has tried to solve. The key insight is simple: not all parts of an orbit are equally difficult, so the computation shouldn’t be either.

What's Next?

Future Work

Future work will focus on extending this method to more complex and scalable systems:

N-Body Simulations:

Extend the hybrid integrator to multi-body gravitational systems, where interactions between multiple masses introduce chaotic dynamics and significantly greater computational demands. This tests whether adaptive switching remains effective in non-periodic, highly coupled systems.

Machine Learning-Based Switching:

Replace the fixed switching criterion () with a learned model that predicts the optimal integrator based on system state (e.g., position, velocity, acceleration).

Long-Term Stability in "Extreme" Exoplanetary Systems:

Apply the manifold-switching logic to high-eccentricity exoplanetary systems to mitigate artificial energy inflation during extreme periastron pulses.

Thanks

Acknowledgements

This product was conducted entirely as a novel, original, and independent research endeavor without external help from any other individuals besides myself. I would like to acknowledge the foundational scientific literature, technical textbooks, and their rigorous standards in classical mechanics and numerical analysis which provided the theoretical basis for my hybrid logic gates, and ultimately guided this project.

'Numerical Recipes' (Press et al.): For the fundamental logic behind ODE solvers and error estimation.

'Solar System Dynamics' (Murray & Dermott): For the mathematical frameworks of high-eccentricity orbital perturbations.

'Orbital Mechanics for Engineering Students' (Howard Curtis): For the mission-critical constraints of state-vector transitions.

I am grateful to these key authors for providing the roadmap to the deep-space frontier, among other texts and research papers which also guided me significantly in my project.

References

Citations and References:

Bate, R. R., Mueller, D. D., White, J. E., & Saylor, W. W. (2020). Fundamentals of astrodynamics (2nd ed.). Dover Publications.

Chambers, J. E. (1999). A hybrid symplectic integrator that permits close encounters between objects. Monthly Notices of the Royal Astronomical Society, 304(4), 793–799.

Curtis, H. D. (2020). Orbital mechanics for engineering students (4th ed.). Butterworth-Heinemann.

Dormand, J. R., & Prince, P. J. (1980). A family of embedded Runge-Kutta formulae. Journal of Computational and Applied Mathematics, 6(1), 19–26.

Duncan, M. J., Levison, H. F., & Lee, M. H. (1998). A multiple time step symplectic algorithm for long-term orbit integrations. The Astronomical Journal, 116(4), 2067–2077.

Everhart, E. (1985). Implicit single-sequence methods for integrating orbits. In Dynamics of comets and their asteroid-like hosts (pp. 185–202). Springer.

Hairer, E., Lubich, C., & Wanner, G. (2006). Geometric numerical integration: Structure-preserving algorithms for ordinary differential equations (2nd ed.). Springer.

Laskar, J., & Robutel, P. (2001). High order symplectic integrators for planetary motion. Celestial Mechanics and Dynamical Astronomy, 80(1), 39–62.

Levison, H. F., & Duncan, M. J. (1994). The long-term dynamical behavior of short-period comets. Icarus, 108(1), 18–36.

Mikkola, S. (1997). Practical symplectic algorithms for the few-body problem. Celestial Mechanics and Dynamical Astronomy, 67(2), 145–165.

Murray, C. D., & Dermott, S. F. (1999). Solar system dynamics. Cambridge University Press.

Press, W. H., Teukolsky, S. A., Vetterling, W. T., & Flannery, B. P. (2007). Numerical recipes: The art of scientific computing (3rd ed.). Cambridge University Press.

Rein, H., & Liu, S. F. (2012). REBOUND: An open-source multi-purpose N-body code for collisional dynamics. Astronomy & Astrophysics, 537, A128.

Skeel, R. D., & Biesiadecki, J. J. (1994). Symplectic integration of molecular dynamics. Annals of Numerical Mathematics, 1(1), 191–198.

Standish, E. M. (1990). The JPL planetary and lunar ephemerides DE200/LE200. Astronomy and Astrophysics, 233, 252–271.

Vallado, D. A. (2013). Fundamentals of astrodynamics and applications (4th ed.). Microcosm Press.

Wisdom, J., & Holman, M. (1991). Symplectic maps for n-body evolutions. The Astronomical Journal, 102, 1528–1538.

Yoshida, H. (1990). Construction of higher order symplectic integrators. Physics Letters A, 150(5–7), 262–268.

Images (31)

Awards (2)

  • Special Award
  • Selected for CWSF 2026

Competition history

Related projects

Closest projects by meaning, across every fair and year in the corpus.

Browse more like this

Source: ProjectBoard / Youth Science Canada

Save projects to your library

Sign in with Google to keep track of projects you find interesting, organized into folders. An account also raises your daily allowance for “Has this been done?”, and lets you create a key for the MCP server with a much higher limit than anonymous use. Browsing stays public.

Continue with Google