This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / optimize / _differentialevolution / DifferentialEvolutionSolver / solve

function

scipy.optimize._differentialevolution:DifferentialEvolutionSolver.solve

source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_differentialevolution.py:1185

Signature

def solve(self)

Summary

Runs the DifferentialEvolutionSolver.

Returns

res : OptimizeResult

The optimization result represented as a OptimizeResult object. Important attributes are: x the solution array, success a Boolean flag indicating if the optimizer exited successfully, message which describes the cause of the termination, population the solution vectors present in the population, and population_energies the value of the objective function for each entry in population. See OptimizeResult for a description of other attributes. If polish was employed, and a lower minimum was obtained by the polishing, then OptimizeResult also contains the jac attribute. If the eventual solution does not satisfy the applied constraints success will be False.

Aliases

  • scipy.optimize._differentialevolution.DifferentialEvolutionSolver.solve