Skip to content

Commit

Permalink
Update write_multi_stage_costs.jl with Updated and Corrected Discounting
Browse files Browse the repository at this point in the history
This PR attempts to clean-up, update, correct, refine, and clearly document the multi-stage discounting of the costs.
  • Loading branch information
sambuddhac authored Jul 11, 2024
1 parent 0301b8a commit 9e0f69f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multi_stage/write_multi_stage_costs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function write_multi_stage_costs(outpath::String, settings_d::Dict, inputs_dict:
cum_stage_length += stage_lens[stage_counter]
end
end
DF = 1 / (1 + wacc)^(cum_stage_length) # Discount factor applied to ALL costs in each stage
DF_tech = 1 / (1 + wacc)^(cum_stage_length) # Discount factor applied to ALL costs in each stage
end
df_costs[!, Symbol("TotalCosts_p$p")] = DF .* costs_d[p][!, Symbol("Total")]
end
Expand Down

0 comments on commit 9e0f69f

Please sign in to comment.