Skip to content

Comments

New GAMS solver interface, writer, and solution loader. #3683

Merged
blnicho merged 137 commits intoPyomo:mainfrom
AnhTran01:GAMS_new_solver_interface
Feb 20, 2026
Merged

New GAMS solver interface, writer, and solution loader. #3683
blnicho merged 137 commits intoPyomo:mainfrom
AnhTran01:GAMS_new_solver_interface

Conversation

@AnhTran01
Copy link
Contributor

Fixes NA

Summary/Motivation:

This PR introduced a new GAMS solver interface that uses the LinearRepnVisitor to enable coefficient gathering when writing out the scalar GAMS model in gms format.

Changes proposed in this PR:

  • New GAMS solver interface in pyomo.contrib.solver.solvers
  • New GAMS writer in pyomo.repn.plugins
  • New GAMS solution loader in pyomo.contrib.solver.solvers

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.

@AnhTran01
Copy link
Contributor Author

@boxblox
@abhosekar

@mrmundt
Copy link
Contributor

mrmundt commented Aug 7, 2025

@AnhTran01 - Please make sure to run black on your changes!

Copy link
Contributor

@mrmundt mrmundt left a comment

Choose a reason for hiding this comment

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

Immediate piece of feedback, recognizing that I have not thoroughly looked over anything - there are no tests anywhere, and there absolutely will need to be some.

Thanks for this, though, I am so excited!!

Copy link
Member

@jsiirola jsiirola left a comment

Choose a reason for hiding this comment

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

(Some initial comments, mostly on configuration)

@blnicho blnicho merged commit 3c400c1 into Pyomo:main Feb 20, 2026
121 of 125 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer Approved to Done in Pyomo 6.10 Feb 20, 2026
@boxblox
Copy link
Contributor

boxblox commented Feb 20, 2026

😄

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
Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants