Description Usage Arguments
View source: R/TourLength.R
Takes a tour and distance matrix and returns the tour length
1
TourLength(distances, tour)
distances
A nxn matrix where first row is not column headers. Each cell represents the distance from the row index node to the column index node.
n
n matrix
tour
A numeric vector with the order that the nodes in the coordMatrix are visited. Must be the same length as the coordMatrix
numeric
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.