Գրեք սա: Towards Optimal Management in Microgrids: An Overview