Skip to content

Commit

Permalink
Update configure_multi_stage_inputs.jl
Browse files Browse the repository at this point in the history
Formatting changes to occ[i] calculation as suggested by the JuliaFormatter
  • Loading branch information
sambuddhac authored Apr 4, 2024
1 parent f4e6ebc commit 6400edb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/multi_stage/configure_multi_stage_inputs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ function compute_overnight_capital_cost(settings_d::Dict,
# (Factor to adjust discounting to year 0 for capital cost is included in the discounting coefficient applied to all terms in the objective function value.)
occ = zeros(length(inv_costs_yr))
for i in 1:length(occ)
occ[i] = sum(inv_costs_yr[i] / (1 + tech_wacc[i]) .^ (p)
for p in 1:payment_yrs_remaining[i]; init = 0)
occ[i] = sum(
inv_costs_yr[i] / (1 + tech_wacc[i]) .^ (p)
for p in 1:payment_yrs_remaining[i];
init = 0)
end

# 3) Return the overnight capital cost (discounted sum of annual investment costs incured within the model horizon)
Expand Down

0 comments on commit 6400edb

Please sign in to comment.