Optimizing Server Locations in Spatial Queues: Parametric and Nonparametric Bayesian Optimization

Hua Cheng, Arthur J. Swersey, Wenqian Xing, Yi ZhangarXiv 2025 · DOI

Abstract

This paper presents a new model for solving the optimal server location problem in a spatial hypercube queueing model. Unlike deterministic location models, our approach accounts for server availability, varying utilization levels, and dependencies across servers. We prove that the problem is NP-hard and establish lower and upper bounds, as well as asymptotic results, by relating it to special cases of the classical $p$-Median problem. To address the computational challenge, we propose two Bayesian optimization approaches: (i) a parametric approach based on a sparse Bayesian linear model with second-order interactions, and (ii) a nonparametric approach using a Gaussian process surrogate with the $p$-Median objective as the prior mean function. We prove that both methods achieve sublinear regret and converge to the optimal solution. Numerical experiments and a case study using real-world data from the St. Paul, Minnesota, emergency response system show that our approaches consistently identify optimal solutions and outperform all baseline methods.

Introduction

In emergency medical services (EMS), the difference between life and death often hinges on a few seconds of response time. For city planners, the fundamental question is: where should ambulances be stationed to minimize these delays? Traditionally, operations research has relied on deterministic models like the $p$-Median problem. These models assume that the nearest unit is always available to respond. However, in high-demand urban environments, ambulances are frequently busy. When the primary unit is occupied, a secondary unit must travel from a further distance, a phenomenon that deterministic models fail to capture.

To address this, researchers use the "spatial hypercube queueing model," which accounts for stochastic server availability and inter-server dependencies. While excellent for evaluating a specific set of locations, using this model to optimize locations is an NP-hard combinatorial problem. This paper introduces two novel Bayesian Optimization (BO) frameworks designed to navigate this complex search space and provide the first prescriptive model with rigorous theoretical guarantees.

The Complexity of Spatial Queues

The spatial hypercube queueing model is computationally expensive because it requires tracking the state of every unit simultaneously. As the number of units and potential stations grows, the state space explodes. Furthermore, the search space is discrete—a station is either placed in a specific census tract or it is not.

Our research identifies a critical relationship between traffic load and optimal topology. We mathematically demonstrate that in "vanishing-load" scenarios (low traffic), the optimal configuration mirrors the classic $p$-Median solution, where units are spread out to maximize geographic coverage. Conversely, in "heavy-load" scenarios, the optimal strategy shifts toward capacity pooling, where units are co-located at a central "1-Median" point to ensure at least one unit is available for the highest-demand areas. Traditional models that ignore congestion tend to push units to the periphery, leading to significant delays when central units become unavailable.

Proposed Bayesian Optimization Approaches

To solve the discrete optimization problem efficiently, we propose two distinct BO strategies:

1. Parametric Approach: SparBL

The Sparse Bayesian Linear (SparBL) model utilizes a linear surrogate with second-order interactions. It models the objective function by considering both the impact of individual unit placements and the interaction between pairs of units (e.g., how placing Unit A near Unit B affects overall system performance). To manage the high dimensionality of these interactions, we employ a "horseshoe prior" to shrink non-essential parameters to zero. The next configuration to test is selected by relaxing a binary quadratic program into a submodular min-cut graph problem, allowing for rapid computation.

2. Nonparametric Approach: GP-pM

The Gaussian Process with $p$-Median prior (GP-pM) uses a nonparametric surrogate. To accelerate convergence, we incorporate the deterministic $p$-Median objective as the prior mean function, providing the model with a "warm start" based on geographic intuition. We developed a custom kernel to measure similarity between discrete station configurations and utilized a "Feasible Trust Region" with an adaptive swapping search to prevent the algorithm from becoming trapped in local optima.

Experimental Results and Real-World Impact

We validated our methods through both large-scale simulations and a real-world case study in St. Paul, Minnesota.

Simulation Performance

In a 10x10 grid simulation, both SparBL and GP-pM consistently identified the global optimum. They significantly outperformed standard baselines, including Genetic Algorithms and Combinatorial BO (BOCS), which often struggled with the discrete constraints and the non-linear nature of the hypercube model.

St. Paul Case Study

Using 2014 emergency call data from St. Paul (over 30,000 cases across 71 census tracts), we tasked the algorithms with placing 9 ambulances among 17 candidate stations.

  • The BO methods identified the optimal deployment in approximately 60 iterations, despite there being 24,310 possible configurations.
  • The resulting average response time was 5.86 minutes.
  • In contrast, the standard $p$-Median model resulted in a 6.01-minute response time.

While a 0.15-minute (9-second) difference may seem marginal, when aggregated over 30,000 annual calls, it represents a reduction of over 4,800 minutes of emergency delay per year—a substantial improvement in public safety.

Conclusion and Future Work

This work provides a robust framework for optimizing server locations in stochastic environments. By proving that both SparBL and GP-pM achieve sublinear regret and guaranteed convergence, we offer a reliable tool for EMS planners.

A current limitation is the assumption of a fixed dispatching policy (e.g., always sending the closest available unit). Future research will focus on the joint optimization of both physical locations and dynamic dispatching logic to further enhance system resilience and response efficiency.

Summary updated

BibTeX
@misc{cheng2025optimizing,
  author = {Hua Cheng and Arthur J. Swersey and Wenqian Xing and Yi Zhang},
  title = {{Optimizing Server Locations in Spatial Queues: Parametric and Nonparametric Bayesian Optimization}},
  year = {2025},
  eprint = {2505.22249},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.22249},
  howpublished = {arXiv},
}
Figure