-
Notifications
You must be signed in to change notification settings - Fork 562
New GAMS solver interface, writer, and solution loader. #3683
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
base: main
Are you sure you want to change the base?
Conversation
…ittest and coverage test
|
@AnhTran01 - Please make sure to run |
mrmundt
left a comment
There was a problem hiding this 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!!
…riting process. Added WIP unittest for the new solver interface
… and writing to gms.
… constraint). Fixed bug of load_solution that contains constraint id in addition to variable id
…arsing solver_options
jsiirola
left a comment
There was a problem hiding this 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)
pyomo/contrib/solver/solvers/gams.py
Outdated
| if config.logfile is not None: | ||
| config.logfile = os.path.abspath(config.logfile) | ||
|
|
||
| config.writer_config.put_results_format = 'gdx' if gdxcc_available else 'dat' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably only overwrite the configuration if it is still None (that way users can set / override the interface)
…lable() and version()
…are no longer valid.
|
@AnhTran01 did you see the review comments from @mrmundt? Are you going to have a chance to work on this in the near future? |
|
@blnicho I've seen the comments and they're part of my todo. I'm aiming to implement these by Nov. 30th. |
…bounds - default to large number
…fied handling log_level conditional.
…ib.solver.common.util
…rsion. Added helper function for _simple_model and _run_simple_model
…write_path_win8p3
… -INF when None is provided
…nd _run_simple_model
Co-authored-by: Miranda Mundt <[email protected]>
Co-authored-by: Miranda Mundt <[email protected]>
Fixes NA
Summary/Motivation:
This PR introduced a new GAMS solver interface that uses the
LinearRepnVisitorto enable coefficient gathering when writing out the scalar GAMS model ingmsformat.Changes proposed in this PR:
pyomo.contrib.solver.solverspyomo.repn.pluginspyomo.contrib.solver.solversLegal Acknowledgement
By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution: