In this study. an optimal reactive power (Volt/VAr) control of smart inverters for photovoltaic (PV) and battery energy storage systems (BESSs) to improve the PV hosting capacity (PVHC) of distribution networks is proposed. The primary objective of the proposed method is to improve the PVHC of a distribution network by determining the optimal oversize. dispatch. https://www.ivoryjinelle.com/