HOW TO OPTIMIZE ENERGY STORAGE PLANNING AND