Learn R Programming

tspmeta (version 1.2)

rescale_instance: Rescale coords of TSP instance to $[0,1]^2$.

Description

Rescale coords of TSP instance to $[0,1]^2$.

Usage

rescale_instance(x)
rescale_coords(coords)

Arguments

x
[tsp_instance] TSP instance.
coords
[matrix] Numeric matrix of city coordinates, rows denote cities.

Value

[matrix] for rescale_coords and tsp_instance for rescale_instance. Numeric matrix of scaled city coordinates.