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

Add getter for NLPModelMeta and NLSMeta #371

Merged
merged 2 commits into from
Jul 20, 2021

Conversation

tmigot
Copy link
Member

@tmigot tmigot commented Jul 20, 2021

This way calling get_minimize(meta) would no longer allocate the 2nd call, while meta.minimize would always.
For each attribute foo in the meta, there is a get_foo function.

Note that there is a priority for NLS over NLP for copies in NLPMeta and NLSMeta, e.g. get_x0(nls) will look for nls.nls_meta.x0.

@codecov
Copy link

codecov bot commented Jul 20, 2021

Codecov Report

Merging #371 (3e03bfe) into main (ad8d5f1) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #371   +/-   ##
=======================================
  Coverage   99.65%   99.66%           
=======================================
  Files          12       13    +1     
  Lines         585      589    +4     
=======================================
+ Hits          583      587    +4     
  Misses          2        2           
Impacted Files Coverage Δ
src/nlp/tools.jl 100.00% <100.00%> (ø)
src/nls/tools.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad8d5f1...3e03bfe. Read the comment docs.

@github-actions
Copy link
Contributor

Package name latest stable
ADNLPModels.jl
AmplNLReader.jl
CUTEst.jl
CaNNOLeS.jl
DCISolver.jl
JSOSolvers.jl
LLSModels.jl
NLPModelsIpopt.jl
NLPModelsJuMP.jl
NLPModelsModifiers.jl
NLPModelsTest.jl
PDENLPModels.jl
Percival.jl
QuadraticModels.jl
SolverBenchmark.jl
SolverCore.jl
SolverTest.jl
SolverTools.jl

@github-actions
Copy link
Contributor

Package name latest stable
ADNLPModels.jl
AmplNLReader.jl
CUTEst.jl
CaNNOLeS.jl
DCISolver.jl
JSOSolvers.jl
LLSModels.jl
NLPModelsIpopt.jl
NLPModelsJuMP.jl
NLPModelsModifiers.jl
NLPModelsTest.jl
PDENLPModels.jl
Percival.jl
QuadraticModels.jl
SolverBenchmark.jl
SolverCore.jl
SolverTest.jl
SolverTools.jl

Copy link
Member

@dpo dpo left a comment

Choose a reason for hiding this comment

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

Great! Thanks!

@probot-auto-merge probot-auto-merge bot merged commit 80bca37 into JuliaSmoothOptimizers:main Jul 20, 2021
@dpo
Copy link
Member

dpo commented Jul 20, 2021

Hope it was ok to merge!

@tmigot
Copy link
Member Author

tmigot commented Jul 20, 2021

Hope it was ok to merge!

Yes, it was ok to merge. The SolverBenchmark.jl failure comes from a different issue following the upgrade in BenchmarkProfiles.jl.

@tmigot tmigot deleted the add-min-getter branch July 20, 2021 13:50
baggepinnen added a commit to baggepinnen/MadNLP.jl that referenced this pull request Aug 31, 2022
It appears as if
1. The names have changed to `x0, y0`
2. The getters have been introduced JuliaSmoothOptimizers/NLPModels.jl#371
sshin23 pushed a commit to MadNLP/MadNLP.jl that referenced this pull request Sep 1, 2022
It appears as if
1. The names have changed to `x0, y0`
2. The getters have been introduced JuliaSmoothOptimizers/NLPModels.jl#371
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