Improving the on-line control of energy storage via forecast error metric customization. (November 2016)