1. Homepage
  2. Programming
  3. Bio-inspired Computing Assignment 1: Traveling salesman problem (TSP)

Bio-inspired Computing Assignment 1: Traveling salesman problem (TSP)

Engage in a Conversation
ANUCOMP4660Bio-inspired ComputingTraveling salesman problemEuclidean distance

Bio-inspired Computing Assignment 1 CourseNana.COM

2023/10/13 CourseNana.COM

Traveling salesman problem (TSP) is a famous problem with lots of applications. TSP aims at finding a Hamiltonian cycle with limited cost. A formal definition of TSP is as follows. Given a complete graph 𝐺 =
(𝑉, 𝐸)
with vertex set 𝑉 and edge set 𝐸, TSP aims to find a cycle of length l with minimum cost: CourseNana.COM

l CourseNana.COM

𝜋=argmin∑ 𝑑(𝜋𝑖,𝜋𝑖+1), 𝜋 𝑖=1 CourseNana.COM

Note that the index is wrapping around to the beginning if it’s over l. The cost is defined as the sum of Euclidean distance.
Considering TSP is an NP-complete problem, evolutionary algorithm can be used to solve it efficiently. Write a program to solve TSP using genetic algorithm.
CourseNana.COM

Implementation CourseNana.COM

[Input] The problem can be described by a list of vertices. Each vertex in 𝑉 is expressed by its x and y coordinates. The information is stored in the input_TSP.csv file.
[Output] Output the solution to output_TSP.csv file, including the tour and its corresponding cost. CourseNana.COM

[Algorithm] Please implement different variations of GAs according to the following table: CourseNana.COM

Representation Crossover (𝑝𝑐 = 0.9) CourseNana.COM

Mutation (𝑝𝑚 = 0.9) Parent Selection Survivor Selection Population size n Termination CourseNana.COM

Analysis CourseNana.COM

Permutation CourseNana.COM

Order, Cycle, Edge crossover CourseNana.COM

Swap, Inversion 𝑘-tournament (𝑘 = 2) μ + λ
100
500 Generations
CourseNana.COM

Your report should compare the performance of above methods in terms of CourseNana.COM

  1. tour length, CourseNana.COM

  2. running time, CourseNana.COM

  3. Different parameters, e.g., 𝑝𝑐, 𝑝𝑚, and n. CourseNana.COM

Each method should run 30 trials for performance comparisons. CourseNana.COM

CourseNana.COM

Requirement CourseNana.COM

  1. You have to turn in your source code and a report for the assignment. Do not turn in executable files. You will get zero score if the code cannot be compiled or cannot provide correct results. CourseNana.COM

  2. Upload your files in a zip file in the format: TSP_StudentID.zip, where StudentID is your student ID. CourseNana.COM

  3. The due date is 2023/10/27. Every delay takes a penalty of 20 scores per day. CourseNana.COM

  4. Plagiarism is prohibited with no exception. Being identified as plagiarism will get zero score for the assignment. This includes using any nature language processing techniques such as ChatGPT.  CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
ANU代写,COMP4660代写,Bio-inspired Computing代写,Traveling salesman problem代写,Euclidean distance代写,ANU代编,COMP4660代编,Bio-inspired Computing代编,Traveling salesman problem代编,Euclidean distance代编,ANU代考,COMP4660代考,Bio-inspired Computing代考,Traveling salesman problem代考,Euclidean distance代考,ANUhelp,COMP4660help,Bio-inspired Computinghelp,Traveling salesman problemhelp,Euclidean distancehelp,ANU作业代写,COMP4660作业代写,Bio-inspired Computing作业代写,Traveling salesman problem作业代写,Euclidean distance作业代写,ANU编程代写,COMP4660编程代写,Bio-inspired Computing编程代写,Traveling salesman problem编程代写,Euclidean distance编程代写,ANUprogramming help,COMP4660programming help,Bio-inspired Computingprogramming help,Traveling salesman problemprogramming help,Euclidean distanceprogramming help,ANUassignment help,COMP4660assignment help,Bio-inspired Computingassignment help,Traveling salesman problemassignment help,Euclidean distanceassignment help,ANUsolution,COMP4660solution,Bio-inspired Computingsolution,Traveling salesman problemsolution,Euclidean distancesolution,