import pandas as pd
scenarios = pd.DataFrame(index=range(1, 21), columns=["Scenario 1", "Scenario 2", "Scenario 3", "Scenario 4", "Scenario 5"])
scenarios.rename(index={1: "Cout d'investissement PV"}, inplace=True)
scenarios.rename(index={2: "Cout d'investissement eolien"}, inplace=True)
scenarios.rename(index={3: "Cout d'investissement Biomasse"}, inplace=True)
scenarios.rename(index={4: "Cout d'investissement cogen"}, inplace=True)
scenarios.rename(index={5: "Cout d'exploitation PV [€/an]"}, inplace=True)
scenarios.rename(index={6: "Cout d'exploitation eolien [€/an]"}, inplace=True)
scenarios.rename(index={7: "Cout d'exploitation Biomasse [€/an]"}, inplace=True)
scenarios.rename(index={8: "cout d'exploitation cogen [€/an]"}, inplace=True)
scenarios.rename(index={9: "Revenus annuels"}, inplace=True)
scenarios.rename(index={10: "Production_totale [kWh/an]"}, inplace=True)
scenarios.rename(index={11: "Durée de vie"}, inplace=True)
scenarios.rename(index={12: "Production PV [kWh/an]"}, inplace=True)
scenarios.rename(index={13: "Production eolien [kWh/an]"}, inplace=True)
scenarios.rename(index={14: "Production Biomasse [kWh/an]"}, inplace=True)
scenarios.rename(index={15: "Nombre de consommateurs"}, inplace=True)
scenarios.rename(index={16: "Nombre de producteurs"}, inplace=True)
scenarios.rename(index={17: "Capacité de stockage requise [kWh]"}, inplace=True)
scenarios.rename(index={18: "Prise sur le réseau UCL[kWh/an]"}, inplace=True)
scenarios.rename(index={19: "Consommation [kWh/an]"}, inplace=True)
scenarios.rename(index={20: "Investissement stockage €"}, inplace=True)
scenarios.rename(index={21: "Economie annuelles nettes"}, inplace=True)
nan_indices = np.isnan(CONS)
CONS = CONS[~np.isnan(CONS)]
nan_indices = np.isnan(TOT_conso)
TOT_conso = TOT_conso.dropna()
scenarios.loc["Cout d'investissement PV", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = 0,0.7 * 202.312 * S,0.7 * 202.312 * S,0,0.7 * 202.312 * S
scenarios.loc["Cout d'investissement eolien", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [0,24000000,0,24000000,24000000]
scenarios.loc["Cout d'investissement Biomasse", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [0,53000000,53000000,53000000,0]
scenarios.loc["Cout d'exploitation PV [€/an]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = (0, 5*S*202.312/1000, 5*S*202.312/1000 , 0 ,5*S*202.312/1000 )
scenarios.loc["Cout d'exploitation eolien [€/an]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [0,sum(production_eolienne)/1000000*20,0,sum(production_eolienne)/1000000*20,sum(production_eolienne)/1000000*20]
scenarios.loc["Cout d'exploitation Biomasse [€/an]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [0,53000000*0.06,53000000*0.06,53000000*0.06,0]
scenarios.loc["Revenus annuels", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [0,(prod_S2-sum(TOT_conso['conso UCL']))*0.15,(prod_S3-sum(TOT_conso['conso UCL']))*0.15,(prod_S4-sum(TOT_conso['conso UCL']))*0.15,(prod_S5-sum(TOT_conso['conso UCL']))*0.15]
scenarios.loc["Production_totale [kWh/an]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [15000000,prod_S2,prod_S3,prod_S4,prod_S5]
scenarios.loc["Durée de vie", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [15,25,25,25,25]
scenarios.loc["Production PV [kWh/an]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [0,sum(production_photovoltaique)/1000,sum(production_photovoltaique)/1000,0,sum(production_photovoltaique)/1000]
scenarios.loc["Production eolien [kWh/an]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [0,sum(production_eolienne)/1000,0,sum(production_eolienne)/1000,sum(production_eolienne)/1000]
scenarios.loc["Production Biomasse [kWh/an]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [0,production_biomasse_anuelle,production_biomasse_anuelle,production_biomasse_anuelle,0]
scenarios.loc["Nombre de consommateurs", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [1,1,1,1,1]
scenarios.loc["Nombre de producteurs", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [1,1,1,1,1]
scenarios.loc["Capacité de stockage requise [kWh]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [0,0,0,0,0]
scenarios.loc["Prise sur le réseau UCL[kWh/an]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [sum(TOT_conso['conso UCL'])-15000000,sum(TOT_conso['conso UCL'])-prod_S2,sum(TOT_conso['conso UCL'])-prod_S3,sum(TOT_conso['conso UCL'])-prod_S4,sum(TOT_conso['conso UCL'])-prod_S5]
scenarios.loc["Consommation [kWh/an]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [sum(TOT_conso['conso UCL']),sum(CONS),sum(CONS),sum(CONS),sum(CONS)]
scenarios.loc["Cout d'investissement cogen", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [2400000,0,0,0,0]
scenarios.loc["cout d'exploitation cogen [€/an]", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [2400000*0.06,0,0,0,0]
scenarios.loc["Investissement stockage €", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [0,0,0,0,0]
scenarios.loc["Economie annuelles nettes", ["Scenario 1", "Scenario 2", "Scenario 3","Scenario 4", "Scenario 5"]] = [
(12200383.89*0.28),
(sum(TOT_conso['conso UCL'].values))*0.28,
(sum(TOT_conso['conso UCL'].values) )*0.28,
(sum(TOT_conso['conso UCL'].values) )*0.28,
sum(TOT_conso['conso UCL'].values)*0.28
]
print(scenarios)
scenarios.to_excel('scenarios.xlsx')
print(prod_S3-sum(TOT_conso['conso UCL']))