Add reserve shortfall penalty

This commit is contained in:
Aleksandr Kazachkov
2021-07-23 11:23:16 -05:00
committed by Alinson S. Xavier
parent 7a1b6f0f55
commit 000215e991
10 changed files with 56 additions and 21 deletions

View File

@@ -98,6 +98,10 @@ function _from_json(json; repair = true)
json["Parameters"]["Power balance penalty (\$/MW)"],
default = [1000.0 for t in 1:T],
)
shortfall_penalty = timeseries(
json["Parameters"]["Reserve shortfall penalty (\$/MW)"],
default = [-1.0 for t in 1:T],
)
# Read buses
for (bus_name, dict) in json["Buses"]
@@ -264,6 +268,7 @@ function _from_json(json; repair = true)
instance = UnitCommitmentInstance(
T,
power_balance_penalty,
shortfall_penalty,
units,
buses,
lines,