run: Run a GAMS script for testing

Description Usage Arguments Details Value

View source: R/run.R

Description

Run a GAMS script and captures output files for testing. The logging output, listing file, reference file, trace file, and a GDX dump of all symbols are redirected to files located in re_dir with names LOG_FILE_NAME, LST_FILE_NAME, REF_FILE_NAME, TRACE_FILE_NAME, and GDX_FILE_NAME respectively. The default compile-and-execute action is used.

Usage

1
run(script, re_dir, params = NULL)

Arguments

script

Path of GAMS script to run.

re_dir

Redirection directory for holding GAMS output files.

params

Character vector of GAMS parameters.

Details

Optionally, GAMS parameters can be provided. These add to or override the GAMS default parameters and the parameters that run() sets for testing purposes. They can be specified in "<keyword>=<value>" format.

Value

GAMS status/error/return code.


iiasa/testGAMS documentation built on Sept. 14, 2021, 1:04 p.m.