 This study examined the optimal design of a standalone hybrid renewable energy system consisting of photovoltaics, wind turbines, and biomass sources along with an energy storage system. The objective was to minimize the cost of energy and the risk of power outages while meeting certain operational constraints. The authors used three different optimization algorithms heat-based optimizer, HBO, gray wolf optimizer, GWO, and particle swarm optimization, PSO. The HBO algorithm produced the best result, achieving a minimum cost of energy of slash bin slash SH 2750 per kilowatt hour and a net present cost of 055051. This demonstrates the potential of renewable energy systems in providing reliable and affordable electricity to remote areas. This article was authored by Ahmed Esminizi, Hamdi M. Sultan, Ibrahim Ova-Bibala, and others.