Thursday, March 12, 2009

GAMS: how to get a list of parameters in a GDX file

> How can I get a list of the parameters in the farm.gdx? just the parameters, only the names

$call gdxdump farm.gdx symbols noheader | awk "{ if ($4==\"Par\") print $2 }" > farm_parameters.txt 

This is using a Unix tool awk, but this also works under windows as GAMS provides a copy of a number of such tools.

No comments:

Post a Comment