read: Read solution

read_solutionR Documentation

Read solution

Description

The function and method read outputs of solved model/scenario and return the scenario object populated with variables data.

Usage

read_solution(obj, ...)

## S4 method for signature 'scenario'
read(obj, ...)

Arguments

obj

scenario object

...

optional tmp.dir (if missing in the scenario object or to replace the saved path)

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 read

Examples

## Not run: 
scen <- read(scen)

## End(Not run)

olugovoy/energyRt documentation built on Nov. 21, 2024, 2:24 a.m.