This is a central function. It expects a solver (either a characterizing string or a TSPSolver object), a Network to operate on and optional parameter for the algorithm/solver. It then runs the solver on the instance and returns a solver result object.
runSolver(solver, instance, solver.pars = list(), solver.path = NULL, ...)
solver | [ |
---|---|
instance | [ |
solver.pars | [ |
solver.path | [ |
... | [any]
Alternative possibility to pass down parameters to the solver. Parameters
passed this way take precedence over parameters passed via |
[TSPSolverResult
]