Genetic Algorithm
Genetic Algorithm
Genetic Genetic
Programming Algorithms
History of GAs:
• Evolutionary computing evolved in the 1960s.
• GAs were created by John Holland in the mid-1970s.
a possible solution.
Therefore every point has a
1
problem definition.
0
GAs are used to search the search 0 100 200 300 400 500 600 700 800 900 1000
• Individuals allowed to
reproduce (selection),
crossover, mutate.
Flowchart of GA
Arsha J K,AP,Computer Science and
Engineering, VJCET, Vazhakulam
Arsha J K,AP,Computer Science and
Engineering, VJCET, Vazhakulam
Genetic Algorithm (3) – Basic Algorithm
• Coding
• Selection
• Crossover/Recombination
• Mutation
CHROMOSOME 1 110100011010
CHROMOSOME 2 110111111010
CHROMOSOME 1 03467216
CHROMOSOME 2 72561423
CHROMOSOME 1 9CE7
CHROMOSOME 2 3DBA
• Easier to implement
• But Noisy
• Depends on the variance of fitness in the
population
PARENT 1 10110011
PARENT 2 00011010
MASK 11010110
CHILD 1 10011010
CHILD 2 00110011
X1 = 0110001010
X2 = 1100000111
Uniformly generated = 1 0 0 0 0 0 1 0 0 0
As a result, the new population becomes,
X1 = 1110000010
X2 = 0100001111
PARENT 1 11010001
PARENT 2 01101001
PARENT 3 01101100
CHILD 01101001
GA approach:
• Representation: binary code, e.g. 01101 13
• Population size: 4
• 1-point xover, bitwise mutation
• Roulette wheel selection
• Random initialisation
4 1
31% 14%
5% 3
49%
2
Arsha J K,AP,Computer Science and
Engineering, VJCET, Vazhakulam
Example : Crossover
http://www.spectroscopynow.com
http://www.cs.bris.ac.uk/~colin/evollect1/evollect0/index.htm\
IlliGAL (http://www-illigal.ge.uiuc.edu/index.php3)
GAlib (http://lancet.mit.edu/ga/)
2. Genetic Algorithm _Neural Network, or GANN, has the ability to locate the
neighborhood of the optimal solution quickly, compared to other
conventional search strategies.
Drawbacks are :
1. Large amount of memory required for handling and manipulation of
chromosomes for a given network
2. Scalability as the network becomes large
Arsha J K,AP,Computer Science and
Engineering, VJCET, Vazhakulam
BLOCK DIAGRAM OF GENETIC NEURO HYBRID
SYSTEMS
Fig 3
GA helps to find out complex structure of ANN for given input and the
output data set by using its learning rule as a fitness function.
1. By the use of fuzzy logic based techniques for improving genetic algorithm
behavior and modeling GA components. This is called fuzzy genetic algorithms
(FGAs).