Prediction and optimization for distribution and transportation: A case study