Skip to content

Commit

Permalink
(chp results) loop elec stor, don't hardcode "ElectricStorage"
Browse files Browse the repository at this point in the history
  • Loading branch information
hdunham committed Aug 29, 2024
1 parent 949bcb8 commit 293fcd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/results/chp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function add_chp_results(m::JuMP.AbstractModel, p::REoptInputs, d::Dict; _n="")
r["electric_to_grid_series_kw"] = round.(value.(CHPtoGrid), digits=3)
if !isempty(p.s.storage.types.elec)
@expression(m, CHPtoBatt[ts in p.time_steps],
sum(m[Symbol("dvProductionToStorage"*_n)]["ElectricStorage",t,ts] for t in p.techs.chp))
sum(m[Symbol("dvProductionToStorage"*_n)][b,t,ts] for t in p.techs.chp, b in p.s.storage.types.elec))
else
CHPtoBatt = zeros(length(p.time_steps))
end
Expand Down

0 comments on commit 293fcd7

Please sign in to comment.