Duplicated power output constraints for VRE when Reserves are turned on
cfe316 opened this issue · comments
Below, the for
loop should be inside the if statement, not outside.
for y in VRE_POWER_OUT
VRE_BINS = intersect(dfGen[dfGen[!,:R_ID].>=y,:R_ID], dfGen[dfGen[!,:R_ID].<=y+dfGen[y,:Num_VRE_Bins]-1,:R_ID])
if Reserves == 1
curtailable_variable_renewable_reserves!(EP, inputs)
else
...
end
end
Although this should not affect the results, these duplicated (by the number of VRE in the model) constraints would slow model creation and use extra memory.
This would be fixed by #562 .
The fix for this has been merged to develop.