Skip to content

Define generic neval_hprod for QuasiNewtonModels#144

Merged
dpo merged 2 commits into
mainfrom
qn-hprod
Mar 16, 2026
Merged

Define generic neval_hprod for QuasiNewtonModels#144
dpo merged 2 commits into
mainfrom
qn-hprod

Conversation

@dpo

@dpo dpo commented Mar 16, 2026

Copy link
Copy Markdown
Member

supsersedes #102

Copilot AI review requested due to automatic review settings March 16, 2026 19:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Defines a single, generic neval_hprod implementation for all QuasiNewtonModel wrappers, reducing per-type duplication and aligning counter behavior across the quasi-Newton models in this package (superseding #102).

Changes:

  • Add NLPModels.neval_hprod(::QuasiNewtonModel) implemented via get_op(nlp).nprod.
  • Remove redundant neval_hprod definitions for LBFGSModel, LSR1Model, and DiagonalQNModel.
  • Broaden NLPModels compat from 0.21.6 to 0.21.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/quasi-newton.jl Centralizes neval_hprod for all QuasiNewtonModel types and removes duplicated per-struct overrides.
Project.toml Relaxes NLPModels compatibility constraint to allow the full 0.21.x range.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/quasi-newton.jl Outdated
@github-actions

github-actions Bot commented Mar 16, 2026

Copy link
Copy Markdown
Contributor
Package name latest stable
FletcherPenaltySolver
JSOSolvers
JSOSuite
LLSModels
NLPModelsIpopt
NLPModelsKnitro
NLPModelsTest
PartiallySeparableNLPModels
Percival
QuadraticModels
RegularizedOptimization
RipQP

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@dpo dpo merged commit 88e19bb into main Mar 16, 2026
12 of 15 checks passed
@dpo dpo deleted the qn-hprod branch March 16, 2026 22:31
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 this pull request may close these issues.

2 participants