

















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!


















Evolutionary approaches
Central Dogma of Molecular Biology
What does DNA contain and where is it located?
DNA as Complex Computer Software
A Human DNA is comprised of approximately three billion base pairs. DNA is 1 D but functional proteins are 4D (structures + timings determine functions)
The idea of automatic programming is natural, once you have learned how complex and tedious manual programming is.
Generation of initial solutions (based on a priori knowledge, results of earlier run, or random)—initial population Loop : evaluate and select them by fitness function to determine: If the solution(s) is (are) sufficiently good, then Stop and Return the solution(s) Else Generation of variants by genetic operators, mutation and crossover Stop if the specified cycles for next generation is reached.
Genetic Algorithm (GA) and Genetic Programming (GP).
First introduced by Holland and his colleagues at the University of Michigan,
A population, P(t) = {x t 1 , x t 2 , …, x tn} , xti is a candidate solution at time t (generation).
11
Key questions to answer from this algorithm: --How do we represent a problem based on a biological metaphor? --How do we create an initial population with initial candidate solutions (offspring)? --How do we define fitness of each member? --How do we evolve the population? --How do we use genetic operators?
modified
Example: Optimization of a Simple Function
after the decimal point.
The size of binary vector as a chromosome can be determined as follow: Variable x in the range [-1,2] can be divided into at least 31000000 equal size ranges. This means that 22 bits are required as a binary vector (chromosome): 2097152 = 2 21 < 3000000 ≤ 2 22 = 4194304. Mapping from a binary string into a real number x from the range [-1,2] is straightforward and is completed in two steps: Convert the binary string from the base 2 to base 10. Find a corresponding real number x : _x = -1.0 + x’3/(2 22 -1)_ , where x’ is a 22bits of chromosome; –1.0 is the left boundary of the domain; 2.0 is the right boundary of the domain. For example, a chromosome x’ = (1000101110110101000111) represents the number 0.637197, since x’ = (1000101110110101000111) 2 = 2288967 and x = -1.0 + 2288967*(3/4194303) = 0.637197. Of course, the chromosomes (0000…0000) and (1111…1111) represent boundaries of the domain, -1.0 and 2.0, respectively.
Example: Encoding the Traveling
Salesman Problem
Path representation: use 4 bits of binary to represent each city, 1, 2, …, 9 in order p1: 0001 0010 0011 …. 1000 1001 p2: 0101 0100 0011 …. 0100 0011 Can we apply crossover and mutation operators? Fitness function: straightforward, calculation of cost
Path representation: use decimal numbers instead of binary p1 = (1 9 2 4 6 5 7 8 3) p2 = (4 5 9 1 8 7 2 3) Can we apply crossover and mutation operators? Mutation is possible if neighboring cities are exchanged
Make two cut points in each of two parents randomly p1 = (1 9 2 | 4 6 5 7 | 8 3) p2 = (4 5 9 | 1 8 7 6 | 2 3) Two children c1 and c2 are produced by copying the middle segments c1 = (x x x | 4 6 5 7 | x x) c2 = (x x x | 1 8 7 6 | x x) Starting from the second cut, copy the cities from the other parent except for existing cities c1 = (2 3 9 | 4 6 5 7 | 1 8) c2 = (3 9 2 | 1 8 7 6 | 4 5) from 2, 3, 9,1,8 removing 4, 6, 5, 7
16
Cramer and Koza suggested that a tree structure should be used as the program representation in a genome. Koza recognized the importance of the method and demonstrated its feasibility for automatic programming in general in1992.
Select an individual or individuals in the population using the selection algorithm. Perform genetic operations on the selected individual or individuals. Insert the result of the genetic operations into the new population.
Loosely speaking, terminals provide a value to the system while functions process a value already in the system. The terminal set is comprised of the inputs to the GP program The function set is composed of the statements, operators, and functions available to the GP system. Functions and terminals must be assembled into a structure before they may execute as programs. Programs are structures of functions and terminals together with rules or conventions for when and how each function or terminal is to be executed.
The function set may be application-specific and be selected to fit the problem domain ( parsimony is related to search space). The functions and terminals used for a GP run should be powerful enough ( sufficiency ) to be able to represent a solution to the problem.
Each function in the function set should be able to handle gracefully all values it might receive as input. This is called the closure property.
Population size, probability of genetic operators, termination conditions, etc. 20