scipy_optimizer.py

OpenMDAO Wrapper for the scipy.optimize.minimize family of local optimizers.

class openmdao.drivers.scipy_optimizer.ScipyOptimizer[source]

Bases: openmdao.core.driver.Driver

Driver wrapper for the scipy.optimize.minimize family of local optimizers. Inequality constraints are supported by COBYLA and SLSQP, but equality constraints are only supported by COBYLA. None of the other optimizers support constraints.

ScipyOptimizer supports the following:

equality_constraints

inequality_constraints

Options:

options[‘disp’] : bool(True)

Set to False to prevent printing of Scipy convergence messages

options[‘maxiter’] : int(200)

Maximum number of iterations.

options[‘optimizer’] : str(‘SLSQP’)

Name of optimizer to use

options[‘tol’] : float(1e-06)

Tolerance for termination. For detailed control, use solver-specific options.

run(problem)[source]

Optimize the problem using your choice of Scipy optimizer.

Args:

problem : Problem

Our parent Problem.