Electrolyzer vUSE is unlimited if Reserves are activated
cfe316 opened this issue · comments
Jacob Schwartz commented
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
Jacob Schwartz commented
The fix for this would be to move these constraints outside the if/else
statement.
Jacob Schwartz commented
Closing because this only applied to develop
, on which it's now fixed.