Optimizing delivery scheduling with multiple storage locations