Approximation of solutions for location problems