Page 1 of 1

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

Posted: Tue May 08, 2018 4:44 am
by wutuhan
Can someone recommend some related tutorials? Thanks a lot.

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

Posted: Thu May 17, 2018 2:24 pm
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