การประชุมสัมมนาเชิงวิชาการประจําป 2549 การจัดการโลจิสติกสและโซอุปทาน ครั้งที่ 6 THE COMBINATION OF MAX-MIN ANT SYSTEM AND ITERATED LOCAL SEARCH HEURISTIC FOR CAPACITATED P-MEDIAN PROBLEM Rapeepan Pitakaso, Sombat Sindhuchao Department of Industrial Engineering, Faculty of Engineering, Ubonrajathanee University, Ubonratchathanee, Thailand 34190 e-mail: enrapepi@ubu.ac.th, somsin@rocketmail.com tel. +66 45353352, +6678686634 fax: +66 45353333 Abstract We present the Max-Min ant system (MMAS) based heuristic to solve the capacitated p-medians problems (CPMP). We use the MMAS to select the p-locations that are going to be opened as the medians out of m customers. The remaining (m-p) customers will be assigned to be served by the pre-selected p medians. The customers will be assigned to the closest median if that median still has enough capacity while other heuristics use the location to decide which sets of customers are closest to them and decide to serve these customers until the its capacity is full. Two phases of local search have been applied. The first phase is to change a client into a median and this median into a client seeking an improvement of the objective function (by the first improvement rule). The second phase of local search is to change the client(s) between two medians. Each ant selects p-medians and the local search is applied, then the best ant, in each iteration, is selected to apply the iterated local search (ILS). ILS consists of two phases, local search and perturbation. The result shows that when MMAS works with ILS, the solution quality is significantly improved. The best ant will be iteratively perturbing and the local search is applied (two phases local search) until a predefined number of iterations is reached then the ILS phase ends. The algorithm that we proposed here, an algorithm which combines the MMAS and ILS, outperforms the best existing heuristics published so far. Keywords: capacitated p-median, combination, Max-Min ant system, iterated local search 1. Introduction P-median problem is the problem that locates P "facilities" relative to a set of "customers" such that the sum of the shortest demand weighted distance between "customers" and "facilities" is minimized. The capacitated p-medians problem (CPMP) is the p-median which is restricted to the limitation of serving capacity of opened facilities or locations. CPMP is a combinatorial optimization problem that can be described as follows: given a graph with n vertices (customers or clients), find p centers (medians) and assign the other vertices to them minimizing the total distance covered, limited to a capacity restriction. This problem is a special case of the “capacitated plant location problem with single source constraints” and many other combinatorial problems as pointed in Osman and Christofides [29]. As such, the CPMP was proved to be NP-complete in Garey and Johnson [13]. Its practical use varies from industrial and - 199 -