Optimization Algorithms#
Optimizers are what numerically solve the aircraft design problem that we pose to Aviary. Within the context of Aviary and broader OpenMDAO, optimizers are a type of driver that repeatedly query the aircraft and trajectory models.
When we say “optimizer”, this is a distinct idea from a “solver” in the context of OpenMDAO. A solver is a component that numerically solves a system of equations, e.g. a Newton solver or a linear solver. An optimizer is a driver that finds the optimal values of the design variables that minimize or maximize the objective function.
For more information on OpenMDAO optimization drivers, see the OpenMDAO documentation. For a basic introduction to what an optimization problem is and how it is solved, see the Practical MDO page on “Basic optimization problem.
Available Algorithms that work with Aviary#
Aviary is designed to work well with gradient-based optimizers. This means that they require the gradient of the objective function and constraints with respect to the design variables. Gradient-free optimizers are available through OpenMDAO and pyOptSparse, but they are not recommended for use with Aviary due to the optimization problem complexity.
SNOPT is the recommended optimizer for use with Aviary but is not available for free commercial use. IPOPT and SLSQP are open-source optimizers that are available for commercial use.
SNOPT#
SNOPT is a sequential quadratic programming (SQP) algorithm that is available in OpenMDAO through pyOptSparse. SNOPT is a commercial software package and has a high cost for commercial use but it is available for free for academic use. For more information on SNOPT, see the SNOPT documentation.
IPOPT#
IPOPT is an interior point optimizer that is available in OpenMDAO through pyOptSparse.
IPOPT is an open-source software package and will be installed automatically when you install pyOptSparse when using the conda
package manager as detailed here.
For more information on IPOPT, see the IPOPT documentation.
SLSQP#
SLSQP is a sequential least squares programming algorithm that is available in OpenMDAO through Scipy. SLSQP is an open-source software package and is bundled with Scipy so it requires no additional packages. For more information on SLSQP, see the SLSQP documentation.