From 56895e2fdc4d88707fd9303cd32dba51be8b2b77 Mon Sep 17 00:00:00 2001 From: Hallie Dunham <70401017+hdunham@users.noreply.github.com> Date: Fri, 2 Aug 2024 13:01:24 -0600 Subject: [PATCH 1/3] add missing *_n in wind results processing --- src/results/wind.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/results/wind.jl b/src/results/wind.jl index fe16dc065..c71ddb28b 100644 --- a/src/results/wind.jl +++ b/src/results/wind.jl @@ -31,7 +31,7 @@ function add_wind_results(m::JuMP.AbstractModel, p::REoptInputs, d::Dict; _n="") r["year_one_om_cost_before_tax"] = round(value(per_unit_size_om) / (p.pwf_om * p.third_party_factor), digits=0) if !isempty(p.s.storage.types.elec) - WindToStorage = (sum(m[:dvProductionToStorage][b, t, ts] for b in p.s.storage.types.elec) for ts in p.time_steps) + WindToStorage = (sum(m[Symbol("dvProductionToStorage"*_n)][b, t, ts] for b in p.s.storage.types.elec) for ts in p.time_steps) PVtoBatt = (sum(m[Symbol("dvProductionToStorage"*_n)][b, t, ts] for b in p.s.storage.types.elec) for ts in p.time_steps) else @@ -41,7 +41,7 @@ function add_wind_results(m::JuMP.AbstractModel, p::REoptInputs, d::Dict; _n="") r["annual_energy_exported_kwh"] = 0.0 if !isempty(p.s.electric_tariff.export_bins) - WindToGrid = (sum(m[:dvProductionToGrid][t, u, ts] for u in p.export_bins_by_tech[t]) for ts in p.time_steps) + WindToGrid = (sum(m[Symbol("dvProductionToGrid"*_n)][t, u, ts] for u in p.export_bins_by_tech[t]) for ts in p.time_steps) r["electric_to_grid_series_kw"] = round.(value.(WindToGrid), digits=3) r["annual_energy_exported_kwh"] = round( sum(r["electric_to_grid_series_kw"]) * p.hours_per_time_step, digits=0) From 892c85908adec1d9041fa29758e68e517a48d412 Mon Sep 17 00:00:00 2001 From: Hallie Dunham <70401017+hdunham@users.noreply.github.com> Date: Fri, 2 Aug 2024 13:02:23 -0600 Subject: [PATCH 2/3] rm extraneous line in wind results --- src/results/wind.jl | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/results/wind.jl b/src/results/wind.jl index c71ddb28b..38cdb9963 100644 --- a/src/results/wind.jl +++ b/src/results/wind.jl @@ -32,8 +32,6 @@ function add_wind_results(m::JuMP.AbstractModel, p::REoptInputs, d::Dict; _n="") if !isempty(p.s.storage.types.elec) WindToStorage = (sum(m[Symbol("dvProductionToStorage"*_n)][b, t, ts] for b in p.s.storage.types.elec) for ts in p.time_steps) - PVtoBatt = (sum(m[Symbol("dvProductionToStorage"*_n)][b, t, ts] for b in p.s.storage.types.elec) for ts in p.time_steps) - else WindToStorage = zeros(length(p.time_steps)) end From 0c1b2d33cc45af8e856f116a016e74b2a9233cef Mon Sep 17 00:00:00 2001 From: Hallie Dunham <70401017+hdunham@users.noreply.github.com> Date: Fri, 2 Aug 2024 13:04:49 -0600 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c307765d..8849889bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,10 @@ Classify the change according to the following categories: ### Deprecated ### Removed +## Develop +### Fixed +- In `src/results/wind.jl`, fixed line incompatible with multinode and removed extraneous code + ## v0.47.2 ### Fixed - Increased the big-M bound on maximum net metering benefit to prevent artificially low export benefits.