Intelligent Monitoring and Control of Microgrid