solve: Functions and methods to solve model and scenario objects

solve_modelR Documentation

Functions and methods to solve model and scenario objects

Description

The function interpolates model, writes the script in a directory, runs the external software to solve the model, reads the solution results, and returns a scenario object with the solution.

Usage

solve_model(obj, name = NULL, ...)

## S4 method for signature 'model,character'
solve(a, b, ...)

solve_scenario(obj, name = obj@name, ...)

## S4 method for signature 'scenario,character'
solve(a, b, ...)

Arguments

obj

model or scenario object

name

character name of scenario to return

...
solver

a character or list with solver settings

tmp.dir

character path to temporary directory

tmp.del

logical delete temporary directory after the run

Value

When the first argument is a model object, the function

See Also

read_solution()


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