Skip to content

🧬 Genetic Algorithm for a Hard TSP, Solved Fast on 100 Points 💯

Notifications You must be signed in to change notification settings

pparuzel/GA-TSP-100-points

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Genetic Algorithm TSP on 100 Points

A simple example of a fast solution to a hard Travelling Salesman Problem for 100 points!

Problem

Visit each point only once while traversing the shortest path possible

problem-image

Solution

(h)eureka!

solution-image

Observations for this problem

Selection: Tournament > Wheel

Crossover: Generates one offspring – segment from the first parent and leftovers from the second (PMX)

Mutation: Three types of mutations at once of equal chances (~33%)

Number of (brute-force) permutations: 100! < 9332621544 * 10^148 which is basically 9332621544 and 148 zeros of possible routes. This definitely displays the power of heuristic algorithms

Final best distance: 94.51244551248153 (as in the solution above)

About

🧬 Genetic Algorithm for a Hard TSP, Solved Fast on 100 Points 💯

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages