pyoptsparse_driver.py¶
OpenMDAO Wrapper for pyoptsparse. pyoptsparse is based on pyOpt, which is an object-oriented framework for formulating and solving nonlinear constrained optimization problems, with additional MPI capability.
-
class
openmdao.drivers.pyoptsparse_driver.
pyOptSparseDriver
[source]¶ Bases:
openmdao.core.driver.Driver
Driver wrapper for pyoptsparse. pyoptsparse is based on pyOpt, which is an object-oriented framework for formulating and solving nonlinear constrained optimization problems, with additional MPI capability. pypptsparse has interfaces to the following optimizers: ALPSO, CONMIN, FSQP, IPOPT, NLPQLP, NSGA2, PSQP, SLSQP, SNOPT, NLPY_AUGLAG, NOMAD. Note that some of these are not open source and therefore not included in the pyoptsparse source code.
- pyOptSparseDriver supports the following:
equality_constraints
inequality_constraints
two_sided_constraints
Options: options[‘exit_flag’] : int(0)
0 for fail, 1 for ok
options[‘optimizer’] : str(‘SLSQP’)
Name of optimizers to use
options[‘print_results’] : bool(True)
Print pyOpt results if True
options[‘gradient method’] : str(‘openmdao’, ‘pyopt_fd’, ‘snopt_fd’)
Finite difference implementation to use (‘snopt_fd’ may only be used with SNOPT)
options[‘title’] : str(‘Optimization using pyOpt_sparse’)
Title of this optimization run