ADVANCED ENERGY MANAGEMENT STRATEGY FOR MICROGRID USING REAL TIME