R/solver.farthest_insertion.R

Defines functions run.farthest_insertion makeTSPSolver.farthest_insertion

#' @export
makeTSPSolver.farthest_insertion = function() {
  makeTSPSolverInternal(
    cl = "farthest_insertion",
    short.name = "farthest_insertion",
    name = "Farthest Insertion Algorithm for the (euclidean) TSP",
    description = "",
    properties = c("euclidean", "deterministic"),
    packages = "TSP"
  )
}

#' @export
run.farthest_insertion = function(solver, instance, ...) {
  return(runSolverFromTSPPackage(solver, instance, ...))
}
jakobbossek/salesperson documentation built on Dec. 11, 2021, 4:54 a.m.