shiftTSPsoln: Shift a TSP solution array when the endpoints don't line up...

Description Usage Arguments Value

View source: R/shiftTSPsoln.R

Description

This function returns a list of the smallest edge weight between a given cluster and all other clusters. This is used to make the decision to merge clusters when the smallest edge weight is below a given threshold. You will want to re-run the findCuts function after running this method.

Usage

1
shiftTSPsoln(TSPsoln, startIndex)

Arguments

TSPsoln

- array of markers of a TSP solution

startIndex

- StartIndex is the index of the first cutpoint, which we will shift so that it is in position 1. If startIndex is not specified, the default value of 0 will cause the method to shift the solution array so that it ends at the largest rf value (since this is probably the best cutpoint).

Value

Array of markers in TSP solution order, but shifted to startIndex.


mckaylab/TSPmap documentation built on Aug. 19, 2021, 8:38 p.m.