The paper discusses solutions to the economic dispatch problem in electric power systems using Ant Lion Optimization Algorithm (ALOA) and Bat Algorithm (BA) techniques. These methods aim to optimize electricity generation from various sources to meet demand while minimizing costs and carbon emissions. The algorithms were tested on a small and large-scale generator system, demonstrating their effectiveness in economic dispatch studies compared to other optimization methods.