https://github.com/cran/TSP
Raw File
Tip revision: b649dd435c998058c496276054b9ccadc61f9fa4 authored by Michael Hahsler on 25 April 2007, 18:06:39 UTC
version 0.2-1
Tip revision: b649dd4
NAMESPACE
useDynLib(TSP)

importFrom(stats, as.dist)
importFrom(grDevices, gray.colors)
importFrom(graphics, image.default)

export(
    TSP, 
    ATSP, 
    TOUR, 
    reformulate_ATSP_as_TSP,
    n_of_cities, 
    insert_dummy,
    cut_tour,
    tour_length,
    solve_TSP,
    linkern_help, 
    concorde_help, 
    concorde_path,
    read_TSPLIB, 
    write_TSPLIB,
    as.matrix,
    as.TSP,
    as.ATSP,
    as.TOUR
    )

## TSP/ATSP
S3method(print, TSP)
S3method(n_of_cities, TSP)
S3method(labels, TSP)
S3method(image, TSP)

S3method(print, ATSP)
S3method(n_of_cities, ATSP)
S3method(labels, ATSP)
S3method(image, ATSP)

S3method(tour_length, TSP)
S3method(tour_length, ATSP)
S3method(insert_dummy, TSP)
S3method(insert_dummy, ATSP)
S3method(write_TSPLIB, TSP)
S3method(write_TSPLIB, ATSP)
S3method(solve_TSP, TSP)
S3method(solve_TSP, ATSP)

## coercions
S3method(as.matrix, ATSP)
S3method(as.TSP, dist)
S3method(as.TSP, matrix)
S3method(as.ATSP, dist)
S3method(as.ATSP, matrix)

## TOUR
S3method(print, TOUR)
S3method(cut_tour, TOUR)
S3method(as.TOUR, integer)
back to top