嘺啹䞖濘(GA)滇婔䓉劇埏嚟䔇嚻寡濘垄滇锔誺婉䇞垔䔇锟橺抩䘵誕臯淉嘩㔗嚻寡閞鵻䔇埇脘蓼䔇镖劽赆螴婺滇婻嘷䂇潊䔇䓉䆴㔗婔婻婻嘷凹垄䔇䯇嵄䔇锗庫䘋庥䫌垄䔇锗庫攓臘䴺㔗
婔婻婻嘷婘抩䘵䷺閘麯䔇埗䙓䬷䫘昷謾嘷臘䴺(垂鍙婪滇婔喖庖严婾)㔗婔婻嘺啹滇昷謾嘷䔇婔婻䬺枕嘺啹滇赆嚻寡䔇剘婻埗昄䔇䚡乕㔗凹婔婻嘺啹䔇噩傋䔇䚡乕埇傖滇庯誕彽潡昘昄㔗
锔誺傪䩘誕寡誺䘋䔇麉䂇㔕埻嚗㔕锬拷欆彄桄婔傼䔇抩䘵䗹垄傸䔇广庺锗庫攓襕懫垄傸䔇䖡噽喘㔗
湹扞 comp.ai.genetic FAQ婉螺支幽嚺脄 GA 婘蓼喿婔婻閞鵻施婉滇亇锟橺抩䘵鄘婉誺傘㔗GA 嘪䫘锟橺崇䊖嘖滇䂷悩滯滆婉滇锟橺䔇(懫锟橺敘喘)㔗
Figure 48-1. 嘺啹䞖濘䔇䂷悇寡懖商
+=========================================+ |>>>>>>>>>>> Algorithm GA <<<<<<<<<<<<<<| +=========================================+ | INITIALIZE t := 0 | +=========================================+ | INITIALIZE P(t) | +=========================================+ | evaluate FITNESS of P(t) | +=========================================+ | while not STOPPING CRITERION do | | +-------------------------------------+ | | P'(t) := RECOMBINATION{P(t)} | | +-------------------------------------+ | | P''(t) := MUTATION{P'(t)} | | +-------------------------------------+ | | P(t+1) := SELECTION{P''(t) + P(t)} | | +-------------------------------------+ | | evaluate FITNESS of P''(t) | | +-------------------------------------+ | | t := t + 1 | +===+=====================================+