createDSR | R Documentation |
Create a Demand Side Response (DSR)
createDSR( areasAndDSRParam = NULL, spinning = 2, overwrite = FALSE, opts = antaresRead::simOptions() ) getCapacityDSR(area = NULL, opts = antaresRead::simOptions()) editDSR( area = NULL, unit = NULL, nominalCapacity = NULL, marginalCost = NULL, spinning = NULL, opts = antaresRead::simOptions() )
areasAndDSRParam |
A |
spinning |
DSR spinning |
overwrite |
Overwrite the DSR plant if already exist. This will overwrite the previous area and links. |
opts |
List of simulation parameters returned by the function
|
area |
an area where to edit the DSR |
unit |
DSR unit number |
nominalCapacity |
DSR nominalCapacity |
marginalCost |
DSR marginalCost |
An updated list containing various information about the simulation.
getCapacityDSR()
returns DSR capacity (unit * nominalCapacity of virtual cluster) of the area
## Not run: library(antaresEditObject) path <- pathToYourStudy opts <- setSimulationPath(path, simulation = "input") # area, unit, nominalCapacity and marginalCost dsrData <- data.frame(area = c("a", "b"), unit = c(10,20), nominalCapacity = c(100, 120), marginalCost = c(52, 65), hour = c(3, 7)) createDSR(dsrData) createDSR(dsrData, spinning = 3, overwrite = TRUE) getAreas() ## End(Not run) ## Not run: getCapacityDSR("a") editDSR("a", unit = 50, nominalCapacity = 8000) getCapacityDSR("a") ## End(Not run) ## Not run: getCapacityDSR("a") editDSR("a", unit = 50, nominalCapacity = 8000, marginalCost = 45, hour = 9) getCapacityDSR("a") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.