Skip to content

Commit

Permalink
Update retrofits.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo authored Feb 26, 2024
1 parent 1661abd commit 16198a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/resources/retrofits/retrofits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function retrofit(EP::Model, inputs::Dict)
end

@constraint(EP, cRetrofit_zone_commit[c=1:C],
sum(cap_size(gen[y]) * EP[:vRETROCAP][y] for y in intersect(RETRO_CAP, COMMIT, resources_in_retrofit_pool_by_rid(gen,c)); init=0) * retrofit_efficiency
sum(cap_size(gen[y]) * EP[:vRETROCAP][y] for y in intersect(RETRO_CAP, COMMIT, resources_in_retrofit_pool_by_rid(gen,c)); init=0) * retrofit_efficiency(c)
+ sum(EP[:vRETROCAP][y] for y in setdiff(intersect(RETRO_CAP, resources_in_retrofit_pool_by_rid(gen,c)), COMMIT); init=0)
== sum(cap_size(gen[y]) * EP[:vRETROCREATCAP][y] for y in intersect(RETRO_CREAT, COMMIT, resources_in_retrofit_pool_by_rid(gen,c)); init=0)
+ sum(EP[:vRETROCREATCAP][y] for y in setdiff(intersect(RETRO_CREAT, resources_in_retrofit_pool_by_rid(gen,c)), COMMIT); init=0))
Expand Down

0 comments on commit 16198a3

Please sign in to comment.