Middle-mile optimization (MMO)