User Tools

Site Tools


interfaces:gdx_error_message_msg_file_version_not_supported

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
interfaces:gdx_error_message_msg_file_version_not_supported [2007/09/28 11:21]
127.0.0.1 external edit
interfaces:gdx_error_message_msg_file_version_not_supported [2008/06/17 15:55]
support
Line 2: Line 2:
  
  
-Version 22.3 of GAMS introduced a new format (version 6) to store gdx files in a compressed form with some significant savings both in file size and writing time. However we were forced to break backwards compatibility. ​ We were loathe ​to do this but we couldn'​t introduce compression without doing so.  ​+Version 22.3 of GAMS introduced a new format (version 6) to store gdx files in a compressed form with some significant savings both in file size and writing time. However we were forced to break backwards compatibility. ​ We objected ​to do this but we couldn'​t introduce compression without doing so.  ​
  
 Thus prior versions used version 5 and can not read the format of version 6. If this is the case you will get an error: Thus prior versions used version 5 and can not read the format of version 6. If this is the case you will get an error:
Line 14: Line 14:
 Solution: Use the utility ''​gdxcopy''​ to convert from the newer file format to an older one. This utility is part of current distributions. ​ Solution: Use the utility ''​gdxcopy''​ to convert from the newer file format to an older one. This utility is part of current distributions. ​
  
-If you are not sure which version of GAMS has been used to create that gdx file, use the tool ''​gdxdump''​ to inspect the contents of your gdx file. The ''​File version'' ​part is what you can pay particular  +If you are not sure which version of GAMS has been used to create that gdx file, use the tool ''​gdxdump'' ​ to inspect the contents of your gdx file.  The gdxdump ​ option ​''​-v'' ​gives you the GDX version ​info for your GDX filelook at the "file format"​ line.  
-attention to. +
-  * Version 5: * ''​File ​version ​  ​_GAMS_GDX_235_2005-11-15''​ +
-  * Version 6: * ''​File version ​  : _GAMS_GDX_237_2007-01-09''​ +
  
  
 +For example, I can print version info from a GDX file generated by 22.7, convert it, and verify the conversion like this:
 +<​code>​
 +C:​\models\tmp>​C:​\gams_64\22.7.2\gdxdump v227.gdx -v
 +*  GDX dump of v227.gdx
 +*  Library in use : C:​\gams_64\22.7.2
 +*  Library version: GDX Library ​     May  1, 2008 22.7.2 WEX 4701.4799 WEI x86_64/MS Windows
 +*  File version ​  : GDX Library ​     May  1, 2008 22.7.2 WEX 4701.4799 WEI x86_64/MS Windows
 +*  Producer ​      : GAMS Base Module May  1, 2008 22.7.2 WEX 4648.4799 WEI x86_64/MS Windows
 +*  File format ​   :    7
 +*  Compression ​   :    0
 +*  Symbols ​       :   12
 +*  Unique Elements: ​   5
  
 +C:​\models\tmp>​C:​\gams_64\22.7.2\gdxcopy -V6U v227.gdx xxx
 +Writing files to: .\.\xxx
 +Converting file: .\v227.gdx
  
 +C:​\models\tmp>​C:​\gams_64\22.7.2\gdxdump xxx/​v227.gdx -v
 +*  GDX dump of xxx/​v227.gdx
 +*  Library in use : C:​\gams_64\22.7.2
 +*  Library version: GDX Library ​     May  1, 2008 22.7.2 WEX 4701.4799 WEI x86_64/MS Windows
 +*  File version ​  : _GAMS_GDX_237_2007-01-09
 +*  Producer ​      : GAMS Base Module May  1, 2008 22.7.2 WEX 4648.4799 WEI x86_64/MS Windows
 +*  File format ​   :    6
 +*  Compression ​   :    0
 +*  Symbols ​       :   12
 +*  Unique Elements: ​   5
 +</​code>​