Skip to contents

Write scenario object as a Python, Julia, GAMS, or MathProg script with data files to a directory

Usage

write_script(scen, tmp.dir = NULL, solver = NULL, ...)

write_sc(x, tmp.dir = NULL, solver = NULL, ...)

write.sc(x, tmp.dir = NULL, solver = NULL, ...)

Arguments

scen

scenario object, must be interpolated

tmp.dir

character, path

solver

list of character with solver specification.

...

additional solver parameters

See also

[solve()] to run the script, solve the scenario. [read_solution] to read model solution.