Huf 2/12/2020
LeapFrog is a single agent metaheuristic search algorithm for solving the Travelling Salesman Problem. LeapFrog can be used with non-symmetrical distance matrices, coordinate matrices, or both. The solution method can easily be expanded to solve for other types of shortest-path problems.
Given a distance matrix, coordinate matrix, or both, the
LeapFrog::ImportData() function will create a LeapFrog class object
that can then be used with the LeapFrog algorithm function
LeapFrog::LF().
The LeapFrog algorithm offers the following tunable parameters:
LeapFrog comes with 13 different known TSP instances, sourced from the TSPLIB (Reinelt 1991). They can be called using
LeapFrogObject <- LeapFrog::GetData(1)
or by using the function
LeapFrog::ImportData(distances = yourDistanceMatrix, coordinates = yourCoordinateMatrix)
Run the LeapFrog algorithm by passing the LeapFrog class object and any parameters.
LeapFrogOutput <- LeapFrog::LF(LeapFrogObject, m = 10, r = 20, a = .5)
## LF | Game = 1 | Best = 2026
## LF | Game = 2 | Best = 2020
## LF | Game = 3 | Best = 2020
## LF | Game = 4 | Best = 2020
## LF | Game = 5 | Best = 2020
## LF | Game = 6 | Best = 2020
## LF | Game = 7 | Best = 2020
## LF | Game = 8 | Best = 2020
## LF | Game = 9 | Best = 2020
## LF | Game = 10 | Best = 2020


Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.