Skip to content

Expanded LegacySolverWrapper fixes#3700

Merged
mrmundt merged 11 commits intoPyomo:mainfrom
jsiirola:legacy-wrapper-fixes
Aug 27, 2025
Merged

Expanded LegacySolverWrapper fixes#3700
mrmundt merged 11 commits intoPyomo:mainfrom
jsiirola:legacy-wrapper-fixes

Conversation

@jsiirola
Copy link
Copy Markdown
Member

Fixes # .

Summary/Motivation:

While working with @AnhTran01, we realized that the LegacySolverWrapper in pyomo.contrib.solver was not compatible with the old solver regression tests in pyomo.solvers. This PR expands the functionality so that new solvers wrapped in the LegacySolverWrapper can be run through that test suite.

Changes proposed in this PR:

  • Make suffix_generator compatible with kernel models
  • Include _capabilities, warm_start_capable, and default_variable_value in the Legacy API
  • Expose an options ConfigDict that is compatible with the Bunch/Options API
  • Modify timing_info output so that it doesn't preclude pickling the legacy results object

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.

@jsiirola jsiirola requested a review from mrmundt August 13, 2025 13:08
@github-project-automation github-project-automation bot moved this from Todo to Reviewer Approved in Pyomo 6.9.4 Release Aug 26, 2025
@mrmundt mrmundt force-pushed the legacy-wrapper-fixes branch from efa5c1e to 9aaa84b Compare August 26, 2025 19:08
@mrmundt mrmundt merged commit 3e12d96 into Pyomo:main Aug 27, 2025
94 of 95 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer Approved to Done in Pyomo 6.9.4 Release Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

3 participants