OPTIMIZATION OF BATTERY ENERGY STORAGE SYSTEM POWER