solve_model | R Documentation |
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.
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, ...)
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 |
When the first argument is a model object, the function
read_solution()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.