agc.jl is currently not included, dead code, but there's a direction mixup somewhere. Currently, we're setting R_up_emergency and R_down_emergency to the same thing (agc.jl:147):
R_up_emergency =
get_variable(container, AdditionalDeltaActivePowerUpVariable(), PSY.Area)
R_dn_emergency =
get_variable(container, AdditionalDeltaActivePowerUpVariable(), PSY.Area)
UpVariable both times. The expression R_up_emergency[area_name, t] - R_dn_emergency[area_name, t] appears later in that function: as-is, that'll be zero.
agc.jlis currently not included, dead code, but there's a direction mixup somewhere. Currently, we're settingR_up_emergencyandR_down_emergencyto the same thing (agc.jl:147):UpVariableboth times. The expressionR_up_emergency[area_name, t] - R_dn_emergency[area_name, t]appears later in that function: as-is, that'll be zero.