Utilities regarding the traveling salesman problem.
More...
|
static double | GetTourCost< TNode > (IEnumerable< TNode > tour, Func< TNode, TNode, double > cost) |
| Returns the total cost of a TSP tour. More...
|
|
Utilities regarding the traveling salesman problem.
Definition at line 32 of file Tsp.cs.
static double Satsuma.TspUtils.GetTourCost< TNode > |
( |
IEnumerable< TNode > |
tour, |
|
|
Func< TNode, TNode, double > |
cost |
|
) |
| |
|
static |
Returns the total cost of a TSP tour.
- Parameters
-
tour | A node sequence representing a tour. If the tour is not empty, then the starting node must be repeated at the end. |
cost | A finite cost function on the node pairs. |
Definition at line 38 of file Tsp.cs.
The documentation for this class was generated from the following file: