Preprint
Article

This version is not peer-reviewed.

A Decision-Focused End-to-End Learning Framework for Scalable Vehicle Dispatching in Ride-Hailing Services

Submitted:

30 September 2026

Posted:

01 October 2026

You are already at the latest version

Abstract
Vehicle dispatching is essential for maintaining supply–demand balance in ride-hailing systems, but existing frameworks separate demand prediction from vehicle allocation, causing a mismatch between prediction accuracy and operational performance. This study proposes a decision-focused end-to-end learning framework that integrates spatiotemporal demand representation and vehicle-to-region dispatching within a unified trainable architecture. The model combines a multi-graph spatiotemporal prediction module with a recurrent Transformer-based dispatching module that iteratively refines vehicle assignments under capacity-aware constraints. A structured loss jointly considers demand prediction, dispatch objectives, and constraint violations, reducing dependence on expensive optimization labels. Experiments on real ride-hailing datasets from Chengdu, Xi’an, and Haikou show competitive dispatching quality and zero capacity-constraint violation rate (CCVR) in the reported city-level comparison. Relative to the Kuhn–Munkres benchmark, the proposed model reduces average online computation time from 242.47 s to 2.47 s, a 98.98% reduction (approximately 98.2-fold acceleration). The decision-oriented mechanism yields operationally useful demand representations, suggesting neural dispatchers offer a scalable approximation for high-frequency operations where responsiveness and feasibility are critical.
Keywords: 
;  ;  ;  ;  

1. Introduction

Ride-hailing platforms have become a core component of urban mobility by matching distributed travel demand with available vehicles [1,2,3]. Their dispatch systems must balance service coverage, vehicle utilization, passenger waiting time, and platform revenue, and these decisions become computationally demanding when updated at high frequency across many vehicles and regions [4,5].
Most practical systems follow a predict-then-dispatch workflow: future demand is first estimated from historical observations, and vehicles are then allocated by an optimization or heuristic procedure [6,7,8]. This modular design is interpretable, but its components are trained under different objectives—demand models minimize statistical error, whereas dispatching models optimize operational quantities such as coverage, revenue, or idle travel [9,10,11]. The prediction with the smallest standalone error is therefore not necessarily the representation that yields the most useful downstream allocation.
Decision-focused learning reduces this mismatch by allowing downstream decision losses to shape the predictive representation [12,13,14]. Reinforcement learning couples state estimation with sequential decisions but requires extensive interaction data and carefully designed rewards [15], while exact and heuristic optimization is too slow to re-solve at high frequency. The central challenge is thus to balance dispatch quality, constraint satisfaction, and online computation time rather than to dominate every baseline.
This study develops an End-to-End Dispatching Model (E2EDM), a decision-focused neural approximation that couples a multi-graph spatiotemporal demand module with a recurrent Transformer to iteratively refine vehicle-to-region assignments. Trained end-to-end with prediction, dispatch-objective, and capacity-constraint terms, it aligns its representations with downstream allocation. It targets dispatch-level decision support and does not model autonomous-vehicle constraints such as battery state of charge or charging availability.
The main contributions of this study are summarized as follows:
(1)
We formulate a decision-oriented dispatching problem that unifies idle distance, platform revenue, passenger waiting time, and regional capacity feasibility in a single training objective.
(2)
We develop an end-to-end prediction–dispatch framework that links spatiotemporal demand representation to downstream allocation, so predictions are optimized for dispatching utility rather than forecasting error alone.
(3)
We design a multi-graph spatiotemporal prediction module that encodes spatial separation, functional similarity, and demand-pattern similarity among regions.
(4)
We propose an encoder-only recurrent Transformer that non-autoregressively refines region-level assignment through full-attention global reasoning.
(5)
We evaluate the framework on ride-hailing data from three cities, showing competitive dispatching quality, stable capacity feasibility, and substantially lower online computation time than the KM benchmark.
The remainder of this paper is organized as follows. Section 2 reviews related work, Section 3 formulates the problem, Section 4 presents the proposed framework, Section 5 reports the experiments, and Section 6 concludes.

3. Problem Formulation

This section begins by introducing the fundamental definitions and problem formulation that underpin our approach. This is followed by a comprehensive description of the proposed vehicle dispatching model, which jointly considers multiple optimization objectives from both the platform and user perspectives, ensuring a balanced and holistic dispatching strategy.
DEF 1. SERVICE BLOCK. Let S denote the given geographic region, with longitude boundaries lng max and lng min , and latitude boundaries lat max and lat min . The region is partitioned into p × q service blocks s i j , as defined in Equations (1)–(3). In this partition, the length and width of each service block are given by:
l lng i j = lng max − lng min p
l lat i j = lat max − lat min q
S = s i j | i ∈ [ 1 , p ] ∩ N , j ∈ [ 1 , q ] ∩ N l lng i j =
DEF 2. TIME WINDOWS. The 24-hour day is evenly divided into δ intervals of equal duration, represented by the set T = { t k ∣ k ∈ [ 1 , δ ] ∩ N } .
DEF 3. SERVICEABLE VEHICLE. All available service vehicles are represented by the set V = v n | n = 1 , 2 , … , C N , where C N denotes the total number of available vehicles.
DEF 4. PASSENGER DEMAND. Passenger demand is denoted by O r t k s i j , defined as the total number of user orders submitted within service block s i j during time window t k .
DEF 5. DECISION VARIABLE. Let the time-indexed decision variable M n , i j t k indicate whether vehicle v n is assigned to service block s i j during time window t k :
M n , i j t k = 1 , if v n is assigned to s i j at t k , 0 , otherwise .
We consider three operational quantities: vehicle idle distance, platform income, and passenger waiting time. Their weighted combination is used as a differentiable decision-oriented training signal; it is not presented as an exact mathematical program solved online at every window:
J t k = ∑ n = 1 C N λ 1 C n t k − λ 2 I n t k + λ 3 T n t k
Here, C n t k , I n t k , and T n t k denote the corresponding quantities for vehicle n at time t k . The coefficients λ 1 , λ 2 , and λ 3 control their relative importance.
Specifically,
C n t k = M n , i j t k · c n , i j t k
I n t k = M n , i j t k · I a v e r · O r t k s i j ∑ s i j ∈ S O r t k s i j
T n t k = M n , i j t k · c n , i j t k · O r t k s i j ∑ s i j ∈ S O r t k s i j
where c n , i j t k denotes the distance traveled by vehicle n to service block s i j , and I aver represents the average revenue from historical orders.
The standard one-to-one assignment problem can be solved in polynomial time by Hungarian-type algorithms. However, when regional capacity constraints, multiple operational objectives, rolling time windows, and large online instances are considered together, repeatedly solving optimization or heuristic models can become computationally burdensome. This motivates learning a fast approximation that is evaluated against optimization-based references.

4. Methodology

We propose an End-to-End Prediction-Dispatch Model (E2EDM) composed of two modules: prediction module and dispatching module. Section 4.1 outlines the overall architecture, Section 4.2 details the prediction module, Section 4.3 presents the dispatching module, and Section 4.4 introduces the training objective and optimization procedure.

4.1. Overview of The End-to-End Dispatching Model

The proposed model encompasses the full dispatching workflow, spanning from historical order data ingestion, through pattern learning, to final vehicle dispatching decisions and assignment outputs. The overall architecture is structured into two main stages, as illustrated in Figure 1.

4.1.1. Offline Learning

During the offline learning phase, the prediction and dispatching modules are jointly optimized based on a grid-based spatial partitioning of the urban area and historical order data. Specifically, we construct multiple heterogeneous graph structures that capture service block adjacency and historical mobility patterns. A Multi-Graph Convolutional Network (MGCN) is employed to extract spatial dependency features across service blocks. These spatial embeddings are then fed into an LSTM-based encoder-decoder architecture to model the temporal dynamics of demand evolution, enabling accurate prediction of order distributions across future time windows.
The prediction outputs are embedded as structured inputs into the dispatching module, enabling the latter to generate vehicle-to-block assignment strategies that optimize platform-level objectives such as idle distance minimization, revenue maximization, and supply-demand balance. Unlike traditional pipeline designs, where prediction and dispatching are trained independently, our model implements a fully differentiable architecture wherein both modules are jointly optimized in an end-to-end manner.
Specifically, gradients from the dispatching loss can propagate through the Transformer layers into the upstream prediction module. The architecture is therefore end-to-end trainable and structurally coupled, allowing demand representations to be shaped by both prediction error and downstream dispatch objectives. The experiments evaluate the integrated framework, but do not claim that this coupling universally dominates independently trained prediction models.
Service-block capacity limits are incorporated through differentiable penalty terms. These terms encourage feasible assignments rather than mathematically guaranteeing feasibility for every possible input.

4.1.2. Online Planning

In the online planning phase, the trained model predicts upcoming demand and generates vehicle-to-block assignments without repeatedly solving the KM reference problem. Most computation is shifted to offline training, while online inference remains at the seconds level on the reported hardware.

4.2. Prediction Module

To capture prior knowledge of passenger demand pattern, we propose a Spatiotemporal Multi-Graph Convolution (STMGC) module that effectively models the complex spatial and temporal dependencies among service blocks. The structure of the module is illustrated in Figure 2. The module jointly captures spatial correlations between different regions and temporal dynamics in historical demand patterns, enabling more accurate demand prediction. We propose a Spatiotemporal Multi-Graph Convolution (STMGC) module that jointly models spatial and temporal dependencies among service blocks (Figure 2), providing reliable demand representations for downstream dispatching.
Since a single graph cannot capture the multidimensional correlations among service blocks, we construct three graphs from distinct perspectives: geographical proximity, functional similarity, and demand heat similarity. Each graph encodes spatial relationships from a distinct perspective: geographical proximity, functional similarity, and historical demand heat similarity. This multi-view graph construction enables a more comprehensive and nuanced representation of the associative features among service blocks, thereby enhancing the model’s capacity to capture realistic spatial interactions.
GRAPH 1. DISTANCE-COST GRAPH. The distance-cost graph records the spatial separation between service blocks. Each node corresponds to a grid cell, and a larger edge value indicates greater separation rather than stronger similarity. The subsequent normalization and learned transformations determine how this cost information contributes to the representation. Specifically, for any two blocks s i and s j , their Euclidean distance is defined as follows:
G i , j distance = lat i − lat j 2 + lng i − lng j 2
Here, lat i and lng i denote the centroid coordinates of block i. This graph provides explicit geographic cost information that complements the functional and historical-demand similarity graphs.
GRAPH 2. POI SIMILARITY GRAPH. Service blocks with similar functional attributes—such as commercial centers, residential neighborhoods, or entertainment districts, often exhibit analogous patterns of demand fluctuation. To quantify these functional similarities, we construct a Point-of-Interest (POI) similarity graph, in which edge weights reflect the degree of overlap in POI category distributions between blocks. This graph provides valuable contextual information that complements purely spatial and temporal signals, enhancing the model’s ability to generalize across diverse urban environments. Specifically, for each block s i , we generate a functional feature vector f i by aggregating the distribution of different categories of POIs within that block. The POI similarity between any two blocks is computed as shown in Equation (10):
G i , j p o i = f i · f j ∥ f i ∥ ∥ f j ∥
Here, G i , j p o i represents the POI similarity between service blocks i and j, f i = [ p o i i 1 , p o i i 2 , … , p o i i k ] denotes the POI feature vector of service block i, where p o i i k is the count of POIs of category k within block i.
GRAPH 3. HEAT GRAPH. The Heat Graph captures dependencies between service blocks that, although geographically distant and functionally dissimilar, exhibit highly similar patterns of demand evolution over time. For instance, a commercial district and a medical center—despite their spatial separation and distinct land-use functions—may display comparable temporal trends in order demand. To model these latent demand correlations, we construct a demand heat similarity graph, in which each node represents a service block and the edge weights are determined by the pairwise correlation between their historical passenger demand time series. This approach enables the model to identify and leverage functional analogies that are not evident from geographic or categorical features alone. By connecting service blocks with similar demand dynamics, the Heat Graph enhances the model’s capacity to generalize and adapt to complex, real-world dispatching scenarios. Specifically, the heat graph is defined as shown in Equation (11):
G i , j h e a t = Cov O r s i , O r s j σ O r s i σ O r s j + ϵ
Here, O r s i and O r s j denote the historical demand sequences of blocks i and j, respectively. Equation (11) is the Pearson correlation coefficient, with a small ϵ added for numerical stability.
After constructing the three heterogeneous graphs: representing geographical proximity, functional similarity, and demand heat similarity—we perform graph convolution operations on each graph in parallel. This allows us to extract service block embeddings from multiple distinct perspectives simultaneously. The resulting multi-view embeddings are then aggregated through a feature fusion mechanism to generate a unified representation for each service block. This fused representation serves as the input to the downstream demand prediction module. By jointly modeling the heterogeneous graph structures, the proposed approach effectively enhances the model’s ability to capture complex inter-block dependencies across spatial, functional, and temporal dimensions. This leads to more informative and robust feature representations, ultimately contributing to improved accuracy in predicting future demand patterns.
X l = σ A X ( l − 1 ) W ( l − 1 )
Here, σ denotes the activation function, A represents the adjacency matrix corresponding to the input graph, X ( l − 1 ) is the output of the previous layer, and W ( l − 1 ) denotes the weight matrix.
To extend the capability of the GCN for handling multi-view graph structures, we adopt an enhanced multi-graph convolution approach [55], which can be formulated as follows:
G ( X P , A u ) = ∑ u A ^ u X P W P
where A ^ u = ( D u ) − 1 / 2 ( I + A u ) ( D u ) − 1 / 2 denotes the symmetrically normalized adjacency matrix, and A u represents the adjacency matrix of each graph type.
To further integrate different types of service block relationship graphs, we employ a Multi-Graph Convolution (MGC) mechanism [56]. Specifically, for the constructed heterogeneous graphs, the MGC operation is defined as follows:
MGC X P , G d i s t a n c e , G p o i , G h e a t = ∑ u ∈ { d i s t a n c e , p o i , h e a t } G u X P W P
To improve computational efficiency, we adopt a Chebyshev polynomial approximation to replace the standard graph convolution operation, thereby accelerating the convolution process for each graph. This approximation is formulated as:
GCN ( G u , X l ) = X ( l + 1 ) = σ g ( θ i , G u ) X ( l ) W l
where g ( θ i , G u ) = ∑ k = 0 K θ i T i ( L ) represents the K-order Chebyshev polynomial function of the graph Laplacian, and W l denotes the feature transformation matrix. This mechanism significantly reduces computational complexity while preserving accurate feature propagation across heterogeneous graph structures, thereby enhancing the model’s efficiency in encoding spatial dependencies.
To capture the temporal evolution patterns of block-level demand, we further incorporate an LSTM Encoder-Decoder architecture, which effectively models sequential dependencies over time. The architecture follows a sequence-to-sequence (Seq2Seq) framework, consisting of an encoder that captures historical temporal patterns and a decoder that generates future demand forecasts.
Specifically, the model first applies multi-graph convolution to historical order data across multiple time windows. Within each time window, graph convolutions are performed in parallel across the distance graph, POI similarity graph, and heat graph, extracting spatial features from distinct perspectives. These multi-view features are then aggregated through a weighted fusion operation, yielding a comprehensive spatial representation for each time window, denoted as H t k S . For a sequence of k time windows, this yields a spatial feature sequence:
H t S = H t 1 S , H t 2 S , … , H t k S
This sequence serves as the encoder input to capture long-term temporal dependencies in block features and is compressed into a fixed-length internal representation, which is passed as the hidden state to the decoder. The decoder then takes the encoder’s final state as its initial state and sequentially predicts the output demand estimates:
Y ^ = y ^ t k + 1 , … , y ^ t k + r
The pseudocode below outlines the procedure of the STMGC prediction module.
Pseudocode 1: STMGC prediction module
  1: Input: historical demand sequence { X t } , multi-graph adjacency matrices { G d i s t a n c e , G p o i , G h e a t }
  2: Initialize parameters of GCN layers and LSTM encoder
  3: for  t = 1   to  T  do
  4:    for each graph G k ∈ { G d i s t a n c e , G p o i , G h e a t }  do
  5:       Compute normalized adjacency matrix: A ^ u = ( D u ) − 1 / 2 ( I + A u ) ( D u ) − 1 / 2
  6:       Perform Chebyshev GCN convolution: X l + 1 = σ g ( θ i , G u ) X ( l ) W l
  7:    end for
  8:    Fuse features from all graphs: H t : = Combine ( G d i s t a n c e , G p o i , G h e a t )
  9: end for
10: Get spatial-temporal sequence: H s e q = { H t 1 , H t 2 , … , H t k }
11: Feed sequence into LSTM encoder to capture temporal patterns
12: Use decoder to predict future demand: D ^ t : = LSTM _ Decoder ( H s e q )
13: Output: predicted demand sequence { D ^ t }

4.3. Dispatching Module

The dispatching module uses an encoder-only recurrent Transformer to represent coupled vehicle-to-region decisions. Unlike autoregressive sequence generation, all vehicle representations are updated in parallel with non-causal full attention. A recurrent inference mechanism feeds the hidden representation from one reasoning round into the next, enabling non-autoregressive iterative refinement of the assignment distribution.
The module has three features: (1) encoder-only parallel updates, where all vehicle states are updated simultaneously rather than autoregressively [57]; (2) recurrent refinement, where multiple self-attention rounds reuse the previous hidden state [58] (evaluated in Table 6); and (3) non-causal full attention over the global vehicle and block state, supporting coordinated reasoning (Figure 3).
In the modeling process, the dispatching module receives two key input matrices: the demand distribution matrix P d ∈ R m × m , which records the demand information for each service block within a specified time window. This matrix is used to enforce column constraints, ensuring that the number of vehicles assigned to each block does not exceed its corresponding demand capacity. Additionally, the vehicle distribution matrix P v ∈ R n × m 2 captures the current vehicle distribution status.
We first embed the vehicle distribution into token and positional representations Emtoken and Empos , where the former projects vehicle features into a shared latent space and the latter preserves each vehicle’s identity and relative position. Meanwhile, Em pos is a randomly initialized positional encoding vector of dimension l p q , used to preserve the identity and relative position of each vehicle within the fleet, ensuring that the model can distinguish between different vehicles.
The proposed Recurrent-Transformer model adopts a stacked architecture integrated with a recursive looping mechanism, consisting of M self-attention blocks and N recursive iterations. Through this multi-step reasoning framework, the model iteratively refines dispatching decisions, progressively improving the alignment between vehicle assignments and dynamic demand patterns:
H ( n , 0 ) = H ( n − 1 , M )
H ( n , m ) = Block m H ( n , m − 1 ) , ∀ m ∈ { 1 , … , M }
X ( n , m ) = softmax ln H ( n , m ) · λ out , ∀ m ∈ { 1 , … , M }
Here, H ( n , 0 ) denotes the initial hidden state of the n-th recursive iteration. In particular, the initial hidden embedding input is defined as H ( 1 , 0 ) = Em token + Em pos . Block m represents the m-th Transformer block, which performs self-attention mechanisms and feedforward network operations at each layer. The operator ln ( · ) = layer _ norm ( · ) denotes layer normalization, which stabilizes the training process. λ out ∈ R l p q × c denotes the output layer weights, and X ( n , m ) ∈ R t × c denotes the neural network outputs.
To enhance the model’s ability to capture diverse subspace features within the global system state, we incorporate the multi-head attention mechanism, which enables the model to jointly attend to information from different representation subspaces.
Assume that the hidden state is linearly projected into h attention heads, each with a reduced feature dimension of:
l h = l p q h
For the k-th attention head, in the n-th recursive iteration and the m-th Transformer block, the Q k ( n , m ) , K k ( n , m ) , and V k ( n , m ) representations are defined as follows:
Q k ( n , m ) = ln H ( n , m ) · W Q ( m , k )
K k ( n , m ) = ln H ( n , m ) · W K ( m , k )
V k ( n , m ) = ln H ( n , m ) · W V ( m , k )
The scaled dot-product attention weights are defined as follows:
A k ( n , m ) = softmax Q k ( n , m ) K k ( n , m ) T l h , k ∈ { 1 , … , h }
The attention output and its projected head representation are then computed as:
Z k ( n , m ) = A k ( n , m ) V k ( n , m ) , V k * = Z k ( n , m ) W P ( m ) , k ∈ { 1 , … , h }
By concatenating the outputs of all attention heads and applying a linear transformation, we derive the aggregated representation:
V * = Concat V 1 * , … , V k * · W O , k ∈ { 1 , … , h }
Finally, the overall update operation of each Transformer block is expressed as follows:
Block m H ( n , m ) = MLP m ln V * + V *
Here, the subscript k indicates the query Q k ( n , m ) , key K k ( n , m ) , and value V k ( n , m ) matrices corresponding to the k-th attention head. A k ( n , m ) denotes the attention-weight matrix, and Z k ( n , m ) is the corresponding value-weighted attention output. l h denotes the dimensionality of the key vectors and scales the dot product to improve numerical stability. W P ( m ) projects each head output, while W O projects the concatenated multi-head representation into the desired output dimension.
This multi-head attention design allows the model to simultaneously model vehicle–vehicle interactions, block-block correlations, and cross-entity dependencies, significantly enhancing its capacity to perform global collaborative reasoning in complex dispatching scenarios. The pseudocode below outlines the procedure of the Recurrent-Transformer dispatching module.
Pseudocode 2: Recurrent-Transformer Dispatching Module
1: Input: Vehicle feature set V with features (location, idle time, capacity), region set with predicted demand D ^ t , recursion step N, transformer block number M.
2: Token embedding matrices E m token and E m pos .
3: Set H ( 1 , 0 ) = E m token + E m pos .
4: For  n = 1   to  N  do
5:    If  n > 1 , set H ( n , 0 ) = H ( n − 1 , M ) .
6:    For  m = 1  to M do
7:       For each head k = 1  to h do
8:           Q k ( n , m ) = ln H ( n , m ) W Q ( m , k ) .
9:           K k ( n , m ) = ln H ( n , m ) W K ( m , k ) .
10:           V k ( n , m ) = ln H ( n , m ) W V ( m , k ) .
11:           A k ( n , m ) = softmax Q k ( n , m ) ( K k ( n , m ) ) ⊤ / l h .
12:           Z k ( n , m ) = A k ( n , m ) V k ( n , m ) ; V k * = Z k ( n , m ) W P ( m ) .
13:       end for
14:        V * = Concat V 1 * , … , V h * .
15:        X ( n , m ) = softmax LayerNorm H ( n , m ) λ out .
16:    end for
17: end for
18: Output: Final dispatch decision matrix X ( n , m ) .

4.4. Loss Function

To jointly optimize demand prediction, dispatch objectives, and constraint penalties, we design a structured loss that supports two training strategies: KM-guided optimization (KMGO) and constraint-guided optimization (CGO). KMGO uses KM-generated reference assignments as supervised guidance, whereas CGO relies on the differentiable dispatch objective and structural constraint penalties without requiring KM labels.
The first component of the loss function is the Prediction Loss L demand , which quantifies the model’s performance in predicting future demand trends. This is implemented using the Mean Squared Error (MSE) between the predicted and actual demand distributions across service blocks:
L demand = MSE Loss = 1 k ∑ t = 1 k y t − y ^ t 2
where y ^ t and y t denote the predicted and ground-truth demand values, and k is the total number of service blocks.
To optimize the vehicle dispatching module, we define two complementary types of dispatching loss that accommodate different training scenarios and data availability:
(1) KM-guided optimization loss. When KM reference assignments are available, the model minimizes the discrepancy between the objective values of its predicted assignment and the reference assignment.
(2) Constraint-guided optimization loss. In CGO, reference assignments are not used. The model is guided by the differentiable dispatch objective and structural constraint penalties. This reduces dependence on optimization labels, although it does not constitute a proof of optimality.
Let l a represent the reference assignment indicating the target service block for each vehicle. Given the model’s predicted dispatching plan P, we evaluate the quality of the dispatching solution based on key operational metrics such as empty mileage C, platform revenue I, and passenger waiting time T.
O ( P ) = C ( P ) , − I ( P ) , T ( P )
Accordingly, in the supervised setting, the single-step dispatch loss is defined as the difference between the expected objective value derived from the model’s output and the corresponding value from the reference assignment:
L opt single km ( P , l a ) = O ( P ) − O ( l a ) 2
In the absence of reference assignments, we define the single-step unsupervised dispatch loss as:
L opt single none ( P ) = λ 1 C ( P ) − λ 2 I ( P ) + λ 3 T ( P )
To account for the recursive nature of the Recurrent-Transformer architecture, we accumulate the single-step losses across all recursive iterations and Transformer blocks to compute the overall dispatch loss:
L dispatch km = L X ( n , m ) , l a = ∑ n = 1 N ∑ m = 1 M L opt single km X ( n , m ) , l a
L dispatch none = L X ( n , m ) = ∑ n = 1 N ∑ m = 1 M L opt single none X ( n , m )
When applying unsupervised loss, to ensure that the dispatching solutions adhere to real-world operational constraints, we incorporate a Constraint Embedding Mechanism, which introduces explicit structural loss terms to encode key scheduling rules:
(1) Row Constraint (Vehicle Single Assignment): Each dispatched vehicle is assigned to one service block.
L row = ∑ i = 1 n ∑ j = 1 m P ( X i = j ) − 1 2 , ∀ i ∈ { 1 , 2 , … , n }
(2) Column Constraint (Block Capacity Limitation): The number of vehicles assigned to block j must not exceed its demand capacity O r j .
L col = ∑ j = 1 m ReLU ∑ i = 1 n P ( X i = j ) − O r j 2
The overall constraint loss L constraint is then defined as a weighted combination:
L constraint = λ row L row + λ col L col
where λ row and λ col are hyperparameters balancing the influence of each constraint.
The total loss is a weighted combination of all components:
L kmgo = λ d L demand + λ c L dispatch km
L cgo = λ d L demand + λ c L dispatch none + λ row L row + λ col L col
where L kmgo or L cgo is applied depending on the training strategy, and λ d and λ c are coefficients controlling the relative importance of each component.
The constraint penalties encourage single assignments and capacity-aware allocations. Their empirical contribution is assessed by the loss ablation in Table 7; no hard feasibility guarantee is assumed.

5. Experiments

This section evaluates prediction accuracy, dispatch quality, constraint behavior, and online computation time on three real-world ride-hailing datasets.
The experimental data are anonymized ride-hailing order records from Didi Chuxing, collected in three cities—Chengdu, Xi’an, and Haikou—including order timestamps, pickup and drop-off locations, trip durations and distances, and vehicle status. Experiments were implemented in Python 3.10 with PyTorch 1.13 and mixed-precision training on an RTX 3060 Ti GPU. Table 2 presents the hyperparameter configuration.

5.1. Evaluation of Prediction Module

We evaluate the demand prediction module using Mean Absolute Error (MAE) and Root Mean Square Error (RMSE), comparing against statistical, machine learning, and deep learning baselines.
Table 3 and Figure 4 summarize the prediction results. The proposed model achieves competitive accuracy across the three cities and improves substantially over the statistical and several machine-learning baselines. ASTGCN, however, obtains lower MAE and RMSE in all three datasets. This result is expected because ASTGCN is optimized specifically for standalone forecasting, whereas the proposed prediction module is trained within a decision-oriented objective that also reflects downstream dispatching. Accordingly, Table 3 should be interpreted as evidence that the integrated model retains a reasonable forecasting capability, not as evidence of best-in-class prediction accuracy.
Table 4 reports the graph ablation. Removing the distance-cost graph degrades both MAE and RMSE, indicating that geographic separation is important. Removing the POI or heat graph increases MAE but decreases RMSE. The graph views therefore have heterogeneous effects on average error and large-error sensitivity. Multi-graph fusion is interpreted here as a decision-oriented representation design rather than a mechanism that minimizes every standalone forecasting metric.

5.2. Evaluation of Dispatching Module

This subsection evaluates the learned dispatcher on representative instances from Chengdu, Xi’an, and Haikou. KM provides a reference solution for the underlying bipartite matching component. Because the complete evaluation also includes regional capacity and supply–demand metrics, KM is treated as a benchmark rather than a globally optimal solution to every operational objective considered in this study.
Figure 5 illustrates one dispatching instance on a 10 × 10 grid. The learned allocation broadly follows the spatial pattern of the KM reference while not reproducing it exactly. The example is qualitative; the aggregate comparisons in Table 5 and Table 8 provide the quantitative evidence.
To further quantify the model’s performance, we define the supply-demand equilibrium ratio (SDER) and the capacity constraint violation rate (CCVR) as assessment metrics. The SDER is formulated as: SDER = average s i j ∈ S D ( s i j ) O r ( s i j ) , where supply–demand equilibrium refers to balancing supply and demand across all service blocks. This metric quantifies the degree of global coordination between vehicle supply and order demand and particularly reflects whether the dispatching solution can maintain basic service coverage in low-demand service block under resource-constrained conditions, thereby indicating the robustness and fairness of the strategy. The CCVR is defined as: CCVR = ∑ i = 1 N max 0 , s i − C i ∑ i = 1 N C i , which measures the extent to which the dispatching plan reasonably allocates vehicle resources and avoids excessive vehicle aggregation in certain service blocks.
As shown in Table 5, the proposed model achieves an average SDER of 92.95% across the three cities and maintains zero CCVR in all cases. It improves SDER over KM, IKM, and AVNS, while FSR obtains higher SDER in Chengdu and Xi’an and the proposed model obtains the highest value in Haikou. The results therefore support competitive dispatch quality and stable capacity behavior, rather than strict dominance over every baseline. The zero CCVR is consistent with the use of capacity-aware loss terms.
To further investigate the impact of architectural design choices on model performance, we conducted a comprehensive ablation study by varying key hyperparameters of the Recurrent Transformer architecture. The results of these experiments are summarized in Table 6.
Table 6. Performance analysis with different M/N combinations.
Table 6. Performance analysis with different M/N combinations.
Configuration Instance 1 Instance 2 Instance 3 Instance 4
SDER CCVR SDER CCVR SDER CCVR SDER CCVR
M1N16 81.33% 0% 81.51% 3% 83.13% 0% 80.62% 5%
M1N32 84.59% 0% 83.77% 0% 86.41% 0% 85.42% 1%
M2N16 89.19% 0% 90.21% 1% 88.79% 0% 86.94% 1%
M2N32 91.83% 0% 92.44% 0% 93.13% 0% 91.39% 0%
M4N16 92.61% 0% 93.92% 0% 91.85% 0% 92.83% 0%
M4N32 89.37% 0% 89.18% 1% 89.71% 0% 90.38% 0%
M32N1 72.21% 3% 73.36% 4% 74.31% 2% 71.76% 6%
Increasing recurrent depth generally improves SDER up to a moderate level, but additional depth does not necessarily yield further gains. In particular, M4N32 performs below M4N16 on the four reported instances. Recurrent refinement is useful, whereas excessive depth may introduce redundant reasoning or optimization difficulty.
Figure 6 shows that SDER increases and stabilizes during training, while CCVR decreases toward zero after an intermediate fluctuation. This indicates convergence toward higher supply–demand balance and lower capacity violations under the reported configuration.
To examine positional encoding, we remove it from the M1N16 configuration. Figure 7 shows a substantial deterioration in the allocation pattern, and the reported CCVR increases by 2236% relative to the encoded configuration. This result indicates that positional information is important for distinguishing service blocks and encouraging stable, capacity-aware assignments in this setting.
Table 7 compares KM-guided optimization (KMGO) and constraint-guided optimization (CGO). CGO retains zero CCVR without KM-generated labels, although its SDER is generally lower than KMGO. Removing the constraint loss from CGO raises CCVR to 11.24–21.33% and also reduces SDER. This ablation supports the role of the constraint penalties in encouraging capacity-aware decisions under limited supervision.
Table 7. Loss function ablation experimental results.
Table 7. Loss function ablation experimental results.
Configuration Instance 1 Instance 2 Instance 3 Instance 4
SDER CCVR SDER CCVR SDER CCVR SDER CCVR
KMGO 92.61% 0% 91.92% 0% 90.85% 0% 91.13% 0%
CGO 89.23% 0% 87.91% 0% 89.14% 0% 91.44% 0%
CGO- L con 81.33% 15.72% 82.86% 21.33% 84.15% 16.51% 82.49% 11.24%
Figure 8. Performance comparison of loss function ablation experiment.
Figure 8. Performance comparison of loss function ablation experiment.
Preprints 235945 g008
Table 8 compares KMGO and CGO with the KM reference in terms of idle distance, platform revenue, and passenger waiting time. The learned methods do not strictly dominate KM; instead, their values remain close to the reference across the reported instances. Lower idle distance and passenger waiting time are preferred, whereas higher platform revenue is preferred. The comparison supports the interpretation of the neural model as an approximation that trades small objective deviations for substantially lower online computation time. In addition to the instance-level comparison in Table 8, Figure 9 provides a complementary comparison with representative dispatching baselines under peak and off-peak conditions.
Table 8. Objective function value analysis.
Table 8. Objective function value analysis.
Instance Method IdleDistance PlatformRevenue PassengerWaiting Time
1 KM 4520 1283 903
KMGO 4671 1371 934
CGO 4710 1278 958
2 KM 5250 1431 955
KMGO 5349 1402 973
CGO 5315 1387 959
3 KM 6120 1652 1020
KMGO 6230 1569 1038
CGO 6285 1569 1047
4 KM 6221 1665 1037
KMGO 6214 1643 1036
CGO 6236 1650 1042
5 KM 7723 2069 1331
KMGO 7741 2023 1336
CGO 7763 2088 1341
6 KM 8109 2161 1329
KMGO 8238 2138 1350
CGO 8182 2158 1335
7 KM 9341 2413 1531
KMGO 9527 2377 1562
CGO 9341 2413 1531
8 KM 11233 3009 2340
KMGO 11187 2947 2326
CGO 11225 2981 2335
The KM algorithm has polynomial complexity for standard assignment, but its runtime can still be substantial on the reported large instances. The learned model moves most computation to offline training and performs a forward pass during online dispatch. CGO further reduces dependence on KM-generated training labels by using the decision objective and constraint penalties.
As shown in Table 9, KM requires an average of 242.47 s per instance, whereas the proposed model requires 2.47 s. This corresponds to a 98.98% reduction in average online computation time, or approximately a 98.2-fold speedup. The result supports the use of the neural dispatcher as a seconds-level approximation for high-frequency operation; it does not imply millisecond-level latency or exponential KM complexity.

5.3. Transportation System Implications

The results suggest four implications for ride-hailing system design. First, prediction models should be assessed not only by MAE or RMSE, but also by how their outputs affect downstream allocation. Second, a trained neural dispatcher can act as a fast online approximation when repeatedly solving a reference optimizer is too slow for the decision frequency. Third, explicit capacity penalties are useful for discouraging regional over-allocation, as indicated by the CCVR ablation. Fourth, the three-city evaluation suggests adaptation potential across heterogeneous demand settings, but transfer to unseen cities still requires dedicated validation.

6. Conclusions

This study proposed a decision-focused end-to-end trainable framework for scalable vehicle dispatching in ride-hailing systems. The framework integrates multi-graph spatiotemporal demand representation with a recurrent Transformer-based dispatching module and incorporates constraint-aware loss terms to guide capacity-aware vehicle allocation. Experiments on three real-world ride-hailing datasets show competitive dispatching quality and zero CCVR for the proposed model in the reported city-level comparison. The model reduces average online computation time from 242.47 s for KM to 2.47 s, supporting its role as an efficient approximation for high-frequency operation. The prediction results also show that a dedicated forecasting model can achieve lower standalone error, reinforcing the decision-focused rather than prediction-dominance interpretation.
Limitations and future work. The present study uses grid-level distance and historical demand and does not model uncertainty, road-network travel time, battery state of charge, charging-station availability, energy consumption, or heterogeneous fleet constraints. It also evaluates logged multi-city datasets rather than an online simulator, digital twin, or field deployment, and it does not establish transfer performance on unseen cities. Future work should address these limitations through uncertainty-aware prediction, road-network and energy models, richer fleet constraints, and online closed-loop evaluation.

Author Contributions

Conceptualization, Y.G. and Y.Q.; methodology, Y.G. and Y.Q.; software, Y.G.; validation, Y.G. and H.W. (Haoran Wang); formal analysis, Y.G. and H.W. (Hongao Wang); investigation, Y.G.; resources, Y.Q.; data curation, Y.G. and H.W. (Hongao Wang); writing—original draft preparation, Y.G.; writing—review and editing, Y.Q. and H.W. (Haoran Wang); visualization, Y.G.; supervision, Y.Q.; project administration, Y.G. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Natural Science Foundation of Zhejiang Province (grant number LMS25G010003) and the Scientific Research Project of Zhejiang Provincial Department of Education (grant number Y202454572).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data will be made available on request.

Acknowledgments

The authors acknowledge the support described in the Funding section.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Martínez-Díaz, M.; Soriguera, F. Autonomous vehicles: theoretical and practical challenges. Transportation Research Procedia 2018, 33, 275–282, XIII Conference on Transport Engineering, CIT2018. [Google Scholar] [CrossRef]
  2. Olayode, I.O.; Du, B.; Severino, A.; Campisi, T.; Alex, F.J. Systematic literature review on the applications, impacts, and public perceptions of autonomous vehicles in road transportation system. J. Traffic Transp. Eng. (English Edition) 2023, 10, 1037–1060. [Google Scholar] [CrossRef]
  3. Guo, Y.; Li, W.; Xiao, L.; Choudhary, A.; Allaoui, H. Enhancing efficiency and interpretability: A multi-objective dispatching strategy for autonomous service vehicles in ride-hailing. Comput. Ind. Eng. 2024, 194, 110385. [Google Scholar] [CrossRef]
  4. Al-Kanj, L.; Nascimento, J.; Powell, W.B. Approximate dynamic programming for planning a ride-hailing system using autonomous fleets of electric vehicles. Eur. J. Oper. Res. 2020, 284, 1088–1106. [Google Scholar] [CrossRef]
  5. Li, B.; Zhao, M.; Chen, N.; Li, Z.; Sun, H. The Ride-Hailing and Pricing Strategy Decision With the Application of Autonomous Vehicles. Manag. Decis. Econ. 2026, 47, 286–308. [Google Scholar] [CrossRef]
  6. Yue, X.; Liu, Y.; Shi, F.; Luo, S.; Zhong, C.; Lu, M.; Xu, Z. An End-to-End Reinforcement Learning Based Approach for Micro-View Order-Dispatching in Ride-Hailing. In Proceedings of the 33rd ACM International Conference on Information and Knowledge Management, New York, NY, USA, 2024; CIKM ’24. pp. 5054–5061. [Google Scholar] [CrossRef]
  7. Guo, Y.; Zhang, Y.; Yu, J.; Shen, X. A Spatiotemporal Thermo Guidance Based Real-Time Online Ride-Hailing Dispatch Framework. IEEE Access 2020, 8, 115063–115077. [Google Scholar] [CrossRef]
  8. Wen, D.; Li, Y.; Lau, F.C.M. A Survey of Machine Learning-Based Ride-Hailing Planning. IEEE Trans. Intell. Transp. Syst. 2024, 25, 4734–4753. [Google Scholar] [CrossRef]
  9. Ge, H.; Hu, X.; Cheng, M. DHDRDS: A Deep Reinforcement Learning-Based Ride-Hailing Dispatch System for Integrated Passenger–Parcel Transport. Sustainability 2025, 17. [Google Scholar] [CrossRef]
  10. Bertsimas, D.; Kallus, N. From Predictive to Prescriptive Analytics. Manag. Sci. 2020, 66, 1025–1044. [Google Scholar] [CrossRef]
  11. Yuan, E.; Chen, W.; Van Hentenryck, P. Reinforcement learning from optimization proxy for ride-hailing vehicle relocation. J. Artif. Intell. Res. 2022, 75, 985–1002. [Google Scholar] [CrossRef]
  12. Bao, Y.; Gao, J.; He, J.; Oliehoek, F.A.; Cats, O. Timing the Match: A Deep Reinforcement Learning Approach for Ride-Hailing and Ride-Pooling Services. arXiv 2025, arXiv:cs.LG/2503.13200. [Google Scholar]
  13. Yan, L.; Tang, R. Dual-Layer Optimization for Supply–Demand Balance in Urban Taxi Systems: Multi-Agent Reinforcement Learning with Dual-Attention Mechanisms. Electronics 2025, 14. [Google Scholar] [CrossRef]
  14. Elmachtoub, A.N.; Grigas, P. Smart “Predict, then Optimize”. Manag. Sci. 2022, 68, 9–26. [Google Scholar] [CrossRef]
  15. Sadeghi Eshkevari, S.; Tang, X.; Qin, Z.; Mei, J.; Zhang, C.; Meng, Q.; Xu, J. Reinforcement Learning in the Wild: Scalable RL Dispatching Algorithm Deployed in Ridehailing Marketplace. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, New York, NY, USA, 2022; KDD ’22. pp. 3838–3848. [Google Scholar] [CrossRef]
  16. Liu, Y.; Jia, R.; Ye, J.; Qu, X. How machine learning informs ride-hailing services: A survey. Commun. Transp. Res. 2022, 2, 100075. [Google Scholar] [CrossRef]
  17. Liu, Y.; Wu, F.; Lyu, C.; Li, S.; Ye, J.; Qu, X. Deep dispatching: A deep reinforcement learning approach for vehicle dispatching on online ride-hailing platform. Transp. Res. Part E Logist. Transp. Rev. 2022, 161, 102694. [Google Scholar] [CrossRef]
  18. Feng, J.; Gluzman, M.; Dai, J.G. Scalable Deep Reinforcement Learning for Ride-Hailing. In Proceedings of the 2021 American Control Conference (ACC), 2021; pp. 3743–3748. [Google Scholar] [CrossRef]
  19. Fan, Q.; van Essen, J.T.; Correia, G.H. A bi-level framework for heterogeneous fleet sizing of ride-hailing services considering an approximated mixed equilibrium between automated and non-automated traffic. Eur. J. Oper. Res. 2024, 315, 879–898. [Google Scholar] [CrossRef]
  20. Megantara, T.R.; Supian, S.; Chaerani, D.; Bon, A.T. The Application of the Piecewise Linear Method for Non-Linear Programming Problems in Ride-Hailing Assignment Based on Service Level, Driver Workload, and Fuel Consumption. Mathematics 2024, 12. [Google Scholar] [CrossRef]
  21. Guo, Y.; Zhu, R.; Li, W.; Boulaksil, Y.; Allaoui, H. Dynamic pick-up point recommendation with multi-modal deep forest and incentive-based adaptive Kuhn-Munkres Algorithm. Knowl.-Based Syst. 2025, 330, 114543. [Google Scholar] [CrossRef]
  22. van Engelen, M.; Cats, O.; Post, H.; Aardal, K. Enhancing flexible transport services with demand-anticipatory insertion heuristics. Transp. Res. Part E Logist. Transp. Rev. 2018, 110, 110–121. [Google Scholar] [CrossRef]
  23. Alonso-Mora, J.; Samaranayake, S.; Wallar, A.; Frazzoli, E.; Rus, D. On-demand high-capacity ride-sharing via dynamic trip-vehicle assignment. Proc. Natl. Acad. Sci. 2017, 114, 462–467. [Google Scholar] [CrossRef] [PubMed]
  24. Sayarshad, H.R.; Chow, J.Y. Non-myopic relocation of idle mobility-on-demand vehicles as a dynamic location-allocation-queueing problem. Transp. Res. Part E Logist. Transp. Rev. 2017, 106, 60–77. [Google Scholar] [CrossRef]
  25. Xu, Z.; Li, Z.; Guan, Q.; Zhang, D.; Li, Q.; Nan, J.; Liu, C.; Bian, W.; Ye, J. Large-Scale Order Dispatch in On-Demand Ride-Hailing Platforms: A Learning and Planning Approach. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, New York, NY, USA, 2018; KDD ’18. pp. 905–913. [Google Scholar] [CrossRef]
  26. Sartori Vieira, F.; Sörensen, K.; Vanstenwegen, P. Optimization of a semiflexible demand-responsive feeder bus system using variable neighborhood search. Int. Trans. Oper. Res. 2025, 32, 3413–3440. [Google Scholar] [CrossRef]
  27. Feng, C.; Mei, Z. Optimization of Shared Autonomous Vehicles Routing Problem: From the View of Parking. Sustainability 2023, 15. [Google Scholar] [CrossRef]
  28. de Abreu Rodrigues, G.; Junqueira, L.; Vieira, J.G.V.; da Silva Júnior, O.S.; da Cunha, C.B. Rural last-mile distribution using a hybrid heuristic-multi-criteria decision-making framework. Expert Systems with Applications 2025, 289, 128331. [Google Scholar] [CrossRef]
  29. Benjelloun, R.; Tarik, M.; Jebari, K. Open Competency Optimization with Combinatorial Operators for the Dynamic Green Traveling Salesman Problem. Information 2025, 16. [Google Scholar] [CrossRef]
  30. Engelhardt, R.; Dandl, F.; Bogenberger, K. Speed-up Heuristic for an On-Demand Ride-Pooling Algorithm. arXiv 2020, arXiv:eess. [Google Scholar]
  31. Machado, B.; Pimentel, C.; de Sousa, A. Integration planning of freight deliveries into passenger bus networks: Exact and heuristic algorithms. Transp. Res. Part A Policy Pract. 2023, 171, 103645. [Google Scholar] [CrossRef]
  32. Kılıç, D.K.; Nielsen, P.; Miehe, F.; Yafrani, M.E. Trustworthiness analysis of heuristic routing algorithm with special constraints for autonomous vehicles in surveillance and coverage operations. Int. J. Syst. Sci. 2025, 56, 2717–2734. [Google Scholar] [CrossRef]
  33. Wu, Y.; Song, W.; Cao, Z.; Zhang, J.; Lim, A. Learning Improvement Heuristics for Solving Routing Problems. IEEE Trans. Neural Netw. Learn. Syst. 2022, 33, 5057–5069. [Google Scholar] [CrossRef] [PubMed]
  34. Thyssens, D.; Dernedde, T.; Sentanoe, W.; Schmidt-Thieme, L. On Distributional Dependent Performance of Classical and Neural Routing Solvers, 2025. arXiv arXiv:cs.LG/2508.02510.
  35. Latinopoulos, C.; Zavvos, E.; Kaklis, D.; Leemen, V.; Halatsis, A. Marine Voyage Optimization and Weather Routing with Deep Reinforcement Learning. J. Mar. Sci. Eng. 2025, 13. [Google Scholar] [CrossRef]
  36. Zhang, J.; Sun, Y.; Feng, Q.; Zhao, Y.; Wang, Z. Data-Driven Robust Optimization of the Vehicle Routing Problem with Uncertain Customers. Complexity 2022, 2022, 9064669. [Google Scholar] [CrossRef]
  37. Wang, X.; Li, N.; Jin, X. A Reinforcement Learning Hyper-Heuristic with Cumulative Rewards for Dual-Peak Time-Varying Network Optimization in Heterogeneous Multi-Trip Vehicle Routing. Algorithms 2025, 18. [Google Scholar] [CrossRef]
  38. Zhang, Y.; Long, Y.; Ni, Y.; Huang, L.; Wang, X.; Liu, J. Hierarchical Optimization via LLM-Guided Objective Evolution for Mobility-on-Demand Systems. arXiv 2025, arXiv:cs.AI/2510.10644. [Google Scholar]
  39. Zhang, H.; Wang, G.; Wang, X.; Zhou, Z.; Zhang, C.; Dong, Z.; Wang, Y. NondBREM: Nondeterministic Offline Reinforcement Learning for Large-Scale Order Dispatching. Proc. AAAI Conf. Artif. Intell. 2024, 38, 401–409. [Google Scholar] [CrossRef]
  40. Nejadshamsi, S.; Bentahar, J.; Wang, C.; Eicker, U. Predicting short-Term bike-Sharing demand at station level: A multi-Task dynamic graph-based spatiotemporal approach. Knowl.-Based Syst. 2026, 333, 114986. [Google Scholar] [CrossRef]
  41. Singh, A.; Al-Abbasi, A.O.; Aggarwal, V. A Distributed Model-Free Algorithm for Multi-Hop Ride-Sharing Using Deep Reinforcement Learning. IEEE Trans. Intell. Transp. Syst. 2022, 23, 8595–8605. [Google Scholar] [CrossRef]
  42. Guo, X.; Wang, Q.; Zhao, J. Data-Driven Vehicle Rebalancing With Predictive Prescriptions in the Ride-Hailing System. IEEE Open J. Intell. Transp. Syst. 2022, 3, 251–266. [Google Scholar] [CrossRef]
  43. Guo, Z.; Yu, B.; Shan, W.; Yao, B. Data-driven robust optimization for contextual vehicle rebalancing in on-demand ride services under demand uncertainty. Transp. Res. Part C Emerg. Technol. 2023, 154, 104244. [Google Scholar] [CrossRef]
  44. Kang, Y.; Li, T.; Zhao, L.; Gao, Z.; He, J.; Chen, Z.; Pu, B. Dual dynamic graph attention network driven deep reinforcement learning for flexible job-Shop scheduling. Knowl.-Based Syst. 2026, 335, 115192. [Google Scholar] [CrossRef]
  45. Liang, E.; Wen, K.; Lam, W.H.K.; Sumalee, A.; Zhong, R. An Integrated Reinforcement Learning and Centralized Programming Approach for Online Taxi Dispatching. IEEE Trans. Neural Netw. Learn. Syst. 2022, 33, 4742–4756. [Google Scholar] [CrossRef] [PubMed]
  46. Lin, K.; Zhao, R.; Xu, Z.; Zhou, J. Efficient Large-Scale Fleet Management via Multi-Agent Deep Reinforcement Learning. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, New York, NY, USA, 2018; KDD ’18. pp. 1774–1783. [Google Scholar] [CrossRef]
  47. Yang, Y.; Luo, R.; Li, M.; Zhou, M.; Zhang, W.; Wang, J. Mean Field Multi-Agent Reinforcement Learning. In Proceedings of the 35th International Conference on Machine Learning, 10–15 Jul 2018; Dy, J., Krause, A., Eds.; PMLR, Proceedings of Machine Learning Research. Vol. 80, pp. 5571–5580. [Google Scholar]
  48. Wang, D.; Wang, Q.; Yin, Y.; Cheng, T. Optimization of ride-sharing with passenger transfer via deep reinforcement learning. Transp. Res. Part E Logist. Transp. Rev. 2023, 172, 103080. [Google Scholar] [CrossRef]
  49. Wang, Y.; Yin, H.; Wu, L.; Chen, T.; Liu, C. Secure Your Ride: Real-Time Matching Success Rate Prediction for Passenger-Driver Pairs. IEEE Trans. Knowl. Data Eng. 2023, 35, 3059–3071. [Google Scholar] [CrossRef]
  50. Kang, Y.; Chan, J.; Shao, W.; Salim, F.D.; Leckie, C. Long-Term Fairness in Ride-Hailing Platform. In Proceedings of the Machine Learning and Knowledge Discovery in Databases. Applied Data Science Track; Bifet, A., Krilavičius, T., Miliou, I., Nowaczyk, S., Eds.; Cham, 2024; pp. 223–239. [Google Scholar]
  51. Seo, Y.H.; Kim, D.K.; Kang, S.; Byon, Y.J.; Kho, S.Y. Rebalancing Docked Bicycle Sharing System with Approximate Dynamic Programming and Reinforcement Learning. J. Adv. Transp. 2022, 2022, 2780711. [Google Scholar] [CrossRef]
  52. Han, X.; Chong, Y.; Huangfu, Q. Shared Bicycle Scheduling Model Based on Price Incentive Mechanism. Math. Probl. Eng. 2018, 2018, 3713254. [Google Scholar] [CrossRef]
  53. Li, J.; Allan, V.H. Multiple Agents Dispatch via Batch Synchronous Actor Critic in Autonomous Mobility on Demand Systems. In Proceedings of the 16th International Conference on Agents and Artificial Intelligence (ICAART), 2024; Vol. 2, pp. 198–209. [Google Scholar] [CrossRef]
  54. Hiermann, G.; Schiffer, M. A decomposition-based approach for large-scale pickup and delivery problems. Eur. J. Oper. Res. 2026. [Google Scholar] [CrossRef]
  55. Wang, B.; Wang, Y.; He, X.; Hu, Y.; Yin, B. Multi-graph convolutional clustering network. IET Signal Process. 2022, 16, 650–661. [Google Scholar] [CrossRef]
  56. Zhang, B.; Niu, D.; Zhang, L.; Zhang, Q.; Li, Z. MSH-DTI: multi-graph convolution with self-supervised embedding and heterogeneous aggregation for drug-target interaction prediction. BMC Bioinform. 2024, 25, 275. [Google Scholar] [CrossRef] [PubMed]
  57. Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers); Minneapolis, Minnesota, Jun 2019, Burstein, J., Doran, C., Solorio, T., Eds.; pp. 4171–4186. [CrossRef]
  58. Gan, Z.; Cheng, Y.; Kholy, A.; Li, L.; Liu, J.; Gao, J. Multi-step Reasoning via Recurrent Dual Attention for Visual Dialog. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics; Florence, Italy, Jul 2019, Korhonen, A., Traum, D., Màrquez, L., Eds.; pp. 6463–6474. [CrossRef]
Figure 1. Overall model architecture
Figure 1. Overall model architecture
Preprints 235945 g001
Figure 2. Structure of the prediction module.
Figure 2. Structure of the prediction module.
Preprints 235945 g002
Figure 3. Structure of the dispatching module.
Figure 3. Structure of the dispatching module.
Preprints 235945 g003
Figure 4. Prediction error comparison across different models; lower values are better.
Figure 4. Prediction error comparison across different models; lower values are better.
Preprints 235945 g004
Figure 5. Specific dispatching scenario demonstration.
Figure 5. Specific dispatching scenario demonstration.
Preprints 235945 g005
Figure 6. Convergence trend of SDER and CCVR over training.
Figure 6. Convergence trend of SDER and CCVR over training.
Preprints 235945 g006
Figure 7. Impact of removing positional encoding.
Figure 7. Impact of removing positional encoding.
Preprints 235945 g007
Figure 9. Objectives function value comparison between peak and off-peak periods.
Figure 9. Objectives function value comparison between peak and off-peak periods.
Preprints 235945 g009
Table 1. Existing research analysis.
Table 1. Existing research analysis.
Research Method Scalability Multi-Objective Structure Hetero.
geneous
[22] Heuristic Medium Yes Pipeline No
[23] Heuristic + Optimization Large Yes Pipeline No
[24] Heuristic Medium Yes Pipeline No
[26] Heuristic (VNS) Medium Yes Pipeline No
[27] Heuristic (VNS) Medium Yes Pipeline No
[28] Heuristic + MCDM Medium Yes Pipeline Yes
[45] Reinforcement Learning Medium Yes Pipeline No
[46] Multi-Agent Reinforcement Learning Medium No Pipeline No
[25] Learning + Planning Large Yes Pipeline Yes
[41] Deep Reinforcement Learning Medium Yes Pipeline No
[42] Data-Driven Optimization Large Yes Pipeline Yes
[43] Robust Optimization Large Yes Pipeline Yes
[48] Reinforcement Learning + Integer Programming Large Yes Pipeline Yes
[39] Offline Reinforcement Learning Large Yes End-to-End Yes
[8] Reinforcement Learning Large Yes End-to-End No
[51] Reinforcement Learning Medium Yes Pipeline No
[52] Regression + Heuristic Medium No Pipeline No
Ours Deep Learning Large Yes End-to-End Yes
Table 2. Hyperparameter configuration.
Table 2. Hyperparameter configuration.
Parameter Value
Optimizer Adam
Learning rate 1 × 10 − 5
Batch size 32
Total epochs 500
Transformer blocks (M) 4
Recursive steps (N) 16
λ 1 , λ 2 , λ 3 0.33
Table 3. Prediction performance analysis across different models.
Table 3. Prediction performance analysis across different models.
Method Chengdu Xi’an Haikou
MAE RMSE MAE RMSE MAE RMSE
Linear regression 9.48 9.67 8.64 9.11 7.56 10.33
XGBoost 4.84 6.94 3.40 5.16 4.15 8.63
CatBoost 5.13 7.16 4.38 5.62 5.24 7.93
LSTM 4.61 6.81 3.27 5.28 4.16 7.23
LSTM-KNN 4.52 6.59 2.99 5.11 3.27 6.91
ASTGCN 4.32 6.33 2.41 4.36 2.12 6.51
Ours 4.48 6.45 2.55 4.82 2.46 6.57
Table 4. Graph ablation experimental results.
Table 4. Graph ablation experimental results.
Ablation setting MAE RMSE
Full model (all graphs) 2.46 6.57
w/o distance-cost graph 4.39 7.02
w/o POI graph 2.89 4.78
w/o heat graph 3.31 5.36
Table 5. Dispatch performance comparison across methods and cities.
Table 5. Dispatch performance comparison across methods and cities.
Method Chengdu Xi’an Haikou
SDER CCVR SDER CCVR SDER CCVR
KM 78.48% 1% 79.53% 0% 81.42% 4%
IKM 82.35% 0% 84.65% 0% 85.36% 1%
FSR 93.12% 0% 94.71% 0% 91.38% 0%
AVNS 90.69% 0% 92.25% 0% 90.16% 0%
Ours 92.61% 0% 93.92% 0% 92.33% 0%
Table 9. Running time analysis.
Table 9. Running time analysis.
Instance Time (s)
KM Ours
1 85.53 1.81
2 115.32 2.85
3 180.41 2.72
4 502.51 4.33
5 287.09 2.21
6 181.16 1.95
7 115.44 1.98
8 278.10 2.32
9 180.70 1.14
10 252.44 2.36
11 236.81 2.62
12 494.13 3.16
Average 242.47 2.47
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.