PurposeCurrently, more renewable energy resources with advanced technology levels are incorporated in the electric power networks. Under this circumstance, the attainment of optimal economic dispatch is very much essential by the power system as the system requires more power generation cost and also has a great demand for electrical energy. Therefore, one of the primary difficulties in the power system is lowering the cost of power generation, which includes both economic and environmental costs. This study/paper aims to introduce a meta-heuristic algorithm, which offers an solution to the combined economic and emission dispatch (CEED).Design/methodology/approachA novel algorithm termed Levy-based glowworm swarm optimization (LGSO) is proposed in this work, and it provides an excellent solution to the combined economic and emission dispatch (CEED) difficulties by specifying the generation of the optimal renewable energy systems (RES). Moreover, in hybrid renewable energy systems, the proposed scheme is extended by connecting the wind turbine because the thermal power plant could not control the aforementioned costs. In terms of economic cost, emission cost and transmission loss, the suggested CEED model outperforms other conventional schemes genetic algorithm, Grey wolf optimization, whale optimization algorithm (WOA), dragonfly algorithm (DA) and glowworm swarm optimization (GSO) and demonstrates its efficiency.FindingsAccording to the results, the suggested model for Iteration 20 was outperformed GSO, DA and WOA by 23.46%, 97.33% and 93.33%, respectively. For Iteration 40, the proposed LGSO was 60%, 99.73% and 97.06% better than GSO, DA and WOA methods, respectively. The proposed model for Iteration 60 was 71.50% better than GSO, 96.56% better than DA and 95.25% better than WOA. As a result, the proposed LGSO was shown to be superior to other existing techniques with respect to the least cost and loss.Originality/valueThis research introduces the latest optimization algorithm known as LGSO to provide an excellent solution to the CEED difficulties by specifying the generation of the optimal RES. To the best of the authors’ knowledge, this is the first work that utilizes LGSO-based optimization for providing an excellent solution to the CEED difficulties by specifying the generation of the optimal RES.