HOW ETB CONTROLLER OPTIMIZES ENERGY STORAGE DISPATCH