pysolver_view.optimization.backends.pygmo module#
Optional PyGMO adapter; population results retain native ownership.
- class pysolver_view.optimization.backends.pygmo.PygmoProblem(context)[source]#
Bases:
objectKeep callbacks shallow through deepcopy; flatten only PyGMO derivatives.
- pysolver_view.optimization.backends.pygmo.minimize_pygmo(problem, x0, method, options)[source]#
Optimize a given problem using the specified Pygmo 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 PYGMO_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.