The rapid increase in the integration of distributed resources such as distributed generation (DG), demand response (DR) and electricity storage (ES) requires management schemes to integrate distributed resources into low and medium electricity networks. Energy management represents a challenge for operation of electric grids when distributed resources are merged into the network. This paper address the energy management of distributes resources considering a complete characterization of them. The feasibility of those resources is considered into a microgrid model, so, the distributed resources are integrated through of a microgrid. This paper proposes the integration of distributed resources using a microgrid concept because there are relevant advantages of this model. The operational advantages are evident from the results. The results show how effectively different energy resources can be managed into the grid in the most efficient way.