
Write scenario object as a Python, Julia, GAMS, or MathProg script with data files to a directory
Source:R/write.R
write.RdWrite scenario object as a Python, Julia, GAMS, or MathProg script with data files to a directory
Usage
write_script(scen, solver.dir = NULL, solver = NULL, ...)
write_sc(x, solver.dir = NULL, solver = NULL, ...)Arguments
- scen
scenario object, must be interpolated
- solver.dir
character, an external directory to write into; default (
NULL) writes into the run'ssolver/directory under the scenario (tmp.diris the deprecated alias).- solver
list of character with solver specification.
- ...
additional solver parameters
- x
scenario object, as
scen(thewrite_sc()spelling).
See also
solve() to run the script, solve the scenario. read_solution to read model solution.