Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Genetic Algorithm Solving TSP (100 cities)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,288
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 25, 2011

Genetic Algorithm developed by myself. Solving the Traveling Salesman Problem with 100 cities (plotted on a circle).

Parameters:

Order Crossover: 60 %
Mutation: 10 %
Selection: Elitism
Population: 100
Generations: 10000

~ Sirar Salih

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (Sirar)

  • omg randomizing it would've been faster.

  • @YCDPKLD Faster? Of course. More precise? Of course not. Randomizing something leaves much to coincidence.

  • nice presentation! your mutation rate seems to be rather high though. its not high enough to protect the most fit ones. as you can see there the fitness value detoriorates every now and then.

  • @yonnelol Thanks, I agree! :)

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • genetic-cumagic in youtube.

  • @TwoKingdoms That is correct. Instead of restricting the visual representation to showing shorter distances to complete the circle, my algorithm is instead giving you a visual representation of continuous calculations to reach the best solution (a complete circle). Basically, I thought it looked more nifty to show you how the algorithm actually worked behind the scene. Later, I also added text on the screen showing the number of generations and the best so far solution.

  • @taostoner1 Only if the virtual positioning of the cities represents their physical positioning and the distances between them, which isn't the case in this video (given the algorithm is correct). The algorithm uses the edge weights (like distances) to solve this graph problem which aren't shown in this visual representation.

    @artefom Useful comment...

  • @taostoner1 HAHAHAHHAH

  • Shouldn't the solution just be to follow along the edge of the circle?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more