Text this: Towards Optimal Management in Microgrids: An Overview