We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd9b8f8 commit 7d1f25fCopy full SHA for 7d1f25f
1 file changed
Routing/OptCalib/optimization.py
@@ -212,7 +212,7 @@ def viccall(vars):
212
if (temphydrofirm[i]<hydrofirm):
213
hydrofirm=temphydrofirm[i]
214
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
+ totalproduction = 1 - (totalproduction/(countrow-spinning_period))/totalinstallcapcity # calculate daily average and normalize
216
# - Calculate water deficit for the whole system
217
countrow2 = 0
218
for i in range(spinning_period,countrow):
0 commit comments