Gravar-mail: Model predictive control applied to a supply chain management problem