paulknysh / blackbox

A Python module for parallel optimization of expensive black-box functions
MIT License
439 stars 60 forks source link

Input an initial guess #14

Closed CharlyEmpereurmot closed 3 years ago

CharlyEmpereurmot commented 5 years ago

Hello Paul,

Thank you for this nice piece of code :+1: Is it possible to feed the algorithm with an initial guess ? Or can you think of some clues to implement this ?

paulknysh commented 5 years ago

Hi,

Typically, "black-box" means that we don't know much about function, not even initial guess. That's why method doesn't support that. Instead, all we can guess about is the ranges of each parameter. Therefore, if you have some initial guess, all I can recommend for now is to set these ranges around your guess.

It is possible to add initial guess into the code. One would need to add some hacks into lines 87-93.