Skip to content

Commit

Permalink
Merge hotfix-506
Browse files Browse the repository at this point in the history
Fix error on write_costs re: COMMIT_ZONE #506
  • Loading branch information
cfe316 authored Aug 4, 2023
2 parents 951179b + d8c470c commit ae19f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/write_outputs/write_costs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function write_costs(path::AbstractString, inputs::Dict, setup::Dict, EP::Model)
tempCTotal += eCVarFlex_in
end

if setup["UCommit"] >= 1
if setup["UCommit"] >= 1 && !isempty(COMMIT_ZONE)
eCStart = sum(value.(EP[:eCStart][COMMIT_ZONE,:]))
tempCStart += eCStart
tempCTotal += eCStart
Expand Down

0 comments on commit ae19f20

Please sign in to comment.