Skip to content

update SolverCore compat and add step_status#297

Merged
MaxenceGollier merged 1 commit intoJuliaSmoothOptimizers:masterfrom
MaxenceGollier:add_step_status
Feb 23, 2026
Merged

update SolverCore compat and add step_status#297
MaxenceGollier merged 1 commit intoJuliaSmoothOptimizers:masterfrom
MaxenceGollier:add_step_status

Conversation

@MaxenceGollier
Copy link
Copy Markdown
Collaborator

Following JuliaSmoothOptimizers/SolverCore.jl#130,
users can now access the step status in the callback through the stats.

Copilot AI review requested due to automatic review settings February 23, 2026 16:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the SolverCore dependency and adds step status tracking to regularization and trust-region optimization solvers. Following the upstream change in SolverCore.jl PR #130, users can now access the step acceptance status (:accepted, :rejected, or :unknown) through the stats object during callbacks and after solver completion.

Changes:

  • Updated SolverCore compatibility from 0.3.0 to 0.3.10
  • Added set_step_status!(stats, :accepted) calls when steps are accepted (η1 ≤ ρk < Inf) in all relevant solver algorithms
  • Added set_step_status!(stats, :rejected) calls when steps are rejected (ρk < η1 || ρk == Inf) in all relevant solver algorithms
  • Added test assertions to verify step_status field is properly set for all solver types

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Project.toml Updated SolverCore compatibility requirement to version 0.3.10
src/TR_alg.jl Added step status tracking (accepted/rejected) based on reduction ratio ρk
src/TRDH_alg.jl Added step status tracking (accepted/rejected) based on reduction ratio ρk
src/R2_alg.jl Added step status tracking (accepted/rejected) based on reduction ratio ρk
src/R2N.jl Added step status tracking (accepted/rejected) based on reduction ratio ρk
src/R2DH.jl Added step status tracking (accepted/rejected) based on reduction ratio ρk
src/LM_alg.jl Added step status tracking (accepted/rejected) based on reduction ratio ρk
src/LMTR_alg.jl Added step status tracking (accepted/rejected) based on reduction ratio ρk
test/runtests.jl Added assertions to verify step_status is :unknown at iter==0 and :accepted at iter>0 for all solver tests

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 23, 2026

Codecov Report

❌ Patch coverage is 58.33333% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.51%. Comparing base (e0f214d) to head (d2c04ed).
⚠️ Report is 271 commits behind head on master.

Files with missing lines Patch % Lines
src/TRDH_alg.jl 0.00% 2 Missing ⚠️
src/LMTR_alg.jl 50.00% 1 Missing ⚠️
src/LM_alg.jl 50.00% 1 Missing ⚠️
src/TR_alg.jl 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #297       +/-   ##
===========================================
+ Coverage   61.53%   83.51%   +21.98%     
===========================================
  Files          11       13        +2     
  Lines        1292     1656      +364     
===========================================
+ Hits          795     1383      +588     
+ Misses        497      273      -224     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MaxenceGollier MaxenceGollier merged commit b20b029 into JuliaSmoothOptimizers:master Feb 23, 2026
16 of 18 checks passed
@MaxenceGollier MaxenceGollier deleted the add_step_status branch February 23, 2026 18:28
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