Skip to content

Commit

Permalink
Report the correct size ExistingBoiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Becker committed Feb 21, 2025
1 parent 0b9a73f commit 80b8ebc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/results/existing_boiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"""
function add_existing_boiler_results(m::JuMP.AbstractModel, p::REoptInputs, d::Dict; _n="")
r = Dict{String, Any}()
r["size_mmbtu_per_hour"] = round(value(m[Symbol("dvSize"*_n)]["ExistingBoiler"]) * p.s.existing_boiler.max_thermal_factor_on_peak_load / KWH_PER_MMBTU, digits=3)
report_size_mmbtu_per_hour = value(m[Symbol("dvSize"*_n)]["ExistingBoiler"]) / KWH_PER_MMBTU * p.s.existing_boiler.max_thermal_factor_on_peak_load
max_size_mmbtu_per_hour = p.s.existing_boiler.max_kw / KWH_PER_MMBTU
r["size_mmbtu_per_hour"] = round(min(report_size_mmbtu_per_hour, max_size_mmbtu_per_hour), digits=3)
r["fuel_consumption_series_mmbtu_per_hour"] =
round.(value.(m[:dvFuelUsage]["ExistingBoiler", ts] for ts in p.time_steps) ./ KWH_PER_MMBTU, digits=5)
r["annual_fuel_consumption_mmbtu"] = round(sum(r["fuel_consumption_series_mmbtu_per_hour"]), digits=5)
Expand Down

0 comments on commit 80b8ebc

Please sign in to comment.