Seol mar théacs é seo: Towards Optimal Management in Microgrids: An Overview