<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1251"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
After initializing and before evolving the population, you can modify
your genomes to<br>
contain the predefined information you were referring to.<br>
<br>
The other way of doing this is writing you own initializer function:<br>
GAPopulation calls each individual's initializer function.<br>
<br>
void <br>
GAPopulation::DefaultInitializer(GAPopulation & p){<br>
for(int i=0; i<p.size(); i++)<br>
p.individual(i).initialize();<br>
} <br>
<br>
A function, which is referred by the Initializer pointer (GAGenome.h:)<br>
typedef void (*Initializer)(GAGenome &); <br>
<br>
The initializer is usually configured in the constructor of the genomes.<br>
For example, in GARealGenome:<br>
initializer(DEFAULT_REAL_INITIALIZER); <br>
<br>
Check out ex11.C in the examples directory for the customization of the
genome's initializer function.<br>
genome.initializer(ListInitializer); <br>
<br>
So, there is a way, but you have to implement it.<br>
<br>
Regards,<br>
Balazs<br>
<br>
<br>
2010.02.27. 18:56 keltezéssel, vishnu prathish írta:
<blockquote
cite="mid:59c3ccb1002270956j3aeed45bw3b8f0159e35e2c52@mail.gmail.com"
type="cite">Is there any way to give a predefined population as
initial population? I could see only a random number population as
initial ones.<br clear="all">
<br>
-- <br>
Regards,<br>
Vishnu Prathish<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
galib mailing list
<a class="moz-txt-link-abbreviated" href="mailto:galib@mit.edu">galib@mit.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/galib">http://mailman.mit.edu/mailman/listinfo/galib</a>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4901 (20100227) __________
The message was checked by ESET NOD32 Antivirus.
<a class="moz-txt-link-freetext" href="http://www.eset.com">http://www.eset.com</a>
</pre>
</blockquote>
<br>
</body>
</html>