A Fast and Deterministic Approach to a Near Optimal Solution for the p-Median Problem
Finding solutions for the p-median problem is one of the primary research issues in the field of location theory. Since the p-median problem has proved to be a NP-hard problem, several heuristic and approximation methods have been proposed to find near optimal solutions with acceptable computational time. This study introduces a computationally efficient and deterministic algorithm whose objective is to return a near optimal solution for the p-median problem. The merit of the proposed approach, called Relocation Median (RLM), lies in solving the p-median problem in superior computational time with a tiny percentage deviation from the optimal solution. This approach is especially relevant when the problem is enormous where, even when a heuristic method is applied, the computational time is quite high. RLM consists of two parts: The first part uses a greedy search method to find an initial solution; the second part sequentially substitutes medians in the initial solution with additional vertices to reduce the total travel cost. Experiments show that to solve the same p-median problem, the RLM approach can significantly shorten the computational time needed by a genetic algorithm based approach to obtain solutions with similar quality.