Swap-based Deep Reinforcement Learning for Facility Location Problems in Networks
Abstract: Facility location problems on graphs are ubiquitous in real world and hold significant importance, yet their resolution is often impeded by NP-hardness. Recently, machine learning methods have been proposed to tackle such classical problems, but they are limited to the myopic constructive pattern and only consider the problems in Euclidean space. To overcome these limitations, we propose a general swap-based framework that addresses the p-median problem and the facility relocation problem on graphs and a novel reinforcement learning model demonstrating a keen awareness of complex graph structures. Striking a harmonious balance between solution quality and running time, our method surpasses handcrafted heuristics on intricate graph datasets. Additionally, we introduce a graph generation process to simulate real-world urban road networks with demand, facilitating the construction of large datasets for the classic problem. For the initialization of the locations of facilities, we introduce a physics-inspired strategy for the p-median problem, reaching more stable solutions than the random strategy. The proposed pipeline coupling the classic swap-based method with deep reinforcement learning marks a significant step forward in addressing the practical challenges associated with facility location on graphs.
- D. Celik Turkoglu and M. Erol Genevois, “A comparative survey of service facility location problems,” Annals of Operations Research, vol. 292, no. 1, pp. 399–468, 2020.
- H. Gavranović, A. Barut, G. Ertek, O. B. Yüzbaşıoğlu, O. Pekpostalcı, and Önder Tombuş, “Optimizing the electric charge station network of eŞarj,” Procedia Computer Science, vol. 31, pp. 15–21, 2014, 2nd International Conference on Information Technology and Quantitative Management, ITQM 2014. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1877050914004177
- F. Ndiaye, B. M. Ndiaye, and I. Ly, “Application of the p-median problem in school allocation,” American Journal of Operations Research, vol. 02, no. 02, pp. 253–259, 2012.
- C. Cintrano, F. Chicano, and E. Alba, “Using metaheuristics for the location of bicycle stations,” Expert Systems with Applications, vol. 161, p. 113684, 2020. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S095741742030508X
- Y. Bengio, A. Lodi, and A. Prouvost, “Machine learning for combinatorial optimization: A methodological tour d’horizon,” European Journal of Operational Research, vol. 290, no. 2, pp. 405–421, 2021. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0377221720306895
- C. Wang, C. Han, T. Guo, and M. Ding, “Solving uncapacitated p-median problem with reinforcement learning assisted by graph attention networks,” Applied Intelligence, 2022.
- D. Matis and P. Tarábek, “Reinforcement learning for weighted p-median problem,” in 2023 International Conference on Information and Digital Technologies (IDT), 2023, pp. 293–298.
- H. Luo, Z. Bao, J. S. Culpepper, M. Li, and Y. Zhao, “Facility relocation search for good: When facility exposure meets user convenience,” in Proceedings of the ACM Web Conference 2023, ser. WWW ’23. New York, NY, USA: Association for Computing Machinery, 2023, pp. 3937–3947.
- D. Tsiotas and S. Polyzos, “The topology of urban road networks and its role to urban mobility,” Transportation Research Procedia, vol. 24, pp. 482–490, 2017.
- E. Khalil, H. Dai, Y. Zhang, B. Dilkina, and L. Song, “Learning combinatorial optimization algorithms over graphs,” in Advances in Neural Information Processing Systems, I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, Eds., vol. 30. Curran Associates, Inc., 2017.
- W. Kool, H. van Hoof, and M. Welling, “Attention, learn to solve routing problems!” in 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. [Online]. Available: https://openreview.net/forum?id=ByxBFsRqYm
- Q. Cappart, D. Chételat, E. Khalil, A. Lodi, C. Morris, and P. Veličković, “Combinatorial optimization and reasoning with graph neural networks,” Journal of Machine Learning Research, vol. 24, no. 130, pp. 1–61, 2023. [Online]. Available: http://jmlr.org/papers/v24/21-0449.html
- X. Chen and Y. Tian, “Learning to perform local rewriting for combinatorial optimization,” in Advances in Neural Information Processing Systems, H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, Eds., vol. 32. Curran Associates, Inc., 2019.
- H. Lu, X. Zhang, and S. Yang, “A learning-based iterative method for solving vehicle routing problems,” in International Conference on Learning Representations, 2019.
- Y. Wu, W. Song, Z. Cao, J. Zhang, and A. Lim, “Learning improvement heuristics for solving routing problems,” IEEE Transactions on Neural Networks and Learning Systems, vol. 33, no. 9, pp. 5057–5069, 2022.
- J. K. Falkner, D. Thyssens, A. Bdeir, and L. Schmidt-Thieme, “Learning to control local search for combinatorial optimization,” in Machine Learning and Knowledge Discovery in Databases, M.-R. Amini, S. Canu, A. Fischer, T. Guns, P. Kralj Novak, and G. Tsoumakas, Eds. Cham: Springer Nature Switzerland, 2023, vol. 13717, pp. 361–376.
- P. Hansen and N. Mladenović, “Variable neighborhood search for the p-median,” Location Science, vol. 5, no. 4, pp. 207–226, 1997.
- O. Alp, E. Erkut, and Z. Drezner, “An efficient genetic algorithm for the p-median problem,” Annals of Operations research, vol. 122, pp. 21–42, 2003.
- E. Rolland, D. A. Schilling, and J. R. Current, “An efficient tabu search procedure for the p-median problem,” European Journal of Operational Research, vol. 96, no. 2, pp. 329–342, 1997.
- G. Cornuejols, M. L. Fisher, and G. L. Nemhauser, “Exceptional paper—location of bank accounts to optimize float: An analytic study of exact and approximate algorithms,” Management science, vol. 23, no. 8, pp. 789–810, 1977.
- Gurobi Optimization, LLC, “Gurobi Optimizer Reference Manual,” 2023. [Online]. Available: https://www.gurobi.com
- A. A. Kuehn and M. J. Hamburger, “A heuristic program for locating warehouses,” Management science, vol. 9, no. 4, pp. 643–666, 1963.
- F. Maranzana, “On the location of supply points to minimize transport costs,” Journal of the Operational Research Society, vol. 15, no. 3, pp. 261–270, 1964.
- J. Reese, “Solution methods for the p-median problem: An annotated bibliography,” Networks, vol. 48, no. 3, pp. 125–142, 2006.
- R. J. Williams, “Simple statistical gradient-following algorithms for connectionist reinforcement learning,” Machine learning, vol. 8, pp. 229–256, 1992.
- Shaohua Wang, Haojian Liang, Y. Zhong, Xueyan Zhang, and C. Su, “Deepmclp: Solving the mclp with deep reinforcement learning for urban facility location analytics,” Spatial Data Science Symposium 2023, 2023.
- E. W. Dijkstra, “A note on two problems in connexion with graphs,” Numerische Mathematik, vol. 1, no. 1, pp. 269–271, 1959.
- O. Kariv and S. L. Hakimi, “An algorithmic approach to network location problems. i: The p-centers,” SIAM journal on applied mathematics, vol. 37, no. 3, pp. 513–538, 1979.
- H. Gwalani, C. Tiwari, and A. R. Mikler, “Evaluation of heuristics for the p-median problem: Scale and spatial demand distribution,” Computers, Environment and Urban Systems, vol. 88, p. 101656, 2021.
- J. Um, S.-W. Son, S.-I. Lee, H. Jeong, and B. J. Kim, “Scaling laws between population and facility densities,” Proceedings of the National Academy of Sciences, vol. 106, no. 34, pp. 14 236–14 240, 2009.
- M. T. Gastner and M. E. J. Newman, “Optimal design of spatial distribution networks,” Physical Review E, vol. 74, no. 1, p. 016117, 2006.
- J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” arXiv preprint arXiv:1707.06347, 2017.
- S. Huang, R. F. J. Dossa, A. Raffin, A. Kanervisto, and W. Wang, “The 37 implementation details of proximal policy optimization,” The ICLR Blog Track 2023, 2022.
- S. Brody, U. Alon, and E. Yahav, “How attentive are graph attention networks?” in The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net, 2022. [Online]. Available: https://openreview.net/forum?id=F72ximsx7C1
- P. Veličković, G. Cucurull, A. Casanova, A. Romero, P. Lio, and Y. Bengio, “Graph attention networks,” in 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018. [Online]. Available: https://openreview.net/forum?id=rJXMpikCZ
- M. B. Teitz and P. Bart, “Heuristic methods for estimating the generalized vertex median of a weighted graph,” Operations Research, vol. 16, no. 5, pp. 955–961, 1968.
- V. Arya, N. Garg, R. Khandekar, A. Meyerson, K. Munagala, and V. Pandit, “Local search heuristic for k-median and facility location problems,” in Proceedings of the Thirty-Third Annual ACM Symposium on Theory of Computing. Hersonissos Greece: ACM, 2001, pp. 21–29.
- Y. Xu, L. E. Olmos, S. Abbar, and M. C. González, “Deconstructing laws of accessibility and facility distribution in cities,” Science Advances, vol. 6, no. 37, p. eabb4112, 2020.
- K. R. Gabriel and R. R. Sokal, “A new statistical approach to geographic variation analysis,” Systematic zoology, vol. 18, no. 3, pp. 259–278, 1969.
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.