Translations:Dimensionner une installation photovoltaïque autonome/272/en

  1. first result incrementing peak power where battery capacity is minimal

batterie_0blackout=[k[0] for k in listresult_0blackout] minbatterie_0blackout=min(batterie_0blackout) for k in listresult_0blackout:

   if k[0]==minbatterie_0blackout:
       print(f"""with user input data and 
       a battery of{k[0]}kWh 
       and a peak power of {k[1]}kWc,
       and an hypothesis of  {k[2]}j without electricity as acceptable
       et {k[3]} blackout episodes (or with an power generator):
       between 2005 and 2020:
       List of episodes without electricity (nb of days):
       {k[5]}
       for a mean duration of electricityless episodes of  {k[4]}j 
       we meet the user needs ({inputelecconsoday}kWh/jour) entered as hypothesis""")
       break
  1. first result incrementing peak power with a number of days of blackout lower or equal
  2. to the accepted user input

for k in listresult_blackout:

   if k[2]<=jnoelec:
       print(f"""with user input data and 
       a battery of{k[0]}kWh 
       and a peak power of {k[1]}kWc,
       and an hypothesis of  {k[2]}j without electricity as acceptable
       et {k[3]} blackout episodes (or with an power generator):
       between 2005 and 2020:
       List of episodes without electricity (nb of days):
       {k[5]}
       for a mean duration of electricityless episodes of  {k[4]}j 
       we meet the user needs ({inputelecconsoday}kWh/jour) entered as hypothesis""")
       break