newModel | R Documentation |
Create new model object
newModel(name = "", desc = "", ...)
## S4 method for signature 'model'
setHorizon(obj, ...)
## S4 method for signature 'model'
getHorizon(obj)
name |
name of the model |
... |
configuration parameters (see class config) and model elements (classes commodity, technology, etc.) |
model object containing model elements (@data
) and configuration (@config
)
## Not run:
mod <- newModel(
name = "MyModel",
desc = "My first model",
data = model_repository,
discount = 0.05,
horizon = newHorizon(period = 2020:2050,
intervals = rep(5, 10)),
calendar = calendars$d365h24
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.