From Learning to Optimization in Intelligent Logistics Systems