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