This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
travelling_salesman_problem [2024/04/26 12:18] 47.128.98.235 old revision restored (2024/04/21 13:12) |
travelling_salesman_problem [2024/04/26 14:38] 47.128.123.123 old revision restored (2024/04/21 17:34) |
||
---|---|---|---|
Line 5: | Line 5: | ||
===== Integer linear programming formulation ===== | ===== Integer linear programming formulation ===== | ||
- | TSP can be formulated as an integer linear program. Label the cities with the numbers $0, ..., n$ and define: | + | TSP can be formulated as an integer linear program. Label the cities with the numbers $0, \ldots, n$ and define: |
$$ | $$ | ||
| | ||
$$ | $$ | ||
For $i = 1, ..., n$, let $u_i$ be an artificial variable, and finally take $c_{ij}$ to be the distance from city $i$ to city $j$. Then TSP can be written as the following integer linear programming problem: | For $i = 1, ..., n$, let $u_i$ be an artificial variable, and finally take $c_{ij}$ to be the distance from city $i$ to city $j$. Then TSP can be written as the following integer linear programming problem: | ||
- | $$ | + | |
\begin{align} | \begin{align} | ||
\min & | \min & | ||
Line 19: | Line 19: | ||
& | & | ||
\end{align} | \end{align} | ||
- | $$ | + | |
The first set of equalities requires that each city be arrived at from exactly one other city, and the second set of equalities requires that from each city there is a departure to exactly one other city. The last constraints enforce that there is only a single tour covering all cities, and not two or more disjointed tours that only collectively cover all cities. To prove this, it is shown below (1) that every feasible solution contains only one closed sequence of cities, and (2) that for every single tour covering all cities, there are values for the dummy variables $u_i$ that satisfy the constraints. | The first set of equalities requires that each city be arrived at from exactly one other city, and the second set of equalities requires that from each city there is a departure to exactly one other city. The last constraints enforce that there is only a single tour covering all cities, and not two or more disjointed tours that only collectively cover all cities. To prove this, it is shown below (1) that every feasible solution contains only one closed sequence of cities, and (2) that for every single tour covering all cities, there are values for the dummy variables $u_i$ that satisfy the constraints. | ||
Line 47: | Line 47: | ||
If the distances are restricted to 1 and 2 (but still are a metric) the approximation ratio becomes 8/7. In the asymmetric, metric case, only logarithmic performance guarantees are known, the best current algorithm achieves performance ratio $0.814 log(n)$; it is an open question if a constant factor approximation exists. | If the distances are restricted to 1 and 2 (but still are a metric) the approximation ratio becomes 8/7. In the asymmetric, metric case, only logarithmic performance guarantees are known, the best current algorithm achieves performance ratio $0.814 log(n)$; it is an open question if a constant factor approximation exists. | ||
- | |||
- | |||
- | Xiaolong is awesome! |