1 / 23

Evolutionary Optimization

Evolutionary Optimization. considering many solutions together. Where are we?. Optimization methods. Complete solutions. Partial solutions. Exhaustive search Branch and bound Greedy Best first A* Divide and Conquer Dynamic programming. Exhaustive search Hill climbing

odell
Download Presentation

Evolutionary Optimization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Evolutionary Optimization considering many solutions together

  2. Where are we? Optimization methods Complete solutions Partial solutions Exhaustive search Branch and bound Greedy Best first A* Divide and Conquer Dynamic programming Exhaustive search Hill climbing Randomized hill climbing Variable Neighbourhood Simulated Annealing Tabu search

  3. Where are we going? Optimization methods Complete solutions Partial solutions Exhaustive search Branch and bound Greedy Best first A* Divide and Conquer Dynamic programming Exhaustive search Hill climbing Randomized hill climbing Variable Neighbourhood Simulated Annealing Tabu search multiple solutions -genetic algorithms -swarms

  4. A population of solutions • not just parallel execution • interaction among members of population for • comparison of fitness - competition • evolutionary metaphor (M&F’s focus) • learning of features - share information • society metaphor

  5. Genetic algorithms NATURE population chromosome life breeding mutation generations PROBLEM SPACE population solution fitness function crossover mutation generations

  6. Genetic algorithm • population is a set of solutions • some are more fit than others • those should have better probability of ‘surviving’ • surviving means • staying alive • producing ‘offspring’ solutions

  7. Genetic algorithm time t = t0 pick starting population P(t) evaluate members of P(t) repeat create ‘children’ C(P(t)) //crossover alter C(P(t)) //mutation evaluate members of C(P(t)) pick P(t+1) from P(t) and C(P(t)) t = t+1 until t==tMax

  8. A simple SAT example n propositions: a solution (chromosome) is a sequence of n boolean values: {b1, … ,bn} e.g: s={t,f,f,t,t,t,f,t,f,t,f,t,f,f,t,t} where n=16

  9. A simple SAT example SAT expression with k clauses fitness f(s): number of true clauses based on solution values (k for optimal solution) e.g: suppose k = 25 and for s={t,f,f,t,t,t,f,t,f,t,f,t,f,f,t,t} and f(s) = 13

  10. time t = 0 population size: 4 f(s) s1={t,f,f,t,t,t,f,t,f,t,f,t,f,f,t,t} 13 s2={f,t,t,t,f,t,f,t,t,f,t,t,t,f,f,f} 9 s3={t,t,f,t,f,f,f,f,t,t,f,f,t,t,t,f} 15 s4={t,f,t,t,f,t,f,t,f,t,t,t,f,f,t,t} 16 time t = t0 pick starting population P(t) evaluate members of P(t) repeat create ‘children’ C(P(t)) //crossover alter C(P(t)) //mutation evaluate members of C(P(t)) pick P(t+1) from P(t) and C(P(t)) t = t+1 until t==tMax

  11. time t = t0 pick starting population P(t) evaluate members of P(t) repeat create ‘children’ C(P(t)) //crossover alter C(P(t)) //mutation evaluate members of C(P(t)) pick P(t+1) from P(t) and C(P(t)) t = t+1 until t==tMax time t = 0 s1={t,f,f,t,t,t,f,t,f,t,f,t,f,f,t,t} 13 s2={f,t,t,t,f,t,f,t,t,f,t,t,t,f,f,f} 9 s3={t,t,f,t,f,f,f,f,t,t,f,f,t,t,t,f} 15 s4={t,f,t,t,f,t,f,t,f,t,t,t,f,f,t,t} 16 s43={t,f,t,t,f,t,f,t,f,t,f,f,t,t,t,f} s34={t,t,f,t,f,f,f,f,t,t,t,t,f,f,t,t} s41={t,f,t,t,f,t,f,t,f,t,f,t,f,f,t,t} s14={t,f,f,t,t,t,f,t,f,t,t,t,f,f,t,t}

  12. time t = t0 pick starting population P(t) evaluate members of P(t) repeat create ‘children’ C(P(t)) //crossover alter C(P(t)) //mutation evaluate members of C(P(t)) pick P(t+1) from P(t) and C(P(t)) t = t+1 until t==tMax time t = 0 s1={t,f,f,t,t,t,f,t,f,t,f,t,f,f,t,t} 13 s2={f,t,t,t,f,t,f,t,t,f,t,t,t,f,f,f} 9 s3={t,t,f,t,f,f,f,f,t,t,f,f,t,t,t,f} 15 s4={t,f,t,t,f,t,f,t,f,t,t,t,f,f,t,t} 16 s43={t,f,t,t,f,t,f,t,f,t,f,f,t,t,t,f} s34={t,t,f,t,f,t,f,f,t,t,t,t,f,f,t,t} s41={t,f,t,t,f,t,f,t,f,t,f,f,f,f,t,t} s14={t,f,f,t,t,t,f,t,f,t,t,t,f,f,t,t}

  13. time t = t0 pick starting population P(t) evaluate members of P(t) repeat create ‘children’ C(P(t)) //crossover alter C(P(t)) //mutation evaluate members of C(P(t)) pick P(t+1) from P(t) and C(P(t)) t = t+1 until t==tMax time t = 0 s1={t,f,f,t,t,t,f,t,f,t,f,t,f,f,t,t} 13 s2={f,t,t,t,f,t,f,t,t,f,t,t,t,f,f,f} 9 s3={t,t,f,t,f,f,f,f,t,t,f,f,t,t,t,f} 15 s4={t,f,t,t,f,t,f,t,f,t,t,t,f,f,t,t} 16 s43={t,f,t,t,f,t,f,t,f,t,f,f,t,t,t,f}18 s34={t,t,f,t,f,t,f,f,t,t,t,t,f,f,t,t}11 s41={t,f,t,t,f,t,f,t,f,t,f,f,f,f,t,t} 19 s14={t,f,f,t,t,t,f,t,f,t,t,t,f,f,t,t} 8

  14. time t = t0 pick starting population P(t) evaluate members of P(t) repeat create ‘children’ C(P(t)) //crossover alter C(P(t)) //mutation evaluate members of C(P(t)) pick P(t+1) from P(t) and C(P(t)) t = t+1 until t==tMax time t = 1 s1={t,f,f,t,t,t,f,t,f,t,f,t,f,f,t,t} 13 s2={f,t,t,t,f,t,f,t,t,f,t,t,t,f,f,f} 9 s3={t,t,f,t,f,f,f,f,t,t,f,f,t,t,t,f} 15 s4={t,f,t,t,f,t,f,t,f,t,t,t,f,f,t,t} 16 s43={t,f,t,t,f,t,f,t,f,t,f,f,t,t,t,f}18 s34={t,t,f,t,f,t,f,f,t,t,t,t,f,f,t,t}11 s41={t,f,t,t,f,t,f,t,f,t,f,f,f,f,t,t} 19 s14={t,f,f,t,t,t,f,t,f,t,t,t,f,f,t,t} 8

  15. time t = 1 population size: 4 f(s) s1={t,f,t,t,f,t,f,t,f,t,f,f,t,t,t,f}18 s2={t,f,t,t,f,t,f,t,f,t,f,f,f,f,t,t} 19 s3={t,t,f,t,f,f,f,f,t,t,f,f,t,t,t,f} 15 s4={t,f,t,t,f,t,f,t,f,t,t,t,f,f,t,t} 16 time t = t0 pick starting population P(t) evaluate members of P(t) repeat create ‘children’ C(P(t)) //crossover alter C(P(t)) //mutation evaluate members of C(P(t)) pick P(t+1) from P(t) and C(P(t)) t = t+1 until t==tMax

  16. time t = 1 population size: 4 f(s) s1={t,f,t,t,f,t,f,t,f,t,f,f,t,t,t,f}18 s2={t,f,t,t,f,t,f,t,f,t,f,f,f,f,t,t} 19 s3={t,t,f,t,f,f,f,f,t,t,f,f,t,t,t,f} 15 s4={t,f,t,t,f,t,f,t,f,t,t,t,f,f,t,t} 16 Notes: • successful solution has ‘dominated’ • local optimum if genetic variety is lost

  17. Independence of components if components (variables) are not independent, crossover may fail • solutions: • avoid variation that combines parents!! • redefine crossover example: TSP

  18. Genetic algorithm for TSP representation - chromosome: • A G D B H C F E J I - 10 city tours • F E H D A J G I C B crossover: • A G D B A J G I C B - nottours • F E H D H C F E J I • strategy: • avoid crossover (GA has competition but individual variation) • revise crossover (usually tradeoffs)

  19. Example revised crossover (p.147-8) • select first city from parent at random • continue selecting at random • if a repeat city, select from other parent • if also a repeat, select random new city A G D B H C F E J I F E H D A J G I C B child: A E D D A C G E C B B H I J I F • more costly crossover • how much is “inherited”? -absolute position -relative order -adjacency

  20. Other examples ofrevised crossovers in TSP • double cut A G D B H C F E J I F E H D A J G I C B take midsection from one parent, copy others in order from second parent B H C F E D A J G I D A J G B H C F E I

  21. Other examples ofrevised crossovers in TSP • transform to ordinal representation A D B C F E -> 131121 F D E B C A->644221 apply normal crossover and restore 134221 A D F C E B 641121 F D A B E C

  22. M&F’s model of GA orEvolutionary Algorithm Five aspects of specification • representation (e.g., set of variable values) • initial population (e.g., random) • evaluation function ( e.g., fitness) • selection procedure (next generation pop.) • random variation operators(e.g., crossover, mutation)

  23. Evolutionary algorithms M&F, p.151 procedure evolutionary algorithm begin t<-0 initialize P(t) evaluate P(t) while (not termination-condition) do begin t <- t+1 select P(t) from P(t-1) alter P(t) evaluate P(t) end end p. 181 x(t+1) = s(v(x(t))) where x - populationv - variation ops - selection op

More Related