This document presents a modified firefly algorithm (M-FA) for solving economic dispatch (ED) problems in power systems, emphasizing the minimization of fuel costs while satisfying operational constraints. The proposed method was evaluated using the IEEE 30-bus test system, demonstrating superior performance compared to traditional firefly algorithms and particle swarm optimization. The study highlights the complexities of calculating optimal generation schedules due to constraints inherent in power generation and discusses various optimization techniques previously applied to the ED problem.