The function and method read outputs of solved model/scenario and return the scenario object populated with variables data.
Usage
read_solution(obj, run = NULL, ...)
# S4 method for class 'scenario'
read(obj, run = NULL, ...)Arguments
- obj
scenario object
- run
character, optional run to read:
"<solve>"for a base-problem run or"<variant>/<solve>"— seescenario_runs(). The scenario's active run switches to it. DefaultNULLreads the active run (or, for a freshly loaded scenario, the manifest'sdefault:run).- ...
optional
solver.dir(an external solver directory, replacing the run resolution;tmp.diris the deprecated alias)
Value
The function returns the scenario object with populated modOut slot from the solved model directory.
See also
solve() to run the script, solve the scenario. write_sc() to write model inputs.
