Skip to content

Commit

Permalink
Merge pull request #131 from macroenergy/H2-Generation-Update
Browse files Browse the repository at this point in the history
Update h2_production_no_commit.jl
  • Loading branch information
dharik13 authored Apr 13, 2023
2 parents 85617cd + 7aa12b8 commit 1bfc844
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/HSC/model/generation/h2_production_no_commit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ function h2_production_no_commit(EP::Model, inputs::Dict,setup::Dict)

EP[:eH2Balance] += eH2GenNoCommit

#Power Consumption for H2 Generation
#Power Consumption for H2 Generation
if setup["ParameterScale"] ==1 # IF ParameterScale = 1, power system operation/capacity modeled in GW rather than MW
@expression(EP, ePowerBalanceH2GenNoCommit[t=1:T, z=1:Z],
Expand All @@ -116,6 +115,11 @@ function h2_production_no_commit(EP::Model, inputs::Dict,setup::Dict)
[k in H2_GEN_NO_COMMIT, t = 1:T], EP[:vP2G][k,t] == EP[:vH2Gen][k,t] * dfH2Gen[!,:etaP2G_MWh_p_tonne][k]
end)

@constraints(EP, begin
# Minimum stable generated per technology "k" at hour "t" > = Min stable output level
[k in H2_GEN_NO_COMMIT, t=1:T], EP[:vH2Gen][k,t] >= EP[:eH2GenTotalCap][k] * dfH2Gen[!,:H2Gen_min_output][k]
end)

@constraints(EP, begin
# Maximum power generated per technology "k" at hour "t"
[k in H2_GEN_NO_COMMIT, t=1:T], EP[:vH2Gen][k,t] <= EP[:eH2GenTotalCap][k]* inputs["pH2_Max"][k,t]
Expand Down

0 comments on commit 1bfc844

Please sign in to comment.