jmejia8 / Metaheuristics.jl

High-performance metaheuristics for optimization coded purely in Julia.
https://jmejia8.github.io/Metaheuristics.jl/stable/
Other
255 stars 26 forks source link

Handle unstable objective function output #89

Closed jmejia8 closed 1 year ago

jmejia8 commented 1 year ago

Improve error reporting for cases like:

julia> f(x) = rand(rand(1:3)), [0.0], [0.0]
f (generic function with 1 method)

julia> optimize(f, [-1 -1 -1;1 1 1.0])
AlexanderNenninger commented 1 year ago

This question is also relevant for noisy functions? Are there any heuristics that can deal with them?

jmejia8 commented 1 year ago

No, only for cases when the user defines an objective function which returns arrays of different sizes. At the current time, implemented heuristics can solve deterministic functions. However, they can return a candidate solution.