Gravity-assist Trajectory Optimization - OTB version
Version 1.1.2 (111 MB) by
David Eagle
A MATLAB Script for Interplanetary Patched-Conic, Single Gravity-Assist Trajectory Design, Analysis and Optimization
This submission is a MATLAB script named flyby_otb that can be used to optimize interplanetary, patched-conic trajectories that include a zero sphere of influence (ZSOI) single gravity assist maneuver. The user specifies the departure, flyby and arrival planets along with initial guesses for the departure, flyby and arrival calendar dates, and lower and upper bounds for the flyby altitude. This script searches for a patched-conic, gravity-assist trajectory that satisfies the flyby mission constraints (V-infinity matching and bounded flyby altitude) and minimizes the departure, arrival or total impulsive heliocentric delta-v for the mission. The type of trajectory optimization is specified by the user.
This MATLAB script reads JPL lunar and solar ephemerides in a machine-independent binary format (kernels) which are available from the SPICE web site and by anonymous ftp from ftp://ssd.jpl.nasa.gov/pub/eph/planets/bsp. These *.bsp ephemeris files are IEEE-Little Endian style of binary kernel. This is the binary form native to PC/Linux, PC/Windows and MAC/Intel machines. Additional information about JPL ephemerides can be found at http://naif.jpl.nasa.gov/naif/.
The flyby_otb script uses routines from the MICE software suite to read and evaluate the JPL ephemeris file. Platform-specific MICE mex files, support functions and binary ephemeris files are available at naif.jpl.nasa.gov/naif/toolkit_MATLAB.html. MICE is a MATLAB implementation of the SPICE library created by JPL.
The software provides a simple two-dimensional graphic display of the heliocentric planet orbits and the interplanetary transfer trajectory. It also provides a three-dimensional graphic display of the flyby trajectory relative to the gravity-assist planet along with the corresponding classical orbital elements.
Cite As
David Eagle (2025). Gravity-assist Trajectory Optimization - OTB version (https://www.mathworks.com/matlabcentral/fileexchange/73547-gravity-assist-trajectory-optimization-otb-version), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Environmental Models in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.1.2 | Updated several functions and PDF documentation. Added graphics of the planet-centered flyby orbital elements and speed. |
||
1.1.1 | Updated to use MICE routines and DE421 ephemeris |
||
1.0.1 | Minor editing and rename of objective and constraints functions. |
||
1.0.0 |