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
I tried to run fwi_2D_small_overthrust_lbfgs.jl and got the following error:
#############################################################
ERROR: LoadError: MethodError: no method matching optimize(::Opt, ::PhysicalParameter{Float32, 2})
I tried to run fwi_2D_small_overthrust_lbfgs.jl and got the following error:
#############################################################
ERROR: LoadError: MethodError: no method matching optimize(::Opt, ::PhysicalParameter{Float32, 2})
Closest candidates are:
optimize(::Opt, ::AbstractVector{<:Real})
@ NLopt ~/.julia/packages/NLopt/w0c7n/src/NLopt.jl:634
###############################################
I the issue seems to come from line 66:
(minf, minx, ret) = optimize(opt, copy(model0.m))
I found a different example which has optimize syntax:
(minf, minx, ret) = optimize(opt, vec(model0.m.data))
Which seems to work but I am not sure if this is the appropriate fix.
The text was updated successfully, but these errors were encountered: