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. diff --git a/src/results/wind.jl b/src/results/wind.jl index fe16dc065..38cdb9963 100644 --- a/src/results/wind.jl +++ b/src/results/wind.jl @@ -31,9 +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) - PVtoBatt = (sum(m[Symbol("dvProductionToStorage"*_n)][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) else WindToStorage = zeros(length(p.time_steps)) end @@ -41,7 +39,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)