Electric power generated in a centralized station is transmitted through the transmission system and supplied to the consumer end through an electric distribution substation. Electric power losses are high in distribution network compared to the transmission system. The integration of decentralized generation (DG) units in electric distribution networks will reduce power losses. However, the integration of conventional DG is not appreciable due to various techno-economic and environmental concerns. Hence there is a need for the changeover from conventional to renewable energy sources (RES) for energy requirement. Because of vast availability, non-polluting nature, and sustainable character of RES are grasping significant attention over the years. At present most, viable RES are solar and wind energy systems in the world. It is observed that the output generation patterns of solar photovoltaic (PV) arrays and wind turbine generation units (WTGUs) are arbitrary. Hence there is a need for sophisticated method/technique for modeling these generated outputs. In the present paper, optimal modeling and allocation of RES are solved using a novel metaheuristic algorithm. The proposed algorithm is tested on 12, 15 and 85–bus radial distribution networks (RDNs) and the simulation results obtained are outperforms other existing techniques in the literature. © 2020, © 2020 IETE.