Journal of Heuristics

, Volume 10, Issue 1, pp 59–88 | Cite as

A Hybrid Heuristic for the p-Median Problem

  • Mauricio G.C. Resende
  • Renato F. Werneck


Given n customers and a set F of m potential facilities, the p-median problem consists in finding a subset of F with p facilities such that the cost of serving all customers is minimized. This is a well-known NP-complete problem with important applications in location science and classification (clustering). We present a multistart hybrid heuristic that combines elements of several traditional metaheuristics to find near-optimal solutions to this problem. Empirical results on instances from the literature attest the robustness of the algorithm, which performs at least as well as other methods, and often better in terms of both running time and solution quality. In all cases the solutions obtained by our method were within 0.1% of the best known upper bounds.

p-median hybrid heuristic GRASP path-relinking metaheuristics local search 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. Aiex, R.M., M.G.C. Resende, P.M. Pardalos, and G. Toraldo. (2004). “GRASP with Path Relinking for the Three-Index Assignment Problem.” INFORMS Journal on Computing.Google Scholar
  2. Avella, P., A. Sassano, and I. Vasil'ev. (2003). “Computational Study of Large-Scalep-Median Problems”. Technical Report 08-03, DIS-Universitá di Roma “La Sapienza”.Google Scholar
  3. Beasley, J.E. (1985). “A Note on Solving Large p-Median Problems”. European Journal of Operational Research 21, 270–273.Google Scholar
  4. 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
  5. Dongarra, J.J. (2003). “Performance of Various Computers Using Standard Linear Equations Software.” Technical Report CS-89-85, Computer Science Department, University of Tennessee.Google Scholar
  6. du Merle, O., D. Villeneuve, J. Desrosiers, and P. Hansen. (1999). “Stabilized Column Generation.” Discrete Mathematics 194, 229–237.Google Scholar
  7. Feo, T.A. and M.G.C. Resende. (1989). “A Probabilistic Heuristic for a Computationally Difficult Set Covering Problem.” Operations Research Letters 8, 67–71.Google Scholar
  8. Feo, T.A. and M.G.C. Resende. (1995). “Greedy Randomized Adaptive Search Procedures.” Journal of Global Optimization 6, 109–133.Google Scholar
  9. Galvão, R.D. (1980). “A Dual-Bounded Algorithm for the p-Median Problem.” Operations Research 28, 1112–1121.Google Scholar
  10. Galvão, R.D. and C.S. ReVelle. (1996). “A Lagrangean Heuristic for the Maximal Covering Problem.” European Journal of Operational Research 18, 114–123.Google Scholar
  11. García-López, F., B. Melián-Batista, J.A. Moreno-Pérez, and J.M. Moreno-Vega. (2002). “The Parallel Variable Neighborhood Search for thep-Median Problem.” Journal of Heuristics 8(3), 375–388.Google Scholar
  12. 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.Google Scholar
  13. 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.Google Scholar
  14. Glover, F., M. Laguna, and R. Martí. (2000). “Fundamentals of Scatter Search and Path Relinking.” Control and Cybernetics 39, 653–684.Google Scholar
  15. Goldberg, D.E. (1989). Genetic Algorithmis in Search, Optimization and Machine Learning. Addison-Wesley.Google Scholar
  16. Goodchild, M.F. and V. Noronha. (1983). “Location-Allocation for Small Computers.” Monograph 8, Department of Geography, University of Iowa.Google Scholar
  17. Hansen, P. and N. Mladenovi?. (1997). “Variable Neighborhood Search for the p-Median.” Location Science 5, 207–226.Google Scholar
  18. Hansen, P., N. Mladenovi?, and D. Perez-Brito. (2001). “Variable Neighborhood Decomposition Search.” Journal of Heuristics 7(3), 335–350.Google Scholar
  19. Hodgson, M.J. (1978). “Toward More Realistic Allocation in Location-Allocation Models: An Interaction Approach.” Environment and Planning A 10, 1273–1285.Google Scholar
  20. 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.Google Scholar
  21. Kuehn, A.A. and M.J. Hamburger. (1963). “A Heuristic Program for Locating Warehouses.” Management Science 9(4), 643–666.Google Scholar
  22. 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
  23. Maranzana, F.E. (1964). “On the Location of Supply Points to Minimize Transportation Costs.” Operations Research Quarterly 15(3), 261–270.Google Scholar
  24. 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.Google Scholar
  25. Michalewicz, Z. (1994). Genetic Algorithms + Data Structures = Evolution Programs. Springer-Verlag, second edition.Google Scholar
  26. Mladenovi?, N. and P. Hansen. (1997). “Variable Neighbourhood Search.” Computers and Operations Research 24, 1097–1100.Google Scholar
  27. Nauss, R.M. and R.E. Markland. (1981). “Theory and Application of an Optimizing Procedure for Lock Box Location Analysis.” Management Science 27, 855–865.Google Scholar
  28. Rao, M.R. (1971). “Cluster Analysis and Mathematical Programming.” Journal of the American Statistical Association 66(335), 622–626.Google Scholar
  29. Reinelt, G. (1991). “TSPLIB: A Traveling Salesman Problem Library.” ORSA Journal on Computing 3, 376–384. Google Scholar
  30. Resende, M.G.C. and C.C. Ribeiro. (2003). “Greedy Randomized Adaptive Search Procedures.” In F. Glover and G. Kochenberger (eds.), Handbook of Metaheuristics. Kluwer, pp. 219-249.Google Scholar
  31. Resende, M.G.C. and R.F.Werneck. (2002). “A GRASP with Path-Relinking for the p-Median Problem.”Technical Report TD-5E53XL, AT&T Labs Research.Google Scholar
  32. Resende, M.G.C. and R.F. Werneck. (2003). “On the Implementation of a Swap-Based Local Search Procedure for thep-Median Problem.” In R.E. Ladner (ed.), Proceedings of the Fifth Workshop on Algorithm Engineering and Experiments (ALENEX'03), SIAM, pp. 119-127.Google Scholar
  33. Ribeiro, C.C., E. Uchoa, and R.F. Werneck. (2002). “A Hybrid GRASP with Perturbations for the Steiner Problem in Graphs.” INFORMS Journal on Computing 14(3), 228–246.Google Scholar
  34. 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.Google Scholar
  35. Rosing, K.E. (1997). “An Empirical Investigation of the Effectiveness of a Vertex Substitution Heuristic.” Environment and Planning B 24, 59–67.Google Scholar
  36. Rosing, K.E. and C.S. ReVelle. (1997). “Heuristic Concentration: Two stage Solution Construction.” European Journal of Operational Research 97, 75–86.Google Scholar
  37. Rosing, K.E., C.S. ReVelle, E. Rolland, D.A. Schilling, and J.R. Current. (1998). “Heuristic Concentration and Tabu Search: A Head to Head Comparison.” European Journal of Operational Research 104, 93–99.Google Scholar
  38. 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.Google Scholar
  39. Senne, E.L.F. (2002). Personal communication.Google Scholar
  40. 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.Google Scholar
  41. Senne, E.L.F. and L.A.N. Lorena. (2004). “Stabilizing Column Generation using Lagrangean/Surrogate Relaxation: An Application to p-Median Location Problems.” European Journal of Operational Research, to appear.Google Scholar
  42. Taillard, E.D. (2003). “Heuristic Methods for Large Centroid Clustering Problems.” Journal of Heuristics 9(1), 51–74.Google Scholar
  43. Tansel, B.C., R.L. Francis, and T.J. Lowe. (1983). “Location on Networks: A Survey.” Management Science 29(4), 482–511.Google Scholar
  44. 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.Google Scholar
  45. 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), Vol. 2076 ofLecture Notes in Computer Science. pp. 249-260, Springer.Google Scholar
  46. Vinod, H.D. (1969). “Integer Programming and the Theory of Groups.” Journal of the American Statistical Association 64(326), 506–519.Google Scholar
  47. Voß, S. (1996). “A Reverse Elimination Approach for the p-Median Problem.” Studies in Locational Analysis 8, 49–58.Google Scholar
  48. Whitaker,R. (1983). “A Fast Algorithm for the Greedy Interchange of Large-Scale Clustering and Median Location Prolems.” INFOR 21, 95–108.Google Scholar

Copyright information

© Kluwer Academic Publishers 2004

Authors and Affiliations

  • Mauricio G.C. Resende
    • 1
  • Renato F. Werneck
    • 2
  1. 1.AT & T Labs ResearchFlorham ParkUSA
  2. 2.Department of Computer SciencePrinceton UniversityPrincetonUSA

Personalised recommendations