You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When giving and Initialguess Vector and an Searchspace,
if the initial guess is of type Vector{Any} the execution errors with:
MethodError: no method matching iterate(::ContinuousRectSearchSpace)
Closest candidates are:
iterate(::Union{LinRange, StepRangeLen}) at range.jl:872
iterate(::Union{LinRange, StepRangeLen}, ::Integer) at range.jl:872
iterate(::T) where T<:Union{Base.KeySet{<:Any, <:Dict}, Base.ValueIterator{<:Dict}} at dict.jl:712
What I would expect is something like:
Assertion Error: Initial guess must be of type Vector{Float}
or it to just run. (create a Vector of type Vector{Float})
Minimal Reproducing Example
using BlackBoxOptim
function f(x)
#dummy function to fit
return sum(x)
end
#e.g. Read data From file
x0 = []
push!(x0, 1.2)
bboptimize(f, x0; SearchRange = [(0., 1.5)])
This could be fixed by e.g. calling BlackBoxOptim.Individual on the input x0, or an assertion to inform the user to make the call themselves.
The text was updated successfully, but these errors were encountered:
When giving and Initialguess Vector and an Searchspace,
if the initial guess is of type Vector{Any} the execution errors with:
What I would expect is something like:
or it to just run. (create a Vector of type Vector{Float})
Minimal Reproducing Example
This could be fixed by e.g. calling BlackBoxOptim.Individual on the input x0, or an assertion to inform the user to make the call themselves.
The text was updated successfully, but these errors were encountered: