TSPLIB_sample | R Documentation |
A list containing some instances of the travelling salesman problem from the TSP-LIB library. For each instance, the matrix distance is available without need of defining a distance calculation function.
@format Each instance is wrapped in a list, with parameters depending on information availability:
The number of nodes of the TSP instance.
A brief description of the source of data.
A data frame with the coordinates of each point. Can be presented in (x,y) or in (Lon, Lat) format, depending on the instance.
A square matrix containing all distances between nodes. At the moment, all the instances included are symmetric.
The optimal tour. If it is not availabe a 'Not Available' message is returned.
@source http://elib.zib.de/pub/mp-testdata/tsp/tsplib/tsp/index.html
@examples TSPLI_sample$gr21
TSPLIB_sample
An object of class list
of length 11.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.