Skip to content

Commit

Permalink
Merge branch 'develop' into storage-cost-constraints-version2
Browse files Browse the repository at this point in the history
  • Loading branch information
adfarth committed Nov 7, 2024
2 parents 4138157 + 0d81ee8 commit 7c0acf0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/results/boiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
4 changes: 2 additions & 2 deletions src/results/existing_boiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 7c0acf0

Please sign in to comment.