|
Optimization: principles and algorithms, by Michel Bierlaire
|
Calculate the length of a subtour of the TSP. More...
Go to the source code of this file.
Functions | |
| function | subtourLength (in next, in dist) |
| Calculate the length of a tour. More... | |
Calculate the length of a subtour of the TSP.
Definition in file subtourLength.m.
| function subtourLength | ( | in | next, |
| in | dist | ||
| ) |
Calculate the length of a tour.
| next | for each node, provides the next node in the tour |
| dist | the distance matrix |