-
Notifications
You must be signed in to change notification settings - Fork 526
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
SolverFactory('gams', **kwds)
ignores keyword arguments
#2757
Comments
I did not know Could you please fix the documentation as well? |
The problem is that:
|
Note that This behavior of default options for |
@alexchandel we have been working to redesign/refactor our core solver API for some time (see #1030) and we have had design discussions internally that noted many of the same issues with the current interfaces that you have (especially around standardization). Our development efforts are constrained and prioritized based on our currently funded projects and unfortunately this solver refactor hasn't been a top priority for any of them. We appreciate your feedback and suggestions and if you have additional comments or thoughts about what you would like to see in a standardized solver API please add them to the issue I linked above. |
Summary
When attempting to construct an instance of an interface to a GAMS solver with optional keyword arguments (such as 'executable' and 'options') passed, the keyword arguments appear to be ignored. This behavior differs from that of other solver types, such as
SolverFactory("baron")
.Steps to reproduce the issue
For a solver type which inherits from
opt.base.solvers.OptSolver
, such as the BARON shell interface, we can construct an instance and initialize options in one line like this:However, attempting to initialize GAMS with a custom subsolver setting through the 'options' keyword argument to
GAMSSolver
does not yield a similar outcome:Note that this doesn't affect updating options later:
Also, no problem attempting to initialize with a custom subsolver like this:
Information on your system
Pyomo version: 6.5.1dev0
Python version: 3.9.13
Operating system: Ubuntu 20.04
How Pyomo was installed (PyPI, conda, source): source
Solver (if applicable): GAMS
Additional information
The text was updated successfully, but these errors were encountered: