Intelligent Computing — Chapter 3 — Evolutionary Computation. 进化计算. 进化计算是通过模拟自然界中生物进化机制进行搜索的一类算法。. 进化计算的主流. The best known algorithms in this class include: Genetic Algorithms ( GA ) , developed by Dr. Holland.
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.
进化计算的主流 • The best known algorithms in this class include: • Genetic Algorithms (GA), developed by Dr. Holland. Holland, J.: Adaptation in Natural and Artificial Systems, University of Michigan Press, Ann Arbor, MI, 1975; MIT Press, Cambridge, MA, 1992. Goldberg, D.: Genetic Algorithms in Search, Optimization and Machine Learning, Addison-Wesley, Reading, MA, 1989. • Evolution Strategies (ES), developed by Dr. Rechenberg and Dr. Schwefel. Rechenberg, I.: Evolution strategie: Optimierung technischer Systeme nach Prinzipien der biologischen Evolution, Frommann-Holzboog, 1973. Schwefel, H.: Evolution and Optimum Seeking, John Wiley & Sons, 1995. • Evolutionary Programming (EP), developed by Dr. Fogel. Fogel, L. A. Owens & M. Walsh: Artificial Intelligence through Simulated Evolution, John Wiley & Sons, 1966. • Genetic Programming (GP), developed by Dr. Koza. Koza, J. R.: Genetic Programming, MIT Press, 1992. Koza, J. R.: Genetic Programming II, MIT Press, 1994.
发展历史 (2) 成长期(70年代中期至80年代末期) •1975年,J.H.Holland教授的专著《自然界和人工系统的适应性(Adaptation in Natural and Artificial System)》正式出版,全面地介绍了遗传算法,人们常常把这一事件视作遗传算法问世的标志, Holland也被视作遗传算法的创始人。 • 1975年,De.Jong在其博士论文中结合模式定理进行了大量的纯数值函数优化计算实验,树立了遗传算法的工作框架,得到了一些重要且具有指导意义的结论。
发展历史 • 1985年,作为Holland的学生,D.E.Goldberg博士出版专著《遗传算法——搜索、优化及机器学习(Genetic Algorithms——in Search,Optimization and Machine Learning)》,全面、系统地介绍遗传算法,使这一技术得到普及与推广。该书被人们视为遗传算法的教科书。 • 1985年,在美国举行第一届遗传算法国际学术会议(International Conference on Genetic Algorithms,简称ICGA),与会者交流运用遗传算法的经验。随后, 1987,1989,1991,1993,l995及l997年,每2年左右都举行一次这种会议。
发展历史 • 1987年,美国D.Lawrence总结人们长期从事遗传算法的经验,公开出版《遗传算法和模拟退火(Genetic Algorithm and Simulated Annealing)》一书,以论文集形式用大量实例介绍遗传算法。
发展历史 (3)发展期(90年代以后) 90年代,遗传算法不断地向广度和深度发展。 • 1991年,D.Lawrence出版《遗传算法手册(Handbook of Genetic Algorithms )一书,详尽地介绍遗传算法的工作细节。
发展历史 • 1992年,Koza出版专著《遗传规划——应用自然选择法则的计算机程序设计(Genetic Programming:on the Programming of Computer by Means of Natural Selection)》,该书全面介绍了遗传规划的原理及应用实例,标明遗传规划己成为进化算法的一个重要分支。Koza本人也被视作遗传规划的奠基人。
发展历史 • 1994年,Koza又出版第二部专著《遗传规划Ⅱ:可再用程序的自动发现(Genetic Programming Ⅱ:Automatic Discovery of Reusable Programs)》,提出自动定义函数的新概念,在遗传规划中引入子程序的新技术。 •同年,K.E.Kinnear主编《遗传规划进展(Advances in Genetic Programming)》,汇集许多研究工作者有关应用遗传规划的经验和技术。
发展历史 • 1996年 Z.Michalewicz的专著Genetic Algorithms + Data Structures = Evolution Programs深入讨论了遗传算法的各种专门问题。 •同年,T.Back的专著Evolutionary Algorithms in Theory and Practice: Evolution Strategies, Evolutionary Programming, Genetic Algorithms深入阐明进化算法的许多理论问题。
General Structure of Genetic Algorithms • In general, a GA has five basic components, as summarized by Michalewicz. Michalewicz,Z.: Genetic Algorithm + Data Structures = Evolution Programs. 3rd ed., New York: Springer-Verlag, 1996. • A genetic representation of potential solutions to the problem. • A way to create a population (an initial set of potential solutions). • An evaluation function rating solutions in terms of their fitness. • Genetic operators that alter the genetic composition of offspring (selection, crossover,mutation, etc.). • Parameter values that genetic algorithm uses (population size, probabilities of applying genetic operators, etc.).
General Structure of Genetic Algorithms • Genetic Representation andInitialization: • The genetic algorithm maintains a populationP(t)of chromosomesor individuals vk(t), k=1, 2, …, popSize for generation t. • Each chromosome represents a potentialsolution to the problem at hand. • Evaluation: • Each chromosome is evaluated to give somemeasure of its fitnesseval(vk). • Genetic Operators: • Some chromosomes undergo stochastic transformations by means ofgenetic operators to form new chromosomes, i.e.,offspring. • There are two kinds of transformation: • Crossover, which creates new chromosomes by combining parts from two chromosomes. • Mutation, which createsnew chromosomes by making changes in a singlechromosome. • New chromosomes, calledoffspringC(t), are then evaluated. • Selection: • A new population is formed by selectingthemore fit chromosomesfrom the parent population and the offspringpopulation. • Best solution: • After several generations, the algorithmconverges to the best chromosome, which hopefully representsan optimal or suboptimal solution to the problem.
General Structure of Genetic Algorithms Gen, M. & R. Cheng: Genetic Algorithms and Engineering Design, John Wiley, New York, 1997. crossover encoding CC(t) Initial solutions t 0P(t) offspring start chromosome mutation CM(t) offspring selection N new population termination condition? decoding P(t) + C(t) solutions candidates Y roulette wheel stop fitness computation best solution evaluation
Procedure of Simple GA procedure: Simple GA input: GA parameters output: best solution begin t 0; // t: generation number initialize P(t) by encoding routine; // P(t): population of chromosomes fitness eval(P) by decoding routine; while (not termination condition) do crossoverP(t) to yield C(t); // C(t): offspring mutationP(t) to yield C(t); fitness eval(C) by decoding routine; selectP(t+1) from P(t)and C(t); t t+1; end output best solution; end
Major Advantages • Generally, algorithm for solving optimization problems is a sequence of computational steps which asymptotically converge to optimal solution. • Most of classical optimization methods generate a deterministic sequence of computation based on the gradient or higher order derivatives of objective function. • The methods are applied to a single point in the search space. • The point is then improved along the deepest descending direction gradually through iterations. • This point-to-point approach takes the danger of falling in local optima. • Conventional Method (point-to-point approach) Conventional Method start initial single point improvement (problem-specific) termination condition? No Yes stop
Major Advantages • Genetic Algorithm (population-to-population approach) • Genetic algorithms performs a multiple directional search by maintaining a population of potential solutions. • The population-to-population approach is hopeful tomake the search escape from local optima. • Population undergoes a simulated evolution:at each generation the relatively good solutions are reproduced, while the relatively bad solutions die. • Genetic algorithms use probabilistic transition rules to select someone to be reproduced and someone to die so as to guide their search toward regions of the search space with likely improvement. Genetic Algorithm start Initial population initial point initial point ... initial point improvement (problem-independent) termination condition? No Yes stop
Major Advantages f(x) global optimum local optimum local optimum local optimum Fitness x1 x3 x4 x2 x5 0 x Search space • Random Search + Directed Search max f (x) s. t. 0 x ub
Major Advantages • Example of Genetic Algorithm for Unconstrained Numerical Optimization (Michalewicz, 1996)
Major Advantages • Genetic algorithms have received considerable attention regarding their potential as a novel optimization technique. There are three major advantages when applying genetic algorithms to optimization problems. • Genetic algorithms do not have much mathematical requirements about the optimization problems. • Due to their evolutionary nature, genetic algorithms will search for solutions without regard to the specific inner workings of the problem. • Genetic algorithms can handle any kind of objective functions and any kind of constraints, i.e., linear or nonlinear, defined on discrete, continuous or mixed search spaces. • The ergodicity of evolution operators makes genetic algorithms very effective at performing global search (in probability). • The traditional approaches perform local search by a convergent stepwise procedure, which compares the values of nearby points and moves to the relative optimal points. • Global optima can be found only if the problem possesses certain convexity properties that essentially guarantee that any local optima is a global optima. • Genetic algorithms provide us a great flexibility to hybridize with domaindependent heuristics to make an efficient implementation for a specific problem.
Example with Simple Genetic Algorithms • We explain in detail about how a genetic algorithm actually works with a simple examples. • We follow the approach of implementation of genetic algorithms given by Michalewicz. • Michalewicz,Z.: Genetic Algorithm + Data Structures = Evolution Programs. 3rd ed., Springer-Verlag:New York, 1996. • The numerical example of unconstrained optimization problem is given as follows: max f (x1, x2) = 21.5 + x1·sin(4px1) + x2·sin(20px2) s. t. -3.0 £ x1 £ 12.1 4.1 £ x2 £ 5.8
Example with Simple Genetic Algorithms max f (x1, x2) = 21.5 + x1·sin(4px1) + x2·sin(20px2) s. t. -3.0 £ x1 £ 12.1 4.1 £ x2 £ 5.8 by Mathematica 4.1 f = 21.5 + x1 Sin [ 4 Pi x1 ] + x2 Sin [ 20 Pi x2 ]; Plot3D[f, {x1, -3, 12.1}, {x2, 4.1, 5.8}, PlotPoints ->19, AxesLabel -> {x1, x2, “f(x1, x2)”}];
Representation • Binary String Representation • The domain of xjis [aj, bj] and the required precision is four places after the decimal point. • The precision requirement implies that the range of domain of each variable should be divided into at least (bj - aj )104size ranges. • The required bits (denoted with mj) for a variable is calculated as follows: • The mappingfrom a binary string to a real number for variable xj is completed as follows: