# -*- coding: utf-8 -*-0 """ Created on Fri Mar 15 15:02:02 2019 Run sensitivities @author: theot """ # Note that there are 3 "no discounting" scenarios that need to be run separately # taking results from 3 'root' scenarios are running separate Welfare_and_Costs.py files # ['All_major_capex_no_discount','All_major_capex_alternative_no_discount','No_AoB_on_existing_no_discount'] main_fn="C:/Users/theot/Dropbox (Sense.)/2018-19 EA TPM CBA (Shared)/Step 3/AoB model/Models/" model_fn="C:/Users/theot/Dropbox (Sense.)/2018-19 EA TPM CBA (Shared)/Step 3/AoB model/Models/" output_fn="C:/Users/theot/Dropbox (Sense.)/2018-19 EA TPM CBA (Shared)/Step 3/AoB model/Output/" model_names = ['AoB_All_Major_Capex_Demand_sensitivities', 'AoB_All_Major_Capex_DG_sensitivities', 'AoB_All_Major_Capex_gen_sensitivities', 'AoB_All_Major_Capex_gen_sensitivities_ex_DG'] output_names = ['All_major_capex_demand_sensitivities', 'All_major_capex_DG_sensitivities', 'All_major_capex_gen_sensitivities', 'All_major_capex_gen_sensitivities_ex_DG'] #Run all models - except sensitivity models for i, s in enumerate(model_names): print(s) runfile(model_fn+s+'.py') matplotlib.pyplot.close("all") #Run Welfare and costs for i, s in enumerate(output_names): print(s) runfile(output_fn+s+'/Welfare_and_costs'+'.py') print(s) runfile(output_fn+s+'/Welfare_and_costs_CS'+'.py')