Satsuma
a delicious .NET graph library
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
Static Public Member Functions | List of all members
Satsuma.TspUtils Class Reference

Utilities regarding the traveling salesman problem. More...

Static Public Member Functions

static double GetTourCost< TNode > (IEnumerable< TNode > tour, Func< TNode, TNode, double > cost)
 Returns the total cost of a TSP tour. More...
 

Detailed Description

Utilities regarding the traveling salesman problem.

Definition at line 32 of file Tsp.cs.

Member Function Documentation

static double Satsuma.TspUtils.GetTourCost< TNode > ( IEnumerable< TNode >  tour,
Func< TNode, TNode, double >  cost 
)
static

Returns the total cost of a TSP tour.

Parameters
tourA node sequence representing a tour. If the tour is not empty, then the starting node must be repeated at the end.
costA 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: