Opt SA 6
Opt SA 6
Jadavpur University
Part – VI
There are some optimization methods which are conceptually different from the traditional mathematical programming
techniques.
These methods are labeled as modern or nontraditional methods of optimization.
Most of these methods are based on certain characteristics and behavior of biological, molecular, swarm of insects, and
neurobiological systems. : Nature inspired, Evolutionary Algorithm (EA)
Theory of natural Evolution : Highly improved chromosomes in Human being is evolved from simplest and least qualified mono-
cellular animal Amiba following the rules of Generation of new genes by crossover and mutation and preservation of good
genes by natural selection ( survival of the fittest).
Precision : If binary representation is used , then a continuous design variable x can be represented by a set of only discrete
values.
If a variable x (whose bounds are given by x(l) and x(u)) is represented by a string of q binary numbers, its decimal value can be
computed as
0
X(l) X(u)
Δx
Precision , Δx =
Precision can be controlled by by selecting appropriate q ( string length) from relationship between q and Δx
Design variable vector :
• Design variables in GA are represented by binary coding.
• The vector of design variables contains m number of solutions at a time which is termed as population of size m.
• The selection of size m depends on computation burden and search accuracy.
• The population is continuously revised based on GA operators ( crossover, mutation and selection).
• The best solution in the population is the latest optimum solution.
• The population and optimum solution evolves with generation (completion of GA operators for once).
It is already discussed that it does not alter the location of the minimum of f (X) but converts the minimization problem into an
equivalent maximization problem.
Fitness function
Genetic Operators
• The solution of an optimization problem by GAs starts with a population of random strings denoting several (population of)
• Each string (or design vector) is evaluated to find its fitness value.
• The population (of designs) is operated by three operators—reproduction, crossover, and mutation—to produce a new
• The new population is further evaluated to find the fitness values and tested for the convergence of the process.
• One cycle of reproduction, crossover, and mutation and the evaluation of the fitness values is known as a generation in GAs.
• If the convergence criterion is not satisfied, the population is iteratively operated by the three operators and the resulting new
• The procedure is continued through several generations until the convergence criterion is satisfied and the process is
terminated.
Reproduction.
• The GA starts with an initial randomly generated population containing n number of design solutions.
• The fitness of each solution can be calculated by evaluating fitness function for each solution.
• The population for the next generation is to be evolved from this current generation with a target that good solutions
(relatively higher fitness) in the current generation will retain ( survival of the fittest) and bad solutions (relatively lower
fitness) will be rejected (not selected) in the next generation with a probabilistic scheme.
• The reproduction operator is also called the selection operator because it selects good strings of the population.
• The reproduction operator is used to pick above-average strings from the current population and insert their multiple copies
in the next generation based on a probabilistic procedure.
• In a commonly used reproduction operator, a string is selected from the mating pool with a probability proportional to its
fitness. Thus if Fi denotes the fitness of the ith string in the population of size n, the probability for selecting the i th string for the
The same process will be repeated six times to select six strings in the new generation
Population in new generation contains some of the strings one or multiple copies and some not at all
Crossover.
• After reproduction, the crossover operator is implemented.
• The purpose of crossover is to create new strings by exchanging information among strings of the mating pool.
• In most crossover operators, two individual strings (designs) are picked (or selected) at random from the mating pool
generated by the reproduction operator and some portions of the strings are exchanged between the strings.
• In the commonly used process, known as a single-point crossover operator, a crossover site is selected at random along the
string length, and the binary digits (alleles) lying on the right side of the crossover site are swapped (exchanged) between the
two strings.
• The two strings selected for participation in the crossover operators are known as parent strings and the strings generated by
the crossover operator are known as child strings.
Before crossover after crossover
• The child strings generated using a random crossover site may or may not be as good or better than their parent strings in
terms of their fitness values.
• If they are good or better than their parents, they will contribute to a faster improvement of the average fitness value of the
new population.
• On the other hand, if the child strings created are worse than their parent strings, will not survive very long as they are less
likely to be selected in the next reproduction stage (becauseof the survival-of-the-fittest strategy used).
Crossover.
• Hence it is desirable not to use all the strings of the mating pool in crossover but to preserve some of the good strings of the
• In practice, a crossover probability, pc, is used in selecting the parents for crossover.
• Thus only 100 X pc percent of the strings in the mating pool will be used in the crossover operator while 100 (1 − p c) percent of
the strings will be retained as they are in the new generation (of population).
• For elitist method to preserve the best string , it is not allowed for crossover or mutation
• Mutation.
• The crossover is the main operator by which new strings with better fitness values are created for the new generations.
• The mutation operator is applied to the new strings with a specific small mutation probability, p m.
• The mutation operator changes the binary digit (allele’s value) 1 to 0 and vice versa.
• In the single-point mutation, a mutation site is selected at random along the string length and the binary digit at that site is
then
• changed from 1 to 0 or 0 to 1 with a probability of pm.
• In the bit-wise mutation, each bit (binary digit) in the string is considered one at a time in sequence, and the digitis changed
from 1 to 0 or 0 to 1 with a probability pm.
Here all the five strings have a 1 in the position of the first bit. If, The true optimum solution of
the problem requires a 0 as the first bit. The required 0 cannot be created by either the
reproduction or the crossover operators. However, when the mutation operator is used, the
binary number will be changed from 1 to 0 in the location of the first bit with a probability of
npm.
• Note that the three operators—reproduction, crossover, and mutation—are simple to implement.
• The reproduction operator selects good strings for the mating pool,
• The crossover operator recombines the substrings of good strings of the mating pool to create strings (next generation of
population), and
• the mutation operator alters the string locally.
• The use of these three operators successively yields new generations with improved values of average fitness of the
population. Although, the improvement of the fitness of the strings in successive generations is probabilistic but after a huge
number of generation expected improvement is achieved .
• the process has been found to converge to the optimum fitness value of the objective function.
• Note that if any bad strings are created at any stage in the process, they expected to be eliminated by the reproduction
operator in the next generation.
• The GAs have been successfully used to solve a variety of optimization problems in real life .
• A convergence criteria is required
• Convergence criteria :
i) Number of generation M ii) Ratio of best fitness to average fitness
• Theoretically this ratio will be 1 but for convergence a ratio near to 1 (0.9 or 0.8) is used.
A
L
G
O
R
I
T
H
M