Skip to content

Add hs85 and hs89 problems#412

Open
arnavk23 wants to merge 4 commits intoJuliaSmoothOptimizers:mainfrom
arnavk23:docs-nls-mainonly
Open

Add hs85 and hs89 problems#412
arnavk23 wants to merge 4 commits intoJuliaSmoothOptimizers:mainfrom
arnavk23:docs-nls-mainonly

Conversation

@arnavk23
Copy link
Copy Markdown
Contributor

@arnavk23 arnavk23 commented Mar 17, 2026

@dpo @tmigot
Towards #113

@tmigot tmigot requested review from tmigot March 17, 2026 15:04
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 29, 2026

Codecov Report

❌ Patch coverage is 69.40299% with 82 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.63%. Comparing base (2ada450) to head (763e55b).
⚠️ Report is 46 commits behind head on main.

Files with missing lines Patch % Lines
src/PureJuMP/hs85.jl 0.00% 62 Missing ⚠️
src/PureJuMP/hs89.jl 0.00% 18 Missing ⚠️
src/Meta/hs85.jl 75.00% 1 Missing ⚠️
src/Meta/hs89.jl 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #412       +/-   ##
===========================================
- Coverage   99.80%   54.63%   -45.17%     
===========================================
  Files        1084     1144       +60     
  Lines       12319    13639     +1320     
===========================================
- Hits        12295     7452     -4843     
- Misses         24     6187     +6163     

☔ 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.

Comment on lines +11 to +16
header_ok = false
if result["ADNLP"]
header = readlines("src/ADNLPProblems/$problem.jl")[1:10]
header_ok = any(occursin("Hock and Schittkowski", h) for h in header)
end
result["Header"] = header_ok
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not sure to understand what you are checking here ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This code checks if the first 10 lines (the "header") of the src/ADNLPProblems/$problem.jl file mention "Hock and Schittkowski" for proper documentation of source. Once you commit, will change it to meta, kept adnlp as placeholder for now.

header_ok = any(occursin("Hock and Schittkowski", h) for h in header)
end
result["Header"] = header_ok
# Bounds/x0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Make for each test, can you make a more complete sentence?

# Script to check OptimizationProblems.jl rules for HS85/HS89
using JSON

function check_problem(problem::String)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like this idea :).

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