A multi-scale optimization framework for electricity market participation. (15th March 2017)