HOW TO OPTIMIZE ENERGY STORAGE SYSTEMS TO