From 4313f4aa6a0d874c102be3c49cf441e09b5308e9 Mon Sep 17 00:00:00 2001 From: dcutler Date: Tue, 9 Feb 2021 12:58:23 -0700 Subject: [PATCH] reinserting an end for function --- reo/src/reopt.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/reo/src/reopt.jl b/reo/src/reopt.jl index 25fe984b1..51307e855 100644 --- a/reo/src/reopt.jl +++ b/reo/src/reopt.jl @@ -919,6 +919,7 @@ end function calculate_average_daily_reduction(m, p, month, event_index) #Take average across event hours return sum([m[:dvHourlyReductionRA][month, event_index, h] for h in 0:p.RaMooHours-1])/p.RaMooHours +end function add_coincident_peak_charge_constraints(m, p) ## Constraint (14a): in each coincident peak period, charged CP demand is the max of demand in all CP timesteps