Sustainable energy solutions are becoming more and more necessary as the world's energy needs increase as a result of population expansion and industrialization. Using renewable energy sources has become essential to meeting these needs and reducing the negative effects on the environment. The increasing incorporation of renewable energy sources (RES) like wind and solar into microgrid systems poses a notable obstacle to attaining optimum power dispatch because of their intrinsic unpredictability. The combined economic emission dispatch (CEED) issue may become inefficient as a result of this fluctuation, especially in islanded microgrid systems. In particular, in areas with significant RES potential, resolving this problem is essential to improving the sustainability and dependability of the energy supply. In this work, the optimization of the CEED issue in an islanded microgrid system with wind, solar, and thermal energy sources is the main emphasis. By employing a weighted sum approach and a Butterfly Optimization Algorithm (BOA), the research aims to provide an efficient solution to the multi-objective CEED dilemma. The proposed method outperforms traditional optimization techniques, offering a more robust framework for integrating RES into microgrids. This research reveals a number of limitations that affect the effectiveness of energy dispatch systems, such as thermal unit ramp rates and operating restrictions. Subsequent investigations have to concentrate on delving deeper into these limitations and devising tactics to augment the flexibility of optimization algorithms such as the Butterfly Optimization Algorithm (BOA) approach.