A real-time optimization framework for the time-varying economic environment. (12th July 2018)