Implementation field#416
Open
BenjaminPINEAU wants to merge 21 commits into
Open
Conversation
tmigot
requested changes
May 8, 2026
Member
tmigot
left a comment
There was a problem hiding this comment.
Thanks @BenjaminPINEAU for the PR. A few comments to start with.
| JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819" | ||
| JuMP = "4076af6c-e467-56ae-b986-b466b2749572" | ||
| LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
| NLPModels = "a4795742-8479-5a88-8948-cc11e1c8c1a6" |
Member
There was a problem hiding this comment.
Please do not change the Project.toml in your PR
Member
|
@BenjaminPINEAU We could add a test in the unit tests that checks that:
|
Author
|
@tmigot I apologize for the DS_Store files, they aren't displaying in my code editor and I missed them in the PR. |
Member
|
Hey @BenjaminPINEAU ! Do you need help with this? |
Author
|
hey @tmigot! To be honest I haven't had time to work on it lately, but it's still on my to-do list. Sorry about that! |
Member
|
No worries, I was planning a few fixes around meta as well, feel free to ask if you encounter any issue. |
…Optimizers#410) * Improve contributing.md: clarify requirements for adding new problems, including constraints, compatibility, meta fields, allocation, and scalability * Clarify meta field completeness and validation requirements in meta.md, as suggested by validation analysis PDF * Add note to benchmark.md about compatibility and meta field validation requirements for benchmarking, as suggested by validation analysis PDF * Update meta.md for improved clarity on meta fields Clarified requirements for meta field completeness and validation. * Apply suggestions from code review Co-authored-by: Tangi Migot <tangi.migot@gmail.com> * addressing review comments * Update contributing.md * Fix punctuation and formatting in contributing.md Corrected punctuation and formatting in the contributing guidelines. * Apply suggestions from code review Co-authored-by: Tangi Migot <tangi.migot@gmail.com> * Enhance contributing.md with NLS problem guidelines Added guidelines for handling Nonlinear Least Squares (NLS) problems in contributing documentation. * Apply suggestions from code review Co-authored-by: Tangi Migot <tangi.migot@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * addressing review comments * Apply suggestions from code review Co-authored-by: Tangi Migot <tangi.migot@gmail.com> * addressing review comments * Apply suggestions from code review Co-authored-by: Tangi Migot <tangi.migot@gmail.com> * Update contributing.md * Apply suggestions from code review Co-authored-by: Tangi Migot <tangi.migot@gmail.com> --------- Co-authored-by: Tangi Migot <tangi.migot@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add CLAUDE.md * Fix CLAUDE.md issues raised in PR review - Fix elementwise boolean operator (.&& → .&) in meta filter example - Soften three-file pattern to guideline, noting legacy exceptions - Generalize scalable n-adjustment guidance (not just max(2,n)) - Correct generate_meta() location to test/utils.jl Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
* Fix JuliaSmoothOptimizers#354: Add warnings when dimension is modified on NZF1, spmsrtls, and bearing - NZF1: Warn when n is not a multiple of 13 (adjusted to nearest multiple) - spmsrtls: Warn when n is adjusted due to minimum dimension requirement (n >= 100) - bearing: Warn when grid dimensions are adjusted to ensure nx > 0 and ny > 0 These warnings follow the pattern already established in dixmaan* problems. * Update src/ADNLPProblems/bearing.jl Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * n%13 removal * Add @adjust_nvar_warn macro and update all dimension adjustment warnings - Created @adjust_nvar_warn macro in ADNLPProblems module to standardize dimension adjustment warnings across all problems - Updated warning messages to consistently show both original and adjusted values following pattern: 'problem_name: number of variables adjusted from {n_orig} to {n}' - Applied macro to all problems with dimension adjustments: - NZF1 (multiple of 13) - spmsrtls (adjusted formula) - chainwoo (multiple of 4, both :nlp and :nls variants) - woods (multiple of 4) - srosenbr (multiple of 2) - catenary (multiple of 3, minimum 6) - clplatea, clplateb, clplatec (perfect squares) - fminsrf2 (minimum 4, then perfect square) - powellsg (multiple of 4, both :nlp and :nls variants) - watson (clamped between 2 and 31, both :nlp and :nls variants) Addresses issue JuliaSmoothOptimizers#354 * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update powellsg :nls variant to use @adjust_nvar_warn macro Ensures consistent warning messages between :nlp and :nls variants, showing both original and adjusted dimension values. * PureJuMP implementations * Update src/PureJuMP/PureJuMP.jl Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Add regression tests for dimension-adjustment warnings * unifying macros for defining problems and dimensions, and added warnings for dimension mismatches in the defined problems. * adding copilot suggestions to fix dimension warnings in ADNLPProblems and PureJuMP * Update OptimizationProblems.jl * final changes * Update src/OptimizationProblems.jl Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * addressing review comments * addressing review comments * format * addressing review comments * further macro additions * addressing review comments * missing macro * fixing failing checks * reverting elec.jl to the version before the dimension warnings were added. The changes in this commit are to fix the dimension warnings that were introduced in the previous commit. The changes include changing the bounds on the constraints, building a feasible x0, and changing the number of variables and constraints in the model. The changes are made in both the ADNLPProblems and PureJuMP versions of elec.jl. * passing elec.jl macro * Update elec.jl * PureJuMP changes * Update catenary.jl * Apply suggestions from code review Co-authored-by: Tangi Migot <tangi.migot@gmail.com> * ADNLProblems changes * Update powellsg.jl * updating fminsrf2.jl to remove dimension warnings --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Tangi Migot <tangi.migot@gmail.com>
* Move doc from comments to meta (aircrfta) * up * do not move license * add new fields in Meta * Move comments to META * fix * add refs * move things around hs * add doc * Add a bib creator * fix * fix conflict * allow multiple URL * fill-in meta * up some refs * clean COPS test problems * clean HS2 * Fix split :origin and :origin_notes * Add missing bibtex and links * Add lib ref * small fixes * 59 files with http://dx.doi.org/ → https://doi.org/ * Update SKILL * uniform bib
Co-authored-by: tmigot <tmigot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new field
implementation(see #415) that takejumpif the problem is defined in PureJuMP,adnlpmodelsif the problem is defined in ADNLPProblems, orbothif both.