Gdxcopy Making GDX files compatable

Top  Previous  Next

GDX files can be incompatible between newer and GAMS versions prior to 22.3 due to compression among other changes. A current GAMS system can read all older GDX file formats. Older file formats may be written using gdxconvert.

 

The GDXCOPY utility provides a mechanism to convert GDX files to a format that older GAMS systems can read. It is used by employing the syntax

 

 gdxcopy outputoption inputfile outputfiledir

 

where the items ate

 

Outputoption        Identifies the type of output file to be created

 

Option

Target format

-V5

Version 5

-V6U

Version 6 uncompressed

-V6C

Version 6 compressed

-V7U

Version 7 uncompressed

-V7C

Version 7 compressed

 

inputfile                Name of the input file to be converted .  This file must have an .gdx file extension

 

outputfiledir        Output directory

 

Note: Version 7 formatted files were introduced with version 22.6 of GAMS; version 6 formatted files were introduced with version 22.3 of GAMS. Prior versions used version 5.

Some features introduced in version 7 of the gdx file format cannot be represented in older formats.

Feature

Action taken

Dimension > 10

Symbol is ignored

Identifier longer than 31 characters

Truncated to 31 characters

Unique element longer than 31 characters

Truncated to 31 characters

Domain of a symbol

Domain is ignored

Aliased symbol

Symbol is entered as a set

Additional text for symbol

Additional text is ignored

Notes:

·

The Macintosh Intel-based system (DII) which was introduced with GAMS 22.6 does not support gdx conversion into formats version 6 and version 5.

·

The Solaris 10 or higher Intel-based system (SIG) which was introduced with GAMS 22.5 does not support gdx conversion into formats version 5.

·

Solaris 9 or higher on Sun Sparc64 (SOX) which was introduced in GAMS 22.6 does not support gdx conversion into formats version 6 and version 5.