




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























Computational Physics^ Computational Physics
Email: [email protected]
Basic genetic algorithms^ Step 1
Genetic algorithmsGenetic algorithms ^ GA represents an iterative process. Each iteration is GA represents an iterative process. Each iteration iscalled a^ called a
Advantage •^ We can now simulate the processes of naturalselection and competition within our population. •^ We can have our candidate designs fight forplaces in the population of future generations(iterations).
Evolutionary Algorithms •^ Date back to the 1950’s. •^ Many researchers independently developeddifferent versions.^ •
Examples are:^ •^
Genetic Algorithms, • Evolution Strategies, • Evolutionary Programming.
Basic Terminology •^ Gene:
The fundamental physical and functional unit of
The self-replicating genetic structures of
cells each containing the entire genome of an organism.^ •^ Its main feature is its self-replicating structure
Basic Terminology •^ Alleles:
Alternative forms of a genetic locus.
-^ Crossing Over:
The breaking during meiosis of one
A heritable change in the genetic makeup of
an organism.
5 Basic Components •^ An encoded representation of solutions to the problem.^ •^
Ex. binary encoding, real number encoding, integer encoding, datastructure encoding.
-^ A means of generating an initial population.^ •
Ex. random initialization, patterned initialization.
-^ A means of evaluating design fitness.^ •
Need a consistent means of determining which designs are “better”than others.
-^ Operators for producing and selecting new designs.^ •
Ex. selection, crossover, mutation.
-^ Values for the parameters of the algorithm.^ •
Ex. How much crossover and mutation, how big is population.
GAs: Binary Coded Representations •^ For Example, let’s say that we are trying tooptimize the following function,^ •
f(x) = x
2
-^ for 2
-^ If we were to use binary-codedrepresentations we would first need to developa mapping function form our genotyperepresentation (binary string) to ourphenotype representation (our CS). This canbe done using a mapping function:
Encoding
Individual Chromosome:
^00101 Fitness =
????? d(2,1,5,
00101
) = 1.
Individual Chromosome: f(1.16) = 1.
^00101 Fitness =
The Fitness Assignment Process for Binary Coded
Chromosomes (
ub=2, lb=1, l=
)
Binary Coded Representations:
Encoding •^ Vectors of real numbers.^ •
Useful for continuous problems. Min:^
f( x ) = x[1]
2 + x[2] –
(^3) x[3]
- 50
s.t.^
g ( x )^
≤^0 h ( x ) = 0 x ≤^ xl^
≤^ xu
Possible DesignConfigurations:
Encoding Vectors of real numbers •^ Real-Coded GAs can be regarded as GAs thatoperate on the actual phenotype. •^ For Real-Coded GAs, no genotype-to-phenotype mapping is needed.