pysolver_view.optimization.backends.pygmo_nlopt module

Contents

pysolver_view.optimization.backends.pygmo_nlopt module#

NLOpt through PyGMO using the common frontend option names.

pysolver_view.optimization.backends.pygmo_nlopt.minimize_nlopt(problem, x0, method, options)[source]#

Optimize a given problem using the specified NLOpt optimization method.

Parameters:
problemOptimizationProblem

An object representing the problem.

x0array_like

Initial guess for the decision variables.

methodstr

The name of the Pygmo solver to use. Must be one of the solvers defined in the NLOPT_SOLVERS list.

optionsdict

Configuration options for the solver. Options vary depending on the solver used.

Returns:
scipy.optimize.OptimizeResult

The backend solution, including its authoritative coordinates, objective, termination status, and any available native diagnostics. Coordinates use the solver-space convention supplied by the caller.

Raises:
ValueError

If an invalid solver name is specified.