Description Usage Arguments Value Examples
Currently the following solvers are supported:
nearest_insertion: See solve_TSP
.
farthest_insertion : See solve_TSP
.
cheapest_insertion : See solve_TSP
.
arbitrary_insertion: See solve_TSP
.
nn: See solve_TSP
.
repetitive_nn: See solve_TSP
.
concorde: See solve_TSP
.
1 | run_solver(x, method, ...)
|
x |
[ |
method |
[ |
... |
[any] |
[TOUR
]
TOUR object from package TSP, containing order of cities, tour length and
method name that generated this solution.
1 2 3 4 5 6 7 8 9 10 | x = random_instance(10)
tours = sapply(c("nn", "cheapest_insertion", "arbitrary_insertion"), function(solver) {
list(solver = run_solver(x, method = solver))
})
## Not run:
concorde_path(path = "/absolute/path/to/concorde/executable")
concorde_tour = run_solver(x, method = "concorde")
concorde_tour = run_solver(x, method = "linkern")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.