Solving ISP Problem by Using Genetic Algorithm

Similar documents
Hybrid approach for solving TSP by using DPX Cross-over operator

ARTIFICIAL INTELLIGENCE (CSCU9YE ) LECTURE 5: EVOLUTIONARY ALGORITHMS

Fuzzy Inspired Hybrid Genetic Approach to Optimize Travelling Salesman Problem

A New Selection Operator - CSM in Genetic Algorithms for Solving the TSP

Performance Analysis of Shortest Path Routing Problem using Heuristic Algorithms

Optimizing the Sailing Route for Fixed Groundfish Survey Stations

Reduce Total Distance and Time Using Genetic Algorithm in Traveling Salesman Problem

Using Genetic Algorithm with Triple Crossover to Solve Travelling Salesman Problem

Job Shop Scheduling Problem (JSSP) Genetic Algorithms Critical Block and DG distance Neighbourhood Search

Khushboo Arora, Samiksha Agarwal, Rohit Tanwar

Comparison Study of Multiple Traveling Salesmen Problem using Genetic Algorithm

Genetic Algorithm for Finding Shortest Path in a Network

A Steady-State Genetic Algorithm for Traveling Salesman Problem with Pickup and Delivery

A memetic algorithm for symmetric traveling salesman problem

Network Routing Protocol using Genetic Algorithms

Hybrid of Genetic Algorithm and Continuous Ant Colony Optimization for Optimum Solution

A Genetic Algorithm for Graph Matching using Graph Node Characteristics 1 2

A Web-Based Evolutionary Algorithm Demonstration using the Traveling Salesman Problem

GENETIC ALGORITHM with Hands-On exercise

Analysis of the impact of parameters values on the Genetic Algorithm for TSP

Introduction to Genetic Algorithms. Genetic Algorithms

Comparative Analysis of Genetic Algorithm Implementations

SIMULATION APPROACH OF CUTTING TOOL MOVEMENT USING ARTIFICIAL INTELLIGENCE METHOD

Shared Crossover Method for Solving Traveling Salesman Problem

ISSN: [Keswani* et al., 7(1): January, 2018] Impact Factor: 4.116

Role of Genetic Algorithm in Routing for Large Network

Combination of Genetic Algorithm with Dynamic Programming for Solving TSP

Introduction to Genetic Algorithms. Based on Chapter 10 of Marsland Chapter 9 of Mitchell

A Real Coded Genetic Algorithm for Data Partitioning and Scheduling in Networks with Arbitrary Processor Release Time

Adapting the Genetic Algorithm to the Travelling Saleman Problem

Algorithm for Finding Shortest Path in All Tours of a TSP Using Pheromone Genetic Factor

4/22/2014. Genetic Algorithms. Diwakar Yagyasen Department of Computer Science BBDNITM. Introduction

A HYBRID GENETIC ALGORITHM A NEW APPROACH TO SOLVE TRAVELING SALESMAN PROBLEM

Optimal tree for Genetic Algorithms in the Traveling Salesman Problem (TSP).

A Method of View Materialization Using Genetic Algorithm

Optimizing Flow Shop Sequencing Through Simulation Optimization Using Evolutionary Methods

Path Planning Optimization Using Genetic Algorithm A Literature Review

Parallel Genetic Algorithm to Solve Traveling Salesman Problem on MapReduce Framework using Hadoop Cluster

Using Genetic Algorithms to optimize ACS-TSP

Hybridizing PSM and RSM Operator for Solving NP-Complete Problems: Application to Travelling Salesman Problem

METAHEURISTICS. Introduction. Introduction. Nature of metaheuristics. Local improvement procedure. Example: objective function

A HIGH PERFORMANCE ALGORITHM FOR SOLVING LARGE SCALE TRAVELLING SALESMAN PROBLEM USING DISTRIBUTED MEMORY ARCHITECTURES

Genetic Algorithm Performance with Different Selection Methods in Solving Multi-Objective Network Design Problem

A COMPARATIVE STUDY OF FIVE PARALLEL GENETIC ALGORITHMS USING THE TRAVELING SALESMAN PROBLEM

Using Genetic Algorithms in Integer Programming for Decision Support

CHAPTER 4 GENETIC ALGORITHM

An Improved Genetic Algorithm based Fault tolerance Method for distributed wireless sensor networks.

Comparison of Genetic Algorithm and Hill Climbing for Shortest Path Optimization Mapping

Genetic Algorithms. PHY 604: Computational Methods in Physics and Astrophysics II

Adaptive Tabu Search for Traveling Salesman Problems

MINIMAL EDGE-ORDERED SPANNING TREES USING A SELF-ADAPTING GENETIC ALGORITHM WITH MULTIPLE GENOMIC REPRESENTATIONS

Task Graph Scheduling on Multiprocessor System using Genetic Algorithm

Performance Comparison of Genetic Algorithm, Particle Swarm Optimization and Simulated Annealing Applied to TSP

Revision of a Floating-Point Genetic Algorithm GENOCOP V for Nonlinear Programming Problems

Genetic Algorithms for Vision and Pattern Recognition

Solving Traveling Salesman Problem for Large Spaces using Modified Meta- Optimization Genetic Algorithm

Introduction to Genetic Algorithms

ABSTRACT I. INTRODUCTION. J Kanimozhi *, R Subramanian Department of Computer Science, Pondicherry University, Puducherry, Tamil Nadu, India

The Genetic Algorithm for finding the maxima of single-variable functions

Heuristic Optimisation

Inducing Parameters of a Decision Tree for Expert System Shell McESE by Genetic Algorithm

Effective Optimizer Development for Solving Combinatorial Optimization Problems *

Artificial Intelligence Application (Genetic Algorithm)

DETERMINING MAXIMUM/MINIMUM VALUES FOR TWO- DIMENTIONAL MATHMATICLE FUNCTIONS USING RANDOM CREOSSOVER TECHNIQUES

PATH PLANNING OF ROBOT IN STATIC ENVIRONMENT USING GENETIC ALGORITHM (GA) TECHNIQUE

A Parallel Architecture for the Generalized Traveling Salesman Problem

A Two-Dimensional Mapping for the Traveling Salesman Problem

Heuristic Optimisation

Improved Genetic Algorithm to Solve Asymmetric Traveling Salesman Problem

AN OPTIMAL SOLUTION TO MULTIPLE TRAVELLING SALESPERSON PROBLEM USING MODIFIED GENETIC ALGORITHM

Relationship between Genetic Algorithms and Ant Colony Optimization Algorithms

Attractor of Local Search Space in the Traveling Salesman Problem

Genetic Algorithm for Dynamic Capacitated Minimum Spanning Tree

GENERATIONAL MODEL GENETIC ALGORITHM FOR REAL WORLD SET PARTITIONING PROBLEMS

Analysis of Various Alternate Crossover Strategies for Genetic Algorithm to Solve Job Shop Scheduling Problems

Modified Order Crossover (OX) Operator

Evolutionary Computation Algorithms for Cryptanalysis: A Study

A Modified Genetic Algorithm for Process Scheduling in Distributed System

Artificial Intelligence

A Hybrid Genetic Algorithm Based on Complete Graph Representation for the Sequential Ordering Problem

A Comparative Study on Nature Inspired Algorithms with Firefly Algorithm

Genetic Algorithm for Dynamic Capacitated Minimum Spanning Tree

Innovative Systems Design and Engineering ISSN (Paper) ISSN (Online) Vol.5, No.1, 2014

ANTICIPATORY VERSUS TRADITIONAL GENETIC ALGORITHM

Clustering Evolutionary Computation for Solving Travelling Salesman Problems

Segmentation of Noisy Binary Images Containing Circular and Elliptical Objects using Genetic Algorithms

A NEW HEURISTIC ALGORITHM FOR MULTIPLE TRAVELING SALESMAN PROBLEM

Evolutionary Algorithms. CS Evolutionary Algorithms 1

The movement of the dimmer firefly i towards the brighter firefly j in terms of the dimmer one s updated location is determined by the following equat

Optimal Solving Large Scale Traveling Transportation Problems by Flower Pollination Algorithm

RESEARCH OF COMBINATORIAL OPTIMIZATION PROBLEM BASED ON GENETIC ANT COLONY ALGORITHM

Automata Construct with Genetic Algorithm

DERIVATIVE-FREE OPTIMIZATION

Grid Scheduling Strategy using GA (GSSGA)

Solving the Traveling Salesman Problem using Reinforced Ant Colony Optimization techniques

Using Proposed Hybrid Algorithm for Solving the Multi Objective Traveling Salesman Problem

Variable Neighbourhood Search (VNS)

ACCELERATING THE ANT COLONY OPTIMIZATION

Open Access Research on Traveling Salesman Problem Based on the Ant Colony Optimization Algorithm and Genetic Algorithm

Variable Neighbourhood Search (VNS)

Transcription:

International Journal of Basic & Applied Sciences IJBAS-IJNS Vol:09 No:10 55 Solving ISP Problem by Using Genetic Algorithm Fozia Hanif Khan 1, Nasiruddin Khan 2, Syed Inayatulla 3, And Shaikh Tajuddin Nizami 4 1 Fozia Hanif Khan, Fsazaia Degree college, Faisal, Phone:03333301050, email: mf_khans@hotmail.com. 1 Prof. Dr Nasiruddin Khan, University of Karachi, Ph:o3333101945, email: drprof_khan@yahoo.com 1 Syad Inayatullah University of Karachi, Ph: 032221159022, email:inayt_ku@yahoo.com 1 Shaikh Tajuddin Nizami, ND University, Ph: 03002761859 email: Abstract-- The main purpose of this study is to propose a new representation method of chromosomes using binary matrix and new fittest criteria to be used as method for finding the optimal solution for TSP. The concept of the proposed method is taken from genetic algorithm of artificial inelegance as a basic ingredient which has been used as search algorithm to find the near-optimal solutions. Here we are introducing the new fittest criteria for crossing over, and applying the algorithm on symmetric as well as asymmetric TSP, also presenting asymmetric problem in a new and different way. Index Term-- Genetic algorithm, fittest criteria, asymmetric travelling salesman problem. I. INTRODUCTION As far as the artificial inelegance is concerned, the genetic algorithm is an optimization technique based on natural evolution that is the change over a long period of time. Genetic algorithm (GAs) has been used as a search technique of many NP problems. Genetic algorithms have been successfully applied to many different types of problems, though several factors limit the success of a GA on a specific function. Problem required are good, but optimal solutions are not ideal for GAs. The manner in which points on the search space are represented is an important consideration. An acceptable performance measure or fitness value must be available. It must also be feasible to test many potential solutions. In nature the fittest individual is most likely to survive and mutate, therefore the next generation should be fitter and healthier because they were bred from healthy parents. The same idea can be applied on the TSP problem by first finding the different solutions and then combine those, which are the fittest solutions among them, in order to create a new and healthy solution and should be optimal or near optimal according to the problem. TSP is a well known problem for finding the optimal path which can be solved by various methods. Many algorithms have been developed for TSP but here we are using the concept of genetic algorithm. Other approximation techniques for finding near optimum solutions for TSP based on heuristics are proposed in the literature such as [1] simulated annealing [2], ant colonies [3], genetic algorithms (GA) [4] and [5]. John Holland s pioneering book Adaptation in natural Artificial System (1975, 1992) showed how the evolutionary process can be applied to solve a wide variety of problems using a highly parallel technique that is now called genetic algorithm. Genetic Algorithms have been applied to a large number of real world problems. One of the first such applications was a gas pipeline control system created by [6], [7] mentions several GA applications including message routing, scheduling, and automated design. ntire conferences have been devoted to applications of Genetic Algorithms and evolutionary techniques to specific disciplines, such as Image Analysis, Signal Processing and Telecommunications [8]. The proposed genetic algorithm in this paper build on much work done by previous researchers [4], but we introduces additional improvements, providing an algorithm for symmetric as well as Asymmetric TSP, here we are implementing the new fittest criteria as well as new representation of asymmetric matrix and improving our solution by applying the crossover and mutation again and again in order to get the optimal solution. GNTIC ALGORITHMS The Genetic Algorithm involves the following basic steps. valuation Cross over Mutation Here we are trying to describe the main function used by algorithm to find the shortest closed path through a group of two dimensional positions. 96110-1414 IJBAS-IJNS December 2009 IJNS I J N S

International Journal of Basic & Applied Sciences IJBAS-IJNS Vol:09 No:10 56 The Genetic Algorithm transforms a population of individual objects, each with an associated fitness value, into a new generation of the population using the Darwin principle of individual of reproduction and survival of the fittest and naturally occurring genetic operation such as a cross over (recombination) and mutation. ach individual in the population represents a possible solution to a given problem. The genetic algorithm attempts to find a very good or best solution to the problem by genetically breeding the population of individuals. Fig. 1. A 1 0 1 0 B 1 0 0 C 0 1 VOLUTION: The evolution function plays a very important role in genetic algorithm. Here we use a fittest function to decide how good a chromosome is. It also helps us in the selection of better chromosomes for the next cross over step, if we have relatively large number of initial population. CROSS OVR: After the completion of the selection process, the chromosomes chosen to be parents for the next generation are recombined to form children that are new chromosomes. This combination can take many forms and the crossover operator can greatly affects the result of the search. D Fig. 2. 1 selected at random and the character at that point is randomly changed, the alternate individual is then copied in to the next generation of the population. Mutation is performed after crossover by randomly choosing a chromosome in the new generation to mutate. We randomly choose a point to mutate and switch that point. Many types of mutation operators exist. Here we are using the bit flip method which is only used with a binary chromosome representation, that changes a particular point on the chromosome to its opposite. Basic Definitions: Matrix Representation: According to the algorithm we are presenting the tour as binary matrix. In fig. (A,B,C,D,) every gene is presented as binary bits, if the element (i,j) in the matrix is a set to 1 its mean there is an edge (directed path) between the city I to city j in the tour. According to the algorithm we are presenting the tour as a binary matrix. In fig 1 gene is represented as a binary bit, if the element (i,j) is set to (1) its mean that there is an edge (directed path) between the city i and city j in the tour. The above representation is for symmetric matrix TSP that the d ij = d ji. For asymmetric matrix that is when d ij d ji the above representation will be considered as, The left upper triangle (LUTM) represents the movement from left to right that is the forward movement. In (LUTM) we have the path from A B, B C, C. where as the upper right triangular matrix (URTM) represents the movement from bottom to top, in (URTM) there is the path from D, D A. In this way the complete tour will be, A B C D A The matrix representation must satisfy the two conditions to satisfy a legal tour: A 1 0 0 0 B 0 0 1 0 1 0 0 A 0 0 0 B For symmetric case: (i) The number of matrix element that has the value (1) must equal to the number of vertices in the tour. (ii) The number of matrix elements that have the value of (1) in each row and each column of the same vertex must be equal to two; For asymmetric case: MUTATION The operation of mutation allow new individual to be created. It begins by selecting an individual from the population based on its fitness. A point along the string is (i) The total number of the element that has the value (1) in both (LUTM) and (RUTM) must be equal to the number of vertices in the tour. (ii) For the same vertex the sum of both matrix elements that has the value (1) must be equal to 2. 96110-1414 IJBAS-IJNS December 2009 IJNS I J N S

Cross-over Operation: International Journal of Basic & Applied Sciences IJBAS-IJNS Vol:09 No:10 57 Here we are using the cross-over operator by applying the OR operation on the two parent matrices to get a single matrix. Mutation Operation: If the resultant tour (matrix) is an illegal tour (i.e does not satisfy the two condition mentioned above), then it must be repaired. This is done by counting the number of element with (1) value in each row and column for the city, if the number is greater than 2 then repeat deleting the longest edge from the resultant tour until the number of element in the resultant tour is equal to 2. However, if the number of elements in the resultant tour is less then 2 than add the missing edges in the tour by greedy algorithm. Considering two tours T 1 : A C D B A=17 Create initial population Pi Note: After the cross-over and mutation off-spring population has the fitness higher than the parents. v. Call the new off-springs as parent population and continue the steps (iii) and (iv) until we get a single offspring that will be an optimal or near optimal solution to the problem. volution by fittest criteria Collect a parent population from Pi (having fitness T 2 : A B C D A=22 Then cross-over and mutation of these two tours will be (fig. at the end), Terminat e if criteria is satisfied ye s sto pp Value of the assignment: Consider the weighted matrix of the given problem and solve it by using assignment algorithm and called the optimal total cost as a value of the assignment problem. STPS OF ALGORITHMS: i. Randomly create the initial population of individual strings of the given TSP problem and create a matrix representation of each, must satisfy the two basic conditions as mentioned earlier. ii. Assign a fitness to each individual in the population using fitness criteria measure, Select any two strings from population Cross-over mutate each pair n o F(t) = iii. iv. The selection criterion depends upon the value of the strings if it is close to 1. Create new off-spring population of strings from the two existing strings in the parent population by applying crossover operation. Mutate the resultant off-springs if required. Make off-spring population as a parent population 96110-1414 IJBAS-IJNS December 2009 IJNS I J N S

International Journal of Basic & Applied Sciences IJBAS-IJNS Vol:09 No:10 58 A C B D A=30 According to the fitness criteria we are selecting the tour having values, XAMPL: Consider the weighted matrix, A B C D A 2 5 7 1 17,22,23,24 T1 T2 T3 T4 Initial population: 17 22 25 29 B 6 3 8 2 C 8 7 4 7 D 12 4 6 5 After 1 st cross-over and m 15 17 19 After 2 ND cross-over and mutation 15 15 1 3 2 8 The value of the assignment of the above problem is 13 Initial population: A C D B A=17 A B C D A=22 A C D B A=23 A B D C A=24 A B C D A=25 A B C D A=26 A D C B A=28 A D C B A=29 After 3 rd cross-over and mutation 15 The resultant tour will be, A B C D A=15 CONCLUSION In this paper we have given a very effective procedure for TSP by using the genetic algorithm of artificial intelligence. Also providing the fittest criteria, the proposed algorithm is for symmetric as well as asymmetric TSP with a different representation for asymmetric TSP which is very useful in solving the problem easily XPRIMNTAL RSULT Table I comparison between proposed algorithm and old algorithm [4], s.no Problem Optimal solution Sols by old algo sol by proposed algo 1. Att48 10628 93.61. 99.3 2. li51 426 99.97 100 3. KorA100 21282 96.73 98.7 4. D198 15780 89.47 94.4 5. Lin318 42029 84.51 89.32 6. Pcb442 50778 87.5 90.1 7. Rat873 8806 83.55 89.24 8. Fll400 20127 80.31 85.21 9. Fll577 22204, 22249 87.05 92.5 10. A280 2579 88.18 92.5 96110-1414 IJBAS-IJNS December 2009 IJNS I J N S

120 100 80 60 40 20 0 International Journal of Basic & Applied Sciences IJBAS-IJNS Vol:09 No:10 59 new Algo [12] H. Braun, On Solving Travelling Salesman Problem by Genetic Algorithm, in Parallel Problem-Solving from Nature, Lecture Notes in Computer Science 496, H.P. Schwefel and R. Manner ds, Springer-Verlag, app. 129-133. Furthermore, in the algorithm given by [4] is for symmetric TSP and the off spring is done by OR operation, in the proposed algorithm here we are introducing the fittest criteria and applying it on the symmetric as well as asymmetric TSP. RFRNCS [1] B. Freisieben and P. Merz, New Genetic Local Search Operator for Travelling salesman Problem, Conference on Parallel Problem Solving From nature, app. 890-899, 1996. [2] P. van Laarhoven and. H. L. Aarts, Simulated Annealing: Theory and Applications, Kluwer Academic, 1987, [3] M. Dorigo and L. M. Gambradella, Ant Colony System: A Cooperative Learning Approach to the Travelling Salesman Problem, J Transaction on volutionary Computation, Vol. l, pp. 53-66, 1997. [4] D.. Goldberg, Genetic Algorithm in Search, Optimization and Machine Learning. Addison-Wesley, 1989. [5] Naef Taher Al Rahedi and Jalal Atoum, Solving TSP problem using New Operator in Genetic Algorithms, American Journal of Applied Sciences 6(8):1586-1590, 2009. [6] Goldberg D., Computer-Aided Pipeline Operations Using Genetic Algorithms and Rule Learning. Part I; Genetic Algorithms in pipeline Optimization, ngineering with Computer 3, 1987. [7] Greffenstette, J., Genetic Algorithms Made asy, 1991. [8] Poli, R.,el. al. (ds), volutionary Image Analysis, Signal Processing and Telecommunications Springer, 1999. [9] Seniw, D., A Genetic algorithm for the Travelling Salesman Problem, MSc Thesis, University of North Carolina, at Charlotte. http://www.heatonresearch.com/articales/65/page1.html. 1996. [10] B. Freisleben and P. Merz, A Genetic local search Algorithm for Solving Symmetric and Asymmetric Travelling Salesman Problems, International Conference On volutionary Computation, pp. 616-621, 1996. [11] K.. Nygard and C. H. Yang, Genetic Algorithm for the Travelling Salesman Problem With Time Window, in Computer Science and Operations Research: New Development in their Interface, O. Balci, R. Sharda and S. A. Zenios ds, Pergamon Press, pp. 411-423. 96110-1414 IJBAS-IJNS December 2009 IJNS I J N S

International Journal of Basic & Applied Sciences IJBAS-IJNS Vol:09 No:10 60 A 0 0 0 1 0 0 0 1 A A 1 0 0 1 0 1 0 1 A B 0 0 0 0 1 0 B B 0 0 1 0 1 0 B A 1 0 0 0 B 0 0 1 0 1 0 0 A 0 0 0 B A 1 0 0 0 B 1 0 0 D 1 1 0 0 0 A 0 0 0 B 0 0 C 96110-1414 IJBAS-IJNS December 2009 IJNS I J N S