metadata - keeping track of parameter descriptions

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

metadata - keeping track of parameter descriptions

Post by andym » 2 months ago

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: 21
Joined: 1 year ago
Location: Fairfax, VA

Re: metadata - keeping track of parameter descriptions

Post by dirkse » 2 months ago

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: 2 months ago

Re: metadata - keeping track of parameter descriptions

Post by andym » 2 months ago

brilliant thanks

Post Reply