
Extract energyRt domain mappings from GAMS file comments
Source:R/import_energyrt.R
en_extract_domains_from_comments.RdReads *@ domain mapping hints from the GAMS source file and applies them to variables in a model_structure object. This enables sparse indexing in Julia/JuMP export.
Examples
if (FALSE) { # \dontrun{
model <- read_gams("energyRt.gms")
model <- en_extract_domains_from_comments(model)
} # }