Replies: 2 comments 2 replies
-
|
Hey, thanks for reaching out! You can get a list of all (available) algorithms that fit your criteria using: import optimagic as om
list_of_algos = om.algos.Scalar.Global.GradientFree.Bounded.AvailableIf you want to see all supported optimizers that fit these criteria, and not just the ones you have installed in your environment, simply write You can then use them in your minimization using for algo in list_of_algos:
om.minimize(
fun=fun,
params=params,
algorithm=algo,
algo_options={"stopping_maxfun": 50, "stopping_maxiter": 50},
)Some things to consider:
|
Beta Was this translation helpful? Give feedback.
-
|
Thank you. I tried it out with: In this case list_of_algos equals: om.algos.bayes_opt, om.algos.scipy_brute, om.algos.scipy_differential_evolution and om.algos.scipy_direct all seem to ignore the limit on the number of function evaluations. That is I get: You already warned me about scipy_brute, but is there anything that can be done about the other ones? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Say I want test how well all global optimizers that don't take derivatives and do support box constraints perform after 50 function evaluations on my 3d function, is there any way programmatically to select just those optimizers?
Beta Was this translation helpful? Give feedback.
All reactions