Application of Genetic Algorithms and Neural Networks to the .ppt
《Application of Genetic Algorithms and Neural Networks to the .ppt》由会员分享,可在线阅读,更多相关《Application of Genetic Algorithms and Neural Networks to the .ppt(77页珍藏版)》请在麦多课文档分享上搜索。
1、Application of Genetic Algorithms and Neural Networks to the Solution of Inverse Heat Conduction Problems,A TutorialKeith A. Woodbury Mechanical Engineering Department,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,2,Paper/Presentation/Programs,Not on the CD Available from www.me.ua.edu/inverse,May 28
2、, 2002,4th Int. Conf. Inv. Probs. Eng.,3,Overview,Genetic Algorithms What are they? How do they work? Application to simple parameter estimation Application to Boundary Inverse Heat Conduction Problem,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,4,Overview,Neural Networks What are they? How do they
3、work? Application to simple parameter estimation Discussion of boundary inverse heat conduction problem,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,5,MATLAB,Integrated environment for computation and visualization of results Simple programming language Optimized algorithms Add-in toolbox for Geneti
4、c Algorithms,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,6,Genetic Algorithms,What are they? GAs perform a random search of a defined N-dimensional solution space GAs mimic processes in nature that led to evolution of higher organisms Natural selection (“survival of the fittest”) Reproduction Cross
5、over Mutation GAs do not require any gradient information and therefore may be suitable for nonlinear problems,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,7,Genetic Algorithms,How do they work? A population of genes is evaluated using a specified fitness measure The best members of the population a
6、re selected for reproduction to form the next generation. The new population is related to the old one in a particular way Random mutations occur to introduce new characteristics into the new generation,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,8,Genetic Algorithms,Rely heavily on random processe
7、s A random number generator will be called thousands of times during a simulation Searches are inherently computationally intensive Usually will find the global max/min within the specified search domain,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,9,Genetic Algorithms,Basic scheme (1)Initialize pop
8、ulation (2)evaluate fitness of each member (3)reproduce with fittest members (4)introduce random mutations in new generation Continue (2)-(3)-(4) until prespecified number of generations are complete,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,10,Role of Forward Solver,Provide evaluations of the ca
9、ndidates in the population Similar to the role in conventional inverse problem,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,11,Elitism,Keep the best members of a generation to ensure that their characteristics continue to influence subsequent generations,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,
10、12,Encoding,Population stored as coded “genes” Binary Encoding Represents data as strings of binary numbers Useful for certain GA operations (e.g., crossover) Real number encoding Represent data as arrays of real numbers Useful for engineering problems,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,13
11、,Binary Encoding Crossover Reproduction,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,14,Binary Encoding,Mutation Generate a random number for each “chromosome” (bit); If the random number is greater than a “mutation threshold” selected before the simulation, then flip the bit,May 28, 2002,4th Int. C
12、onf. Inv. Probs. Eng.,15,Real Number Encoding,Genes stored as arrays of real numbers Parents selected by sorting population best to worst and taking the top “Nbest” for random reproduction,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,16,Real Number Encoding,Reproduction Weighted average of the paren
13、t arrays: Ci = wAi + (1-w)*Bi where w is a random number 0 w 1 If sequence of arrays are relevant, use a crosover-like scheme on the children,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,17,Real Number Encoding,Mutation If mutation threshold is passed, replace the entire array with a randomly genera
14、ted one Introduces large changes into population,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,18,Real Number Encoding,Creep If a “creep threshold” is passed, scale the member of the population with Ci = ( 1 + w )*Ci where w is a random number in the range 0 w wmax. Both the creep threshold and wmax
15、must be specified before the simulation begins Introduces small scale changes into population,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,19,Simple GA Example,Given two or more points that define a line, determine the “best” value of the intercept b and the slope m Use a least squares criterion to
16、measure fitness:,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,20,Make up some data, b = 1; m = 2; xvals = 1 2 3 4 5; yvals = b*ones(1,5) + m * xvals yvals =3 5 7 9 11,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,21,Parameters,Npop number of members in population (low, high) real number pair specifyi
17、ng the domain of the search space Nbest number of the best members to use for reproduction at each new generation,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,22,Parameters,Ngen total number of generations to produce Mut_chance mutation threshold Creep_chance creep threshold Creep_amount parameter w
18、max,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,23,Parameters,Npop = 100 (low, high) = (-5, 5) Nbest = 10 Ngen = 100,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,24,SimpleGA Results (exact data),May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,25,SimpleGA Convergence History,May 28, 2002,4th Int. Conf.
19、 Inv. Probs. Eng.,26,SimpleGA Results (1% noise),May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,27,SimpleGA Results (10% noise),May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,28,SimpleGA 10% noise,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,29,Heat function estimation,Each member of population is an ar
20、ray of Nunknown values representing the piecewise constant heat flux components Discrete Duhamels Summation used to compute the response of the 1-D domain,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,30,Make up some data,Use Duhamels summation with t = 0.001 Assume classic triangular heat flux,May 2
21、8, 2002,4th Int. Conf. Inv. Probs. Eng.,31,“Data”,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,32,Two data sets,“Easy” Problem large t Choose every third point from the generated set Harder Problem small t Use all the data from the generated set,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,33,GA pro
22、gram modifications,Let Ngen, mut_chance, creep_chance, and creep_amount be vectors Facilitates dynamic strategy Example: Ngen = 100 200 mut_chance = 0.7 0.5 means let mut_chance = 0.7 for 100 generations and then let mut_chance = 0.5 until 200 generations,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.
23、,34,GA Program Modifications,After completion of each pass of the Ngen array, redefine (low,high) based on (min,max) of the best member of the population Nelite = 5,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,35,“Easy” Problem,t = 0.18 First try, let Npop = 100 (low, high) = (-1, 1) Nbest = 10 Ngen
24、 = 100,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,36,“Easy” Problem,Npop = 100, Nbest = 10, Ngen = 100,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,37,“Easy” Problem,Npop = 100, Nbest = 10, Ngen = 100,May 28, 2002,4th Int. Conf. Inv. Probs. Eng.,38,“Easy” Problem,Npop = 100, Nbest = 10, Ngen = 100
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- APPLICATIONOFGENETICALGORITHMSANDNEURALNETWORKSTOTHEPPT

链接地址:http://www.mydoc123.com/p-378493.html