metadata - keeping track of parameter descriptions

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
andym
User
User
Posts: 2
Joined: 6 years ago

metadata - keeping track of parameter descriptions

Post 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
User avatar
dirkse
Moderator
Moderator
Posts: 214
Joined: 7 years ago
Location: Fairfax, VA

Re: metadata - keeping track of parameter descriptions

Post 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
andym
User
User
Posts: 2
Joined: 6 years ago

Re: metadata - keeping track of parameter descriptions

Post by andym »

brilliant thanks
Post Reply