Next Article in Journal
Reducing Risks in Design Outsourcing of Complex Systems via Prototyping
Previous Article in Journal
Leading in the Digital Age: Digital Leadership Capabilities, Organisational Innovation Climate, and AI Adoption Intention Among SMEs in Nigeria
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Graph Neural Networks and Deep Reinforcement Learning for Warehouse Order Picking and Representation Learning

Cybernetics & Decision Support Systems Laboratory, Faculty of Organizational Sciences, University of Maribor, Kidričeva Cesta 55a, 4000 Kranj, Slovenia
*
Author to whom correspondence should be addressed.
Systems 2026, 14(6), 659; https://doi.org/10.3390/systems14060659
Submission received: 6 February 2026 / Revised: 28 May 2026 / Accepted: 4 June 2026 / Published: 8 June 2026

Abstract

Order picking is one of the most resource-intensive warehouse operations; therefore, improving routing efficiency remains an important challenge. Deep reinforcement learning (DRL) has shown promise in complex optimization problems. However, its application to warehouse order picking is still limited, and graph-based representation learning using graph neural networks (GNNs) in this context remains largely unexplored. This paper proposes a GNN-based DRL method that models warehouse layouts as graphs to optimize order-picking paths while simultaneously learning graph-based structural embeddings of storage locations. The approach is evaluated against exact optimal solutions for smaller instances and against classical heuristic baselines, including the Lin–Kernighan algorithm, in simulated warehouse environments of different scales. The results show that the proposed GNN–DRL approach produces routing solutions with low optimality gaps across different order sizes and remains effective across different warehouse sizes when fine-tuned. In addition, a preliminary small-scale multi-picker experiment illustrates that the proposed framework could be extended toward more complex warehouse optimization settings. Moreover, the learned node embeddings capture meaningful structural properties of warehouse layouts and adapt to different operational contexts, highlighting the potential of integrating GNNs and DRL as a flexible foundation for advanced warehouse optimization.

1. Introduction

Order picking is one of the most resource-intensive warehouse operations, accounting for a substantial share of operational costs in traditional and semi-automated facilities [1]. In its basic form, the order picking routing problem can be modeled as a Traveling Salesman Problem (TSP), which is NP-hard. In practice, however, warehouse systems introduce additional complexities such as order batching, multiple pickers, congestion effects, and integrated assignment and scheduling decisions. A wide range of heuristics and optimization approaches have been proposed for warehouse routing and related problems, often relying on mathematical programming and decomposition techniques to manage congestion, workload balancing, and fleet coordination for robotic warehouses [2,3,4]. In addition, the literature on dynamic vehicle routing problems (DVRPs) addresses routing decisions that must adapt to newly arriving requests or changing system conditions [5] which is relevant in a warehouse setting. Some of the recent work in the research area of DVRP explores anticipatory decision-making using approximate dynamic programming and hybrid offline–online approaches to account for future uncertainty and system dynamics [6].
The TSP is typically formulated as a graph-based problem. Graphs can be represented in two common ways: 1. where nodes correspond to coordinates in a geometric space, and 2. where nodes are defined by pairwise distances in a completely weighted graph. Warehouse layouts often impose grid-like constraints (orthogonal aisles and cross-aisles) [1], where distances follow Manhattan metrics rather than direct Euclidean distances. To model these settings, warehouse graphs are usually constructed with intersections and storage locations as nodes, with edges representing feasible traversal paths. These graphs are reduced to or constructed only from storage locations on order path, with distances computed via shortest paths through the layout [7].
Recent advances in Deep Reinforcement Learning (DRL) have shown promising results for combinatorial optimization tasks such as the TSP by training agents to take actions based on environment states and rewards from reward functions [8]. Although a few studies have explored DRL in warehouse optimization, it remains limited and underexplored [9,10,11]. Use of DRL in warehouse environments could enable agents capable of making dynamic operational decisions, such as route selection, order batching, and item allocation.
A promising research direction also lies in graph representation learning, which aims to learn vector embeddings of graphs, nodes, or edges [12]. Since warehouses can be represented as graphs, Graph Neural Networks (GNNs) [13] can offer a powerful way to extract embeddings for storage locations and other entities. These embeddings could capture structural information about warehouse layouts and provide richer inputs for decision-making tasks compared to hand crafted features. For example, item allocation policies might be improved by leveraging learned embeddings that encode layout-specific characteristics. The representation learning capabilities of the proposed approach enable the model to capture structural relationships within the warehouse graph, which can help the policy better reflect operational constraints. In addition, the learned node embeddings provide a compact representation of node roles within the graph, offering insight into the model’s decision process and improving the interpretability of the learning-based approach.
Importantly, the purpose of learning embeddings in this work is not limited to solving a single small TSP instance. Instead, embeddings allow the model to learn structural regularities of warehouse layouts and support policy learning rather than solving each routing instance independently from scratch. This method also provides a foundation for extending the approach toward more complex operational settings, including multiple pickers.
Several studies demonstrate that exploiting structural properties of routing instances can significantly improve performance. For example, clustering-based decomposition methods partition nodes into groups and construct local routes before integrating them into a global solution, thereby improving heuristic efficiency for TSP variants [14]. In warehouse environments, routing problems are often modeled as hierarchical extensions of the TSP that capture additional operational structure [15]. These approaches highlight the importance of identifying and leveraging latent structural properties of the underlying graph.
Graph neural networks address this challenge by learning continuous vector embeddings that encode structural position, connectivity patterns, and relational context within the graph. In contrast to predefined clustering strategies, embeddings provide a structural abstraction that allows the model to capture latent groupings and dependencies without explicit manual decomposition. Such an approach would be essential for developing scalable policies capable of generalizing to realistic warehouse settings involving multiple orders, alternative storage locations, and dynamic operational constraints without decomposition.
In this work, we propose an integrated GNN-based deep reinforcement learning framework for warehouse optimization that jointly addresses order picking path optimization and warehouse layout representation learning. Specifically, we aim to demonstrate the feasibility of training GNN models to produce near optimal order picking routes and learn embeddings of warehouse storage locations. Currently we only focus on optimizing order picking path, but we envision extending this approach to other problems by including orders and items as graph nodes and defining new reward functions, thereby laying the groundwork for a foundational GNN–DRL model that can be fine-tuned for diverse warehouse optimization tasks.
The present study deliberately focuses on a simplified single-picker routing scenario to evaluate the proposed GNN–DRL method in a controlled and analytically transparent setting. This formulation enables direct comparison with well-established TSP solution methods and allows us to isolate and assess the capabilities of the model without additional confounding operational complexities.
The objective of this work is not to replace exact TSP solvers in static environments, where optimal or near-optimal solutions can be obtained efficiently, but rather to establish a generalizable methodology for dynamic graph-structured warehouse optimization. By demonstrating that GNNs can learn meaningful structural embeddings while producing competitive routing policies, we lay the groundwork for extending the approach to more realistic and dynamic settings.
In particular, the proposed method is designed to accommodate future extensions involving multiple pickers, order batching, dynamically arriving orders, congestion effects, and jointly optimized warehouse decisions. The current formulation therefore represents a foundational step toward a holistic approach to optimization in complex warehouse systems. To illustrate the potential of the framework beyond the single-picker setting, we additionally conducted a small-scale experiment involving multiple pickers.
DRL applications with GNNs integration in the domain of internal logistics remain scarce [16,17,18], and to the best of our knowledge, no existing study explicitly focuses on representation learning, leaving significant unexplored potential for advancing real-time, data-driven warehouse decision making.
Accordingly, this paper addresses the following research question: can graph neural networks learn meaningful embeddings of warehouse layouts that capture their structural properties while producing near-optimal order-picking paths, and can such models generalize across different warehouse configurations?
The main contributions of this paper are threefold:
(i)
We formulate the warehouse order-picking problem as a graph-based deep reinforcement learning task using graph neural networks.
(ii)
We demonstrate that the proposed GNN–DRL approach produces routing solutions with low optimality gaps in simulated warehouse environments, with increasing advantages for larger and more complex orders and can generalize across different warehouse configurations with appropriate fine-tuning.
(iii)
We show that the learned node embeddings capture meaningful structural properties of warehouse layouts.
We evaluate the proposed approach in simulated warehouse environment and discuss its applicability to a broader class of warehouse optimization problems. Overall, the presented GNN–DRL framework provides a unified methodology for order-picking optimization and warehouse representation learning, and establishes a flexible foundation for advanced, real-time, data-driven warehouse decision-making systems.
Section 2 describes the warehouse graph construction and the GNN–DRL methodology. Section 3 presents experimental results, embedding analysis and a smaller preliminary multi-picker experiment. Section 4 discusses implications, limitations, and future research directions.

2. Materials and Methods

In this study we used synthetic warehouse layouts that were modeled as graphs, transforming them into inputs suitable for Graph Neural Networks (GNNs). GNN was trained using Deep Reinforcement Learning (DRL) to address the order-picking problem, with the additional objective of learning graph representations that capture warehouse structure and support decision-making. Our methodology follows a multi-step pipeline consisting of the following steps:
  • Graph Construction from Relational Data: Warehouse layout is modeled as graph derived from relational database representations of storage locations and aisles of synthetic warehouse layout. We define nodes corresponding to intersections and storage locations, and edges corresponding to feasible traversal paths. We employ both PyTorch Geometric (version 2.7.0) [19,20,21] and NetworkX (version 3.6.1) [22] python (version 3.13.11) libraries to construct graphs. We use PyTorch graph for GNNs training and NetworkX for calculation of shortest distances for reward functions and for construction of distance matrices. PyTorch Geometric graphs are processed to conform to the input requirements of GNN training.
  • Graph Verification: To verify the correctness of the constructed graphs, we manually checked the graph representation against the warehouse layout by comparing the distances between connected nodes in the graph with the corresponding distances in the tiny sized warehouse layout. This check was performed for all edges near intersections, where graph-construction errors are most likely to occur, and for a random sample of edges inside the aisles. This ensured that aisle, cross-aisle, and entrance connections were correctly represented, we also computed and visualized small set of optimal picking paths using python-tsp [23] implementation of Dynamic programing [24] to check for possible visible errors in graph. This ensures that the graph representation accurately reflects warehouse layout constraints and distances.
  • Training GNN with DRL: We integrate GNNs with DRL to learn both embeddings of storage locations that capture layout structure and policy for generating optimized picking routes. The DRL agent produces actions based on warehouse graphs and receives rewards based on path efficiency.
  • Evaluation of order picking paths produced by GNN: We compare the performance of the GNN–DRL model against classical heuristics in terms of average travel distance. Algorithms used for comparison are: Christofides algorithm [25], Local Search [26] and basic (ejection-chain) implementation of Lin–Kernighan heuristic [27]. We used python-tsp [23] implementation of those algorithms except for Christofides for which we used our own implementation.
  • Embedding Visualization and Evaluation: The learned embeddings from the GNN are visualized and evaluated to assess whether they capture meaningful structural properties of warehouse layouts.
All experiments are conducted on synthetic warehouse layouts of different sizes generated to simulate a realistic grid-like layout. GNN training is run on a consumer-grade GPU (RTX 5060ti) inside a personal computer with 8 core CPU with 16 threads and 64 GB of RAM, demonstrating the feasibility of our approach without requiring large-scale computational resources.
The warehouse layout is formalized as a weighted graph G = ( V , E ) , where the vertex (nodes) set V represents storage locations, aisles, intersections, and entrances, and edge weights; E corresponds to physical travel distances (Figure 1). Distances are derived from typical Warehouse Management System (WMS) data or, when unavailable, estimated from the geometric layout [28]. Edge weights (distances) between two adjacent storage locations are defined as the physical widths of the storage location closer to the entrance. In our experiments, all storage locations have the same width of 1 m. For example, in Figure 1, the distance between storage location 0 and 3 is defined by the width of location 0 and is therefore 1 m. Non-ground locations are connected exclusively to the corresponding ground-level location with distance of 1 m. This allows locations at the same ground position to be treated consistently in the model. Horizontal storage locations are connected to neighboring ground-level storage nodes, with additional edges introduced between nodes on opposite sides of an aisle and weighted by the aisle width. Edges connecting aisle nodes to storage nodes are assigned distances of full aisle length. Intersection nodes are positioned along aisles and connected to the intersecting aisles, the nearest storage nodes, and to successive intersections within the same aisle, thereby forming continuous traversal paths. Both intersection and aisle nodes are removed in the final graph representation for GNN training, after which storage locations previously connected through intersections are linked directly. Further modifications required to prepare the graph as input for the GNN, including the selection of anchor nodes and the picker node, are described later in the text.
The smaller demo warehouse layout used for training contains 600 storage locations, arranged along 3 vertical aisles and 10 horizontal aisles with storage locations being assigned only to horizontal aisles, with two opposing storage walls per aisle of size x × y (x = 10, y = 3). In addition, the layout instance includes 15 intersections, modeled as graph nodes that connect vertical and horizontal aisles. For additional fine tuning and evaluation, we used larger warehouse with 1200 storage locations that has 10 additional horizontal aisles (two columns of 10 horizontal aisles versus two columns of 5 aisles for smaller warehouse).
Figure 2 illustrates the database schema employed to construct the experimental warehouse graph. The schema formalizes the warehouse layout through relational entities representing warehouses, aisles, intersections, storage locations, entrance nodes, and edges. These entities and their relationships are used to represent the corresponding graph structure, where nodes represent physical locations and edges encode navigable connections. For graph construction, distances between intersections located on the same aisle are approximated as 3 m. Note that the illustrated schema does not represent a real-world warehouse management system (WMS) database. Instead, it serves as a representation of the data required to generate the warehouse graph and to improve the reproducibility of the study.
Figure 3 depicts the graph-based representation of the experimental warehouse layout constructed using the Python NetworkX library (version 3.6.1). Nodes represent physical warehouse entities, including entrances, aisles, intersections, and storage locations, and are distinguished by color. Aisles 0, 6 and 12 are vertical aisles with no assigned locations. Edges denote feasible traversal paths between nodes. A similar graph structure as depicted in Figure 1 and Figure 3 serves as the input to the GNN, supporting the learning of node embeddings and the extraction of warehouse structural representations for downstream decision-making in order-picking tasks.
Figure 4 illustrates an example of an optimal order-picking route generated from a graph-based representation of the warehouse in a top-down view. The warehouse entrance (denoted by E) represents the starting and ending location of the picking tour. Storage locations with visible IDs and marked with green are ones on the picking path. The numbers displayed above the blue points denote the order in which locations are visited in the optimal picking sequence. Shortest-path distances between all pairs of storage locations are computed using Dijkstra’s algorithm [29], while the overall optimal picking sequence is determined using dynamic programming. Distances between locations are defined as described in Figure 1. Each square in Figure 4 represents an area of 1   m × 1   m . For non-ground-level locations ( i d   m o d   3 0 ), an additional distance of 1 m must be considered, as illustrated in Figure 1—although this is not visible in Figure 4. Similarly, a side change within the same aisle adds 1 m.
The diagram in Figure 5 illustrates the process of constructing the initial graph structure from warehouse layout data. It begins with retrieving data from a database and then creating nodes representing storage locations, aisles, intersections, and the entrance. Edges are added between nodes to reflect connectivity, with distance attributes based on physical measurements (such as storage width or height, and aisle length or width).
Next, all pairs shortest-path distances are computed using Dijkstra’s algorithm. For GNN processing, intersection and aisle nodes are subsequently removed, and storage nodes that were previously connected through these nodes are directly connected as shown in Figure 1. This graph simplification was observed to have a positive impact on the quality of storage-node embedding representations, while no change, in the average shortest-path distance in early training stages was observed, when compared to the original graph containing intersection and aisle nodes. We attribute this to the aggregation behavior of GNN layers, whereby storage nodes adjacent to any intersections become more similar to one another.
Finally, a set of anchor nodes (e.g., the first, middle, and last node ID) is selected, and additional anchor-type edges are introduced to store shortest-path distances from each node to these anchor points as shown in Figure 1. While it is not critical which specific nodes are selected as anchors, it is important that anchor nodes are not located next to each other and that they are well distributed across the warehouse layout. In our implementation, anchor nodes are selected as the first, middle, and last nodes according to the node ID ordering. These nodes provide a good spatial distribution across the warehouse, and the distance between the first and last node corresponds to the maximum possible distance between two storage locations in the graph. All distances are then normalized using minimum and maximum distances from anchor edges, resulting in a graph representation that is subsequently used for training and simulation.
DRL is used to train the GNN. Unlike supervised learning, where a model is trained to reproduce predefined outputs or labels, DRL trains the model to maximize a reward through interaction with the environment. Training is organized into episodes. During each episode, the model selects actions by following some learned policy, and the resulting changes in the environment state are observed. At the end of the episode, rewards are calculated and used to update the model so that actions leading to higher rewards become more likely. This approach is well suited to problems for which the optimal solution is unknown or computationally expensive to obtain [8].
In the proposed method, the GNN is trained to construct picking routes for a given order. At each decision step, the GNN selects the next action, which corresponds to the next storage node to be visited. A complete route is generated by repeatedly selecting actions from the learned policy and updating the environment state, including the picker position and the remaining locations to be visited, until all required locations have been visited. The diagram (Figure 6) illustrates the workflow of a single episode during simulation and training of the GNN-based order-picking agent. Each episode begins with the generation of random orders, after which all subsequent steps are executed in parallel for the entire batch of orders. For each order, a copy of the initial warehouse graph is constructed, and additional features are assigned to storage nodes to indicate their role. Storage nodes along the current path are marked with a binary feature (0 or 1) indicating whether they are part of the active path. An additional picker node is introduced to represent the current location of the picker. This node is connected to the entrance node or storage node that the picker most recently visited (for example see Figure 1). GNN produces two outputs:
  • A score for each storage node, representing the likelihood that the node should be chosen as the next step in the path.
  • A graph-level score, obtained via mean pooling over all storage node representations in the final GNN layer followed by feed forward layer (linear), giving value estimation (approximation of total distance left on order picking path).
During action selection, non-candidate storage nodes (those not on the path) are masked out, and a SoftMax is applied over candidates scores to generate probabilities. During training, the next action is sampled from this distribution, while during testing, the action with the maximum probability (argmax) is chosen. During training we remove last step from each order from our training dataset as number of candidates is only 1.
The resulting states, actions, value estimates, and rewards are stored, and the process is repeated until all required storage locations for each order have been visited. After completion of the picking tour, rewards are computed based on the total travel distance, including the return to the entrance, and normalized using the minimum and maximum values derived from anchor-based distances. Finally, the GNN is trained for several epochs using the collected episode data, after which the system proceeds to the next episode and repeats the cycle.
Finally, the trained model is evaluated on randomly generated test orders. The testing workflow is the same as the training workflow, except that the GNN training step is skipped because the model has already been trained. The trained model is therefore applied directly to previously unseen orders without need for retraining.
The GNN is trained using DRL training method named Proximal Policy Optimization (PPO) [30], which is an improvement over policy gradient methods [31]. The algorithm aims to maximize the average of action probabilities of taken actions based on the advantage estimator. Actions with higher advantage are reinforced, increasing their probability in future decisions, whereas actions with lower or negative advantage reduce their likelihood of being chosen in future decisions. This guides the policy toward selecting more effective actions and gradually improving overall performance. The policy is optimized by maximizing the policy gradient objective using gradient ascent, which is equivalent to minimizing the negative objective via gradient descent. Formally, the policy gradient loss is defined as:
L P G θ = E ^ t log π θ ( a t | s t ) A ^ t ]
where π θ denotes the policy parameterized by θ, representing the probability distribution over possible actions. π θ a t s t is the probability of taking action a t given the state s t at time step t and A ^ t is the estimated advantage function, which measures how much better (or worse) an action is compared to the expected value under the current policy. E ^ t represents empirical expectation over time steps, approximated in practice by averaging over a batch.
In algorithms like PPO, we are not just increasing the raw probability of an action in isolation; we are increasing the probability relative to the previous policy. Algorithms control updates relative to the previous policy rather than boosting absolute probabilities. To quantify this change, PPO defines a probability ratio between the new and old policies as
R t θ = π θ ( a t | s t ) π θ o l d ( a t | s t )
which measures how much more (or less) likely the current policy π θ is to select action a t in state s t compared to the previous policy π θ o l d . The unclipped objective is then expressed as
L θ = E ^ t R t θ A ^ t
In PPO, the clipping mechanism is used to prevent the policy from changing too much in a single update. While the policy ratio measures how much more (or less) likely the new policy is to select an action compared to the old policy, large deviations can destabilize learning. Clipping restricts the ratio to stay within a small range (e.g., 1 ± ϵ ). If the ratio moves outside this range, the objective uses the clipped value instead. This ensures that actions with high advantage are still encouraged, but the update remains controlled, preventing overly aggressive policy changes that could harm performance. The clipped objective is defined as:
L C L I P θ = E ^ t [ min ( R t θ A ^ t ,   c l i p R t θ , 1 ϵ , 1 + ϵ A ^ t ) ]
where ϵ is the clipping parameter (typically set to 0.1–0.2).
Full PPO loss function is sum of L C L I P and value loss L V a l u e that is mean squared error between predicted and target value estimation multiplied by value coefficient and subtracted by entropy of probability distribution H multiplied by entropy coefficient). The full loss is defined as:
L = L C L I P θ c v a l u e L V a l u e ( θ ) + c e n t r o p y H ( π θ )    
where c v a l u e and c e n t r o p y are weighting coefficients for the value loss L V a l u e (mean squared error between predicted and target value estimation) and entropy H . Increasing the entropy of the policy helps promote exploration during training. A higher-entropy policy corresponds to a more diverse or less deterministic action distribution.
To improve training stability, methods such as Generalized Advantage Estimation (GAE) [32] are used. Without GAE, when the full sequence of rewards for an episode is available, the value target for the critic can be computed as the discounted sum of all future rewards. In our setting, the reward corresponds to the negative distance to the next location, and at the final timestep of an episode (when the agent reaches the last location in the path), we add the distance back to the entrance. All distances are normalized using the minimum and maximum values derived from anchor distances. Formally, target value estimate V ^ t is defined as:
V ^ t = l = 0 γ r t + 1
where r t + 1 is the reward at timestep t and γ is the discount factor. The corresponding advantage can then be expressed as:
A t = V ^ t V ( s t )
where V ( s t ) denotes the value function prediction for state ( s t ) and V ^ t is target value estimate.
GAE improves this by using a smoothed combination of temporal-difference errors denoted as δ t . across multiple time steps. The temporal-difference at time step t is defined as:
δ t = r t + γ V s t + 1 V ( s t )
where r t is the immediate reward, V ( s t ) and V s t + 1 are value function estimates for the current and next state, respectively, and γ is the discount factor. The parameter λ is subsequently used in GAE to control the exponential weighting of δ t over time. Advantage estimation A ^ t is then calculated as sum of δ t and advantage of next step. A ^ t satisfies the following recurrence relation:
A ^ t = δ t + γ λ A ^ t + 1
where λ is the GAE smoothing parameter. The value target V ^ t is obtained by adding the advantage estimate A ^ t to the baseline value function estimate V ( s t ) .
V ^ t = A ^ t + V ( s t )
We applied Generalized Advantage Estimation (GAE) using a smoothing parameter λ = 0.9 and a discount factor γ = 0.99 .
GNN training hyperparameters are set as follows: the entropy coefficient is 0.001, the value function coefficient is 0.5, and the PPO clipping parameter ( clip _ eps ) is 0.1. Optimization is performed using the AdamW [33] optimizer with a learning rate of 1 × 10 4 and a batch size of 64.
At each episode, 42 random orders of size 25 are generated. For each order, the picker’s path is simulated, rewards are computed, and the model is trained for 8 epochs using the collected trajectories.
The model architecture begins with an embedding layer which increases dimensionality to 32. This is followed by 12 TransformerConv [34] layers with 4 attention heads and an output dimension of 32. After the TransformerConv layers, a linear layer is applied to nodes of the target type (storage nodes), followed by an additional linear layer that produces node-level scores. A SoftMax function is then applied to obtain action probabilities.
To estimate the global value, mean pooling is applied to the node embeddings after the first linear layer, followed by a linear layer that outputs the graph-level value estimate.

3. Results

Figure 7 shows the progression of the average distance per order during training of the GNN–DRL model and its comparison with classical heuristics. The x-axis represents the number of training episodes, ranging from 0 to 18,500, while the y-axis denotes the average distance traveled per order, measured in meters. Performance is evaluated every 100 episodes on a new set of 1000 randomly generated orders of size 25. The GNN–DRL model is compared against three baseline methods: Local Search, Christofides, and Lin–Kernighan indicated in the legend. To make figures more readable the y-axis is limited to the value of 185 m (values for episodes 100, 200, 300, 400 with y values cut from figure are approximately 259 m, 211 m, 189 m, 189 m).
During early training, the GNN–DRL model exhibits higher variance and longer average distances, followed by a gradual improvement as training progresses. After approximately 3000 episodes, the GNN–DRL model consistently outperforms the Christofides heuristic; after around 8000 episodes, it surpasses Local Search; and after approximately 12,000 episodes, it achieves sustained improvements over the Lin–Kernighan heuristic. After that, the GNN–DRL model maintains a consistently lower average distance per order than Local Search, Christofides, and Lin–Kernighan, demonstrating its advantage in the converged regime.
Temporary spikes in the GNN–DRL performance curve are visible throughout training and are attributed to continued exploration, which may allow the model to escape local minima. Each training episode requires on average 1.34 min, resulting in a total training time of approximately 17 days for 18,500 episodes of continuous training. Note that this is a one time cost and inference is done in around 0.057 s for every step (Simulation part in Figure 6) so for an order size of 15 it takes around 0.86 s and for an order size of 25 it takes around 1.44 s. For an order size of 25, the Lin–Kernighan heuristic is substantially faster for a single order, requiring less than 0.005 s per order. The computation time of the GNN–DRL approach can be substantially reduced by processing multiple orders in batches. When 1000 orders are evaluated together using the GNN model with a maximum batch size of 256, the average computation time decreases from 1.44 s to approximately 0.086 s per order. Although the Lin–Kernighan heuristic is faster, the GNN–DRL runtime is still practical for real-time use.
In the final phase of training, the model was trained on orders with sizes ranging from 5 to 25 storage locations, using 42 randomly generated orders per order size for each episode for a total of 50 training episodes. Model performance was first evaluated against optimal solutions for order sizes between 5 and 20. For each order size, 1000 random orders were generated, and the optimal route for each order was computed using dynamic programming. The optimality gap was calculated as the percentage deviation from the optimal solution:
G a p i ( % ) = L i method L i optimal L i optimal 100
where L i method denotes the route length produced by the evaluated method for order i , and L i optimal denotes the corresponding optimal route length. The reported gap represents the average gap across all 1000 test orders for a given order size.
Table 1 reports the average route lengths and instance-level optimality gaps for the proposed GNN–DRL method and the Lin–Kernighan heuristic. The mean GNN–DRL optimality gap remains below 2% for all tested order sizes, increasing from 0.77% at order size 5 to 1.72% at order size 20. From order size 13 onward, the GNN–DRL gap remains within a narrow range of 1.65–1.82%, indicating that the increase in the gap becomes less pronounced for larger orders. The percentage of optimal solutions decreases as the order size increases for both methods, which is expected as the routing problem becomes more complex. However, GNN–DRL maintains a comparable or higher percentage of optimal solutions than Lin–Kernighan for larger order sizes. At order size 20, GNN–DRL produces optimal solutions for 33.8% of the tested orders, compared with 22.0% for Lin–Kernighan. The 95th percentile gap further shows that GNN–DRL remains relatively stable across order sizes. For GNN–DRL, the P95 gap stays mostly between approximately 5% and 7%, reaching 5.57% at order size 20. In contrast, the Lin–Kernighan P95 gap increases more clearly and reaches 8.80% at order size 20. Overall, these results indicate that the proposed GNN–DRL method remains close to the exact optimum across the tested order sizes and shows more stable high-percentile behavior for larger instances.
Those results should be interpreted as evidence that the proposed GNN–DRL policy can approximate optimal routing decisions, rather than as a claim that it replaces exact methods or highly optimized OR solvers for static TSP-like instances. Exact methods and strong heuristics remain well suited for the current static single-picker setting. However, the low optimality gaps indicate that the proposed graph-based learning approach may provide a useful foundation for more complex joint optimization settings where the problem cannot be reduced to a standard static TSP formulation.
A separate comparison was then conducted for larger order sizes, where exact dynamic programming was not used as the primary reference due to its increasing computational cost. In this experiment, order sizes from 5 to 35 items were evaluated, with 1000 randomly generated orders for each order size. The routes produced by the proposed GNN–DRL approach were compared with those generated by the Lin–Kernighan heuristic. This larger-scale comparison is reported separately from the optimality-gap analysis and is intended to evaluate the scalability of the learned policy relative to a strong heuristic baseline.
Figure 8 jointly illustrates the effect size and statistical significance of the performance difference between the GNN–DRL model and the Lin–Kernighan heuristic as a function of order size. Statistical significance is assessed using a Wilcoxon signed-rank test [35], applied separately for each order size to the paired route lengths obtained from 1000 randomly generated orders. The x-axis represents the order size, while the left y-axis shows the relative improvement of GNN–DRL over Lin–Kernighan, expressed as the percentage reduction in average route length. Negative values indicate superior performance of the GNN–DRL model. The right y-axis reports the statistical significance of this difference using the Wilcoxon signed-rank test, expressed as l o g 10 ( p - value ) , with the dotted horizontal line indicating the conventional significance threshold of p = 0.05 .
Statistically significant improvements (p-value < 0.05) emerge from order size 15 onward, with significance increasing rapidly for larger orders and reaching extremely small p-values that are close to zero (below 10−30) for most order sizes above 20. The standard deviation values for both methods remain comparable across all order sizes, indicating that the observed performance gains are not driven by increased variance or outliers.
The corresponding Table 2 provides a quantitative comparison between GNN–DRL and Lin–Kernighan across all evaluated order sizes, reporting average route lengths, percentage changes, standard deviations, and Wilcoxon signed-rank test statistics. For small order sizes (5–10 locations), average route lengths are nearly identical, and differences are not consistently statistically significant. As order size increases, the GNN–DRL model increasingly outperforms Lin–Kernighan, as reflected by a growing negative percentage change in route length.
p-values in the tables are reported in scientific notation (e.g., 1.11 × 10 60 ), representing very small numbers close to zero and indicating strong statistical significance. Overall, the results shown in Figure 8 and the accompanying table (Table 2) demonstrate that the performance advantage of the GNN–DRL approach against Lin–Kernighan becomes more pronounced as order size and combinatorial complexity increase as distinguishable by increasingly bigger percentage difference and p-values close to zero which shows bigger significance in difference between approaches, confirming its effectiveness for larger and more challenging order-picking problems.
When the model trained on the smaller warehouse was directly applied to the larger warehouse containing approximately 1200 storage locations, a decrease in performance was observed. To address this, the model was fine-tuned on the larger warehouse by training for an additional 2800 episodes using orders of size 25, with 4 training epochs per episode. Due to GPU memory constraints, the batch size was reduced from 64 (used for the smaller warehouse) to 48, and the learning rate was decreased from 1 × 10 4 to 1 × 10 5 . After this fine-tuning phase, an additional 50 episodes of training were performed using variable order sizes ranging from 5 to 25 locations, following the same procedure as for the smaller warehouse.
Figure 9 illustrates the performance of the GNN–DRL model during fine tuning and baseline heuristics when applied to a larger warehouse instance. The x-axis shows the number of training episodes, while the y-axis reports the average distance per order in meters. Results are shown for the GNN–DRL model and three comparison methods: Local Search, Christofides, and Lin–Kernighan.
As shown in Figure 9, the GNN–DRL model consistently achieves lower average distances per order compared to the Lin–Kernighan heuristic throughout training, despite the increased problem scale. However, the relative performance improvement is smaller than that observed for the smaller warehouse, indicating a slight reduction in percentage gain as warehouse size increases. These results demonstrate that while the GNN–DRL approach generalizes to larger warehouse instance, additional fine-tuning is necessary and performance gains diminish moderately with the increase in total number of storage locations in warehouse.
Figure 10 illustrates the effect size and statistical significance of the performance difference like Figure 8 but for a bigger warehouse. The solid curve with circular markers represents the percentage improvement of GNN–DRL relative to Lin–Kernighan. For small order sizes, improvements are close to zero and fluctuate around the baseline, indicating negligible performance differences. Order sizes for which the Wilcoxon test does not indicate statistical significance ( p 0.05 ) are sizes 7, 8, 9, and 11 and are highlighted with large red cross markers. These cases correspond to the entries in Table 3 where p-values exceed the 0.05 threshold, confirming that observed differences for small order sizes are not statistically significant.
As order size increases, the magnitude of improvement steadily grows, reaching reductions of approximately 1.0–1.6% for larger orders. In parallel, the l o g 10 ( p - value ) curve rises sharply, indicating rapidly increasing statistical significance. From order size 11 onward, all improvements are statistically significant, with p-values decreasing by several orders of magnitude. For orders above 24 locations, the p-values reported in the table mostly fall below 10 20 , demonstrating that the observed performance gains are both substantial and highly robust.
Overall, Figure 10 and the accompanying Table 3 consistently show that while performance differences between GNN–DRL and Lin–Kernighan are marginal and statistically insignificant for small orders, the GNN–DRL model achieves increasingly larger and statistically significant improvements as order size and therefore combinatorial complexity increases. This confirms that the advantage of the GNN–DRL approach becomes more pronounced in larger and more challenging order-picking scenarios.
To better understand how the GNN captures the warehouse structure, we visualize the learned embeddings of storage nodes. The embeddings are taken from the output of the final TransformerConv layer under the conditions where all storage locations are marked as being on the order path and the picker location is set to the entrance. For visualization purposes, the embedding dimensionality is reduced to two using Uniform Manifold Approximation and Projection (UMAP) [36].
Figure 11 presents the resulting visualization alongside the corresponding warehouse layout grid. On the left, storage locations are colored according to their physical aisles, while on the right, colors represent k-means clusters [37] derived from the learned embeddings. The number of clusters is set equal to the number of aisles containing storage locations. Each point corresponds to a storage location: the point shape (square vs. circle) indicates the side of the aisle, border thickness encodes the x-coordinate (thicker borders correspond to larger x values), and opacity represents the y-coordinate, with more opaque points indicating higher vertical positions.
Spatial mapping enables a direct comparison between the learned embedding space and the physical warehouse layout. In the left part of Figure 11, colors denote individual aisles. While storage locations from the same aisle tend to form broadly coherent clusters, the embedding structure indicates that physical proximity, both between storage locations and relative to the warehouse entrance, also plays an important role and in some cases appears more influential than aisle membership. Storage locations that are spatially close to one another, as well as those with similar distances to the entrance, appear closer in the embedding space even when they belong to different aisles. The strong alignment between the relative positions of storage locations in the embedding space and their positions in the physical warehouse layout demonstrates that the learned embeddings successfully preserve meaningful spatial organization.
Figure 12 shows the corresponding warehouse layout grid, where storage locations are colored to match the k-means clusters visible in the UMAP visualization. Color is based on cluster of ground (y = 0) location. This spatial mapping allows a direct comparison between the learned embedding structure and the physical warehouse layout. The strong correspondence between UMAP, physical aisles and distance to entrance confirms that the learned embeddings preserve meaningful spatial organization.
Anchor nodes (with identifiers 0, 300, and 599) are visually distinguishable in the embedding space, indicating that anchor-based distance features influence the learned representations. While these anchors improve structural awareness during learning, it remains an open question whether their explicit inclusion could be reduced or removed without degrading model performance.
Figure 13 illustrates how the storage-node embeddings change when the picker’s location is modified. In this experiment, the picker node is placed at storage location with ID 495. Projection shows a noticeable reorganization of clusters, which visually correlates strongly with graph distance to the selected picker location. Notably, all locations within the same aisle as picker (Aisle 10) form a compact cluster in the embedding space.
Storage locations closer to the picker in the warehouse graph appear more similar in the embedding space which can also be identified in k-means clusters projected on warehouse layout (Figure 14). This behavior suggests that the learned embeddings dynamically encode task-relevant context, such as the current picker position. In practical applications, this property could be exploited to identify similar storage locations for items that frequently co-occur in orders, as well as to identify dissimilar locations for items that should be spatially separated (e.g., due to congestion or incompatibility constraints).
Presented results support the main motivation outlined in the Introduction: that graph-based representation learning achieved with deep reinforcement learning can effectively capture warehouse layout structure. The visualizations demonstrate that the GNN learns meaningful embeddings.
Importantly, these embeddings are not only descriptive but also operationally useful. The previously demonstrated improvements over classical heuristics indicate that the learned representations can directly support decision-making in order picking. The sensitivity of embeddings to the picker’s location further highlights their adaptability to dynamic operational contexts.
Overall, these results validate proposed approach and illustrate the potential of GNN-based warehouse representation learning done with deep reinforcement learning for real-time, adaptive warehouse optimization, as anticipated in the Introduction.

Preliminary Multipicker Experiment

Real warehouse optimization problems rarely correspond to a simple TSP, as they often involve multiple pickers operating simultaneously and additional constraints such as, for example, congestion. To explore how our approach could be extended to a multi-picker setting, we conducted a smaller-scale experiment in which the model produced predictions for two pickers. In this experiment, both pickers worked on the same order. The model therefore had to assign order locations to the two pickers at each step and generate a picking route for each picker, with the objective of minimizing the total distance traveled by both pickers. This experiment is intended as a preliminary illustration of how the proposed graph-based learning framework may be extended toward multi-picker settings, rather than as a full evaluation of practical multi-picker warehouse performance.
Compared to the single-picker formulation, the graph representation is extended by adding a second picker node. After the final TransformerConv layer, we compute element-wise multiplications between storage node embeddings and picker embeddings to produce storage node embeddings for each picker. These embeddings are then passed through linear layers that produce the policy outputs. The value estimate is computed directly from a global pooling operation over storage node embeddings.
At each simulation step, the model outputs two actions, one for each picker. If only a single storage location remains to be visited (when the number of locations in the order is odd), the final location is assigned to the picker whose current route has the lower cost. To account for route overlap we introduce an additional penalty: if the predicted paths of the two pickers intersect during a step, the step cost is multiplied by 1.2.
As a baseline, we combine agglomerative clustering [38] with the Lin–Kernighan TSP heuristic. Storage locations are first partitioned into two clusters using agglomerative clustering. The clusters are then rebalanced to obtain approximately equal sizes based on the average distance to cluster members. Finally, a Lin–Kernighan solver computes a TSP route within each cluster.
The model used in this experiment consists of eight TransformerConv layers with one attention head and an embedding dimension of 128. The policy head includes a linear layer of size 1024. Training was performed with a learning rate of 1 × 10 4 for the first 700 episodes. Each episode contained 42 orders with sizes between 6 and 10 locations and took around 52 s to finish. Additional hyperparameters included a PPO clipping parameter of 0.2, entropy coefficient of 0.0001, value coefficient of 0.5, batch size of 64, and four training epochs per episode.
After 700 episodes, we reduced the learning rate to 1 × 10 5 and the clipping parameter to 0.1, while increasing order sizes to between 10 and 15 locations. Each episode took about 90 s to finish. We observed that the model converged more quickly when first trained on smaller instances and then gradually exposed to more complex orders. However, the optimal training curriculum remains an open question. For this experiment we trained model for total of 4000 episodes taking around 93 h.
The results in Figure 15 show that the GNN–DRL approach converges to solutions that start to outperform clustering + Lin–Kernighan baseline after approximately 1000 training episodes for order size of 10 locations.
Figure 16 and accompaning Table 4 illustrates the effect size and statistical significance of the performance difference for multi-picker setting at Episode 4000. The results show that the method is capable of quickly outperform Clustering + Lin–Kernighan baseline for smaller order sizes (order size ≤ 11). While short training time was not yet sufficient for the model to learn to effectively solve the TSP for larger order sizes. At 4000 episodes the model is still improving, indicating that it has not yet reached its converged state.
The corresponding Table 4 provides a quantitative comparison between the GNN–DRL approach and the Clustering + Lin–Kernighan baseline across all evaluated order sizes. The table reports average route lengths, percentage differences, standard deviations, and the results of the Wilcoxon signed-rank test. For smaller order sizes (≤11), the average route lengths produced by GNN–DRL are significantly shorter than those obtained using the Clustering + Lin–Kernighan heuristic. The higher standard deviation observed for the GNN–DRL approach compared to the Clustering + Lin–Kernighan baseline indicates greater variability in the generated routes. This variability is expected, as the model is still in relatively early stages of training and has not yet consistently converged to near-optimal TSP solutions.
These preliminary results suggest that the proposed framework can be extended toward multi-picker and possibly other warehouse optimization scenarios. However, further work is required to incorporate more realistic operational constraints, including detailed congestion effects and dynamic order arrivals, as well as to provide a more comprehensive large-scale evaluation.

4. Discussion and Conclusions

This study demonstrates that the combined GNN–DRL approach consistently produces routing solutions with low optimality gaps while simultaneously learning meaningful graph-based representations of warehouse layouts across different warehouse sizes and order configurations. While exact optimization methods and advanced heuristics remain highly effective for static TSP formulations, the proposed framework provides a foundation for extending graph-based representation learning and adaptive policy learning toward more dynamic and operationally complex warehouse optimization settings. Additionally, preliminary experiments suggest that the proposed method can be extended to a multi-picker setting.
The embedding analysis together with low optimality gaps in order picking path lengths provides clear evidence that GNNs can capture meaningful structural information. UMAP visualizations reveal that storage locations belonging to the same aisle are visually distinguishable in embedding projections, while neighboring aisles are positioned close to each other in the embedding space. This indicates that warehouse structure is reflected in the learned representations. These observations confirm that the GNNs can properly encode higher-level structural properties of the warehouse layout. Unlike other DRL routing approaches, the learned representations can be inspected and related to physical warehouse structure, revealing clear alignment with aisle organization, spatial proximity, and picker location. This transparency supports interpretability by enabling validation of whether the model encodes meaningful and operationally relevant information rather than spurious patterns. The consistency between embedding structure, warehouse layout, and observed routing performance also serves as an additional sanity check for the correctness of the modeling assumptions and experimental setup, strengthening confidence in the validity of the proposed framework.
Further insight is provided by experiments in which the picker’s location is changed. The resulting reorganization of the embedding space correlates strongly with graph distance to the picker, demonstrating that the learned representations are context-sensitive and dynamically adapt to task-relevant information. This property suggests that the embeddings could support additional warehouse decision-making tasks beyond routing, such as identifying similar or dissimilar storage locations based on operational criteria.
Regarding generalization, the results show that models trained on smaller warehouse can be transferred to larger warehouse through additional fine-tuning. Although direct application without adaptation results in reduced performance, a limited fine-tuning phase is sufficient to restore and maintain a consistent advantage over classical heuristics. While relative improvements are slightly smaller in the larger warehouse, the GNN–DRL approach remains robust across scales, suggesting that the learned representations capture reusable, structural patterns that generalize across warehouse sizes, rather than overfitting to a single configuration.
Further research direction could be a more detailed exploration of multi-picker setting and extending warehouse graph to include more graph entities like orders and items. This extension would allow joint optimization of tasks such as order batching and item allocation or reallocation, while extending representation learning to additional entities including orders and items.
Despite the encouraging results, several limitations of this study should be acknowledged. First, all experiments were conducted on synthetic warehouse layout, which, while designed to reflect realistic grid-based structures, may not fully capture the heterogeneity and operational constraints of real-world warehouses. Second, the proposed GNN–DRL approach requires a non-trivial training time, which may limit its applicability in settings where rapid deployment or frequent retraining is required, although this cost is incurred offline and inference remains efficient. However, our additional experiments indicate that training efficiency may be improved through staged training procedures, where the model is first trained on simpler problem instances (e.g., smaller order sizes) and subsequently fine-tuned on more complex instances. Such curriculum-style training showed faster convergence in our experiments, although identifying optimal training procedures remains an open direction for future research. Third, the current formulation relies on anchor-based distance features to support representation learning; while effective, the extent to which these engineered features are necessary warrants further investigation. Finally, the experimental setup considers a single-picker, single-tour scenario, and does not yet address multi-picker interactions, congestion effects, or dynamic order arrivals, which are important aspects of practical warehouse operations and represent natural directions for future work.
Overall, the findings provide affirmative answers to the research question posed in this study. First, the results demonstrate that GNNs can learn embeddings that capture meaningful structural properties of warehouse layout while providing low optimality gaps in order-picking performance. Second, the learned models exhibit the ability to generalize across different warehouse configurations, with fine-tuning providing an effective mechanism for adapting to different warehouse sizes. Taken together, these findings position GNN–DRL not merely as a competitive routing heuristic, but as a general representation-learning framework for adaptive, graph-structured warehouse decision making.

Author Contributions

Conceptualization, N.Č. and A.Š.; methodology, N.Č.; software, N.Č.; validation, N.Č. and A.Š.; formal analysis, N.Č.; investigation, N.Č.; resources, A.Š.; data curation, N.Č.; writing—original draft preparation, N.Č.; writing—review and editing, N.Č. and A.Š.; visualization, N.Č.; supervision, A.Š.; project administration, A.Š.; funding acquisition, A.Š. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Slovenian Research and Innovation Agency (ARIS) through research core funding No. P5-0018, and the Ministry of Higher Education, Science, and Innovation of the Republic of Slovenia under the National Recovery and Resilience Plan (NextGeneration EU) Project No. 3330-22-3515; Contract No: C3330-22-953012.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

During the preparation of this manuscript, the authors used ChatGPT (version 5.2) for language editing and stylistic refinement of the text. The authors reviewed and edited the generated content and take full responsibility for the final content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
DRLDeep Reinforcement Learning
GNNGraph Neural Network
GNN–DRLGraph Neural Network–Deep Reinforcement Learning
TSPTraveling Salesman Problem
UMAPUniform Manifold Approximation and Projection
PPOProximal Policy Optimization
GAEGeneralized Advantage Estimation
DVRPDynamic Vehicle Routing Problem
WMSWarehouse Management System
GPUGraphics Processing Unit
CPUCentral Processing Unit
RAMRandom Access Memory

References

  1. Masae, M.; Glock, C.H.; Grosse, E.H. Order Picker Routing in Warehouses: A Systematic Literature Review. Int. J. Prod. Econ. 2020, 224, 107564. [Google Scholar] [CrossRef]
  2. Barnhart, C.; Jacquillat, A.; Schmid, A. Robotic Warehousing Operations: A Learn-Then-Optimize Approach to Large-Scale Neighborhood Search. Inf. J. Optim. 2025, 7, 171–194. [Google Scholar] [CrossRef]
  3. Allgor, R.; Cezik, T.; Chen, D. Algorithm for Robotic Picking in Amazon Fulfillment Centers Enables Humans and Robots to Work Together Effectively. Inf. J. Appl. Anal. 2023, 53, 266–282. [Google Scholar] [CrossRef]
  4. Zhen, L.; Tan, Z.; de Koster, R.; Wang, S. How to Deploy Robotic Mobile Fulfillment Systems. Transp. Sci. 2023, 57, 1671–1695. [Google Scholar] [CrossRef]
  5. Psaraftis, H.N.; Wen, M.; Kontovas, C.A. Dynamic Vehicle Routing Problems: Three Decades and Counting. Networks 2016, 67, 3–31. [Google Scholar] [CrossRef]
  6. Ulmer, M.W.; Goodson, J.C.; Mattfeld, D.C.; Hennig, M. Offline–Online Approximate Dynamic Programming for Dynamic Vehicle Routing with Stochastic Requests. Transp. Sci. 2019, 53, 185–202. [Google Scholar] [CrossRef]
  7. Ratliff, H.D.; Rosenthal, A.S. Order-Picking in a Rectangular Warehouse: A Solvable Case of the Traveling Salesman Problem. Oper. Res. 1983, 31, 507–521. [Google Scholar] [CrossRef]
  8. Mazyavkina, N.; Sviridov, S.; Ivanov, S.; Burnaev, E. Reinforcement Learning for Combinatorial Optimization: A Survey. Comput. Oper. Res. 2021, 134, 105400. [Google Scholar] [CrossRef]
  9. Cals, B.; Zhang, Y.; Dijkman, R.; van Dorst, C. Solving the Online Batching Problem Using Deep Reinforcement Learning. Comput. Ind. Eng. 2021, 156, 107221. [Google Scholar] [CrossRef]
  10. Mahmoudinazlou, S.; Sobhanan, A.; Charkhgard, H.; Eshragh, A.; Dunn, G. Deep Reinforcement Learning for Dynamic Order Picking in Warehouse Operations. Comput. Oper. Res. 2025, 182, 107112. [Google Scholar] [CrossRef]
  11. Wang, X.; Zhang, L.; Wang, L.; Zuñiga, E.R.; Wang, X.V.; Flores-García, E. Dynamic Multi-Tour Order Picking in an Automotive-Part Warehouse Based on Attention-Aware Deep Reinforcement Learning. Robot. Comput.-Integr. Manuf. 2025, 94, 102959. [Google Scholar] [CrossRef]
  12. Ju, W.; Fang, Z.; Gu, Y.; Liu, Z.; Long, Q.; Qiao, Z.; Qin, Y.; Shen, J.; Sun, F.; Xiao, Z.; et al. A Comprehensive Survey on Deep Graph Representation Learning. Neural Netw. 2024, 173, 106207. [Google Scholar] [CrossRef]
  13. Wu, Z.; Pan, S.; Chen, F.; Long, G.; Zhang, C.; Yu, P.S. A Comprehensive Survey on Graph Neural Networks. IEEE Trans. Neural Netw. Learn. Syst. 2021, 32, 4–24. [Google Scholar] [CrossRef]
  14. Agárdi, A.; Kovács, L. Clustering-Based Optimisation of Multiple Traveling Salesman Problem. Prod. Syst. Inf. Eng. 2019, 8, 89–100. [Google Scholar] [CrossRef]
  15. Foumani, M.; Moeini, A.; Haythorpe, M.; Smith-Miles, K. A Cross-Entropy Method for Optimising Robotic Automated Storage and Retrieval Systems. Int. J. Prod. Res. 2018, 56, 6450–6472. [Google Scholar] [CrossRef]
  16. Begnardi, L.; Baier, H.; van Jaarsveld, W.; Zhang, Y. Deep Reinforcement Learning for Two-Sided Online Bipartite Matching in Collaborative Order Picking. In Proceedings of the 15th Asian Conference on Machine Learning; PMLR: San Francisco, CA, USA, 2024; pp. 121–136. [Google Scholar]
  17. Cho, S.-H.; Shin, W.-J.; Ahn, J.; Joo, S.; Kim, H.-J. Dynamic Crane Scheduling with Reinforcement Learning for a Steel Coil Warehouse. In Proceedings of the 2024 IEEE International Conference on Robotics and Automation (ICRA); IEEE: Piscataway, NJ, USA, 2024; pp. 16545–16552. [Google Scholar]
  18. Xiao, Z.; Li, P.; Liu, C.; Gao, H.; Wang, X. MACNS: A Generic Graph Neural Network Integrated Deep Reinforcement Learning Based Multi-Agent Collaborative Navigation System for Dynamic Trajectory Planning. Inf. Fusion 2024, 105, 102250. [Google Scholar] [CrossRef]
  19. Ansel, J.; Yang, E.; He, H.; Gimelshein, N.; Jain, A.; Voznesensky, M.; Bao, B.; Bell, P.; Berard, D.; Burovski, E.; et al. PyTorch 2: Faster Machine Learning Through Dynamic Python Bytecode Transformation and Graph Compilation. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems ASPLOS: 24; Association for Computing Machinery: New York, NY, USA, 2024; Volume 2. [Google Scholar]
  20. Fey, M.; Sunil, J.; Nitta, A.; Puri, R.; Shah, M.; Stojanovič, B.; Bendias, R.; Barghi, A.; Kocijan, V.; Zhang, Z.; et al. PyG 2.0: Scalable Learning on Real World Graphs. arXiv 2025, arXiv:2507.16991. [Google Scholar] [CrossRef]
  21. Fey, M.; Lenssen, J.E. Fast Graph Representation Learning with PyTorch Geometric. arXiv 2019, arXiv:1903.02428. [Google Scholar] [CrossRef]
  22. GitHub-Networkx/Networkx: Network Analysis in Python. GitHub. Available online: https://github.com/networkx/networkx (accessed on 10 March 2026).
  23. GitHub-Fillipe-Gsm/Python-Tsp: Library to Solve Traveling Salesperson Problems with Pure Python Code. GitHub. Available online: https://github.com/fillipe-gsm/python-tsp (accessed on 10 March 2026).
  24. Bellman, R. Dynamic Programming. Science 1966, 153, 34–37. [Google Scholar] [CrossRef] [PubMed]
  25. Christofides, N. Worst-Case Analysis of a New Heuristic for the Travelling Salesman Problem; Springer International Publishing: Cham, Switzerland, 1976. [Google Scholar]
  26. Croes, G.A. A Method for Solving Traveling-Salesman Problems. Oper. Res. 1958, 6, 791–812. [Google Scholar] [CrossRef]
  27. Lin, S.; Kernighan, B.W. An Effective Heuristic Algorithm for the Traveling-Salesman Problem. Oper. Res. 1973, 21, 498–516. [Google Scholar] [CrossRef]
  28. Čelik, N.; Škraba, A. Graph-Based Modeling of Warehouse Layouts Based on Data from Relation Database for Optimizing Order Picking Path; Slovenian Society Informatika, Section for Operational Research: Ljubljana, Slovenia, 2025; pp. 379–382. [Google Scholar]
  29. Dijkstra, E.W. A Note on Two Problems in Connexion with Graphs. Numer. Math. 1959, 1, 269–271. [Google Scholar] [CrossRef]
  30. Schulman, J.; Wolski, F.; Dhariwal, P.; Radford, A.; Klimov, O. Proximal Policy Optimization Algorithms. arXiv 2017, arXiv:1707.06347. [Google Scholar] [CrossRef]
  31. Mnih, V.; Badia, A.P.; Mirza, M.; Graves, A.; Lillicrap, T.; Harley, T.; Silver, D.; Kavukcuoglu, K. Asynchronous Methods for Deep Reinforcement Learning. In Proceedings of the 33rd International Conference on Machine Learning; PMLR: San Francisco, CA, USA, 11 June 2016; pp. 1928–1937. [Google Scholar]
  32. Schulman, J.; Moritz, P.; Levine, S.; Jordan, M.; Abbeel, P. High-Dimensional Continuous Control Using Generalized Advantage Estimation. arXiv 2015, arXiv:1506.02438. [Google Scholar]
  33. Loshchilov, I.; Hutter, F. Decoupled Weight Decay Regularization. arXiv 2017, arXiv:1711.05101. [Google Scholar]
  34. Shi, Y.; Huang, Z.; Feng, S.; Zhong, H.; Wang, W.; Sun, Y. Masked Label Prediction: Unified Message Passing Model for Semi-Supervised Classification. arXiv 2020, arXiv:2009.03509. [Google Scholar]
  35. Wilcoxon, F. Individual Comparisons by Ranking Methods. Biom. Bull. 1945, 1, 80–83. [Google Scholar] [CrossRef]
  36. McInnes, L.; Healy, J.; Melville, J. UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction. arXiv 2018, arXiv:1802.03426. [Google Scholar]
  37. MacQueen, J. Some Methods for Classification and Analysis of Multivariate Observations. In Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability, Volume 1: Statistics; University of California Press: Oakland, CA, USA, 1967; Volume 5.1, pp. 281–298. [Google Scholar]
  38. Müllner, D. Modern Hierarchical, Agglomerative Clustering Algorithms. arXiv 2011, arXiv:1109.2378. [Google Scholar] [CrossRef]
Figure 1. Warehouse graph and its transformation into the GNN input graph.
Figure 1. Warehouse graph and its transformation into the GNN input graph.
Systems 14 00659 g001
Figure 2. Diagram of database schema for experimental warehouse graph generation.
Figure 2. Diagram of database schema for experimental warehouse graph generation.
Systems 14 00659 g002
Figure 3. Graph-based representation of the warehouse layout for GNN-based order picking.
Figure 3. Graph-based representation of the warehouse layout for GNN-based order picking.
Systems 14 00659 g003
Figure 4. Visualization of an optimal order-picking path derived from the warehouse graph model P a t h : E 9   m 182 9   m 157 6   m 138 3   m 173 12   m 573 8   m 485 10   m 535 8   m 444 2   m 471 1   m 468 5   m 457 12   m 370 7   m 118 5   m 82 15   m 4 7   m E ,   t o t a l   d i s t a n c e = 119   m ,   n o n - g r o u n d   l o c a t i o n ,     s i d e   c h a n g e .
Figure 4. Visualization of an optimal order-picking path derived from the warehouse graph model P a t h : E 9   m 182 9   m 157 6   m 138 3   m 173 12   m 573 8   m 485 10   m 535 8   m 444 2   m 471 1   m 468 5   m 457 12   m 370 7   m 118 5   m 82 15   m 4 7   m E ,   t o t a l   d i s t a n c e = 119   m ,   n o n - g r o u n d   l o c a t i o n ,     s i d e   c h a n g e .
Systems 14 00659 g004
Figure 5. Graph construction and preprocessing pipeline for the warehouse layout (blue steps are only done for GNN processing).
Figure 5. Graph construction and preprocessing pipeline for the warehouse layout (blue steps are only done for GNN processing).
Systems 14 00659 g005
Figure 6. Episode workflow for simulation and training of the GNN-based order-picking agent.
Figure 6. Episode workflow for simulation and training of the GNN-based order-picking agent.
Systems 14 00659 g006
Figure 7. Training convergence of the GNN–DRL Model Compared to Classical Heuristics.
Figure 7. Training convergence of the GNN–DRL Model Compared to Classical Heuristics.
Systems 14 00659 g007
Figure 8. Relative performance improvement of GNN–DRL compared to Lin–Kernighan (left) and the corresponding statistical significance (right) across different order sizes for the smaller warehouse instance.
Figure 8. Relative performance improvement of GNN–DRL compared to Lin–Kernighan (left) and the corresponding statistical significance (right) across different order sizes for the smaller warehouse instance.
Systems 14 00659 g008
Figure 9. GNN–DRL model after fine-tuning on a larger warehouse instance.
Figure 9. GNN–DRL model after fine-tuning on a larger warehouse instance.
Systems 14 00659 g009
Figure 10. Relative performance improvement of GNN–DRL compared to Lin–Kernighan (left) and the corresponding statistical significance (right) across different order sizes for the larger warehouse instance.
Figure 10. Relative performance improvement of GNN–DRL compared to Lin–Kernighan (left) and the corresponding statistical significance (right) across different order sizes for the larger warehouse instance.
Systems 14 00659 g010
Figure 11. UMAP visualization of learned storage-node embeddings colored by aisle (left) or K-means cluster (right) with picker location set to entrance.
Figure 11. UMAP visualization of learned storage-node embeddings colored by aisle (left) or K-means cluster (right) with picker location set to entrance.
Systems 14 00659 g011
Figure 12. Mapping of k-means embedding clusters to the physical warehouse layout.
Figure 12. Mapping of k-means embedding clusters to the physical warehouse layout.
Systems 14 00659 g012
Figure 13. UMAP visualization of learned storage-node embeddings colored by aisle (left) or K-means cluster (right) with picker location set to storage location in Aisle 10.
Figure 13. UMAP visualization of learned storage-node embeddings colored by aisle (left) or K-means cluster (right) with picker location set to storage location in Aisle 10.
Systems 14 00659 g013
Figure 14. Effect of picker location (set to storage node with ID 495) on mapping of k-means clusters to the physical warehouse layout.
Figure 14. Effect of picker location (set to storage node with ID 495) on mapping of k-means clusters to the physical warehouse layout.
Systems 14 00659 g014
Figure 15. Training convergence of the GNN–DRL model compared to Clustering + Lin–Kernighan baseline in multi-picker setting tested on order size 10.
Figure 15. Training convergence of the GNN–DRL model compared to Clustering + Lin–Kernighan baseline in multi-picker setting tested on order size 10.
Systems 14 00659 g015
Figure 16. Relative performance improvement of GNN–DRL compared to Clustering + Lin–Kernighan baseline (left) and the corresponding statistical significance (right) across different order sizes for the smaller warehouse instance and multi-picker setting.
Figure 16. Relative performance improvement of GNN–DRL compared to Clustering + Lin–Kernighan baseline (left) and the corresponding statistical significance (right) across different order sizes for the smaller warehouse instance and multi-picker setting.
Systems 14 00659 g016
Table 1. Optimality-gap statistics for GNN–DRL and Lin–Kernighan relative to exact solutions across different order sizes.
Table 1. Optimality-gap statistics for GNN–DRL and Lin–Kernighan relative to exact solutions across different order sizes.
Order SizeAvg.
Optimal Length
GNN–DRLLin–Kernighan
Avg. LengthsGap (%)%
Optimal
P95 Gap (%)Avg. LengthsGap (%)%
Optimal
P95 Gap (%)
572.0272.560.7783.65.0772.460.6188.85.49
678.2378.820.7681.65.0678.890.8684.66.67
783.9484.690.8976.95.4484.771.0079.96.98
889.7690.731.0672.36.3890.781.1674.46.67
994.9796.221.3165.16.3896.201.3270.27.06
1099.86101.211.3463.06.36101.461.6364.97.93
11104.62106.011.3260.16.00106.301.6160.07.15
12109.06110.701.4854.96.13111.211.9853.69.40
13114.43116.381.7049.36.67116.571.8851.68.04
14118.60120.611.6947.96.45121.042.0844.97.90
15122.46124.481.6546.96.25125.202.2638.77.94
16127.10129.301.7440.66.06130.132.4236.68.66
17130.75133.101.8040.56.80133.912.4336.28.40
18134.19136.611.8235.96.72137.922.7928.48.96
19137.75140.241.8136.06.20141.722.9026.59.09
20142.06144.491.7233.85.57146.272.9822.08.80
Table 2. Comparison of GNN–DRL and Lin–Kernighan performance across order sizes.
Table 2. Comparison of GNN–DRL and Lin–Kernighan performance across order sizes.
Order SizeAvg. Lengths
GNN–DRL
Avg. Lengths
Lin–Kernighan
% ChangeStat
Wilcoxon
p-Value WilcoxonStandard Deviation GNNStandard Deviation LK
572.2972.290.0013,3778.04 × 10−1 9.369.46
679.0879.24−0.2018,5184.52 × 10−2 9.189.20
784.8384.97−0.1627,5123.18 × 10−1 9.069.03
890.9591.10−0.1638,477.52.29 × 10−1 9.038.93
996.0796.26−0.2065,0575.26 × 10−1 9.149.18
10101.20101.49−0.2961,2729.70 × 10−3 9.589.36
11106.45106.71−0.2473,991.59.33 × 10−2 9.839.67
12111.17111.53−0.3295,931.54.52 × 10−2 9.669.61
13114.87115.33−0.3995,396.51.91 × 10−3 9.819.68
14119.95120.26−0.26115,454.55.58 × 10−2 9.769.37
15124.46125.33−0.6999,0942.92 × 10−9 9.809.83
16128.91129.78−0.67119,242.51.05 × 10−7 10.1710.09
17132.94133.56−0.47121,430.59.14 × 10−6 9.8610.03
18136.52137.79−0.92104,9342.41 × 10−16 10.1710.42
19140.19141.57−0.98116,5055.90 × 10−14 9.749.99
20143.87145.66−1.23106,291.52.35 × 10−24 10.1110.24
21147.63149.54−1.27108,8838.96 × 10−25 9.639.82
22150.93153.30−1.55100,548.54.72 × 10−36 9.7810.07
23154.21156.32−1.35110,766.55.27 × 10−26 9.5510.07
24157.76160.15−1.4998,6662.12 × 10−36 9.379.92
25160.77163.26−1.53105,6933.29 × 10−34 9.549.99
26163.91166.67−1.66105,217.58.33 × 10−39 9.6310.09
27166.88169.96−1.81102,923.52.88 × 10−41 10.1010.22
28169.32172.50−1.8496,287.51.24 × 10−45 9.9610.08
29173.10176.72−2.0586,931.51.84 × 10−51 9.6010.21
30176.08179.50−1.9099,2424.27 × 10−46 9.7510.17
31178.68182.66−2.1880,420.51.87 × 10−62 9.109.96
32181.63185.62−2.1587,3071.66 × 10−56 9.5010.37
33183.67187.74−2.1790,2162.99 × 10−56 9.659.92
34186.87190.97−2.1488,614.57.82 × 10−56 9.7710.41
35189.10193.70−2.3886,9581.11 × 10−60 9.8710.76
Table 3. Average route lengths and wilcoxon signed-rank test results for GNN–DRL and Lin–Kernighan across order sizes.
Table 3. Average route lengths and wilcoxon signed-rank test results for GNN–DRL and Lin–Kernighan across order sizes.
Order SizeAvg. Lengths
GNN–DRL
Avg. Lengths
Lin–Kernighan
% ChangeStat
Wilcoxon
p-Value WilcoxonStandard Deviation GNNStandard Deviation LK
598.5198.200.3116,723.01.77 × 10−4 12.0111.99
6107.38107.140.2224,573.01.11 × 10−3 11.5711.66
7115.48115.470.0140,093.05.47 × 10−1 11.5711.59
8123.34123.42−0.0765,723.58.32 × 10−1 11.2911.46
9130.20130.50−0.2366,902.01.03 × 10−1 12.3812.43
10137.74138.11−0.2680,217.51.57 × 10−2 11.8411.69
11143.94144.04−0.0792,446.08.11 × 10−1 11.9211.98
12150.09150.52−0.2996,304.02.50 × 10−2 12.1111.99
13156.91157.50−0.3798,883.03.89 × 10−3 11.8411.97
14163.46164.50−0.6398,354.05.49 × 10−8 12.1312.46
15169.52170.84−0.7795,319.54.16 × 10−11 12.3212.52
16175.80176.69−0.50121,590.51.32 × 10−5 12.6512.86
17181.67182.85−0.64120,991.04.97 × 10−8 13.2113.31
18187.31189.00−0.90119,723.05.11 × 10−13 12.9213.32
19192.95194.15−0.62138,789.01.39 × 10−6 12.8913.32
20197.29198.77−0.74132,526.51.83 × 10−10 13.3013.93
21202.95204.82−0.91130,349.08.72 × 10−15 12.6013.10
22207.94209.92−0.94129,352.01.01 × 10−15 13.4113.68
23213.94215.81−0.87136,634.01.57 × 10−14 13.6214.29
24218.28220.81−1.14124,959.51.45 × 10−22 13.5314.24
25223.75226.37−1.16124,855.08.71 × 10−25 13.6114.04
26227.86230.19−1.01134,447.58.93 × 10−19 13.4414.14
27233.15235.99−1.20135,423.01.18 × 10−20 13.4714.42
28237.77240.30−1.05131,533.06.76 × 10−19 14.0314.66
29240.56243.56−1.23128,496.57.21 × 10−28 13.7013.97
30246.04249.35−1.32122,143.51.16 × 10−27 13.4114.26
31250.68254.04−1.32117,603.05.30 × 10−32 13.9014.45
32255.20258.18−1.16137,896.51.21 × 10−24 13.6514.31
33259.02262.85−1.45108,961.06.04 × 10−38 14.1214.89
34261.88266.23−1.63102,239.54.12 × 10−46 13.8614.75
35267.86271.85−1.47120,201.52.70 × 10−32 14.2615.47
Table 4. Average route lengths and Wilcoxon signed-rank test results comparing GNN–DRL and Clustering + Lin–Kernighan across order sizes in the multi-picker setting.
Table 4. Average route lengths and Wilcoxon signed-rank test results comparing GNN–DRL and Clustering + Lin–Kernighan across order sizes in the multi-picker setting.
Order SizeAvg. Lengths
GNN–DRL
Avg. Lengths
Clustering + L–K
% ChangeStat
Wilcoxon
p-Value WilcoxonStandard Deviation GNNStandard Deviation LK
691.57106.02−13.6256,663.02.00 × 10−95 15.8313.06
797.63112.26−13.0358,777.51.03 × 10−93 15.7712.63
8106.96118.16−9.4898,181.05.47 × 10−59 16.5612.27
9112.03123.95−9.6293,177.53.82 × 10−62 17.1212.00
10122.40128.07−4.43162,993.51.13 × 10−17 17.3811.57
11128.77132.91−3.11189,083.55.52 × 10−9 18.9111.62
12137.99137.940.04237,257.07.28 × 10−1 20.2812.03
13144.61143.031.11224,598.05.99 × 10−2 20.2711.51
14155.73146.246.49140,432.51.77 × 10−29 20.9211.79
15163.23150.558.43106,824.02.71 × 10−51 20.9412.57
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Čelik, N.; Škraba, A. Graph Neural Networks and Deep Reinforcement Learning for Warehouse Order Picking and Representation Learning. Systems 2026, 14, 659. https://doi.org/10.3390/systems14060659

AMA Style

Čelik N, Škraba A. Graph Neural Networks and Deep Reinforcement Learning for Warehouse Order Picking and Representation Learning. Systems. 2026; 14(6):659. https://doi.org/10.3390/systems14060659

Chicago/Turabian Style

Čelik, Nejc, and Andrej Škraba. 2026. "Graph Neural Networks and Deep Reinforcement Learning for Warehouse Order Picking and Representation Learning" Systems 14, no. 6: 659. https://doi.org/10.3390/systems14060659

APA Style

Čelik, N., & Škraba, A. (2026). Graph Neural Networks and Deep Reinforcement Learning for Warehouse Order Picking and Representation Learning. Systems, 14(6), 659. https://doi.org/10.3390/systems14060659

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop