About this task
The Sliding Window algorithm uses the sequence of calculations described in this section to determine the amount of energy to shed for the current minute to meet the user specified target. These values are used:
et = forecast error
elimit = user specified Error Limit
Pt = measured demand at time t
St = amount shed at time t
Ut-1 = total uncontrolled demand last minute
= smoothed absolute error
= smoothed absolute error last minute
MAXt = maximum smoothed absolute error
K = exponential smoothing constant (0.01)
n = prediction time in minutes; one minute shorter than interval length
z = selected sensitivity factor (high: 3.30; medium: 2.58; low: 1.96)
T = interval length
Tsample = time between two samples of the current metered power; fixed at one minute
Plimit = user specified demand limit
Alimit = active demand limit (DL target this minute)
DL to Shed = how much energy to shed this minute to meet the demand target
The necessary amount of power to shed is calculated as follows: