BATTERY ENERGY STORAGE OPTIMIZING GRID