tsp_instance: Generates a TSP instance S3 object either from city...

Description Usage Arguments Value

Description

Generates a TSP instance S3 object either from city coordinates.

Usage

1
tsp_instance(coords, dists)

Arguments

coords

[matrix]
Numeric matrix of city coordinates, rows denote cities.

dists

[dist]
Optional distance matrix containing the inter-city distances. If not provided, the (euclidean) distances are computed from the coordinates.

Value

[tsp_instance].


berndbischl/tspmeta documentation built on May 12, 2019, 7:24 p.m.