NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Solving an Industrial-Scale Warehouse Delivery Problem with Answer Set Programming Modulo Difference Constraints

David Rajaratnam, Torsten Schaub, Philipp Wanko, Kai Chen, Sirui Liu, Tran Cao SonAlgorithms 2023 · DOI

TL;DR

This paper tackles the complex challenge of optimizing robot movements and task assignments in large-scale industrial warehouses. They introduce a novel approach using Answer Set Programming (ASP) with difference constraints to efficiently generate collision-free schedules for robots, addressing real-world complexities like robot size and varying travel times.

What Problem Does This Paper Address?

Modern warehouses are increasingly relying on fleets of autonomous robots to manage inventory and deliveries. This presents a significant computational challenge: how to coordinate multiple robots to pick up and deliver items efficiently, without collisions, and within tight timeframes. Existing approaches, like Multi-Agent Path Finding (MAPF), often struggle with the scale and specific constraints of industrial settings, such as robots having physical dimensions that can block pathways, and the need for near real-time planning. The authors aim to bridge this gap by developing a formalization and an efficient ASP-based solver for this industrial-scale warehouse delivery problem.

Methods

The core of the paper lies in its novel formalization and encoding of the warehouse delivery problem.

  • Formalization: They model the warehouse as a weighted directed graph, where vertices represent locations and edges represent paths with associated travel times. This is a departure from typical grid-based models, allowing for more flexible representation of complex warehouse layouts. They also introduce a "task execution graph" to capture dependencies between tasks (e.g., picking up an item and then putting it down).
  • Answer Set Programming (ASP) Modulo Difference Constraints: The authors leverage ASP, a declarative logic programming paradigm, to model and solve the problem. They extend ASP with difference constraints, which are crucial for handling the temporal aspects of scheduling, such as arrival and exit times at locations. This allows them to express complex temporal relationships and constraints without explicitly indexing actions by time steps, which can lead to scalability issues.
  • Two Encoding Variants: They propose two main ASP encoding techniques:
  • Step-based Encoding: This approach closely follows their formalization and uses a step-by-step representation of robot movements.
  • Path-based Encoding: This variant is more efficient by abstracting robot movements into sequences of acyclic paths. This approach avoids the need for a fixed time horizon and offers better scalability.
  • Performance Enhancements: To further improve efficiency, they incorporate several techniques, particularly for the path-based encoding:
  • Shortest Path Information: Pre-computing shortest paths between key locations is used for lower-bound propagation, domain-specific heuristics, and defining "corridors" to restrict robot movements.
  • Corridor-Based Routing: This restricts robot movements to predefined paths, significantly reducing the search space and improving grounding performance.
  • Domain Heuristics: These guide the solver to prefer moves on shortest paths and avoid others.
  • Acyclicity Checking: Both task sequences and move sequences are checked for cycles to ensure valid plans.

Datasets

The paper evaluates their approach on two types of benchmarks:

  • Crafted Benchmarks: Synthetically generated warehouse graphs of varying sizes (20x4 to 40x20 grids) and densities. These were used to test the scalability and performance limits of their encodings.
  • Industry Benchmarks: Six real-world warehouse graphs (maps) provided by Dorabot, a robotic warehouse solutions company. These graphs vary in size and complexity (e.g., 31m x 39m to 430m x 85m). They also include variations in robot diameter and the addition of application-specific constraints like pallet replacement time bounds.

Key Insights and Ideas

  • Graph-based Formalization is Key: Moving away from grid-based models to a weighted directed graph representation is crucial for accurately modeling the complex layouts and varying travel times in industrial warehouses.
  • ASP with Difference Constraints is Powerful for Temporal Reasoning: The combination of ASP's declarative nature and difference constraints provides a highly effective way to handle complex temporal scheduling and conflict resolution without explicit time indexing, leading to better scalability.
  • Path-based Encoding Offers Significant Scalability Gains: While the step-based encoding is more general, the path-based encoding, by abstracting movements into acyclic paths, dramatically improves performance and allows for solving much larger and more complex problems.
  • Pre-computed Shortest Paths are Essential for Performance: Leveraging shortest path information through heuristics and corridor restrictions is vital for making the path-based encoding practical for real-world industrial problems.
  • "Good Enough" Solutions are Often Sufficient: For industrial applications, finding a satisfactory solution quickly is often more important than finding a provably optimal solution, which can be computationally prohibitive. Their work demonstrates how to achieve this balance.

Key Results

  • Path-based Encoding Outperforms Step-based: The path-based encoding, especially with performance enhancements, significantly outperforms the step-based encoding, grounding and solving many more instances, particularly from the industry benchmark.
  • Significant Performance Gains from Enhancements: The most performant path-based encoding variant (PATH + LB + CORR(S) + TSKACYC(W)+ MVA+ MvR+ MVH) was able to ground and solve all problem instances, often within seconds or minutes.
  • Corridor Restrictions are Crucial for Grounding: The introduction of corridor-based routing was essential for the path-based encoding to ground all problem instances, especially for the industry benchmarks.
  • Move Heuristics Dramatically Reduce Timeouts: The basic move heuristic (preferring moves not on shortest paths to false) significantly reduced timeouts, dropping from 126/84 to 6/9 for non-strict/strict corridors.
  • Makespan Minimization is Impractical: For large-scale problems, finding a provably optimal solution (minimizing makespan) was computationally infeasible within the given time limits.
  • Pallet Replacement Time Bounds Provide Quality Guarantees: Adding pallet replacement time constraints (a domain-specific quality measure) provided good-enough solutions quickly and often improved the makespan compared to finding the first solution without such constraints.

Limitations and Future Work

  • Path-based Encoding Incompleteness: The path-based encoding is not complete with respect to their formalization, meaning it might not find a solution in cases where the step-based encoding could (e.g., scenarios requiring robots to move back and forth unnecessarily). However, they argue this is rarely an issue in well-designed warehouses.
  • Corridor-Based Routing Can Rule Out Optimal Solutions: While beneficial for performance, corridor restrictions can sometimes lead to suboptimal solutions or even prevent solutions altogether in specific scenarios.
  • Need for Better Conflict Resolution Primitives: For very dense graphs with many conflicting vertices, the current approach can still be computationally demanding. They suggest exploring primitives that group vertices for conflict resolution.
  • Dynamic Re-planning: The current work focuses on static problem instances. Future work should address dynamic re-planning in response to new events and tasks arriving in the warehouse.
  • Exploring More Heuristics and Corridor Definitions: The authors suggest further research into different corridor definitions and more sophisticated domain heuristics for routing and task assignment.
  • Lifelong MAPF: They note that their problem is a specific instance of Lifelong MAPF and suggest future work could extend their approach to handle more general multi-agent pickup and delivery scenarios.

Summary updated

Abstract

A warehouse delivery problem consists of a set of robots that undertake delivery jobs within a warehouse. Items are moved around the warehouse in response to events. A solution to a warehouse delivery problem is a collision-free schedule of robot movements and actions that ensures that all delivery jobs are completed and each robot is returned to its docking station. While the warehouse delivery problem is related to existing research, such as the study of multi-agent path finding (MAPF), the specific industrial requirements necessitated a novel approach that diverges from these other approaches. For example, our problem description was more suited to formalizing the warehouse in terms of a weighted directed graph rather than the more common grid-based formalization. We formalize and encode the warehouse delivery problem in Answer Set Programming (ASP) extended with difference constraints. We systematically develop and study different encoding variants, with a view to computing good quality solutions in near real-time. In particular, application specific criteria are contrasted against the traditional notion of makespan minimization as a measure of solution quality. The encoding is tested against both crafted and industry data and experiments run using the Hybrid ASP solver clingo[dl].
BibTeX
@article{rajaratnam2023solving,
  author = {David Rajaratnam and Torsten Schaub and Philipp Wanko and Kai Chen and Sirui Liu and Tran Cao Son},
  title = {{Solving an Industrial-Scale Warehouse Delivery Problem with Answer Set Programming Modulo Difference Constraints}},
  journal = {Algorithms},
  year = {2023},
  doi = {10.3390/a16040216},
}
Figure