Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Feed one or more initial positions to scipy.optimize.differential_evolution

Say I want to use scipy.optimize.differential_evolution to optimize a function, but I have a reasonable starting point where I believe the minimum is located.

Is there a way to feed at least one initial position to this algorithm?

I thought of restricting the bounds parameter to the near vicinity of my "solution". This has the drawback that it will affect the entire population (popsize) and I do want the algorithm to search the entire landscape of solutions.

Can this be done at all?

like image 659
Gabriel Avatar asked Oct 21 '25 04:10

Gabriel


1 Answers

v1.7.0 or newer of scipy.optimize.differential_evolution supports x0 which is optionally your initial guess.

like image 140
Asclepius Avatar answered Oct 24 '25 07:10

Asclepius



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!