From 6400edb51f731de3a818b14dd32f42a7778469b4 Mon Sep 17 00:00:00 2001 From: "Chakrabarti, Sambuddha (Sam)" Date: Thu, 4 Apr 2024 11:31:53 -0400 Subject: [PATCH] Update configure_multi_stage_inputs.jl Formatting changes to occ[i] calculation as suggested by the JuliaFormatter --- src/multi_stage/configure_multi_stage_inputs.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/multi_stage/configure_multi_stage_inputs.jl b/src/multi_stage/configure_multi_stage_inputs.jl index 759856154e..e1a3bdfb2c 100644 --- a/src/multi_stage/configure_multi_stage_inputs.jl +++ b/src/multi_stage/configure_multi_stage_inputs.jl @@ -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)