Skip to content

Commit

Permalink
fix typo in planning_reserves
Browse files Browse the repository at this point in the history
  • Loading branch information
DesmondZhong committed Dec 26, 2020
1 parent a68b637 commit a69799a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion switch_model/balancing/planning_reserves.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def AvailableReserveCapacity_rule(m, prr, t):
# Note: this code appears to have no users, since it references
# DispatchGen, which doesn't exist (should be m.DispatchGen).
if g in getattr(m, 'STORAGE_GENS', set()):
reserve_cap += DispatchGen[g, t] - m.ChargeStorage[g, t]
reserve_cap += m.DispatchGen[g, t] - m.ChargeStorage[g, t]
# If local_td is included with DER modeling, avoid allocating
# distributed generation to central grid capacity because it will
# be credited with adjusting load at the distribution node.
Expand Down

0 comments on commit a69799a

Please sign in to comment.