Skip to content

Remove loud deprecation warning in contrib.solver#3555

Merged
mrmundt merged 7 commits intoPyomo:mainfrom
mrmundt:remove-legacy-warning
Apr 9, 2025
Merged

Remove loud deprecation warning in contrib.solver#3555
mrmundt merged 7 commits intoPyomo:mainfrom
mrmundt:remove-legacy-warning

Conversation

@mrmundt
Copy link
Copy Markdown
Contributor

@mrmundt mrmundt commented Apr 9, 2025

Fixes NA

Summary/Motivation:

We put in a loud deprecation warning for the legacy results map that is more obnoxious than helpful. This moves the information to RTD instead. (Also this "upgrades" solution_loader to a developer option because it's generally not helpful to show by default on the results object)

Changes proposed in this PR:

  • Remove loud deprecation warning
  • Put info in RTD
  • "Upgrade" solution_loader to DEVELOPER_OPTION

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@mrmundt mrmundt changed the title Remove loud deprecation warning in contrib.solvers Remove loud deprecation warning in contrib.solver Apr 9, 2025
Comment on lines +316 to +317
The new interface has condensed ``LegacySolverStatus``,
``LegacyTerminationCondition``, and ``LegacySolutionStatus`` into
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These should not have "Legacy" - that was an artifact of how you were importing those objects into the module. I think it should be a reference to teh old classes (e.g., like :py:class:`pyomo.opt.results.solution.SolutionStatus` )

@mrmundt mrmundt requested a review from jsiirola April 9, 2025 16:12
@mrmundt mrmundt merged commit a3a0f7d into Pyomo:main Apr 9, 2025
35 checks passed
@mrmundt mrmundt deleted the remove-legacy-warning branch April 9, 2025 20:18
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