Is there any tutorial about the connection between python and gams?

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
wutuhan
User
User
Posts: 20
Joined: 6 years ago

Is there any tutorial about the connection between python and gams?

Post by wutuhan »

Can someone recommend some related tutorials? Thanks a lot.
User avatar
Clemens
Posts: 57
Joined: 7 years ago

Re: Is there any tutorial about the connection between python and gams?

Post by Clemens »

Hi,

GAMS offers basically two technologies for combining Python and GAMS. The GAMS Object-oriented Python API offers a Python interface for interacting with GAMS. For further information, please have a look at the documentation which also provides a tutorial: https://www.gams.com/latest/docs/API_PY_OVERVIEW.html

The GAMS Embedded Code facility can be used in order to embed Python code directly into GAMS code. You might consult the documentation on this topic as well. It provides the technical and conceptional background of the feature as well as examples on how to use it: https://www.gams.com/latest/docs/UG_EmbeddedCode.html

Hope that helps,
Clemens
Post Reply