Line Haul at DS.jpeg
Amazon Transportation Services' Middle Mile team “has made longstanding contributions to operations research and analytics for decades, and their impact has been widely noted and recognized,” said Erica Klampfl, 2021 INFORMS Prize committee chair.
Credit: AboutAmazon.com

How Amazon's Middle Mile team helps packages make the journey to your doorstep

The Middle Mile team manages complexity and scale in making routing decisions across the company’s expansive transportation network.

Amazon Transportation Services’ Middle Mile team develops routing solutions to move customer orders from its vendors and fulfillment centers to its network of sortation centers, air facilities, and delivery stations in the most efficient way possible.

Watch Amazon's trucks line up outside a facility

Over the past five years, the team has played a critical role in helping Amazon deliver on increasingly ambitious goals — from two-day and one-day deliveries for Prime customers, to one-hour delivery windows for services like Prime Now.

Recently, INFORMS, the leading international association for operations research and analytics professionals, recognized these achievements by awarding Amazon the 2021 INFORMS Prize. The award recognizes the effective integration of operations research and analytics into organizational decision making.

The INFORMS prize logo is shown atop the Amazon logo
The INFORMS prize "is awarded for effective integration of advanced analytics and operations research/management sciences (OR/MS) in an organization."
INFORMS.org

“Amazon has made longstanding contributions to operations research and analytics for decades, and their impact has been widely noted and recognized,” said Erica Klampfl, 2021 INFORMS Prize committee chair. “Amazon is truly deserving of this prestigious prize, and the entire O.R. and analytics community joins INFORMS in thanking them for all they have done and continue to do.”

Over the past five years, the team has doubled down on scientific innovation and operations research to move millions of packages globally through Amazon’s transportation network. The INFORMS award serves as a reminder not just of the work the Middle Mile team has done at Amazon, but also how far they have come.

An extremely complex problem

Given the high number of variables involved in arriving at optimal routing decisions, complexity is a constant for Amazon’s Middle Mile team.

For every customer order, Amazon’s routing algorithms must determine the best path through the network to move the product between suppliers, fulfillment centers, sorting facilities, and delivery stations, to quickly, safely, and cost-effectively reach customers.

They must evaluate the merits of each transportation option — surface, rail, air, or maritime — and determine the most effective route.  The algorithms also determine an optimal or near-optimal route to send the order to a facility where it can be sorted and handed off for delivery. Finally, all schedules have to be designed in a way that optimizes for safety and complies with government regulations such as rest breaks, hours of service, and other requirements.

Our trucking network alone presents us with over ten octovigintillion possible routing solutions.
Tim Jacobs

“To give you an idea of the scale and complexity we’re managing, our trucking network alone presents us with over 1088 or ten octovigintillion — possible routing solutions,” says Tim Jacobs, director of Middle Mile Research Science and Optimization. “This is an especially large number, when you consider that there are 1082 atoms in the visible universe.”

And that’s just for the trucking network.

When a product is ordered on the Amazon Store, there are several ways it can make its way from a fulfillment center to the customer’s residence.

There’s the (relatively) straightforward approach: The product is sent from a fulfillment center to a sortation center and to a delivery station, at which point it is placed on a vehicle for delivery to the customer’s residence.

There are also more involved scenarios, such as when customers place time-sensitive orders for items stored in geographically distant fulfillment centers. In these cases, the products are often delivered using a combination of Amazon’s air cargo network along with the surface network to meet the customer’s delivery timelines.

When Jacobs joined Amazon in 2016, the majority of the company’s loads were carried by a relatively small number of large third-party carriers that managed the truck assignments and routings. Since then, the Middle Mile team has helped to develop new ways to manage its transportation network, including by routing a growing number of medium and small carriers using Amazon’s own technology and algorithms, enabling more efficient management and visibility of the transportation network, which in turn helps Amazon get packages to customers faster and more efficiently.

That effort began, in part, by expanding the team.

In the beginning: Improving Amazon’s surface operations

In 2016, Mauricio Resende was among just a few scientists in Amazon’s Middle Mile team — a number that has since grown significantly.

Prior to Amazon, Resende worked as a scientist at AT&T Labs focused on combinatorial optimization. At its essence, combinatorial optimization involves using mathematical methods to identify the best decisions for a problem from a large set of candidate solutions.

“In 2016, Amazon’s surface routing decisions were made using a basic local search algorithm,” Resende says. “Loads were allocated in advance. The process was largely iterative, and we drove small improvements to the algorithm week over week.”

Tim Jacobs, director of Middle Mile Research Science and Optimization; Mauricio Resende, principal research scientist; and Nilay Noyan, principal research scientist
Named among others in Amazon's 2021 INFORMS Prize were (from left) Tim Jacobs, director of Middle Mile Research Science and Optimization, Mauricio Resende, principal research scientist, and Nilay Noyan, principal research scientist.

Crucially, in order to automate routing decisions, the algorithms and systems needed to account for differing constraints and inputs that have a profound impact on routing decisions, such as the nuances of different regulatory agencies in each country.

The system also needed to understand the storage and throughput constraints of each facility by considering factors like operating hours or whether parking slips might be required. So, the team worked to model and eliminate those system blind spots.

“We developed more advanced data structures and algorithmic techniques to account for these constraints as we designed routing schedules,” says Resende.

Resende provides the example of a sequence evaluator designed by Amazon’s Middle Mile research team. The evaluator was designed to help find the most effective routing solution for a pre-determined objective function, such as cost, or number of trips with empty loads.

The evaluator computed the cost for a presented route. It kept working through possible changes to the route until a near-optimal route was found. This solution was then perturbed — routes were deliberately eliminated and new deliveries were fed into the algorithm. The task was then repeated. In this manner, the algorithm progressed toward an iteratively better solution.

Through methods such as these, Resende and his fellow researchers drove a significant reduction in surface transportation costs.

When you are working with such a large universe of possibilities, you have to be incredibly efficient in how you formulate the problem.
Mauricio Resende

“When you are working with such a large universe of possibilities, you have to be incredibly efficient in how you formulate the problem,” says Resende. “You then have to be efficient in designing algorithms to solve that formulation of the problem.”

The Middle Mile team also faced situations where it had to route goods that hadn’t been accounted for in the demand forecasts that are an input to its routing plans. While future demand can be predicted, there are still many unknowns at the planning stage. A good example is spikes in demand for new products, or products that become unexpectedly popular.

To cope with demand variability, the Middle Mile team developed a truckload supply load board with dynamic pricing. The load board, powered by a number of machine learning algorithms coupled with mathematical optimization models, allowed Amazon to expand its delivery network by accessing the available capacity of pre-screened carriers operating in a geographical area or lane.

The load board dynamically sets prices for loads that are currently available. Carriers can review available loads simultaneously. Interested carriers can then accept the load at the offered price in real-time. This arrangement also helps carriers optimize the efficiency of their drivers’ schedules.

As Amazon drove improvements to its surface network, the Middle Mile team also leveraged scientific innovation to design routing solutions for its air cargo service, which has expanded rapidly since launching in 2016.

Developing algorithms to manage Amazon’s fleet of contracted airline partners

Nilay Noyan joined the company as a principal research scientist in September 2019. Prior to Amazon, Noyan was a professor of industrial engineering at Sabanci University in Istanbul.

Broadly speaking, the air routing problems are similar to those for surface networks. However, there are completely different constraints associated with airlines.
Nilay Noyan

“Broadly speaking, the air routing problems are similar to those for surface networks,” says Noyan. “However, there are completely different constraints associated with airlines.”

These include regulatory constraints, lead times for procuring aircraft, the impact of fluctuating fuel prices, and resources required to manage airline contracts. Flight schedule designs also need to ensure that there is sufficient time for routine line maintenance, airplane refueling, and the loading and unloading of packages.

Arrival and departure times must be aligned with available capacity and resources to ensure packages are processed on time. To further complicate matters, airline schedules have to be aligned with those of the surface network so there are trucks waiting on the ground to carry packages to the next destination.

Over the past four years, the Middle Mile Planning Research and Optimization Science team has developed and implemented more than a dozen optimization and machine learning models to build and operate the air transport network. These tools help the team arrive at the most optimal decisions in areas such as flight schedule design, fuel management, package flow planning, maintenance planning, and disruption recovery.

Noyan says machine learning also plays an important role in helping the Middle Mile team solve for problems that are inherently stochastic or unpredictable in nature.

Amazon Prime Air Boeing 767
Over the past four years, the Middle Mile Planning Research and Optimization Science team has developed and implemented more than a dozen optimization and machine learning models to build and operate the air transport network.
Chad Slattery

“Deviations from the execution plans are unavoidable in case of unexpected disruption events due to weather, unscheduled maintenance, and crew-related delays,” says Noyan. “Machine-learning-based prediction methods help us react to these unexpected situations, and adapt quickly so that we can meet our delivery promises to customers.”

In addition to helping Amazon adapt to unpredictable events, Jacobs sees machine learning playing an increasingly important role in helping Amazon more effectively unify the worlds of surface, air, rail and maritime networks for both network design and day of operations.  

“At Amazon, we work back backwards from the customer,” he says. “We don’t think of each mode of transport separately, as is common in the industry. Instead, we are continually working to combine these areas effectively, so that the way we plan and the way we operate the network are consistent.”

Related content

US, CA, Palo Alto
We’re working to improve shopping on Amazon using the conversational capabilities of large language models, and are searching for pioneers who are passionate about technology, innovation, and customer experience, and are ready to make a lasting impact on the industry. You’ll be working with talented scientists, engineers, and technical program managers (TPM) to innovate on behalf of our customers. If you’re fired up about being part of a dynamic, driven team, then this is your moment to join us on this exciting journey! We are open to hiring candidates to work out of one of the following locations: Palo Alto, CA, USA
US, WA, Redmond
Project Kuiper is an initiative to launch a constellation of Low Earth Orbit satellites that will provide low-latency, high-speed broadband connectivity to unserved and underserved communities around the world. We are searching for talented candidates with experience in spaceflight trajectory modeling and simulation, orbit mechanics, and launch vehicle mission planning. Key job responsibilities This position requires experience in simulation and analysis of astrodynamics models and spaceflight trajectories. This position requires experience in software development for astrodynamics applications and expertise in supporting mission workflow for satellite operations. Strong analysis skills are required to develop engineering studies of complex large-scale dynamical systems. This position requires demonstrated expertise in computational analysis automation and tool development. Working with the Kuiper engineering team, you will: - Develop modeling techniques for analysis and simulation of deployment dynamics of multiple satellites - Support Project Kuiper’s Launch Vehicle Mission Management team with technical expertise in Launch Vehicle trajectory requirements specification - Develop tools to support Mission Management planning for over 80 launches! - Work collaboratively with launch vehicle system technical teams - Provide support of algorithm development and testing for the Kuiper Flight Dynamics System. - Provide software development support of production code. Export Control Requirement: Due to applicable export control laws and regulations, candidates must be a U.S. citizen or national, U.S. permanent resident (i.e., current Green Card holder), or lawfully admitted into the U.S. as a refugee or granted asylum. We are open to hiring candidates to work out of one of the following locations: Redmond, WA, USA
CN, 11, Beijing
Are you interested in applying your strong quantitative analysis and big data skills to world-changing problems? Are you interested in driving the development of methods, models and systems for strategy planning, transportation and fulfillment network? Are you interested to cooperate with Amazonians around the world? If so, then this is the job for you. Our team, ATE(Analytics Technology and Engineering) is looking for an Applied Scientist to join our growing Science Team in Bangalore (India)/ Beijing(China). We are responsible for creating core analytics tech capabilities, quantative models, platforms development, and data engineering. We develop scalable analytics applications and research models to optimize operations processes. We standardize and optimize data sources and visualization efforts across geographies, build up, and maintain the online business intelligence services and data mart. You will work with other scientists, professional data engineers, business intelligence engineers, and product managers using rigorous quantitative approaches to ensure high quality data tech products for our customers around the world, including India, Australia, Brazil, Mexico, Singapore and Middle East. Amazon is growing rapidly and because we are driven by faster delivery to customers, a more efficient supply chain network, and lower cost of operations, our main focus is in the development of strategic models and automation tools fed by our massive amounts of available data. You will be responsible for building these models/tools that improve the economics of Amazon’s worldwide fulfillment networks in different countries as Amazon increases the speed and decreases the cost to deliver products to customers. You will work on large-scale vehicle routing and scheduling problems under complex operational and physical constraints. You will also identify and evaluate opportunities to reduce variable costs by improving fulfillment center processes, transportation operations and scheduling, and the execution of operational plans. Finally, you will help create the metrics to quantify improvements to the fulfillment costs (e.g., transportation and labor costs) resulting from the application of these optimization models and tools. Key job responsibilities - Design and develop complex mathematical, simulation and optimization models and apply them to define strategic and tactical needs and drive the appropriate business and technical solutions in the areas of vehicle routing, inventory management, network flow, supply chain optimization, demand planning. - Apply theories of mathematical optimization, including linear programming, combinatorial optimization, integer programming, dynamic programming, network flows and algorithms to design optimal or near optimal solution methodologies to be used by in-house decision support tools and software. - Translating business questions and concerns into specific analytical questions that can be answered with available data using Statistical and Machine Learning methods. - Prototype models by using modeling and programming languages with efficient data querying and modeling infrastructure. - Communicate proposals and results in a clear manner backed by data and coupled with actionable conclusions to drive business decisions. - Collaborate with colleagues from multidisciplinary science, engineering and business backgrounds. - Manage your own process. Prioritize and execute on high impact projects, triage external requests, and ensure to deliver projects in time. We are open to hiring candidates to work out of one of the following locations: Beijing, 11, CHN
GB, Cambridge
Our team builds generative AI solutions that will produce some of the future’s most influential voices in media and art. We develop cutting-edge technologies with Amazon Studios, the provider of original content for Prime Video, with Amazon Game Studios and Alexa, the ground-breaking service that powers the audio for Echo. Do you want to be part of the team developing the future technology that impacts the customer experience of ground-breaking products? Then come join us and make history. We are looking for a passionate, talented, and inventive Applied Scientist with a background in Machine Learning to help build industry-leading Speech, Language, Audio and Video technology. As an Applied Scientist at Amazon you will work with talented peers to develop novel algorithms and generative AI models to drive the state of the art in audio (and vocal arts) generation. Position Responsibilities: * Participate in the design, development, evaluation, deployment and updating of data-driven models for digital vocal arts applications. * Participate in research activities including the application and evaluation and digital vocal and video arts techniques for novel applications. * Research and implement novel ML and statistical approaches to add value to the business. * Mentor junior engineers and scientists. We are open to hiring candidates to work out of one of the following locations: Cambridge, GBR | London, GBR
GB, Cambridge
Our team undertakes research together with multiple organizations to advance the state-of-the-art in speech technologies. We not only work on giving Alexa, the ground-breaking service that powers Echo, her voice, but we also develop cutting-edge technologies with Amazon Studios, the provider of original content for Prime Video. Do you want to be part of the team developing the latest technology that impacts the customer experience of ground-breaking products? Then come join us and make history. We are looking for a passionate, talented, and inventive Senior Applied Scientist with a background in Machine Learning to help build industry-leading Speech, Language and Video technology. As a Senior Applied Scientist at Amazon you will work with talented peers to develop novel algorithms and modelling techniques to drive the state of the art in speech and vocal arts synthesis. Position Responsibilities: * Participate in the design, development, evaluation, deployment and updating of data-driven models for digital vocal arts applications. * Participate in research activities including the application and evaluation and digital vocal and video arts techniques for novel applications. * Research and implement novel ML and statistical approaches to add value to the business. * Mentor junior engineers and scientists. We are open to hiring candidates to work out of one of the following locations: Cambridge, GBR | London, GBR
US, VA, Arlington
The GenAI Innovation Center helps AWS customers accelerate their use of Generative AI to solve business challenges and promote innovation across their organizations. The Public Sector team focuses on public sector customers and their unique challenges. As a data scientist, you have deep and broad experience as an ML practitioner. You interface directly with customers to understand and identify their challenges that can be addressed by Generative AI. You build secure solutions that can scale to the size of the problem at hand and guide customers through your rigorous evaluation process. You'll design and run experiments, research new algorithms, and find new ways of optimizing risk, profitability, and customer experience. You're part of both a small team dedicated to public sector customers and a global organization enabling customers to accelerate their progress on GenAI. This position requires that the candidate selected be a US Citizen. AWS Sales, Marketing, and Global Services (SMGS) is responsible for driving revenue, adoption, and growth from the largest and fastest growing small- and mid-market accounts to enterprise-level customers including public sector. The AWS Global Support team interacts with leading companies and believes that world-class support is critical to customer success. AWS Support also partners with a global list of customers that are building mission-critical applications on top of AWS services. Key job responsibilities The primary responsibilities of this role are to: Design, develop, and evaluate innovative ML models to solve diverse challenges and opportunities across industries. Interact with customer directly to understand their business problems, and help them with defining and implementing scalable Generative AI solutions to solve them. Work closely with account teams, research scientist teams, and product engineering teams to drive model implementations and new solution. A day in the life 1. Team with a GenAI strategist to understand a customer problem and provide guidance on how and whether GenAI can help address the issue. 2. Share your latest experiment results or challenges with other scientists on the team. 3. Collaborate on a blog post to share the results and methods used in your most recent customer success. 4. Attend or a deliver a tech talk to highlight a project you or a team mate just completed. 5. Provide feedback to your team during a code review. 6. Meet with customer stakeholders to demonstrate the latest progress on their problem. About the team Diverse Experiences AWS values diverse experiences. Even if you do not meet all of the qualifications and skills listed in the job description, we encourage candidates to apply. If your career is just starting, hasn’t followed a traditional path, or includes alternative experiences, don’t let it stop you from applying. Why AWS? Amazon Web Services (AWS) is the world’s most comprehensive and broadly adopted cloud platform. We pioneered cloud computing and never stopped innovating — that’s why customers from the most successful startups to Global 500 companies trust our robust suite of products and services to power their businesses. Inclusive Team Culture Here at AWS, it’s in our nature to learn and be curious. Our employee-led affinity groups foster a culture of inclusion that empower us to be proud of our differences. Ongoing events and learning experiences, including our Conversations on Race and Ethnicity (CORE) and AmazeCon (gender diversity) conferences, inspire us to never stop embracing our uniqueness. Mentorship & Career Growth We’re continuously raising our performance bar as we strive to become Earth’s Best Employer. That’s why you’ll find endless knowledge-sharing, mentorship and other career-advancing resources here to help you develop into a better-rounded professional. Work/Life Balance We value work-life harmony. Achieving success at work should never come at the expense of sacrifices at home, which is why flexible work hours and arrangements are part of our culture. When we feel supported in the workplace and at home, there’s nothing we can’t achieve in the cloud. We are open to hiring candidates to work out of one of the following locations: Arlington, VA, USA | Denver, CO, USA
US, CA, Santa Clara
Amazon is looking for a motivated individual with strong analytical and algorithmic skills and practical experience to join the Modeling and Optimization (MOP) Routing Science team. Your main focus will be on developing and improving our last-mile experience, with emphasis on algorithmic and analytical work. We are looking for candidates with proven ability to design, implement, and evaluate state-of-the-art solutions to large-scale optimization problems, working closely with software development engineers. The position requires strong background in combinatorial optimization, algorithms, algorithm engineering, and data structures, particularly as it applies to vehicle routing and related problems. Familiarity with data science and Machine Learning techniques is a plus. You will also play an integral role in the network planning, modeling, and analysis that will improve the efficiency and cost effectiveness of global fulfillment operations. You will identify and evaluate opportunities to reduce variable costs by improving the transportation network topology, inventory placement, transportation operations and scheduling, fulfillment center processes, and the execution to operational plans. You will also improve the efficiency of capital investment by helping plan the location and deployment of fixed assets. Finally, you will help create the metrics to quantify improvements to the fulfillment costs (e.g., transportation and labor costs) resulting from the application of these optimization models and tools. Key job responsibilities We are looking for candidates with proven ability to design, implement, and evaluate state-of-the-art solutions to large-scale optimization problems, working closely with software development engineers. The position requires strong background in combinatorial optimization, algorithms, algorithm engineering, and data structures, particularly as it applies to vehicle routing problems. We are open to hiring candidates to work out of one of the following locations: Santa Clara, CA, USA
US, WA, Seattle
We are looking for detail-oriented, organized, and responsible individuals who are eager to learn how to work with large and complicated data sets. Some knowledge of econometrics, as well as basic familiarity with Python is necessary, and experience with SQL and UNIX would be a plus. These are full-time positions at 40 hours per week, with compensation being awarded on an hourly basis. You will learn how to build data sets and perform applied econometric analysis at Internet speed collaborating with economists, scientists, and product managers. These skills will translate well into writing applied chapters in your dissertation and provide you with work experience that may help you with placement. Roughly 85% of previous cohorts have converted to full time economics employment at Amazon. If you are interested, please send your CV to our mailing list at econ-internship@amazon.com. We are open to hiring candidates to work out of one of the following locations: Seattle, WA, USA
US, WA, Seattle
We are looking for detail-oriented, organized, and responsible individuals who are eager to learn how to work with large and complicated data sets. Some knowledge of econometrics, as well as basic familiarity with Python is necessary, and experience with SQL and UNIX would be a plus. These are full-time positions at 40 hours per week, with compensation being awarded on an hourly basis. You will learn how to build data sets and perform applied econometric analysis at Internet speed collaborating with economists, scientists, and product managers. These skills will translate well into writing applied chapters in your dissertation and provide you with work experience that may help you with placement. Roughly 85% of previous cohorts have converted to full time economics employment at Amazon. If you are interested, please send your CV to our mailing list at econ-internship@amazon.com. We are open to hiring candidates to work out of one of the following locations: Seattle, WA, USA
US, MA, North Reading
We are looking for experienced scientists and engineers to explore new ideas, invent new approaches, and develop new solutions in the areas of Controls, Dynamic modeling and System identification. Are you inspired by invention? Is problem solving through teamwork in your DNA? Do you like the idea of seeing how your work impacts the bigger picture? Answer yes to any of these and you’ll fit right in here at Amazon Robotics. We are a smart team of doers that work passionately to apply cutting edge advances in robotics and software to solve real-world challenges that will transform our customers’ experiences in ways we can’t even imagine yet. We invent new improvements every day. We are Amazon Robotics and we will give you the tools and support you need to invent with us in ways that are rewarding, fulfilling and fun. Key job responsibilities Applied Scientists take on big unanswered questions and guide development team to state-of-the-art solutions. We want to hear from you if you have deep industry experience in the Mechatronics domain and : * the ability to think big and conceive of new ideas and novel solutions; * the insight to correctly identify those worth exploring; * the hands-on skills to quickly develop proofs-of-concept; * the rigor to conduct careful experimental evaluations; * the discipline to fast-fail when data refutes theory; * and the fortitude to continue exploring until your solution is found We are open to hiring candidates to work out of one of the following locations: North Reading, MA, USA | Westborough, MA, USA