Skip to content

Commit

Permalink
Use QuasiNewtonModel for neval hprod
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot authored May 17, 2023
1 parent 948eb89 commit 0755305
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/quasi-newton.jl
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,7 @@ function NLPModels.hprod!(
return Hv
end

NLPModels.neval_hprod(nlp::LBFGSModel) = nlp.op.nprod
NLPModels.neval_hprod(nlp::LSR1Model) = nlp.op.nprod
NLPModels.neval_hprod(nlp::DiagonalQNModel) = nlp.op.nprod
NLPModels.neval_hprod(nlp::SpectralGradientModel) = nlp.op.nprod
NLPModels.neval_hprod(nlp::QuasiNewtonModel) = nlp.op.nprod

function Base.push!(nlp::QuasiNewtonModel, args...)
push!(nlp.op, args...)
Expand Down

0 comments on commit 0755305

Please sign in to comment.