I need to reduce the number of existing warehouse without compromising with the lead time to serve the customer. Can anybody suggest which method i can use to solve the problem? GA algorithm is taking very long time to solve.
In many cases of small to medium size, the uncapacitated facility location problem can be solved straight-of-the-box with branch-and-cut, using a mixed-integer programming solver such as CPLEX or Gurobi. Check the following paper for a formulation and early works on the topic:
Cornuéjols, Gérard, George Nemhauser, and Laurence Wolsey. The Uncapicitated Facility Location Problem. Cornell University Operations Research and Industrial Engineering, 1983.
I for one second the sensible suggestion from Dr. Vidal.
I will also say that there must be - somewhere on the web - an explicit mathematical programming model - or even several (using perhaps slightly different variable definitions) that you can code in AMPL, and run on the web, without having any software on your computer..
Dear Koushik Uppangala Ravikrishna If you absolutely need a metaheuristic for such problem, then you may try out differential evolution (DE) it is faster than the GA.
Have you also checked why the GA is slow? What is the population size? number of iterations? crossover rate? mutation rates?
You can download exact solvers from it, as well. Start there - as you will learn a lot about the problem. I have never understood why it is sooo attractive to start with a methodology that we know from the start will not provide an optimal solution.
You can learn so much by testing the variants of optimisation models described, and you will find which ones you find faster for the data sets you have. Good luck!
I want to solve this facility location problem (attached file). I use PulP package which is a linear solver to solve it, but it takes too much runtime for big sizes.
Mr. Koushik Uppangala Ravikrishna, I agree with Mr. Abubakar Bala that it will be better to find out why GA works too long. If you provide more details, we might have some useful insights on how to improve the GA. Did you try to check GA's solution quality (e.g., by comparing with the solution of CPLEX) after stopping GA's run within a time limit (e.g., 1 minute)?
------------------------------------------
Mr. Esmaeil Amiri, I believe that CPLEX (as suggested by Professor Vidal and Professor Patriksson) is faster than PulP. Please refer to: