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 problems chain and polygon #5

Merged
merged 4 commits into from
Feb 28, 2024
Merged

Add problems chain and polygon #5

merged 4 commits into from
Feb 28, 2024

Conversation

tmigot
Copy link
Contributor

@tmigot tmigot commented Feb 27, 2024

@frapac I kept the existing docstring, but we should probably unify with the other problems, what do you think?

Copy link
Member

@frapac frapac left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution @tmigot !
I only have a few suggestions, summarizing to:

  • passing explicitly the arguments to the functions
  • using the newest NLP backend in JuMP (ie replacing @NLobjective by @objective and equivalently for @NLconstraint). This is required to support ExaModels.

The docstrings look good to me. Maybe add a line to specify that these two models are taken from OptimizationProblems.jl?

src/chain.jl Outdated Show resolved Hide resolved
src/chain.jl Outdated Show resolved Hide resolved
src/chain.jl Outdated Show resolved Hide resolved
src/chain.jl Outdated Show resolved Hide resolved
src/polygon.jl Outdated Show resolved Hide resolved
src/polygon.jl Outdated Show resolved Hide resolved
src/polygon.jl Outdated Show resolved Hide resolved
@tmigot tmigot requested a review from frapac February 27, 2024 21:37
Copy link
Member

@frapac frapac left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you!

@tmigot
Copy link
Contributor Author

tmigot commented Feb 28, 2024

@frapac I added the includes in the main file :). As mentioned in the report, polygon has several local minima so it is hard to test the objective value there.

@frapac frapac merged commit ef4caf8 into MadNLP:main Feb 28, 2024
1 check 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.

2 participants