Replies: 2 comments 6 replies
-
This will be |
Beta Was this translation helpful? Give feedback.
2 replies
-
The problem is connected with ERROR: MethodError: no method matching linesearch(::BackTracking{Float64, Int64}, ::result{Float64}, ::Vector{Float32}, ::SlimOptim.var"#obj#24"{SlimOptim.var"#objgrad!#23"{typeof(g), result{Float64}}, Vector{Float64}}, ::SlimOptim.var"#grad!#22"{typeof(g), result{Float64}}, ::SlimOptim.var"#objgrad!#23"{typeof(g), result{Float64}}, ::Float64, ::Float64, ::Float64, ::Vector{Float64})
Closest candidates are:
linesearch(::Any, ::result, ::AbstractArray{T, N} where N, ::Function, ::Function, ::Function, ::Any, ::Any, ::Any, ::AbstractArray{T, N} where N) where T at /home/kerim/Documents/Colada/r/julia-1.6/.julia/packages/SlimOptim/33Fm9/src/linesearches.jl:7
linesearch(::Any, ::result, ::AbstractArray{T, N} where N, ::Function, ::Function, ::Function, ::T, ::T, ::T, ::AbstractArray{T, N} where N) where T at /home/kerim/Documents/Colada/r/julia-1.6/.julia/packages/SlimOptim/33Fm9/src/linesearches.jl:27
Stacktrace:
[1] _pqn(obj::Function, grad!::SlimOptim.var"#grad!#22"{typeof(g), result{Float64}}, objgrad!::SlimOptim.var"#objgrad!#23"{typeof(g), result{Float64}}, projection::SlimOptim.var"#projection#21"{typeof(prj), result{Float64}}, x::Vector{Float64}, g::Vector{Float64}, sol::result{Float64}, ls::Nothing, options::SlimOptim.PQN_params; callback::typeof(SlimOptim.noop_callback))
@ SlimOptim ~/Documents/Colada/r/julia-1.6/.julia/packages/SlimOptim/33Fm9/src/PQNSlim.jl:262
[2] pqn(funObj::typeof(g), x::Vector{Float64}, funProj::typeof(prj), options::SlimOptim.PQN_params; ls::Nothing, callback::Function)
@ SlimOptim ~/Documents/Colada/r/julia-1.6/.julia/packages/SlimOptim/33Fm9/src/PQNSlim.jl:95
[3] pqn(funObj::Function, x::Vector{Float64}, funProj::Function, options::SlimOptim.PQN_params)
@ SlimOptim ~/Documents/Colada/r/julia-1.6/.julia/packages/SlimOptim/33Fm9/src/PQNSlim.jl:85
[4] top-level scope
@ /mnt/HDD_2TB/DMNG/model_1/fwi/fwi_pqn.jl:325 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I started to test
pqn
algorithm and I rely on this tutorialFirst of all there should be a typo: function defined as
function objective(F0, G, m, dobs, wb_mask)
but it is called withg(x) = objective(F0, x, dobs, wb_mask)
. As you can seeG
is missing. I guess we don't need it in function definition right?But the problem is at first iteration
objective(...)
function bringsm
with somehow modified values: it has negative values (minimum(m) gives some negative number) but my starting model contains only positivemodel0.m
.It would be great if you could give some hints because for now there is a great number of optimization parameters that I don't know yet (like TV).
For the time economy I use only a single shot (that is why shot_from == shot_to) and the code looks like:
Beta Was this translation helpful? Give feedback.
All reactions