ADAPTIVE CONTROL STRATEGY FOR ENERGY MANAGEMENT IN A GRID CONNECTED