View source: R/addUpwardMargin.R
addUpwardMargin | R Documentation |
This function computes isolated and interconnected upward margins of areas and add them to an antaresData object.
addUpwardMargin(x)
x |
An object of class |
For a given area and time step, isolated upward margin is the difference between the available production capacity plus the fatal productions and the load. More formally it is equal to:
isolatedUpwardMargin = (`AVL DTG` + generatingMaxPower + storageCapacity) +
(`H. ROR` + WIND + SOLAR + `MISC. NDG`) - LOAD
NB: in Antares v6 (and earlier versions) generatingMaxPower
is replaced
by hstorPMaxAvg
.
The variable storageCapacity
is automatically created when pumped
storage areas are removed with function
removeVirtualAreas
. If there is not any such area,
storageCapacity
is assumed to be equal to 0.
Interconnected upward margin is the isolated upward margin plus the imports and minus the exports:
interconnectedUpwardMargin = isolatedUpwardMargin - BALANCE + `ROW BAL.`
The function modifies its input by adding to it two new columns
isolatedUpwardMargin
and interconnectedUpwardMargin
. For
convenience it invisibly returns x
.
## Not run:
# Data required by the function
showAliases("upwardMargin")
mydata <- readAntares(select = "upwardMargin")
mydata <- removeVirtualAreas(mydata, getAreas(c("pump", "stor")))
addUpwardMargin(mydata)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.