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

No incrementation of neval_hprod #86

Closed
paraynaud opened this issue Jan 5, 2023 · 2 comments · Fixed by #87
Closed

No incrementation of neval_hprod #86

paraynaud opened this issue Jan 5, 2023 · 2 comments · Fixed by #87

Comments

@paraynaud
Copy link
Member

@dpo, I made some tests about TR-LBFGS.
The point was to check how many $Bv$ were done.
I was suprised to obtain 0 with lbfgsnlp.model.counters.neval_hprod.
I checked the code below, and there is no increment!(qnnlp, :neval_hprod) inside hprod nor hprod!.

NLPModels.hprod(nlp::QuasiNewtonModel, x::AbstractVector, v::AbstractVector; kwargs...) = nlp.op * v

function NLPModels.hprod!(

@views mul!(Hv[1:(nlp.meta.nvar)], nlp.op, v)

However, I can retrieve the number of mul! done by the LBFGSOperator with lbfgsnlp.op.nprod.

Should I open a PR to add increment!(qnnlp, :neval_hprod) to hprod and hprod!?

@tmigot
Copy link
Member

tmigot commented Jan 5, 2023

Good idea!

@dpo
Copy link
Member

dpo commented Jan 5, 2023

Yes I agree that it makes sense to count hprods for quasi-Newton models in the context of your research. Please open a PR.

@tmigot tmigot linked a pull request Jan 10, 2023 that will close this issue
@tmigot tmigot closed this as completed Jan 10, 2023
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

Successfully merging a pull request may close this issue.

3 participants