1. Homepage
  2. Programming
  3. Advanced Artificial Intelligence - Genetic algorithms Assignment 1: Performance of the swap operator and that of the inversion operator

Advanced Artificial Intelligence - Genetic algorithms Assignment 1: Performance of the swap operator and that of the inversion operator

Engage in a Conversation
TITECHAdvanced Artificial IntelligenceGenetic algorithmsJava

Advanced Artificial Intelligence Isao Ono Department of Computer Science Tokyo Institute of Technology CourseNana.COM

Genetic algorithms for combinatorial problems

Assignment 1

Compare the performance of the swap operator and that of the inversion operator when they are applied to TSP. Summarize the results and discuss why the results are obtained. CourseNana.COM

  • Swap Chooses two cities randomly and swap them. CourseNana.COM

  • Inversion Choose two cities randomly and inverse the sequence of cities between the two cities. CourseNana.COM

  • Local search method Evaluation value Decision variableLocal optimumLocal optimum Global optimum Assignment (3) CourseNana.COM

  • Local search method (2) CourseNana.COM

    1. Let 𝑋𝑋current be a random tour. Initialize the iteration counter 𝑖𝑖𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑖𝑖𝑡𝑡𝑡𝑡←0.
    2. Apply the swap operator or the inversion operator to 𝑋𝑋current to generate a new tour 𝑋𝑋next.
    3. If the length of 𝑋𝑋nextis shorter than that of 𝑋𝑋current , 𝑋𝑋current← 𝑋𝑋next.
    4. 𝑖𝑖𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑖𝑖𝑡𝑡𝑡𝑡←𝑖𝑖𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑖𝑖𝑡𝑡𝑡𝑡+1.
    5. If 𝑖𝑖𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑖𝑖𝑡𝑡𝑡𝑡is smaller than the maximum iteration, go to step 2.

Assignment (4) CourseNana.COM

  • How to perform an experiment CourseNana.COM

  • Import a project file, “local_search_tsp.zip”, to the Eclipse. CourseNana.COM

  • Find TLocalSearchMain.java and open it. CourseNana.COM

  • Find the main method. CourseNana.COM

  • You can choose the swap operator or the inversion operator at line 1. CourseNana.COM

  • This program executes five independent trials. CourseNana.COM

  • How to perform an experiment (2) -Inversion_log.csv, Swaplog.csv -NoOfEvals -Iteration -Inversion[0 -4] -A tour length at each iteration in the trial [0 -4]. CourseNana.COM

Assignment (7) CourseNana.COM

  • How to perform an experiment (3)
  • {Inversion,Swap}[0- 4]_{init,final}.csv
  • Inversion0_init.csv
  • The initial tour obtained in the trial 0 of the inversion operator.
  • Swap1_final.csv
  • The final tour obtained in the trial 1 of the swap operator.
  • Includes the coordinates of the cities in the visiting order.

Assignment (8) How to perform an experiment (4) (Optional) You can choose a problem at the line 4. The current problem definition file: data/eil51.tsp Definition files can be downloaded from http://comopt.ifi.uni -heidelberg.de/software/TSPLIB95/tsp/ You can try other problems. If you try others, you need to tune “maxIteration ”. CourseNana.COM

Assignment (9) Put the following information on the first page. Course title, today's date, your student ID number and your name Due date Oct. 17 Upload a PDF file to T2Schola. If you have any questions, please send an e -mail to CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
TITECH代写,Advanced Artificial Intelligence代写,Genetic algorithms代写,Java代写,TITECH代编,Advanced Artificial Intelligence代编,Genetic algorithms代编,Java代编,TITECH代考,Advanced Artificial Intelligence代考,Genetic algorithms代考,Java代考,TITECHhelp,Advanced Artificial Intelligencehelp,Genetic algorithmshelp,Javahelp,TITECH作业代写,Advanced Artificial Intelligence作业代写,Genetic algorithms作业代写,Java作业代写,TITECH编程代写,Advanced Artificial Intelligence编程代写,Genetic algorithms编程代写,Java编程代写,TITECHprogramming help,Advanced Artificial Intelligenceprogramming help,Genetic algorithmsprogramming help,Javaprogramming help,TITECHassignment help,Advanced Artificial Intelligenceassignment help,Genetic algorithmsassignment help,Javaassignment help,TITECHsolution,Advanced Artificial Intelligencesolution,Genetic algorithmssolution,Javasolution,