The improvement of new energy generation technologies has supported the usage of renewable alternative sources in a distributed way based on an information structure known as a Smart Grid. In this work, we explore the applicability of the distributed generation concept in a small city with renewable energy provided by biomass and small hydro plants in a microgrid configuration. The management of the generators is performed with in an economic dispatch framework with modified metaheuristic optimization algorithms.