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

Description Usage Arguments Value

View source: R/tsp_instance.R

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].


tspmeta documentation built on May 2, 2019, 2:43 a.m.