TSP-VRP-GENETICS-ALGORITHM-master

所属分类:matlab编程
开发工具:matlab
文件大小:1768KB
下载次数:2
上传日期:2020-09-15 14:38:20
上 传 者Nabnab1980
说明:  TST VRP GENETIC ALGORITHM

文件列表:
Doc.pdf (636940, 2018-08-16)
Genetics Algoritm.pdf (1286652, 2018-08-16)
LICENSE (35141, 2018-08-16)
TSP.py (15995, 2018-08-16)
VRP.py (16661, 2018-08-16)

# TSP-VRP-GENETICS-ALGORITHM Implementation of TSP and VRP algorithms using a Genetic Algorithm ## Genetic Algorithms for TSP and VRP Genetic Algorithms for solving the travelling salesman problem and the vehicle routing problem (TSP, VRP) This practical assignment requires to develop, using Python, an implementation of genetic algorithms for solving the Travelling Salesman Problem -- TSP and the Vehicle Routing Problem -- VRP (at least should include TSP) Travelling Salesman Problem. Find the optimum itinerary for a salesman that needs to visit a set of cities, visiting each city exactly once, except the city where the trip started, that must be the last city to visit. Vehicle Routing Problem. Find routes for shipping supplies to a set of customers having different demands. The routes should be adjusted to the available fleet of trucks in order to get minimum costs. ## First part: genetic operators A full standard genetic algorithm should be implemented in Python, including several (at least one) permutation-specific operators. For example: - Partially Mapped Crossover (PMX) (slides 41 and 42). - Edge Crossover (slides 45, 46 and 47). - Order Crossover (slides 39 and 40). - Insert mutation (slide 34). - Swap mutation (slide 35). - Inverse mutation (slide 36). ## Second part: Variants over the standard GA Modify the standard version of genetic algorithms developed in the previous step, by choosing only one of the following: **Genetic Algorithm with Varying Population Size** The idea is to introduce the concept of "ageing" into the population of chromosomes. Each individual will get a "life-expectancy" value, which directly depends on the fitness. Parents are selected randomly, without paying attention to their fitness, but at each step all chromosomes gain +1 to their age, and those reaching their life-expectancy are removed from the population. It is very important to design a good function calculating life-expectancy, so that better individuals survive during more generations, and therefore get more chances to be selected for crossover. **Cellular Genetic Algorithm** The idea is to introduce the concept of "neighbourhood" into the population of chromosomes (for instance, placing them into a grid-like arrangement), in such a way that each individual can only perform crossover with its direct neighbours. ## Third part: Experimentation Run over the same instances both the standard GA (from first part) as well as the modified version (from second part). Compare the quality of their results and their performance. Due to the inherent randomness of GA, the experiments performed over each instance should be run several times. ## Final part: Documentation A pdf report explaining the details of the implementations developed: - representation for genes and individuals, crossover and mutation operations, etc. - modifications performed over the standard algorithm, instances considered, - number of executions for each instance, showing average statistics and best result found, - bibliography. ## Bibliography - Chapters 2 and 3 of the book Introduction to Evolutionary Computing by A.E. Eiben and J.E. Smith. Chapter 2 is available at the book's web page. Although full version of Chapter 3 might be useful for the assignment, it may be sufficient to check the slides corresponding to this chapter that can be found at an online course using this textbook. It is also allowed to search the web for further references and/or related material. It is mandatory to include in the bibliography all references used. - Artificial Intelligence: A Modern Approach. S. Russell and P. Norvig. - GAVaPS - a Genetic Algorithm with Varying Population Size. J. Arabas, Z. Michalewicz, and J. Mulawla. Proc. 1st IEEE Conf. on Evolutionary Computation, pp. 73 - 78. - The direct link might require to have an IP within the campus to grant the download, but you can access from home via the library catalog (Fama). - Solving the Vehicle Routing Problem by Using Cellular Genetic Algorithms . E. Alba and B. Dorronsoro. LNCS 3004, pp. 11-20. - Other books available at the University library. For instance: - Algoritmos Evolutivos: Un enfoque practico. L. Araujo, C. Cervigon. - Genetic algorithms and genetic programming : modern concepts and practical applications. M. Affenzeller...[et al.] - Genetic algorithms + data structures = Evolution programs. Z. Michalewicz.

近期下载者

相关文件


收藏者