Page 1 of 1

metadata - keeping track of parameter descriptions

Posted: Tue Mar 06, 2018 10:56 am
by andym
In GAMS, it's very conveniently possible to add metadata in the form of a message about a parameter, eg.

Code: Select all

parameter variableC variable operating costs;
Is there a way to access this from the Python api, or even when dumping out to SQL is there a way of spitting all parameter names into a table with their long form descriptions?

Many thanks

Re: metadata - keeping track of parameter descriptions

Posted: Tue Mar 06, 2018 2:47 pm
by dirkse
Andy,

This metadata is called the explanatory text, or just text. It is part of the GamsSymbol class, accessible as a property called text.

https://www.gams.com/latest/docs/apis/p ... ymbol.html

-Steve

Re: metadata - keeping track of parameter descriptions

Posted: Wed Mar 07, 2018 3:09 pm
by andym
brilliant thanks