外文翻译遗传算法复习课程.docx

上传人:b****5 文档编号:11544372 上传时间:2023-03-19 格式:DOCX 页数:10 大小:66.83KB
下载 相关 举报
外文翻译遗传算法复习课程.docx_第1页
第1页 / 共10页
外文翻译遗传算法复习课程.docx_第2页
第2页 / 共10页
外文翻译遗传算法复习课程.docx_第3页
第3页 / 共10页
外文翻译遗传算法复习课程.docx_第4页
第4页 / 共10页
外文翻译遗传算法复习课程.docx_第5页
第5页 / 共10页
点击查看更多>>
下载资源
资源描述

外文翻译遗传算法复习课程.docx

《外文翻译遗传算法复习课程.docx》由会员分享,可在线阅读,更多相关《外文翻译遗传算法复习课程.docx(10页珍藏版)》请在冰豆网上搜索。

外文翻译遗传算法复习课程.docx

外文翻译遗传算法复习课程

Whatisageneticalgorithm?

●Methodsofrepresentation

●Methodsofselection

●Methodsofchange

●Otherproblem-solvingtechniques

Conciselystated,ageneticalgorithm(orGAforshort)isaprogrammingtechniquethatmimicsbiologicalevolutionasaproblem-solvingstrategy.Givenaspecificproblemtosolve,theinputtotheGAisasetofpotentialsolutionstothatproblem,encodedinsomefashion,andametriccalledafitnessfunctionthatallowseachcandidatetobequantitativelyevaluated.Thesecandidatesmaybesolutionsalreadyknowntowork,withtheaimoftheGAbeingtoimprovethem,butmoreoftentheyaregeneratedatrandom.

TheGAthenevaluateseachcandidateaccordingtothefitnessfunction.Inapoolofrandomlygeneratedcandidates,ofcourse,mostwillnotworkatall,andthesewillbedeleted.However,purelybychance,afewmayholdpromise-theymayshowactivity,evenifonlyweakandimperfectactivity,towardsolvingtheproblem.

Thesepromisingcandidatesarekeptandallowedtoreproduce.Multiplecopiesaremadeofthem,butthecopiesarenotperfect;randomchangesareintroducedduringthecopyingprocess.Thesedigitaloffspringthengoontothenextgeneration,forminganewpoolofcandidatesolutions,andaresubjectedtoasecondroundoffitnessevaluation.Thosecandidatesolutionswhichwereworsened,ormadenobetter,bythechangestotheircodeareagaindeleted;butagain,purelybychance,therandomvariationsintroducedintothepopulationmayhaveimprovedsomeindividuals,makingthemintobetter,morecompleteormoreefficientsolutionstotheproblemathand.Againthesewinningindividualsareselectedandcopiedoverintothenextgenerationwithrandomchanges,andtheprocessrepeats.Theexpectationisthattheaveragefitnessofthepopulationwillincreaseeachround,andsobyrepeatingthisprocessforhundredsorthousandsofrounds,verygoodsolutionstotheproblemcanbediscovered.

Asastonishingandcounterintuitiveasitmayseemtosome,geneticalgorithmshaveproventobeanenormouslypowerfulandsuccessfulproblem-solvingstrategy,dramaticallydemonstratingthepowerofevolutionaryprinciples.Geneticalgorithmshavebeenusedinawidevarietyoffieldstoevolvesolutionstoproblemsasdifficultasormoredifficultthanthosefacedbyhumandesigners.Moreover,thesolutionstheycomeupwithareoftenmoreefficient,moreelegant,ormorecomplexthananythingcomparableahumanengineerwouldproduce.Insomecases,geneticalgorithmshavecomeupwithsolutionsthatbaffletheprogrammerswhowrotethealgorithmsinthefirstplace!

Methodsofrepresentation

Beforeageneticalgorithmcanbeputtoworkonanyproblem,amethodisneededtoencodepotentialsolutionstothatprobleminaformthatacomputercanprocess.Onecommonapproachistoencodesolutionsasbinarystrings:

sequencesof1'sand0's,wherethedigitateachpositionrepresentsthevalueofsomeaspectofthesolution.Another,similarapproachistoencodesolutionsasarraysofintegersordecimalnumbers,witheachpositionagainrepresentingsomeparticularaspectofthesolution.Thisapproachallowsforgreaterprecisionandcomplexitythanthecomparativelyrestrictedmethodofusingbinarynumbersonlyandoften"isintuitivelyclosertotheproblemspace"(FlemingandPurshouse2002,p.1228).

Thistechniquewasused,forexample,intheworkofSteffenSchulze-Kremer,whowroteageneticalgorithmtopredictthethree-dimensionalstructureofaproteinbasedonthesequenceofaminoacidsthatgointoit(Mitchell1996,p.62).Schulze-Kremer'sGAusedreal-valuednumberstorepresenttheso-called"torsionangles"betweenthepeptidebondsthatconnectaminoacids.(Aproteinismadeupofasequenceofbasicbuildingblockscalledaminoacids,whicharejoinedtogetherlikethelinksinachain.Oncealltheaminoacidsarelinked,theproteinfoldsupintoacomplexthree-dimensionalshapebasedonwhichaminoacidsattracteachotherandwhichonesrepeleachother.Theshapeofaproteindeterminesitsfunction.)Geneticalgorithmsfortrainingneuralnetworksoftenusethismethodofencodingalso.

AthirdapproachistorepresentindividualsinaGAasstringsofletters,whereeachletteragainstandsforaspecificaspectofthesolution.OneexampleofthistechniqueisHiroakiKitano's"grammaticalencoding"approach,whereaGAwasputtothetaskofevolvingasimplesetofrulescalledacontext-freegrammarthatwasinturnusedtogenerateneuralnetworksforavarietyofproblems(Mitchell1996,p.74).

Thevirtueofallthreeofthesemethodsisthattheymakeiteasytodefineoperatorsthatcausetherandomchangesintheselectedcandidates:

flipa0toa1orviceversa,addorsubtractfromthevalueofanumberbyarandomlychosenamount,orchangeonelettertoanother.(SeethesectiononMethodsofchangeformoredetailaboutthegeneticoperators.)Anotherstrategy,developedprincipallybyJohnKozaofStanfordUniversityandcalledgeneticprogramming,representsprogramsasbranchingdatastructurescalledtrees(Kozaetal.2003,p.35).Inthisapproach,randomchangescanbebroughtaboutbychangingtheoperatororalteringthevalueatagivennodeinthetree,orreplacingonesubtreewithanother.

Figure1:

Threesimpleprogramtreesofthekindnormallyusedingeneticprogramming.Themathematicalexpressionthateachonerepresentsisgivenunderneath.

Itisimportanttonotethatevolutionaryalgorithmsdonotneedtorepresentcandidatesolutionsasdatastringsoffixedlength.Somedorepresenttheminthisway,butothersdonot;forexample,Kitano'sgrammaticalencodingdiscussedabovecanbeefficientlyscaledtocreatelargeandcomplexneuralnetworks,andKoza'sgeneticprogrammingtreescangrowarbitrarilylargeasnecessarytosolvewhateverproblemtheyareappliedto.

Methodsofselection

Therearemanydifferenttechniqueswhichageneticalgorithmcanusetoselecttheindividualstobecopiedoverintothenextgeneration,butlistedbelowaresomeofthemostcommonmethods.Someofthesemethodsaremutuallyexclusive,butotherscanbeandoftenareusedincombination.

Elitistselection:

Themostfitmembersofeachgenerationareguaranteedtobeselected.(MostGAsdonotusepureelitism,butinsteaduseamodifiedformwherethesinglebest,orafewofthebest,individualsfromeachgenerationarecopiedintothenextgenerationjustincasenothingbetterturnsup.)

Fitness-proportionateselection:

Morefitindividualsaremorelikely,butnotcertain,tobeselected.

Roulette-wheelselection:

Aformoffitness-proportionateselectioninwhichthechanceofanindividual'sbeingselectedisproportionaltotheamountbywhichitsfitnessisgreaterorlessthanitscompetitors'fitness.(Conceptually,thiscanberepresentedasagameofroulette-eachindividualgetsasliceofthewheel,butmorefitonesgetlargerslicesthanlessfitones.Thewheelisthenspun,andwhicheverindividual"owns"thesectiononwhichitlandseachtimeischosen.)

Scalingselection:

Astheaveragefitnessofthepopulationincreases,thestrengthoftheselectivepressurealsoincreasesandthefitnessfunctionbecomesmorediscriminating.Thismethodcanbehelpfulinmakingthebestselectionlateronwhenallindividualshaverelativelyhighfitnessandonlysmalldifferencesinfitnessdistinguishonefromanother.

Tournamentselection:

Subgroupsofindividualsarechosenfromthelargerpopulation,andmembersofeachsubgroupcompeteagainsteachother.Onlyoneindividualfromeachsubgroupischosentoreproduce.

Rankselection:

Eachindividualinthepopulationisassignedanumericalrankbasedonfitness,andselectionisbasedonthisrankingratherthanabsolutedifferencesinfitness.Theadvantageofthismethodisthatitcanpreventveryfitindividualsfromgainingdominanceearlyattheexpenseoflessfitones,whichwouldreducethepopulation'sgeneticdiversityandmighthinderattemptstofindanacceptablesolution.

Generationalselection:

Theoffspringoftheindividualsselectedfromeachgenerationbecometheentirenextgeneration.Noindividualsareretainedbetweengenerations.

Steady-stateselection:

Theoffspringoftheindividualsselectedfromeachgenerationgobackintothepre-existinggenepool,replacingsomeofthelessfitmembersofthepreviousgeneration.Someindividualsareretainedbetweengenerations.

Hierarchicalselection:

Individualsgothroughmultipleroundsofselectioneachgeneration.Lower-levelevaluationsarefasterandlessdiscriminating,whilethosethatsurvivetohigherlevelsareevaluatedmorerigorously.Theadvantageofthismethodisthatitreducesoverallcomputationtimebyusingfaster,lessselectiveevaluationtoweedoutthemajorityofindividualsthatshowlittleornopromise,andonlysubjectingthosewhosurvivethisinitialtesttomorerigorousandmorecomputationallyexpensivefitnessevaluation.

Methodsofchange

Onceselectionhaschosenfitindividuals,theymustberandomlyalteredinhopesofimprovingtheirfitnessforthenextgeneration.Therearetwobasicstrategiestoaccomplishthis.Thefirstandsimplestiscalledmutation.Justasmutationinlivingthingschangesonegenetoanother,somutationinageneticalgorithmcausessmallalterationsatsinglepointsinanindividual'scode.

Thesecondmethodiscalledcrossover,andentailschoosingtwoindividualstoswapsegmentsoftheircode,producingartificial"offspring"thatarecombinationsoftheirparents.Thisprocessisintendedtosimulatetheanalogousprocessofrecombinationthatoccurstochromosomesduringsexualreproduction.Commonformsofcrossoverinclu

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工程科技 > 材料科学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1