Write a full GAMS model file from a multimod object
Usage
# S3 method for class 'mm_model'
write_gams(
model,
file = NULL,
format_expr = TRUE,
gdx = NULL,
include_solve = FALSE,
objective = "vObjective",
...
)Arguments
- model
A
multimodmodel object- file
Output file path (optional)
- format_expr
logical; whether to format expressions with line breaks
- gdx
Name of a GDX to
$loadthe data from, as written bywrite_gams_data().NULL(default) emits declarations and equations only. NEOS decodes its input GDX toin.gdx, so that is the useful name for a NEOS job.- include_solve
Logical; append the
model/solvestatements. Needed for a runnable job, and harmless otherwise.- objective
Name of the variable to minimise.
- ...
Additional arguments passed to formatting functions
