Skip to content

Commit 3c400c1

Browse files
authored
Merge pull request #3683 from AnhTran01/GAMS_new_solver_interface
New GAMS solver interface, writer, and solution loader.
2 parents af16d2a + d41d895 commit 3c400c1

File tree

9 files changed

+2118
-0
lines changed

9 files changed

+2118
-0
lines changed

doc/OnlineDocs/explanation/experimental/solvers.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ with existing interfaces).
5757
* - KNITRO
5858
- ``knitro_direct``
5959
- ``knitro_direct``
60+
* - GAMS
61+
- ``gams``
62+
- ``gams_v2``
6063

6164
Using the new interfaces through the legacy interface
6265
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

pyomo/contrib/solver/plugins.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from .solvers.gurobi.gurobi_persistent import GurobiPersistent
1515
from .solvers.gurobi.gurobi_direct_minlp import GurobiDirectMINLP
1616
from .solvers.highs import Highs
17+
from .solvers.gams import GAMS
1718
from .solvers.knitro.direct import KnitroDirectSolver
1819

1920

@@ -39,6 +40,9 @@ def load():
3940
SolverFactory.register(
4041
name="highs", legacy_name="highs", doc="Persistent interface to HiGHS"
4142
)(Highs)
43+
SolverFactory.register(name='gams', legacy_name='gams_v2', doc='Interface to GAMS')(
44+
GAMS
45+
)
4246
SolverFactory.register(
4347
name="knitro_direct",
4448
legacy_name="knitro_direct",

0 commit comments

Comments
 (0)