A CONTROL STRATEGY FOR A GRID CONNECTED PV AND BATTERY ENERGY STORAGE