Model predictive control (MPC) solves a finite-horizon optimal control problem at each sampling instant, so that the control actions for the current and a period of future time are obtained. This work explains how this model permits the flexibility of acting while optimizing.