GAMS communicates with Excel via GDX (GAMS Data Exchange) files.
A GDX file is a file that stores the values of one or more GAMS symbols
such as sets, parameters variables and equations. GDX files can be used
to prepare data for a GAMS model, present results of a GAMS model, store
results of the same model using different parameters etc. A GDX file does
not store a model formulation or executable statements.
GDX files are binary files that are portable between different platforms.
They are written using the byte ordering native to the hardware platform
they are created on, but can be read on a platform using a different
byte ordering.
In order to write data from GAMS to Excel, the user writes a GDX file and
then writes the Excel file from the GDX file.
GAMS ----> GDX ----> Excel
This is practically seamless for the user and requires few commands.
The process to import data from an Excel file to GAMS is similar:
Excel ----> GDX ----> GAMS