This paper presents a novel approach to the economic load dispatch (ELD) problem using genetic algorithms (GA) and particle swarm optimization (PSO), emphasizing their advantages over traditional optimization methods. The proposed methods aim to minimize production costs in power systems by effectively addressing nonlinear and combinatorial optimization challenges, using data from fifteen generating units as a case study. A comparison of the performance and efficiency of GA and PSO in the context of ELD is also included.