One of the most important concerns in the planning and operation of an electric power generation system is the effective scheduling of all power generation facilities to meet growing power demand. Economic load dispatch (ELD) is a phenomenon where an optimal combination of power generating units is selected in such a way as to minimize the total fuel cost while satisfying the load demand, subject to operational constraints. Different numerical and metaheuristic optimization techniques have gained prominent importance and are widely used to solve the nonlinear problem. Although metaheuristic techniques have a good convergence rate than numerical techniques, however, their implementation seems difficult in the presence of nonlinear and dynamic parameters. This work is devoted to solving the ELD problem with the integration of variable energy resources using a modified directional bat algorithm (dBA). Then the proposed technique is validated via different realistic test cases consisting of thermal and renewable energy sources (RESs). From simulation results, it is observed that dBA reduces the operational cost with less computational time and has better convergence characteristics than that of standard BA and other popular techniques like particle swarm optimization (PSO) and genetic algorithm (GA).