GenXProject / GenX.jl

GenX: a configurable power system capacity expansion model for studying low-carbon energy futures. More details at : https://genx.mit.edu

Home Page:https://genxproject.github.io/GenX.jl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.