SolverFactory('gams', **kwds)
ignores keyword arguments
#2757
Labels
SolverFactory('gams', **kwds)
ignores keyword arguments
#2757
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: