Last chance! 50% off unlimited learning
Sale ends in
This function computes the surplus of clusters of interest. The surplus of a cluster is equal to its production times the marginal cost of the area it belongs to minus variable, fixed and startup costs.
surplusClusters(x, timeStep = "annual", synthesis = FALSE,
surplusLastUnit = FALSE, clusterDesc = NULL, opts = NULL)
An antaresData
object created with readAntares
. It must
contain an element clusters
and an element areas
with at
least the column MRG. PRICE
.
Desired time step for the result.
If TRUE, average surpluses are returned. Else the function returns surpluses per Monte-Carlo scenario.
Should the surplus of the last unit of a cluster be computed ? If
TRUE
, then x
must have been created with the option
thermalAvailabilities=TRUE
in order to contain the required column
"available units"
A table created with the function readClusterDesc
.
If is this parameter is set to NULL
(the default), then the function
attemps to read the needed data in the same study as x
.
opts where clusterDesc will be read if null based on data
A data.table of class antaresDataTable
with the following columns:
Area name.
Cluster name.
Time id and other time columns.
Proportional costs of production of the cluster
Formula = marginal cost * production
Fixed costs of production of the cluster
Formula = NODU * fixed cost
Start up costs of the cluster.
Average surplus per unit of the cluster.
formula = (`MRG. PRICE` * production - opCost - startupCost) / unitcount
Surplus of the last unit of the cluster.
formula = (`MRG. PRICE` * prodLastUnit - opCost / pmax(1, NODU) - startup.cost)
Surplus of all units of the cluster.
formula = `MRG. PRICE` * production - opCost - startupCost
Economic gradient of a cluster. It is equal to the surplus per unit divided by the capacity of a unit.
formula = surplusPerUnit / nominalcapacity
# NOT RUN {
# Data required by the function:
showAliases("surplusClusters")
mydata <- readAntares(select = "surplusClusters")
surplusClusters(mydata)
# Computing the surplus of the last unit of a cluster requires the additional
# column "availableUnits". To add this column, one has to use parameter
# "thermalAvailabilities = TRUE" in readAntares.
mydata <- readAntares(select = c("surplusClusters", "thermalAvailabilities"))
surplusClusters(mydata, surplusLastUnit = TRUE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab