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

Bump to NLPModels 0.21 #327

Closed
wants to merge 6 commits into from
Closed

Bump to NLPModels 0.21 #327

wants to merge 6 commits into from

Conversation

tmigot
Copy link
Member

@tmigot tmigot commented May 17, 2024

No description provided.

@tmigot
Copy link
Member Author

tmigot commented May 24, 2024

@tmigot tmigot closed this May 24, 2024
@tmigot tmigot reopened this May 24, 2024
@tmigot
Copy link
Member Author

tmigot commented May 24, 2024

@amontoison @dpo @abelsiqueira Not sure I have seen this error before https://github.com/JuliaSmoothOptimizers/CUTEst.jl/actions/runs/9226211936/job/25385471817?pr=327#step:7:162 any idea?

@dpo
Copy link
Member

dpo commented May 29, 2024

Sorry, I missed this. Is the error occurring because of the NLPModels upgrade or because of an upgrade of CUTEst/SifDecode?

@@ -44,6 +43,7 @@ function NLPModels.objcons!(
)
end
increment!(nlp, :neval_obj)
increment!(nlp, :neval_cons)
Copy link
Member

Choose a reason for hiding this comment

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

Well, isn't this the source of the error? You're incrementing nevals_cons even on unconstrained problems.

More generally, this pull request is about bumping the NLPModels version, but it does other things. I suggest removing the other changes so we can isolate the problem (if any).

Copy link
Member Author

Choose a reason for hiding this comment

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

This is part of the update to NLPModels 0.21. This was necessary to pass unit tests from NLPModelsTest that come along the new release.

Essentially, the idea is that we need to be consistent when calling cons! (and objcons!) on unconstrained problems.
I opened a new PR that updates link to better isolate the issue with the CI on macOS #328

Copy link
Member

Choose a reason for hiding this comment

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

But what sense is there to incrementing neval_cons on an unconstrained problem?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think the discussion goes back to this: https://github.com/JuliaSmoothOptimizers/NLPModels.jl/blob/bfd4ceafec9ad6f58cbf11a4a88f2e61767ce701/src/nlp/api.jl#L60
If a user is calling cons! on an unconstrained problem, should we increment or not? Currently, we do.

@amontoison
Copy link
Member

@tmigot Is it possible to support NLPModels.jl v0.21 now?

@amontoison
Copy link
Member

superseded by #404

@amontoison amontoison closed this Aug 29, 2024
@amontoison amontoison deleted the bump-nlpmodels-0.21 branch August 29, 2024 03:08
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.

4 participants