Skip to content

Commit 7d1f25f

Browse files
authored
Update optimization.py
1 parent dd9b8f8 commit 7d1f25f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Routing/OptCalib/optimization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def viccall(vars):
212212
if (temphydrofirm[i]<hydrofirm):
213213
hydrofirm=temphydrofirm[i]
214214
hydrofirm=1-(hydrofirm/30)/totalinstallcapcity # normalize the smallest monthly value of the firm hydropower
215-
totalproduction = 1 - (totalproduction/countrow)/totalinstallcapcity # calculate daily average and normalize
215+
totalproduction = 1 - (totalproduction/(countrow-spinning_period))/totalinstallcapcity # calculate daily average and normalize
216216
# - Calculate water deficit for the whole system
217217
countrow2 = 0
218218
for i in range(spinning_period,countrow):

0 commit comments

Comments
 (0)