COMPREHENSIVE ANALYSIS OF MICROGRIDS