diff --git a/CHANGELOG.md b/CHANGELOG.md index 475d0e4de..d1a4f47ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,10 +31,6 @@ Classify the change according to the following categories: - Added new binary variable **binIncludeStorageCostConstant** which is indexed on `p.s.storage.types.elec` -## Develop fix-warning-threshold-for-wholesale -### Fixed -- Fixed conditions for which a warning is presented indicating that the wholesale benefit threshold is met. - ## Develop ### Added - Battery residual value if choosing replacement strategy for degradation @@ -44,6 +40,9 @@ Classify the change according to the following categories: - Edited several documentation entries and docstrings for clarity. ### Removed - 80% scaling of battery maintenance costs when using augmentation strategy +### Fixed +- Fixed conditions for which a warning is presented indicating that the wholesale benefit threshold is met. +- When setting **thermal_production_series_mmbtu_per_hour** output in **ExistingBoiler**, sum over heating loads instead of time steps ## v0.48.1 ### Changed diff --git a/src/results/boiler.jl b/src/results/boiler.jl index cacdfb695..1c5ee0a37 100644 --- a/src/results/boiler.jl +++ b/src/results/boiler.jl @@ -27,8 +27,8 @@ function add_boiler_results(m::JuMP.AbstractModel, p::REoptInputs, d::Dict; _n=" r["annual_fuel_consumption_mmbtu"] = round(sum(r["fuel_consumption_series_mmbtu_per_hour"]), digits=3) r["thermal_production_series_mmbtu_per_hour"] = - round.(sum(value.(m[:dvHeatingProduction]["Boiler", q, ts] for ts in p.time_steps) for q in p.heating_loads) / KWH_PER_MMBTU, digits=5) - r["annual_thermal_production_mmbtu"] = round(sum(r["thermal_production_series_mmbtu_per_hour"]), digits=3) + round.(sum(value.(m[:dvHeatingProduction]["Boiler", q, ts] for ts in p.time_steps) for q in p.heating_loads) ./ KWH_PER_MMBTU, digits=5) + r["annual_thermal_production_mmbtu"] = round(sum(r["thermal_production_series_mmbtu_per_hour"]), digits=3) if !isempty(p.s.storage.types.hot) @expression(m, NewBoilerToHotTESKW[ts in p.time_steps], diff --git a/src/results/existing_boiler.jl b/src/results/existing_boiler.jl index 3fdac87b6..a13139623 100644 --- a/src/results/existing_boiler.jl +++ b/src/results/existing_boiler.jl @@ -25,8 +25,8 @@ function add_existing_boiler_results(m::JuMP.AbstractModel, p::REoptInputs, d::D r["annual_fuel_consumption_mmbtu"] = round(sum(r["fuel_consumption_series_mmbtu_per_hour"]), digits=5) r["thermal_production_series_mmbtu_per_hour"] = - round.(sum(value.(m[:dvHeatingProduction]["ExistingBoiler", q, ts] for q in p.heating_loads) for ts in p.time_steps) ./ KWH_PER_MMBTU, digits=5) - r["annual_thermal_production_mmbtu"] = round(sum(r["thermal_production_series_mmbtu_per_hour"]), digits=5) + round.(sum(value.(m[:dvHeatingProduction]["ExistingBoiler", q, ts] for ts in p.time_steps) for q in p.heating_loads) ./ KWH_PER_MMBTU, digits=5) + r["annual_thermal_production_mmbtu"] = round(sum(r["thermal_production_series_mmbtu_per_hour"]), digits=5) if !isempty(p.s.storage.types.hot) @expression(m, BoilerToHotTESKW[ts in p.time_steps],