4) The minutes-ahead reserved capacity EBat_min is used to avoid under- or over- battery sizing dute to the variation of net-load profiles during each single day. It is determined by conducting a simulation with the assmuption that the energy mangement system (EMS) and the precise PV forecast are provided. The yearly net-load is fed as the input, and the weeks-ahead and days-ahead reserved capacities are employed as an initial battery capacity (EBat_int EBat_wk +EBat_day) with the initial usable stat-of-charge of 50%. The EBat_min can be selected by