readDeclarations {gms} | R Documentation |
Reads all declarations given in a GAMS code and returns them.
readDeclarations(
file,
unlist = TRUE,
types = c("scalar", "(positive |)variable", "parameter", "table", "equation", "set")
)
file |
A gams file or a vector containing GAMS code. |
unlist |
A logical indicating whether the output should be returned as a list separated by object type or a matrix. |
types |
of declarations to be read. |
Either a list of declared objects or a matrix containing object name, the sets the object depends on and the description.
Jan Philipp Dietrich