The idea is here that a GAMS user can run the GAMS script, without knowing Python or
having Python installed. (GAMS comes with its own somewhat barebones Python, which is used inside the GAMS script). On
the other hand, the Python user will not need to have GAMS installed to read the
generated data files. This is opposed to Python packages and tools that can
interact with GDX files directly. You can see a few in the PyPI directory [1]. Those will require both a GAMS system and a Python environment.
I am a full-time consultant and provide services related to the design, implementation and deployment of mathematical programming, optimization and data-science applications. I also teach courses and workshops. Usually I cannot blog about projects I am doing, but there are many technical notes I'd like to share. Not in the least so I have an easy way to search and find them again myself. You can reach me at erwin@amsterdamoptimization.com.
Showing posts with label export data. Show all posts
Showing posts with label export data. Show all posts
Tuesday, January 24, 2023
Export GAMS GDX file to different Python formats (CSV,Feather,Pickle)
A GAMS GDX file is a binary file with a number of GAMS symbols with their data.
When collaborating with colleagues that work with Python, it may be useful to
convert a GAMS GDX with relevant data to data files that Python can consume.
Subscribe to:
Posts (Atom)