Genetic Algorithm using Java
This article is focused on simple implementation of Genetic Algorithm(GA) using Java. If you want to learn more on GA, you can start from here .In the implementation, I will be discussing 3 major operators which are Selection, Crossover and Mutation. Each operator will be discussed separately. Population Initially we have to generate a random population of chromosomes in order to continue with above mentioned operators. Size of the initial generation should be defined based on the problem that we are going to solve using GA. Selection Purpose of this operator is to select best chromosomes out of entire population in order to generate a new population. Selection will be done based on the Fitness value. Fitness value is the factor we use to measure the strength of each gene and it will be calculated using a Fitness Function which is totally based on the problem we are dealing with. There are couple of selection approaches available which based on fitness value. Thi...