联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codehelp

您当前位置:首页 >> OS程序OS程序

日期:2023-11-01 07:17

COMP5511 Artificial Intelligence Concepts
- Assignment 1 -
Important Notes
1. Write your report using the given word template (maximum 15 pages). On top of the first
page, provide your name and matriculation number.
2. Students can modify the Matlab file provided or geatpy (https://github.com/geatpydev/geatpy) or use other programming languages to solve the problem given.
3. The solution and report should be the results of each individual work.
4. You must write the readme file to explain how the code works. (e.g., the code is
implemented in Matlab language. The code is run on the Matlab R2020 version. The code
requires the GA toolbox/package…)
5. Please follow academic integrity.
6. The report together with the codes and readme should be submitted in a zip file
(MatricNumber.zip) to LEARN@PolyU (https://learn.polyu.edu.hk/ultra/course) under
“COMP5511-> Assessments->Assignment 1” before the due date of 11:59 PM on 2
November 2022 (Thursday). No late submission will be accepted.
Report Structure
1. Introduction: Give a brief introduction about TSP, GA, etc.
2. Methodology: Include five subsections regarding the five tasks. In each subsection, you
should give a detailed description of the designed algorithm, including the overall
framework, crossover and mutation operators, selection operator, and other
components.
3. Experimental results: Include five subsections regarding the five tasks. In each
subsection, you should provide the experimental results and carry out sensitive studies
with the various parameters, e.g., the population size, and discuss the effects of changing
these parameters. You need to show the results in various formats, such as tables, figures,
etc.
4. Conclusion: You should summarize what you have learned and your findings.
Instruction: How to submit it online on LEARN@PolyU
1. Find and click COMP5511 on your course menu (https://learn.polyu.edu.hk/ultra/course).
2. Find and click Assessments and Assignment 1
3. Attach your zip file and submit it
Assignment Description
Abstract: Traveling Salesman Problem (TSP) is a classical combinatorial problem that is
deceptively simple. This problem is about a salesman who wantsto visit n customers cyclically.
In one tour, the salesman must visit each customer just once and should finish up where he
started. Since each customer is situated in different locations, the distance between every
customer will be different. The objective is to find the shortest round-trip route that visits
each customer once and then returns to the starting customer. The dataset with 100
customers is provided in the zip file (‘TSPTW_dataset.txt’).
In this assignment, students are required to finish the following five tasks:
(1) Classical TSP
A genetic algorithm is used to find the shortest round-trip route of these 100 customers. The
locations of customers are given in TSPTW_dataset.txt. Students should visualize the roundtrip route and provide the total distance.
(2) Dynamic optimization problem
In the real-world TSP, the location and number of customers may vary with time, such a TSP
problem can be considered a dynamic optimization problem. Considering such a scenario:
For each environment   = 0, … ,5, the first 50 + 10  customers are allowed to be visited.
Besides, the location of a customer varies with the environment  ,
!"# =   + 2  ? cos /

2  1,
!"# =   + 2  ? sin /

2  1,
where  !"# and  !"# are the new X coordinate and Y coordinate at environment   ,
respectively.   and   are the X coordinate and Y coordinate provided in the
TSPTW_dataset.txt. Assuming that the environmental variable   is changed every 100
generations, students should try to design a genetic algorithm to track the shortest roundtrip route for each environment   by reusing the solutions from the last environment to
accelerate the search in the new environment and then compare the results from the genetic
algorithm without reusing the solutions from the last environment.
(3) Large-scale optimization problem
By adding 100 to the X coordinate for each customer in the TSPTW_dataset.txt, additional
100 customers can be formed. Regarding the newly formed 100 customers and the original
100 customers as a whole, the new problem can be regarded as a large-scale problem. For
this large-scale problem, the customers can be divided into several small-scale regions by
using clustering techniques, e.g., K-means. The salesman must finish visiting all the customers
within the region before visiting any other customers in other regions. In this task, students
are required to combine the clustering technique with a genetic algorithm to handle the largescale optimization problem.
(4) Multi-objective optimization problem
The salesman may consider more than one objective. For example, the salesman not only
wants to minimize the travel distance of the round-trip route but also maximize the sales
profit. Assume that the sales profit of each customer can be randomly generated between
[1,50], the two objective functions, (i.e., total travel distance  $ and total sales profit  %) may
be conflicting, that is, a solution cannot satisfy the maximal sales profit and minimal travel
distance at the same time. The multi-objective optimization problem can be formulated as
< min  $ , max  % >. An alternative approach is to change the multi-objective optimization
problem to a single-objective optimization problem by weighting the two objective functions,
min ( $ ?   %),
where   (  > 0) is the weight on  %. Students can specify the   value to get the optimal
solution.
In addition to the weighting objective functions-based method, students should develop a
Pareto dominance selection-based evolutionary algorithm to handle the multi-objective
optimization problem and discuss the advantages and disadvantages of the weighting
objective functions-based method and Pareto dominance selection-based method.
(5) Time window constraint problem
The salesman is required to visit a certain customer within a certain time window, i.e., the
salesman should visit the customer between “READY TIME” and “DUE TIME”, and the time
window for each customer is given in TSPTW_dataset.txt. The travel time between customers
is computed by the Euclidean distance between customers. Considering the time window as
an additional objective, students are required to develop a Pareto dominance selection-based
evolutionary algorithm to solve the problem by optimizing the following three objectives:
minimize total travel distance, maximize total sales profit, and minimize the total violation
value of the time window, where the total violation value of the time window is the
summation of the violation value of the time window for each customer. For example, “READY
TIME” and “DUE TIME” of the “CUST NO 3” are 2 and 61, respectively. If the salesman visits
the “CUST NO 3” at time 63, the violation value of the time window is 63-61=2. If the salesman
visits the “CUST NO 3” at time 1, the violation value of the time window is 2-1=1.
Discussion and analysis:
Students must give the details of the designed algorithms and perform sensitive studies for
the above tasks with the various parameters, for example, the crossover and mutation rates,
the population size, and the number of generations, and discuss the effects of changing these
parameters. Students need to show their results in various formats, such as tables, figures,
etc.
References
[1] http://comopt.ifi.uni-heidelberg.de/software/TSPLIB95/
[2] http://myweb.uiowa.edu/bthoa/TSPTWBenchmarkDataSets.htm
[3] https://github.com/geatpy-dev/geatpy
[4] Deb, Kalyanmoy, et al. "A fast and elitist multiobjective genetic algorithm: NSGA-II." IEEE
Transactions on Evolutionary Computation, 2002.
[5] Yang, Jin-Qiu, et al. "Solving large-scale TSP using adaptive clustering method." IEEE International
Symposium on Computational Intelligence and Design, 2009.

版权所有:留学生编程辅导网 2021,All Rights Reserved 联系方式:QQ:99515681 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。