Skip to content

Commit

Permalink
Add buffer to NewMaxDemandMonthsInTier heuristic for lookback
Browse files Browse the repository at this point in the history
If there is an especially peaky load in some months, the previous NewMaxDemandMonthsInTier was too restrictive
  • Loading branch information
Bill-Becker committed Nov 2, 2022
1 parent 673a853 commit 6f52026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions julia_src/reopt_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,14 @@ function add_bigM_adjustments(m, p)
for mth in p.Month
if n > 1
m[:NewMaxDemandMonthsInTier][mth,n] = minimum([p.MaxDemandMonthsInTier[n],
added_power + 2*maximum([p.ElecLoad[ts] + p.CoolingLoad[ts] +
added_power + 2*maximum([100*p.ElecLoad[ts] + p.CoolingLoad[ts] +
add_ghp_heating_elec * p.HeatingLoad[ts]
for ts in p.TimeStepRatchetsMonth[mth]]) -
sum(m[:NewMaxDemandMonthsInTier][mth,np] for np in 1:(n-1))]
)
else
m[:NewMaxDemandMonthsInTier][mth,n] = minimum([p.MaxDemandMonthsInTier[n],
added_power + 2*maximum([p.ElecLoad[ts] + p.CoolingLoad[ts] +
added_power + 2*maximum([100*p.ElecLoad[ts] + p.CoolingLoad[ts] +
add_ghp_heating_elec * p.HeatingLoad[ts]
for ts in p.TimeStepRatchetsMonth[mth]])]
)
Expand Down

0 comments on commit 6f52026

Please sign in to comment.