Skip to content

Commit

Permalink
Merge hotfix-616
Browse files Browse the repository at this point in the history
Fix scaling of tx losses in tlosses.csv #616
  • Loading branch information
lbonaldo authored Feb 3, 2024
2 parents ac7e929 + 3de7daf commit 32db8be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function write_transmission_losses(path::AbstractString, inputs::Dict, setup::Di
tlosses = zeros(L, T)
tlosses[LOSS_LINES, :] = value.(EP[:vTLOSS][LOSS_LINES, :])
if setup["ParameterScale"] == 1
tlosses[LOSS_LINES, :] *= ModelScalingFactor^2
tlosses[LOSS_LINES, :] *= ModelScalingFactor
end
dfTLosses.AnnualSum = tlosses * inputs["omega"]
dfTLosses = hcat(dfTLosses, DataFrame(tlosses, :auto))
Expand Down

0 comments on commit 32db8be

Please sign in to comment.