I can show that the problem is indeed $mathcal{NP}$-hard. Consider an instance where each item $i$ is located in a different warehouse $P_i$. The order is such that it contains every item. Now we must visit every warehouse $P_i$ and find the shortest tour doing so. This is equivalent of solving an instance of $text{TSP}$. Being so obviously useful at least in the context of logistic, routing and planning, I’m sure this has been studied before. I have two questions:
- What is the name of the problem?
- How well can one hope to approximate the problem (assuming $mathcal{P} neq mathcal{NP}$)?
I’m quite happy with the name and/or reference(s) to the problem. Maybe the answer to the second point follows easily or I can find out that myself.
Asked By : Juho
Answered By : Juho
We are given a set $M = { 1, …, m }$ of markets and a set of $N = { 1, …, n }$ of products. Also we are given $c_{ij}$, the cost of traveling from city $i$ to city $j$, and non-negative $d_{ij}$, the cost of a product $i$ at market $j$. The purchaser starts from his home city (for example city $1$), and travels to a subset of the $m$ cities and purchases each of the $n$ products in of the cities he visits, and return back to his home city. The objective is to find a tour for the purchaser that such that the sum of the travel and purchase costs are minimized.
So, put in the terms of the original question, warehouses are markets. Each available item at a market has equal price. If item $i$ is not available at a market $j$, its price $d_{ij}$ is set to a high value. In addition to containing $text{TSP}$, $text{TPP}$ contains prize collecting $text{TSP}$, uncapacited facility location problem, group Steiner tree problem and the set cover problem as its immediate special cases. For the hardness, following from current hardness results for set cover, it follows that there is no PTAS for $text{TPP}$ even with metric travel costs whose performance ratio is better than $(1-o(1))ln n$ unless $mathcal{P} = mathcal{NP}$. For additional discussion and formulation as an IP, see for example R. Ravi and F. S. Salman, Approximation Algorithms for the Traveling Purchaser Problem and its Variants in Network Design, 1999. The Wikipedia entry for TPP also gives links to some heuristic approaches.
Best Answer from StackOverflow
Question Source : http://cs.stackexchange.com/questions/1440