@@ -257,9 +257,9 @@ def extrapolate_opex(self):
257257 observation_horizon = self .scenario .prj_duration_yrs ,
258258 discount_rate = self .scenario .wacc ,
259259 occurs_at = 'end' )
260- self .opex_ann = eco .annuity_due_recur (nominal_value = self .opex_yrl ,
261- observation_horizon = self .scenario .prj_duration_yrs ,
262- discount_rate = self .scenario .wacc )
260+ self .opex_ann = eco .annuity_recur (nominal_value = self .opex_yrl ,
261+ observation_horizon = self .scenario .prj_duration_yrs ,
262+ discount_rate = self .scenario .wacc )
263263 self .scenario .opex_sim += self .opex_sim
264264 self .scenario .opex_yrl += self .opex_yrl
265265 self .scenario .opex_prj += self .opex_prj
@@ -319,7 +319,10 @@ def __init__(self, name, scenario):
319319
320320 # runtime factor to compensate for difference between simulation and project timeframe
321321 # opex is uprated in importance for short simulations
322- self .factor_opex = (1 / self .scenario .sim_yr_rat ) if scenario .compensate_sim_prj else 1
322+ self .factor_opex = eco .annuity_recur (nominal_value = utils .scale_sim2prj (value = 1 ,
323+ scenario = self .scenario ),
324+ observation_horizon = self .scenario .prj_duration_yrs ,
325+ discount_rate = self .scenario .wacc ) if scenario .compensate_sim_prj else 1
323326 self .opex_ep_spec = None # initial value
324327 self .calc_opex_ep_spec () # uprate opex values for short simulations, exact process depends on class
325328
@@ -639,9 +642,9 @@ def calc_opex_sim(self):
639642 self .scenario .prj_duration_yrs ,
640643 self .scenario .wacc ,
641644 occurs_at = 'end' )
642- self .opex_ann_ext = eco .annuity_due_recur (nominal_value = self .opex_yrl_ext ,
643- observation_horizon = self .scenario .prj_duration_yrs ,
644- discount_rate = self .scenario .wacc )
645+ self .opex_ann_ext = eco .annuity_recur (nominal_value = self .opex_yrl_ext ,
646+ observation_horizon = self .scenario .prj_duration_yrs ,
647+ discount_rate = self .scenario .wacc )
645648 self .scenario .opex_sim_ext += self .opex_sim_ext
646649 self .scenario .opex_yrl_ext += self .opex_yrl_ext
647650 self .scenario .opex_prj_ext += self .opex_prj_ext
0 commit comments