Skip to contents

Recursively splices the contents of every $include "file" / $batinclude directive in main (resolved against base_dir) into a single GAMS source string. Use it to bundle a text-mode energyRt GAMS scenario (model plus the $included text data files) for submission to NEOS with no input GDX and no local GAMS install.

Usage

neos_gams_inline(main, base_dir = dirname(main), flatten = TRUE)

Arguments

main

path to the top GAMS file (e.g. energyRt.gms).

base_dir

directory includes are resolved against (default: dir of main).

flatten

logical; strip the input/ and output/ path prefixes so the job runs in NEOS's flat workspace (default TRUE).

Value

a single character string: the fully inlined GAMS source.