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

Electrolyzer vUSE is unlimited if Reserves are activated

cfe316 opened this issue · comments

For electrolyzers, the constraints that limit Min_Power * eTotalCap <= vUSE <= pP_Max * eTotalCap simply don't exist if Reserves=1.

### Minimum and maximum power output constraints (Constraints #3-4)
if setup["Reserves"] == 1
    ## Electrolyzers currently do not contribute to operating reserves. Could allow them to contribute as a curtailable demand in future.
else
    @constraints(EP, begin
	# Minimum stable power generated per technology "y" at hour "t" Min_Power
	[y in ELECTROLYZERS, t in 1:T], EP[:vUSE][y,t] >= dfGen[y,:Min_Power]*EP[:eTotalCap][y]

	# Maximum power generated per technology "y" at hour "t"
	[y in ELECTROLYZERS, t in 1:T], EP[:vUSE][y,t] <= inputs["pP_Max"][y,t]*EP[:eTotalCap][y]
end)

end

The fix for this would be to move these constraints outside the if/else statement.

Closing because this only applied to develop, on which it's now fixed.