- Home
- CRAN
**tspmeta**: Instance Feature Calculation and Evolutionary Instance Generation for the Traveling Salesman Problem**read_tsplib_instance**: Read in a TSPLIB style Traveling Salesman Problem from a...

# Read in a TSPLIB style Traveling Salesman Problem from a file.

### Description

The current state of the parser does not understand all variants of the TSPLIB format. Much effort has been spent making the parser as robust as possible. It will stop as soon as it sees input it cannot handle.

### Usage

1 | ```
read_tsplib_instance(path)
``` |

### Arguments

`path` |
[ |

### Value

[`tsp_instance`

].

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.

- as_TSP: Convert to TSP instance object of package TSP.
- as_TSP: Convert to TSP instance object of package TSP.
- autoplot.tsp_instance: Plot TSP instance.
- autoplot.tsp_instance: Plot TSP instance.
- center_of_mass: Return the center of all cities of a TSP instance.
- center_of_mass: Return the center of all cities of a TSP instance.
- fast_two_opt: Runs 2-Opt local search on TSP instance.
- fast_two_opt: Runs 2-Opt local search on TSP instance.
- feature_angle: Angle features.
- feature_angle: Angle features.
- feature_bounding_box: Bounding box features.
- feature_bounding_box: Bounding box features.
- feature_centroid: Centroid features.
- feature_centroid: Centroid features.
- feature_chull: Convex hull features.
- feature_chull: Convex hull features.
- feature_cluster: Cluster features.
- feature_cluster: Cluster features.
- feature_distance: Distance features.
- feature_modes: Modes of edge cost distribution feature.
- feature_modes: Modes of edge cost distribution feature.
- feature_mst: MST features.
- feature_mst: MST features.
- feature_nnds: Nearest neighbor features.
- feature_nnds: Nearest neighbor features.
- features: Calculates list of all TSP features for an instance.
- features: Calculates list of all TSP features for an instance.
- get_solvers: Returns integrated solver names.
- greedy_point_matching: Greedy point matching
- greedy_point_matching: Greedy point matching
- instance_dim: Get instance dimensionality (space where coords live).
- instance_dim: Get instance dimensionality (space where coords live).
- morph_instances: Morphing (convex-combination) of two instances with parameter...
- normalization_angle: Calculate rotation angle such that the main axis through the...
- normalization_angle: Calculate rotation angle such that the main axis through the...
- normalize_rotation: Normalize an instance w.r.t. its rotation.
- normalize_rotation: Normalize an instance w.r.t. its rotation.
- number_of_cities: Get number of cities in tsp instance.
- number_of_cities: Get number of cities in tsp instance.
- numvec_feature_statistics: Computes statistics from a vector of of values.
- numvec_feature_statistics: Computes statistics from a vector of of values.
- print.tsp_instance: Print TSP instance
- print.tsp_instance: Print TSP instance
- random_instance: Generates a random TSP instance by scattering random points...
- random_instance: Generates a random TSP instance by scattering random points...
- read_tsplib_instance: Read in a TSPLIB style Traveling Salesman Problem from a...
- read_tsplib_instance: Read in a TSPLIB style Traveling Salesman Problem from a...
- read_tsplib_instances: Read in multiple TSPLIB style Traveling Salesman Problems...
- read_tsplib_tour: Read in a TSPLIB style Traveling Salesman Problem tour from a...
- read_tsplib_tour: Read in a TSPLIB style Traveling Salesman Problem tour from a...
- remove_zero_distances: Remove any duplicate cities in a tsp instance.
- rescale_instance: Rescale coords of TSP instance to [0,1]^2.
- rescale_instance: Rescale coords of TSP instance to [0,1]^2.
- rotate_coordinates: Rotate a matrix of 2D coordinates
- rotate_coordinates: Rotate a matrix of 2D coordinates
- rotate_instance: Rotate the cities of a TSP instance around a point.
- rotate_instance: Rotate the cities of a TSP instance around a point.
- run_solver: Runs a solver on a TSP instance.
- run_solver: Runs a solver on a TSP instance.
- tsp_generation_ea: TSP generating EA.
- tsp_generation_ea: TSP generating EA.
- tsp_instance: Generates a TSP instance S3 object either from city...
- tsp_instance: Generates a TSP instance S3 object either from city...