Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an EA to solve the Traveling Salesman Problem (TSP). Using any EA packages or libraries is not permitted. Please implement your own EA from

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Write an EA to solve the Traveling Salesman Problem (TSP). Using any EA packages or libraries is not permitted. Please implement your own EA from scratch. 1. Input The standard input of TSP is a list of city ID and coordinates as follows, 1 11003.611100 42102.500000 2 11108.611100 42373.888900 3 11133.333300 42885.833300 11155.833300 42712.500000 5 11183.333300 42933.333300 6 11297.500000 42853.333300 7 11310.277800 42929.444400 8 11416.666700 42983.333300 9 11423.888900 43000.277800 10 11438.333300 42057.222200 Two input files, TSP WesternSahara_29 and TSP.Uruguay_734, will be provided in BrightSpace. The representation of your EA should be the permutation of all city IDs and the fitness function is the total tour length. Your program will be tested from the command line using the two problem instances. Your program should have at least three arguments, the population size, the mutation rate, and the crossover rate. Provide a readme.txt file to describe how to execute your program from the command line and if there are any extra parameters to input. 2. Output To the standard output, the best fitness, worst fitness, and the average fitness in the population of each generation, the final best solution in the format of a permutation of all city IDs and its fitness. Write an EA to solve the Traveling Salesman Problem (TSP). Using any EA packages or libraries is not permitted. Please implement your own EA from scratch. 1. Input The standard input of TSP is a list of city ID and coordinates as follows, 1 11003.611100 42102.500000 2 11108.611100 42373.888900 3 11133.333300 42885.833300 11155.833300 42712.500000 5 11183.333300 42933.333300 6 11297.500000 42853.333300 7 11310.277800 42929.444400 8 11416.666700 42983.333300 9 11423.888900 43000.277800 10 11438.333300 42057.222200 Two input files, TSP WesternSahara_29 and TSP.Uruguay_734, will be provided in BrightSpace. The representation of your EA should be the permutation of all city IDs and the fitness function is the total tour length. Your program will be tested from the command line using the two problem instances. Your program should have at least three arguments, the population size, the mutation rate, and the crossover rate. Provide a readme.txt file to describe how to execute your program from the command line and if there are any extra parameters to input. 2. Output To the standard output, the best fitness, worst fitness, and the average fitness in the population of each generation, the final best solution in the format of a permutation of all city IDs and its fitness

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

what is net sale of xyz stock with

Answered: 1 week ago

Question

Do you think physicians should have unions? Why or why not?

Answered: 1 week ago