The MPC as we know it solves an underlying optimal control system and also the result obtained using MPC may not be optimal over the entire time horizon? Since I am a beginner in this field, I cannot comprehend how MPC is superior to optimal control in most cases. I will be indebted if someone gives sound explanations along with some good literature which may help me in coding MPC problems.