Skip to main content
Log in

A fast swap-based local search procedure for location problems

  • Published:
Annals of Operations Research Aims and scope Submit manuscript

Abstract

We present a new implementation of a widely used swap-based local search procedure for the p-median problem, proposed in 1968 by Teitz and Bart. Our method produces the same output as the best alternatives described in the literature and, even though its worst-case complexity is similar, it can be significantly faster in practice: speedups of up to three orders of magnitude were observed. We also show that our method can be easily adapted to handle the facility location problem and to implement related procedures, such as path-relinking and tabu search.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  • Arya, V., N. Garg, R. Khandekar, A. Mayerson, K. Munagala, and V. Pandit. (2001). “Local Search Heuristics for k-Median and Facility Location Problems.” In Proc. 33rd ACM Symposium on the Theory of Computing.

  • Avella, P., A. Sassano, and I. Vasil’ev. (2003). “Computational Study of Large-Scale p-Median Problems.” Technical Report 08-03, DIS—Università di Roma ”La Sapienza”.

  • Avella, P., A. Sassano, and I. Vasil’ev. (2003). “A Heuristic for Large-Scale p-Median Instances.” Electronic Notes in Discrete Mathematics, 13, 1–4.

  • Beasley, J.E. (1985). “A Note on Solving Large p-Median Problems.” European Journal of Operational Research, 21, 270–273.

    Article  Google Scholar 

  • Briant, O. and D. Naddef. (2004). “The Optimal Diversity Management Problem.” Operations Research, 52(4), 515–526.

    Article  Google Scholar 

  • Cormen, T., C. Leiserson, R. Rivest, and C. Stein. (2001). Introduction to Algorithms, 2nd edn. MIT Press.

  • Cornuéjols, G., M.L. Fisher, and G.L. Nemhauser. (1977). “Location of Bank Accounts to Optimize Float: An Analytical Study of Exact and Approximate Algorithms.” Management Science, 23, 789–810.

    Google Scholar 

  • du Merle, O., D. Villeneuve, J. Desrosiers, and P. Hansen. (1999). “Stabilized Column Generation.” Discrete Mathematics, 194, 229–237.

    Article  Google Scholar 

  • Galvão, R.D. (1980). “A Dual-Bounded Algorithm for the p-Median Problem.” Operations Research, 28, 1112–1121.

    Google Scholar 

  • García-López, F., B. Melián-Batista, J.A. Moreno-Pérez, and J.M. Moreno-Vega. (2003). “Parallelization of the Scatter Search for the p-Median Problem.” Parallel Computing, 29(5), 575–589.

    Article  Google Scholar 

  • Glover, F. (1996). “Tabu Search and Adaptive Memory Programming: Advances, Applications and Challenges.” In R.S. Barr, R.V. Helgason, and J.L. Kennington (eds.), Interfaces in Computer Science and Operations Research, Kluwer, pp. 1–75.

  • Glover, F., M. Laguna, and R. Martí. (2000). “Fundamentals of Scatter Search and Path Relinking.” Control and Cybernetics, 39, 653–684.

    Google Scholar 

  • Goodchild, M.F. and V. Noronha. (1983). “Location-Allocation for Small Computers.” Monograph 8, Department of Geography, University of Iowa.

  • Hansen, P. and N. Mladenović. (1997). “Variable Neighborhood Search for the p-Median.” Location Science, 5, 207–226.

    Article  Google Scholar 

  • Hansen, P., N. Mladenović, and D. Perez-Brito. (2001). “Variable Neighborhood Decomposition Search.” Journal of Heuristics, 7(3), 335–350.

    Article  Google Scholar 

  • Hodgson, M.J. (1978). “Toward More Realistic Allocation in Location-Allocation Models: An Interaction Approach.” Environment and Planning A, 10, 1273–1285.

    Article  Google Scholar 

  • Kariv, O. and L. Hakimi. (1979). “An Algorithmic Approach to Nework Location Problems, Part II: The p-Medians.” SIAM Journal of Applied Mathematics, 37(3), 539–560.

    Article  Google Scholar 

  • Kuehn, A.A. and M.J. Hamburger. (1963). “A Heuristic Program for Locating Warehouses.” Management Science, 9(4), 643–666.

    Google Scholar 

  • Laguna, M. and R. Martí. (1999). “GRASP and Path Relinking for 2-Layer Straight Line Crossing Minimization.” INFORMS Journal on Computing, 11, 44–52.

    Google Scholar 

  • Maranzana, F.E. (1964). “On the Location of Supply Points to Minimize Transportation Costs.” Operations Research Quarterly, 15(3), 261–270.

    Article  Google Scholar 

  • Matsumoto, M. and T. Nishimura. (1998). “Mersenne Twister: A 623-Dimensionally Equidistributed Uniform Pseudorandom Number Generator.” ACM Transactions on Modeling and Computer Simulation, 8(1), 3–30.

    Article  Google Scholar 

  • Reinelt, G. (1991). “TSPLIB: A Traveling Salesman Problem Library.” ORSA Journal on Computing, 3, 376–384. http://www.iwr.uni-heidelberg.de/groups/comopt/software/TSPLIB95/.

  • Resende, M.G.C. and C.C. Ribeiro. (2005). “GRASP with Path-Relinking: Recent Advances and Applications.” In T. Ibaraki, K. Nonobe, and M. Yagiura (eds.), Metaheuristics: Progress as Real Problem Solvers, Kluwer. In press.

  • Resende, M.G.C. and R.F. Werneck. (2003). “On the Implementation of a Swap-Based Local Search Procedure for the p-Median Problem.” In R.E. Ladner (ed.), Proceedings of the Fifth Workshop on Algorithm Engineering and Experiments (ALENEX’03), SIAM, pp. 119–127.

  • Resende, M.G.C. and R.F. Werneck. (2004). “A Hybrid Heuristic for the p-Median Problem.” Journal of Heuristics, 10(1), 59–88.

    Article  Google Scholar 

  • Rolland. E., D.A. Schilling, and J.R. Current. (1996). “An Efficient Tabu Search Procedure for the p-Median Problem.” European Journal of Operational Research, 96, 329–342.

    Article  Google Scholar 

  • Rosing, K.E. (1997). “An Empirical Investigation of the Effectiveness of a Vertex Substitution Heuristic.” Environment and Planning B, 24, 59–67.

    Article  Google Scholar 

  • Rosing, K.E. and C.S. ReVelle. (1997). “Heuristic Concentration: Two Stage Solution Construction.” European Journal of Operational Research, 97, 75–86.

    Article  Google Scholar 

  • Rosing, K.E., C.S. ReVelle, and H. Rosing-Vogelaar. (1979). “The p-Median and its Linear Programming Relaxation: An Approach to Large Problems.” Journal of the Operational Research Society, 30(9), 815–823.

    Article  Google Scholar 

  • Senne, E.L.F. and L.A.N. Lorena. (2000). “Langrangean/Surrogate Heuristics for p-Median Problems.” In M. Laguna and J.L. González-Velarde (eds.), Computing Tools for Modeling, Optimization and Simulation: Interfaces in Computer Science and Operations Research, Kluwer, pp. 115–130.

  • Senne, E.L.F. and L.A.N. Lorena. (2002). “Stabilizing Column Generation using Lagrangean/Surrogate Relaxation: An Application to p-Median Location Problems.” European Journal of Operational Research. To appear.

  • Senne, E.L.F., L.A.N. Lorena, and M.A. Pereira. (2005). “A Branch-and-Price Approach to p-Median Location Problems.” Computers and Operations Research, 32, 1655–1664.

    Article  Google Scholar 

  • Taillard, E.D. (2003). “Heuristic Methods for Large Centroid Clustering Problems.” Journal of Heuristics, 9(1), 51–74.

    Article  Google Scholar 

  • Teitz, M.B. and P. Bart. (1968). “Heuristic Methods for Estimating the Generalized Vertex Median of a Weighted Graph.” Operations Research, 16(5), 955–961.

    Article  Google Scholar 

  • Thorup M. (2001). “Quick k-Median, k-Center, and Facility Location for Sparse Graphs.” In Proceedings of the 28th International Colloquium on Automata, Languages and Programming (ICALP 2001), Volume 2076 of Lecture Notes in Computer Science, Springer, pp. 249–260.

  • Voß, S. (1996). “A Reverse Elimination Approach for the p-Median Problem.” Studies in Locational Analysis, 8, 49–58.

    Google Scholar 

  • Whitaker, R. (1983). “A Fast Algorithm for the Greedy Interchange of Large-Scale Clustering and Median Location Prolems.” INFOR, 21, 95–108.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mauricio G. C. Resende.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Resende, M.G.C., Werneck, R.F. A fast swap-based local search procedure for location problems. Ann Oper Res 150, 205–230 (2007). https://doi.org/10.1007/s10479-006-0154-0

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10479-006-0154-0

Keywords

Navigation