An overall solution to double-layered model predictive control based on dynamic matrix control