Search NASA⌕ Search

NASA NTRS · 20190026650

Using Graph Coloring to Compute Total Derivatives More Efficiently in OpenMDAO

Abstract

When they are applicable, gradient based optimization algorithms are the most efficient way to solve design optimization problems. Although gradient based methods are generally efficient, they can be made significantly more so through the usage of analytic techniques to compute the necessary total derivatives. The traditional forward (direct) and reverse (adjoint) analytic techniques have computational costs that scale linearly with the number of design variables and the number of constraints, respectively. In this work, we present an application of a graph coloring algorithm to the analytic techniques for computing total derivative Jacobians in order to achieve much better computational scaling than the pure analytic methods can provide alone. A detailed theoretical explanation of how coloring algorithms interact with analytic derivative methods is presented that illustrates specific types of sparsity patterns that must be present in total derivative Jacobians in order for this coloring technique to be effective. The new technique has been implemented as a feature in the OpenMDAO framework and the implementation is demonstrated on two example problems. The performance on the example problems up to 50% reduction in compute cost for optimizations with bi-directional coloring compared to traditional constraint aggregation. Additionally, the results show how coloring technique alleviates some of the numerical difficulties that constraint aggregation can cause, leading to the ability to solve larger problems. It is expected that the new method will have wide applicability to multidisciplinary optimization problems, and that its availability in OpenMDAO will offer significant computational savings for users without the need for them to implement the coloring algorithm themselves.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Gray, Justin S., Hearn, Tristan A., Naylor, Bret A.. 2019-06-17. Using Graph Coloring to Compute Total Derivatives More Efficiently in OpenMDAO. https://ntrs.nasa.gov/citations/20190026650

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related reports

An Enhanced Autonomy Approach to Automated Trajectory Negotiation

Improved real-time decision-making capabilities in both civil transport avionics and airline dispatcher workstations are helping to improve commercial aviation operations in many ways. One emerging capability is the automated derivation of alternate flight plans that yield both flight cost savings and smoother workflow. This emerging capability may be complemented with automated trajectory negotiation capabilities. Here we explore such automated trajectory negotiation capabilities, potential benefit mechanisms, and the required tools, procedures, and architectures.

Trajectory↗

Analysis of Near Rectilinear Halo Orbit Insertion with a 40-kW Solar Electric Propulsion System

This paper examines low thrust trajectories for delivery of a 40-kW solar electric propulsion spacecraft and potential additional payload to a desired NRHO. One option considered is a trans-lunar injection launch as a co-manifested payload on the Space Launch System. For this option, a reference trajectory is designed and a scan of launch dates is completed to understand the propellant mass sensitivity. A 15-day period cyclical variation in required propellant is observed that is attributed to solar gravity effects. A second option considered is to launch on a smaller commercial launch vehicle to a less energetic elliptical orbit and use SEP to spiral out to NRHO. For this option, analysis is completed to understand the trades between delivered mass to NRHO, total propellant required, time of flight, and solar array degradation. Results show that, while launching to lower altitudes can deliver greater payload mass to NRHO, significant solar array degradation can be observed.

Trajectory↗

The Impact Trajectory of Asteroid 2008 TC3

Asteroid 2008 TC3 was the rst asteroid ever discovered before reaching Earth. By using the almost 900 astrometric observations acquired prior to impact we estimate the trajectory of 2008 TC3 and the ground-track of the impact location as a function of altitude. For a reference altitude of 100 km the impact location 3- formal uncertainty is a 1.4 km 0.15 km ellipse with a semimajor axis azimuth of 105. We analyze the contribution of modeling errors and nd that the second-order zonal harmonics of the Earth gravity eld moves the ground-track by more than 1 km and the location along the ground-track by more than 2 km. Non-zonal and higher order harmonics only change the impact prediction by less than 20 m. The contribution of the atmospheric drag to the trajectory of 2008 TC3 is at the numerical integration error level, a few meters, down to an altitude of 50 km. Integrating forward to lower altitudes and ignoring the break-up of 2008 TC3, the atmospheric drag causes an along-track error that can be as large as a few kilometers at sea level. The locations of the recovered meteorites is consistent with the computed ground-track.

Trajectory↗