Can someone recommend some related tutorials? Thanks a lot.
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