Skip to content

Commit

Permalink
Update reopt_model.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
sericson0 committed May 2, 2022
1 parent 9ebee30 commit 9bfb30a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion julia_src/reopt_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,6 @@ function add_resource_adequacy(m, p)
(sum(m[:dvDischargeFromStorage][b,ts] for b in p.ElecStorage) - m[:dvGridToStorage][ts]) *
p.RaPrice[ts] for ts in p.TimeStep
])
#Only mark reductions for hours with capacity prices
if p.UseFlexLoadsModel | p.UseWaterHeaterModel
m[:TotalRaValue] += sum([
p.RaFlexloadBaseline[ts] * p.RaPrice[ts] for ts in p.TimeStep
Expand Down

0 comments on commit 9bfb30a

Please sign in to comment.