Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optim: No method matching iterate #824

Closed
castrovjm opened this issue Jun 24, 2020 · 2 comments
Closed

Optim: No method matching iterate #824

castrovjm opened this issue Jun 24, 2020 · 2 comments

Comments

@castrovjm
Copy link

Hi! I am having a weird problem using Optim. It starts well and runs for some seconds. However, it suddenly stops and gives me the following error:

MethodError: no method matching iterate(::Optim.MultivariateOptimizationResults{NelderMead{Optim.AffineSimplexer,Optim.AdaptiveParameters},Float64,Array{Float64,1},Float64,Float64,Array{OptimizationState{Float64,NelderMead{Optim.AffineSimplexer,Optim.AdaptiveParameters}},1},Bool}) Closest candidates are: iterate(!Matched::Core.SimpleVector) at essentials.jl:600 iterate(!Matched::Core.SimpleVector, !Matched::Any) at essentials.jl:600 iterate(!Matched::ExponentialBackOff) at error.jl:218 ... indexed_iterate(::Optim.MultivariateOptimizationResults{NelderMead{Optim.AffineSimplexer,Optim.AdaptiveParameters},Float64,Array{Float64,1},Float64,Float64,Array{OptimizationState{Float64,NelderMead{Optim.AffineSimplexer,Optim.AdaptiveParameters}},1},Bool}, ::Int64) at tuple.jl:66 msm(::Array{Int8,2}, ::Array{Float64,2}, ::Array{Float64,3}, ::UniformScaling{Bool}, ::Array{Float64,1}) at simulations.jl:173 estim_MSM(::Int64, ::Int64, ::Array{Float64,2}, ::Array{Float64,1}) at simulations.jl:187 top-level scope at simulations.jl:196

In all my time working with Optim, I hadn't ever received this message.

@pkofod
Copy link
Member

pkofod commented Jun 26, 2020

Can you tell me more about the code you're running?

@pkofod
Copy link
Member

pkofod commented Jul 10, 2020

Please reopen if you have more info to supply or ask on discourse.julialang.org for help.

@pkofod pkofod closed this as completed Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants