GAMS Memory Check
last modified January 2015
Other GAMS interfaces from/to: ShadeMap
To identify a ranked list of GAMS items
(parameters, variables, equations, sets) from highest
to lowest memory occupation
This information can be used to check whether parameters, equations,
variables are conditioned correctly.
It can also help in deciding
whether to kill GAMS items.
In the near future, I will automate the usage of this and make
the output more user-friendly.
insert "option dmpsym;" in a location
within a GAMS program where you want to create a memory ranking
run the associated GAMS program
copy this file (0_memory.gms
) to your GAMS project and open it in
enter/replace the correct
name in the following statement "$setglobal list_file_name <file
name stem>", where file name stem refers to the name of the file (without
extension) which was run in 2.
Open 0_memory.lst and search for the
I thank Martha Bolivar and Mutisungilire Kachulu for providing
programs that led to the discovery of bugs.
bug that occured when the program was used on a gams file that did not contain
at least one instance of all four gams types (sets, parameters,
2/6/2015: fixed bug that occured when the size of a GAMS
symbol was so large that in the output of dmpsym the columns for DIM-OK
and LENGTH did not leave a space inbetween.