Professional Documents
Culture Documents
Ci 4
Ci 4
Ci 4
_1:Com~pu~t•~,.,,,.~1~,n~t°"fl""C!===-----
inologl .. In
Genetic Algorithm ~ ch
,0,11050 ,
11ogcnes1~ function as;ioc1a1cs each tOn about SOiution that
=-~
,,___
ID Introduction to Basic Tertn ' fli'"'orr 111110 1110 the given problem BCllolyp,c_,,thitt~llt A~ 1 ~ t s .
.-,iit 111 chS<' ~IS
DIJ Genetic Algorithm• .• __. opemi.zauon 10-chn1q11c based 011 the Pri
, ., 1< a -esrdi ("l&><V • d · lle1p1.
Genetic Ah:onthm (u"' t1 ucntb u,cd 10 1111 0p11111al 0r lli:'ar "l 1O'
nfl •
. I,nc clement position of a chrom050me Th
• l«tlOII II 1s reQ . . "'<lNll!iaJ IS is 1111 cfenien
0 f Gc-nct,cs nnd 1-atuntl ~ ....,_ !-C wNtld 1,~c a l1lc1tmc 10 s0I\C. h is frc 1 ge11C Ii 11
1 , the has1c "instruction5" for building 1 ,:__. ••~
I h-"lcms \\hl<h vu~•·· ·h anJ in machine lcammg.
solu110n, 10 d1 ffi rot ,,.w . quein~ (,;enc> arc -i<ne: A t ~
IIOO problem, tn l"\.'<('31\: , ol gene,. Genes may describe a J>Ossib~ lut · --&""nruns A chnimoso.oc
used tosol\-r opttmlZ3 finding the ,alu,·s of inputs in such a "a)
~ucnce so 1011 lo a ll'Qb'- na
. e solution. A gene 1s a bit strtng of arb1tn~ ,_ ~•~ •itbout IIClllall)
Optiminition - Opt1m1z.atK'CI ref~ 10 11tat !be
i,c,ng 11, . bcl .,_ ·--, ...,gila 111d can be
•n the F1g. 4. 1.3 ow. r ne locatton of.,__ •"--- _ ~u
"bcSI- output , alucs an- rttti,-rd ;1101>11 I .,...~ Ill I - • - . . - II called locus
EIIJ Terminology
11 o , o 11 , , o
I I J -
1. Individuals . Gene 1 Gene? Gone3
_,__
The !WO dlSIJJICI .,...,.ulS ID u..
..__ G" are mdi, iduals and populations. An individual
. IS I
L-:- .._.,_ .L- la!ion 15 the set of mdi, iduals current I} mvolved in these, ..... Fig. 4 1. 3 R • ~ of gone
single so,""'-., ""'"' """ popu - ...
roocss. Eadt mdhidual m die popubtion iscalled a string or chromosome, in analog) to , In 8 GA, potential h) pothese, are made up of chromosomes. 1>1uch ~ tum, tnadc ap of
~romos= ir. nawral S)~- ~ chromo>0me. \\hich is the raw 'genetic' info~tlOD genes. Practicall). in a GA, chromosomes are generally ~
111
IS bmai,
Iha! the (,A deals. . d . - llnllgS. 1
series of Is and Os. \\h1ch enotc mclu,1on or ndusKlll of partlcular llcllls lqlmCn1rd b)
0 0101 1 1010110 position in the string. A gene is a single bit \\ithin such a chromosome
-------;tBEC>tM~CCAL~PUB;zUCA;;;TKJNse;:;:e-------------
... "P-lflfusl t o , ~
• 5
f
l'h<f1
s!<NI 10 be a
ble 10 select ben,een them, smce somc comb111111011S offatn ,a1uc, 11 the
Gene p..Jd ma). be more feasible than others. Also, some sohn1011S ffll) bc 11101t robm1 than
Populabon
(Cbtt,.
) !Set of chromosomes)
lfl!IISS function . _ .
0 Allele , n is the evaluation function that ,s used to dCICllllmc the fitness of dCh
·
' The fimc» ,unc1,0 . . - cakulatm
.trocno;ome The fimess funcuon ,s problem spccifa and IISCI' defined. For ~
f:nrn ' the chromosome
. has to be first dctoded
c and the obJCCII\C funct100 h:l.s 10 bc
__.,
, · The fitnes~ not onl) .md1cate,
nilua1cd. . _hO\\ good the sol111oon is, but also ccrm.,..- 10
lioo close the chromosome is to the optimal one
Fig. ,.,.5 Chromoeomn, Gene, Allele, Population 1 . algont· hm is the ,aluc of an r.obJCCI"" timcuon 1 °'
'1oc fitness of an indi, idual in a genetic •-oded and 1hc
E.umpte
II phenotype. For calculatmg lime». the c·hromo<Orne has 10 be 111Sl bo\s good the ;olutJOO =
lhe lldlo World of genetic algonlhms is often considered to be the knapsac k problem. 1~ ttj,cti,e· function
• has to be e,aluatc d. rhc litI nrunocooh• ind1C1
this problem. thcR "0Uk! be a sei of N items "h,ch ma} or may not be includc:J in• thotf• 'I. but also corre,pond, to ho" close the chromosomc ts 10 the oi-una
1
1i "'IIIOlt diif!CUlt"' *
knapsack and these ,_ •kins "ould be rcprc~ntcd a, a binary strong (the chromosome)\ ' . . funcuon as de mite,,
~ lh, case of multi-criterion op11m11auon, the litnCSS
chanicters long. "llh each pos1110n in the siring repr~nting 8 particular 11cm and di<
posi1ional bit ( I or O. the gene) denoting "hethcr the item is included in the pt111oeubt 4'1crmine. ho" 10 det~rminc ,f
h} pothcsis or not. ' Ii lllul IH:rnenon
·,· · • • bl there is ot'\c!t • dilctnllll as . ..... 'r for oot
opt11n1za11on pro cm,. ,fa s0IUll(lll ,s "'"''
101
Ill: 11\ion is b..'ttcr than another \\'bat should be done PIOR £ton, the definouQn of a
• Population - All of the proposed solutions 10 the knnpsad, problem of the airrcd
generation (Iteration 01 the algorithm/ llttrion but \\o~ for another? Rut here, -~- u.-. uouble C01DCS
GA to resol,e rt. 1f someurncs •
'btticr• SOiution rather than from ho\\ to ,mph:mcnt 1
$0
_,
IUhM~ &IC rcpn.~1L" •n. ,,.~ "h, \. h 1.--an ~~ ca,11) understood i.llld rnanipul•t" d 'th,
C U.sing I
~ S)-slem
10.P~
• l'bcnocypc •• the popubllon m !he actual real ""'Id solutio_n space in "hich ,olutions ~
rcpr=ed ,n 1 ,.~ me, an, r,pr,;cnttd in real \\orld s11uauons.
•
11 OecodJnt and encoding
For simple prob!=. the phrnocypc and genol) pe spaces are the same. Ho"ever,'" mo;i~
Oil Advantages of GAs •
a,e ,arious advantages \\h1ch ha,c made them 111UDC11Selv _._
the case,. cbe phenotype and gcnol)pc spaces are different. Decoding is a process~ , GAS h • ,-,...- Thtie 111tmdc.
transfomung a sotuuon from lhe g.-nol)pe to the phenotype space, ,-hile encoding ()oes 001 require an) deri'8ti,e informauon (\\hich Ill&) DOt bt" lable for....,.. IUl-
111 0
proccs> oftransfonwng from lhe phcnol)pe to genotype space. Decoding should be fast~ •orld problems). •
11 is earned out repeated!) ma GA during the fitness value calculation. Is faster and more efficient as compared to the tradiliortil IIlC!hals.
0
• For example, consider the O I Knapsac~ problem. The phenol) pe space consist> ,r Has vel) good parallel capabilities
0
solutions "1uch JUSI cont:1in the uern number.. of the items lo be picked. Ho\\e,er. in tho Optimizes both continuous and dtscn:tc functions and also mullHlbjccu,c proble,m.
0
gcnot)pc spaced can be represented as a bin"') string of length n (where n is the number of
o Pro, ides a list of "good" solutions and not just a smglc !OIUllal.
11CimJ. AO at pos111on" represents that x• item is picked \\hile a I represents the re1e"'
O Ah,a)S gets an anS\\CrtO the problem. "h!<:h gets bcuct O\Cf the tune
T1us 1s • case ,.bcre gt'IIOl)pc and phenocypc spaces are different.
o Lseful "hen the ,can:h ,pace i, ,el') large and tllCR arc a 1artc nlll!lbtt of pmmtttn
m,ol,ed.
Encoding
o It ha,, excellent parallel capabilities.
0 It can optimi,e , ari,,u, probkms ,uch a s ~ functlOIIS. multi-objcctl\C problems,
Genotype apace
(Computaban apace) and continuou, fun,tton,
1°1n 111 I riH ~ h pro, idc, ans\\crs that impro,e o,cr time
0 \ genetic algorithm doe, n,,t need Jeri,ati,e infonnatton.
tllJ Lhrtltations of GAs
•
' 1•le an,, t cc hntquc, • • · Tocse mcludc •
G,\s also suffer from a fe" ltmnauons. .
G'\ . .h simple and [or "htch
flt. 4 1.8 EIICOcllng llld o.cocSlng procn1 .' arc not ,u1tcJ for all problems. especiall~ problcmS "htc arc
111,rl\ati,. · r . .
----.__ < "'"innntton "a,a,lablc.
TECHNICAL PIJBuCA ~ . -
'"""'-.., urHhtwl kx knoo.fedge TECHNICAL PU8UCA~-#lup"'11«1Df.....-
.,.._~-- -- cg
~~-- 4_;!_ ~ Ro
~,.;-- ,Algorithm • lnlUalizatlon ~
- OJ r ,toe., .. ,-.Jue ,, 1,,.akulattd f'"('J'Cttnth \\ht1,.h 1111ght t,..• c,101p111,,ta(lfl;1fl) ' " - ~ ; ( ' / nt!IC ' P••-n~lio
..d G• integer, Permutation), Population ilAOd ,.. l81nary. Flootin
,..:,me- probl('ffl-<,. lrit IP potn 1, •la Q
o o~m,F st<,--taa.<lit,~ th..Yf' are net tz:ua,a;nfC'C' ,,nth~ optnnaht) ,,r the qua lit) of U1e
111•11zat1on
0
.J .-m'!r'llTh ihc G \ ma~ n0t c<lO\~r'Bc 10 the <'Pllnrnl 501
If nor amp.Jc:-rnenh;u ,... - r - ~
.
Ullnn
' ~ 1n al~ori1hm ,tans by gcneratms an inttial
o (Jk-, •~ [)\.,t cf'fc.'Cll'~ in ,,oh mg s,mpk problems. , 11" i'":';".u
th< probable S<>luttoM to the s,,cn pro:,':""' Th,. lllltial \lOl>lllat..,
· J:fllcnt:u.on ma, ino~c: the algorithm comcrgc 10 8 "1"'''" . is the use of random binary
r,,,,oo . stnngs. - P<l\lUlar ~ " ' 1
Of
o L,t.:L, l°'f pn,pcr unp c.: • \olu1inn 1
,,.,iop11m&I ,..__ ifl1ttJ . dividual is the solution to the gnen ,_.__s.,_
each ,n ,..,.,..,,,_ An iod",..__,
j,. not ~uarante..."'!t,
1I<" . db} a set of parameters called Genn r___ ...., ...,,..., ., ,.
c The qualtl) of the final ..,,Juuon ' ,wriLe . . • ~~ 1ft: combined
,ltJI' h mosomcs . ..,h,ch ,. the sohnion to the problcn, """• 1111n, 11111
o RepdrhH' cakulanon of fimc.· .. -. , alues ma) make some problems lo " ~
computational .hallcn!!<'
r'"erste' ro
A, lolololol®) Geno
-
ffJ GA Requirements
• In order to appl) a gcneuc al~rithm, belo" aspects are required to be studi<d and ct.,,rltd
A:z II I , I I , I ,I ,11
1 1
a..mooc...
tnd" !dual is rcpre,,ented
Jl,c "ll) A1I, I 11 1°1 1 1•I
0
o Process and mtthod of tndi, ,dual's fitness calculation.
o S.,lt'\.'"IKlD and critena applied for indi, iduals breeding. ~ I ,1 1 1°1 1 1,1°1 Poca-.
1
o Pr>..:essofindi,,duals crossed--0,er
Fig. 4.3. 1 lnttiallzation
c Process c,f indi, ,dual mutauon.
0 Inc SIU of the popuW1on , Th<ie are two primal') methods to miuali,c a population in a GA The) IR_
• ~f<>St of these aspects h»e problem-specific solutions. The population size and ,arw.ico, solutions..
aspecu are d,scu<Sed funher 0 Heuristic initialization - Populate the innial populaoon IISID& a \no,>n hcurtuic fo, die
• The sir• oftht population ,s h1ghl) ,ariablc. The larger the population. the more possi!lr problem.
so!uuons there are, "hich muns that there 1s more ,ariation in the population \anatcJ • 11 has bten obsc" cd that the en11re population should not be millalized USIDg a heul151lC as
means that d 1s mon: !rlel) that good S(llutions \\ill be created. Therefore, ncan result in the populauon ha, ing similar solutioos and \tty lin!t dl\'mR). h has been
101110
- The populauon 5hould be as large as possible. "ptrimcntall) ob,e" s-d that 1he random solutions are I.he ooes 10 dri\c the poi,ulat
• The limmng factor is, of course. the running time of the algorithm.
"!'11malil). Therefore, "ilh heuristic initialilation- ooc JUSI seeds lhc poi,ulatioa ,.,lh •
couple of good ,olution,. filling up 1he rest 'Aith random soluuons rather than filling the
· lhe larger the population, the longer the algorithm takes to run.
"'""' population "ith heuri,1i, based solu1JOM
• l1 •- I . . . ••- onh affects the initial
'""' a so been obsc" cd th al heuristic 1mt1ahn111on in some c-~ •
lftn · · . • • d' 0 f the solutlOIIS 'Ahich lead Ill
'" of the population but in the end. 11 1s 1he i\C!5tt)
"Ptimalit)
EIIJ Representation
, . ,o
~
,"1
d,,c~
,.,.ir~ -
~pmplc of th,. rcprcscntatJon ,. "~
h•• 10 take a lour of all lhc
----
•1111.
• 11
ft1\te\1
,.___
- - -- ~
mg Sa'°1rnan Pr
-c~
--=
am Blnaty Rep-,,tatlonl , 1 1~m•" . ••lie>.
rl" <' h. , 18 r11ng c oty I he t<Jlal distance uf the
•11n Cobian (l\p
"'I tath tll) <'<let~- l In th,.
~10' • . ., lourha,1o 'J . . . . Ind
• Th,, i~ one l,fthc simplest and nwst ""td) u,cJ rcprc~cnt.ltion,; 111 (,A,. 1"' f'P ,,. naiurolly an orucrrng or J)Cnntrtu be"''"""""' <otne
rep"""'11Allon the E"''"'''J>C ronsosts ,,f hit string,.
1
~
In h11 ~
,11~
r""'"""o
.
1011 cf au Ibo
n repre<entalron makes sc:nsc for th
IS J)rObta,,
1110 t<Jlut
<Ille$ Ind 1""' IOI\ tu
Ion, °"Ilg
• hlr '!()me pn:ml"'"'lll" "hen rhc sc.,lutton ~rac~ \'.,1n!-!1s1s of Bo(>lcon decision \I nr1ab1c
""· lhc hin•I) reprcsrnllll""' 1, naru111I 1•kc for c,amplc lhc 011 Knnpsacl Pro ni,
I 1je\ej,1,,., I I G .
the!~ are n n~m,. \\"t" ~an rern:..cnl a -.olulll"in h) a binal) siring of n element ~
.di population
1,.•k9fftt.-nr fC'II~ "bt1h1.-r the item , ,, p1i:h-d (I) or not (0). '· "here the,'
IP'" . n is a sub"'t of solution, rn lhe current
popu1•110 . ~1011 It can .,••
' mosomc,. There an: =•ml lhi""" to .._ • - ..,., be rltf'llled as
/ojol jol 1111 jojol 1j of chrO_
pOP"1811on •
••.,.. "" ...,,. ID IIUnd """" • lid
dQ!rng "'llh Cu\
Th• diversit) of the population should be lll3l!ltained
• for other problems. ,pcc,ticall~ tho~ dealing" ith numbers. "e can represeni lhe n 0
aiure convergence .t!lm.nc n mig!u lead 10
"llh their brllAI) n,pm;cnr:ition. The problem "ilh 1his kind of encoding is ihe din; U!nbo, pre m
ha,,, different ,ign,ticance and therefore mutation and crosso, er operator, : bt Th• papula1ion size sho_uld not be kept \CT) 1_
0 -~~ as II am - •GA
undesired consequences. Thrs can ~ re,-ol,ed to some exlenl by using Gray Codia Ii,,, "hile a smaller population might not be enough for I gOOd to sio.. do,,,11,
change m one bu does no1 ha,e a ma»ive efTec1 on the solu1ion. g,., 1 opiimal popula1ion size needs to be decided bi, tnal and errorlalllg pool Thcftfoct 111
The papulation is usual!) defined as a t"o dtmensiona) of
' . lln3) • •ae l)<)l)Ubtion. me
chromosome size. 1.
• I or problems \\here one wanls 10 define the genes using continuous rather ihan discm,
► population models
, ariables. the real ,alued representauon o; the most natural. The precision of lh<1e"'
, There are two population models" idtl) in use,
us-d or floaung pornt numbers 1s ho"e1er limiled to the computer,
I. Steady state
j os / 02 / 06 / oa / 01 / 04 ! ! I ! oe I
03 02 01 • In s1eady state GA. one can generate one or l\\o off-5pnllgS mC3Cb llttlllOll and the)
replace one or t\\ o indi, iduab from lhe popubtioa. A 11cad) state GA is also ll10\\n as
Incremental GA.
ulued genes, "c cannot al,.11ys limit the solution space to binal') ')es' no ..,
t Generational
le:, if "e \\ant to encode the four distances - North, South, East and West. ~,c,
' In a generational model, one can generate "n" off-spnngs. "here n is the: populat101l
em as /0. I. 2, J). In such cases, rntegcrreprcsentation is desirable.
me. and the entire population is ~placed b) thc nc" 1lllC II lht end ofthc itmiion.
' l'he titne,~ Function ,impl) defined is a function "hich tu.es a candidale sollllion to
th e problem a, mput anJ produce, as outpUI ho" "frt" the. ho-. "good" the: solution is
iiiih re,pcct to the pr~,blcm in consilkralion.
· Permutation RepreNlfalion
' Calculation of fitness ,aluc is done repeated!) in• GA and thcRfOl'C it should be
is represented by an order of clement>. In such ell' sumc · . I can 111>ersely affect • GA
tent 1) fa,1. A ,lo\\ computauon of the fi111C$S w ue
pcnnutation representation is the mos1 5Uited
nd
a maJ..c it e,ccptionall) slo".
• The mutation openuor mS<.'rts random genes in the offspring (nc" child) 1 individuals (selection) and creation of nev. 011es from the of WIiie
oma~ . ~ Sllnl\an (Cl'OSSO\cr or
the dhers11) m the population. It can be done by flipping some b-,1, In ill, muta1ion). This laner ,cature bnngs to an lllCrQse ·•·
m ""' l\fflot quail!) ~ dtc
chromosomes solutions. To remo, e the unwnntcd reproductioo wlut~
. . ~ 'tnous teclunqun arc
• ".futat1on helps m sol, ing the issue of premature convergence and enhance, designed. Below are the constramt h:mdhng m:hruqut$,
di, ersificauon. The be Ion image shows the mutation process : ;, Elimination of infeasible indn iduab - This method. also ::d "death pctWI}'
• f")JX'S of mutation st) Jes a,ailable, method", consists in rejecting infeasible lndi•tdu:ils. The 111051 CCXMIO!l \\a, to
implement 1his stra1egy is to set their titness equal 10 O, -.bidl ire-= •nf~blc
o Flip b,1 mutation
solu1ions to pass the selection step.
o Gaussian mutation
ii. Penalization of the objectiu function -~consttamcdproblcmislllll5fonned ::10111
Lxcharge I Sup mutation
unconstrained one b) mtroductng the consuaints in the objcai\-c fttncticn.,. penal!)
terms. Then. it is pos,ibk to fom1ulatc 1h11 penalty tmn accccdmg IO a wide di,fflll) of
Befcwemwtioo 11111111 techniques. Fir.,th, it is of common kno"ledj;c 11m the pmaliD!lon "Ii be m~
efficient if its ex~ression is related to the amoont of comUaml ,10!ation than to the
1iolated constraint number. The idea of pen3!ty functions is to =form a conSlran~
1
opiimization problem into nn unconstrained one b) adding \or wbtraclinsl ,e1t11n
1aJ ••• ---of consuaml ,101J1wn present
Fig. 4.4.2 Mutation operation ue to/ from the objective function based on u" ....- -
in a cenain solution. . t.,ased on
Stopping condition and termination iii D traint ltandhng techn•~ is
· Omlnance conctpts • fh1s dass of cons . ht donunance
h t • . • • •d ... for termnlllll'f,
. od ·
• , \fl er t e repr u,uon p 1ase, a stoppmg criterion 1s app 11e as a = M
1nll r' . • . . and. In parucular. on \
P inciplc, dra--.n from multi-obJeclhe optimizntton . • ntimiza11on
"ncd lll()IIO-<>bjCCU\C Or-
The algorithm lcrminat~ after the threshold fitness solution i, reached It "ill id< COncept. J"he first idea is thus to trnnSform I consuai
____1,_1e_fi_m_a_1_so_i_u_1i_o_n_n_s_1h_e_be_s_1so_l_uu_·o_n_fo_r_rh_c_·_po_p_u_i_nt-io_n_._____~ - - - '---------------------;;:---::::;:~;;;-- - - - - -
TECHNICAL PUB~T~ • an up-lhru,t fol /cnOtllledf10 1ECHNICAL PUBUCA~ . _, up,j/WSI .,,,,,_,,,,,,,,.
o,mputat,OnBI ,,.""'98"£!~------!_4 ;_·_!!l!.----------
~
5
~
· · . , h h ., , ,..,) teads to"arJ the ideal solutmn ,. tr11M. 8!a,,
anJ a., good.,) ,or I • Ol ' l <- 0
,. ·bTn • ,1ethods pre,erving • •
solut1on, • •
lea>ibility arc
...
1
th
consisting of lincM coml>inations can ensure the feas1b1hty of lhc created sot IIJI
\tamtairung w, f,"3-,ibilit) can also be earned out through the_ use of dct<>dcn, ~
instrUCtions cootamed in the chromosome that state rules for bu1ldmg a fea,,ible lt.
,. lnfea•ibl< indi• idual< repairing. A generalized repair method involves the f ~
(!e,-etopment of the cons11111nt violation ,cctor t. V, according to t.x. which rep Clrdo
· · · . bl . · rcsa:.,
tin) ,wa11on in the opum1zauon vana es ,n \
0
:,\' • '\',\'x6..x. so6.x V,Y X t.Y
. .
Where matrix'\' V is 1he constraint violation gradient according to variabl- x. S
. .
constraint ,,otation amount ,s kno" n and b) approx1maung numerical\) its i;TldiCN, 1
- '~
d,eoreticall) possible 10 determine the repair vector 6x
for the _considCTcd inf~
tndi-,dual. Smee '\', V 1s usually not a square matrix. pseudomverse COltlplllJllom
provide an approximate inverse that can be used in above equation.
Despi~ its genericit) ambition. it is predictable that such a method "ill Ollly 1'
applicable in some cases for "hich the functions and the nature of the involved ,-vit!o
considered. No
Ant s,~te01 (AS) - lhc main AS algorithm is a multi-agent s)stcm \\here Jowfr;tl
, .'-llf~ll,JI,,'. interactions bel\1een single agents
(i.e, artificial ants) result in a complex 1Jcfl3\1«
the ,,hole ant colon) Although mainl) used for combinatorial optimii.ation.ASlilli!'
been succ~siull) applied to nwnerical optimization.
Simulated Annuling (SA)· The tirsl part of the search is guided b) SA Aflcidlal-tl
~
~- Basic Structure and General Workflow of Simple Genetic Algorll rn
llo\\ ,tarts \\ith an iniual population (\\hich ma) be generated ot random or# Fig. 4.4.3 Geoetic algorithm now
.-,,her hcuri,tics). select parents from this population for mating. Appl) cro~,o,er and
TECHMCAL PUBUCA~ ... ~ / o f ~
TECHNICAL PUBLICATION~· an up-lhfUSf lof ~
4 - 18
proper representation, ha, ing a proper definition of the mappings be1ween the ph~ 00s,11g,
OOl)pclnj
gcnot~ pe splices is essential for the success of a GA.
Fig. 4.5.2 Canonical QeMtic algorithm~
II) Genetic Algorithm Variants
I.Gene representation
!DJ Canonical- Genetic Algorithm (Holland Classifier System) , Parameter values are encoded into bU181) strings offc.ed and flltltc length.
The canonical gcnctrc algorithm refers to the GA proposed b) John llolland in 1965 0 Gene : Is each bit of the bin3r) string.
Belo\\ Fig 4.5.1 shows fundamental steps in canonical genetic algorithm. 0 Chromosome : Is a bin31') string.
0 Individual : Is a set of one or multiple chromOS0111C1, a prospect ,c solution to the gi,ro
problem.
o Population : Is a group of individuals.
• Longer string lengths impro, c the resolution but reqwrcs IIIOIC compuunon time
Binary representation
Suppose there is a need to mnxinme fl,).
11
here,e Q·• Q • [x dUft' x' ata.\]
Binal) representation :-.~ e [ b1 bH ,. bib. I
11\ap [x,.... -'.,.,] to (0, 2" -11
Fig. 4.5.1 Canonical genetic algorithm flow
l'umplt I"" . , . , . ; ~ - - - - - - 4 21
Let/• 5, Q • [ 5, 20]
Then
~
c,;o"•' crtl'lsover ,. as.~urned ---------~
~ . . __ -
1
"-., [O O O O O ) ~ x • - 5 I
(ii'~ tc-1"''" ,nJoviJu.1ls arc selected from m
, ..nren1 . at1ng P<IOl
Xi...,, • [I I l I I)-=>"• 20 l~(l ,- operation 11 CllCCUtcd 1'1llh thc, Pf(,w,b
, 44ll'°cr l ty p
I, (rt' ....,; 01 i1 nindomly chOScn and the
[IO I I I ) ⇒ x•- 5+(2'+i'+i•)~ So'cr ,.. llr'tlgs 111:
(r(IS en the '"" parents ...,19Ped "ilh ..._
2 - 1 IO )226 ' onl t,ct"C --.,...., 11,o ....,..,._
Roulette ,,heel ,election • A solution is found that ha, optimal fitness (or is suff'teicnll) c\OIC ID 1hc IJIIODIIII).
-·)-~-~~
' Fixed number of generation, reached \onl) for safd)i!)
=--~19
78 ' Allocated budget (computation time/mone)) reached
""278 ' The dh ersit) of the population has \'ani;l,ed (!dirt 7) •
53 • 11 • • · -..1.;-ortias...W•.,--
31 ,e fitness of the highc,t ranking soluuoo 1s . - . -
76
thst ,ucce,,i,e iterations no long~r produccbctlEfiaulls(ldlll?>
Fig. -4.5.3 Roulette wheel selection procetl
m
I and building bloc!.: size I.:, the initialization h ,1gon
, The fireq
•
uenc) with local search 1s run inmases as ..,_,1_
. ,,_..,.....ion s u e ~
._..fromthoP'llJldaion_
f1 "' ((m,, d,). (m, 1, d,,J. (m.,. d,2 )) lllimg Tmeling sa Ies man problem. The , arious GA applicauons arc• disc1lsscd below.
- - - - - - - - - - ~ - - - - '---------------:--=::;;;____
TECHNICAL PUBUCAnor.s® • .,, ~rust fo//<t~ TECHNICAL PIJBL/CAno,d'-111_,,,.,,,,,__.,,
Computational /ntall,oence
mutation and selection in secondary roles toward a dL-sign 54.iluuon. CilA imtll
capah1lit) for an optimal ,aluc It is rcnoWlled UID
nia,h,nc ll'arning, \\ here oue can cat(h-oruc the dlla blNd
r
01
lllllfllll":==thc
I destl!flS 1,c
are 11,orking on applications that not only 11nal)te t I1c natura It data p. 1111 i.
• 1 d •sidns to crtJ
return on how they 11,ork, but can also combine natura c "
entirely new.
£JI