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: 19
Joined: 3 weeks ago

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

Post by wutuhan » 2 weeks ago

Can someone recommend some related tutorials? Thanks a lot.

Clemens
Posts: 21
Joined: 1 year ago

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

Post by Clemens » 1 week ago

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