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

fix: discrepancy in problem names. #357

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

danphenderson
Copy link
Contributor

@danphenderson danphenderson commented Dec 20, 2024

Reference #356

Q: How should I handle the NLS name declared here:

return ADNLPModels.ADNLSModel!(F!, x0, 2 * (n - 1), name = "errinros-nls"; kwargs...)

should it be errinros_mod_nls or errinros-mod-nls or errinros_mod-nls?

@danphenderson danphenderson changed the title fix: discrepency in problem names. [WIP] fix: discrepancy in problem names. Dec 20, 2024
@tmigot
Copy link
Member

tmigot commented Dec 20, 2024

It should be -nls

Thanks!

@tmigot
Copy link
Member

tmigot commented Dec 20, 2024

So, the tests do not pass because of rosenbrock that we define via genrose here https://github.com/JuliaSmoothOptimizers/OptimizationProblems.jl/blob/main/src%2FADNLPProblems%2Fgenrose.jl

Could you modify it, so that

rosenbrock(args...; kwargs...) = genrose(args..., n = 2; delete!(Dict(kwargs), :n)...)

becomes

rosenbrock(args...; kwargs...) = genrose(args..., n = 2, name="rosenbrock"; delete!(Dict(kwargs), :n)...)

@tmigot tmigot linked an issue Dec 20, 2024 that may be closed by this pull request
@danphenderson danphenderson changed the title [WIP] fix: discrepancy in problem names. fix: discrepancy in problem names. Dec 21, 2024
Copy link
Member

@tmigot tmigot left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@tmigot tmigot merged commit 5862e04 into JuliaSmoothOptimizers:main Dec 21, 2024
11 of 14 checks passed
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.

Update names of errinros_mod, chnrosnb_mod and fletcbv3_mod?
2 participants