pvpumpingsystem.sizing.subset_respecting_llp_direct

pvpumpingsystem.sizing.subset_respecting_llp_direct(pv_database, pump_database, weather_data, weather_metadata, pvps_fixture, llp_accepted=0.01, M_s_guess=None, M_p_guess=None, **kwargs)

Function returning the configurations of PV modules and pump that will minimize the net present value of the system and will insure the Loss of Load Probability (llp) is inferior to the one given.

Parameters:
  • pv_database (list of strings,) – List of pv module names to try. If name is not eact, it will search a pv module database to find the best match.
  • pump_database (list of pvpumpingssytem.Pump objects) – List of motor-pump to try.
  • weather_data (pd.DataFrame) – Weather file of the location. Typically comes from pvlib.iotools.epw.read_epw()
  • weather_metadata (dict) – Weather file metadata of the location. Typically comes from pvlib.iotools.epw.read_epw()
  • pvps_fixture (pvpumpingsystem.PVPumpSystem object) – The PV pumping system to size.
  • llp_accepted (float, default is 0.01) – Maximum Loss of Load Probability that can be accepted. Between 0 and 1
  • M_S_guess (integer, default is None) – Estimated number of modules in series in the PV array. Will be sized by the function.
Returns:

All configurations tested respecting the LLP.

Return type:

pandas.Dataframe