 This paper proposes a novel approach to optimize the size and location of distributed power generation and energy storage systems, DPGSS, in smart grids, SGs. The authors conducted extensive empirical studies and evaluated the potential problems caused by DPGSS integration into SGs. They use metaheuristic optimization algorithms, MOAs, to determine the optimal size and location of DPGSS, taking into account cost-benefit considerations such as reliability, sensitivity, and security. Additionally, they reviewed existing literature and compared their proposed work with other approaches adopted in distribution network, DN, planning. This article was authored by Rashid Abdelkater, Hater M.A. Ghanemi, Punkaj Didheech, and others.