Get one solved variable from a scenario
See also
Other variable:
class-variable
Examples
if (FALSE) { # \dontrun{
open_project(tempdir())
ek <- topia$modules$electricity$R3
mod <- newModel("TOPIA", data = ek$repo,
calendar = topia$modules$calendars$s4_h24,
region = ek$regions,
horizon = topia$modules$horizons$base,
discount = 0.05)
mod <- setGeoscale(mod, ek$geoscale)
scen <- solve_model(mod, name = "BASE", solver = solver_options$glpk)
# the solved values
get_variable(scen, "vTechCap")
# the `variable` object itself, with its sets and units
get_variable(scen, "vTechCap", data = FALSE)
} # }
