Re: [Gaul-devel] Genetics with fixed initial population
Brought to you by:
stewartadcock
From: Stewart A. <ad...@mc...> - 2003-05-25 16:47:06
|
Hi Asier, > I'm a bit confused about some concepts of the library: >=20 > Each row of the above matrices it's an individual in the terms that > starting from this data, each row will evolve. My initial population > will have 'n_rows' individuals, and each individual 'n_cols' chromosome= s > =BFI'm ok? So I use the ga_genesis_xxx with: >=20 > pop =3D ga_genesis_xxx( > n_rows,=20 > n_cols,=20 > =BFlen_chromo? /* What means this value? */ > =20 > [...] > =20 > my_seed_function, > ... > ); Basically, each genome my have multiple chromosomes. For your purposes,=20 the best approach is probably: pop =3D ga_genesis_xxx( n_rows, /* n_rows entities in population */ 1, /* 1 chromosome per entity */ n_cols, /* n_cols alleles per chromosome */ [...] ); I will also suggest that you might get better results if you have more=20 than "n_rows" individuals in the population. Duplicate some of your=20 columns to fill the extras. > And other question... I'll sound silly, but I want know what's exactly > an entity element, what does it mean. "entity" is the name of the data structure used to describe each=20 individual in the population. The population is (more clearly)=20 described by the "population" data structure. The entity data structure=20 contains the chromosome(s) for that individual along with its fitness. Regards, Stewart. --=20 ________________________________________________________________________ Stewart Adcock st...@li... www.stewart-adcock.co.uk Dept. Chemistry and Biochemistry, University of California, San Diego, 4234 Urey Hall, 9500 Gilman Drive, La Jolla, CA 92093-0365 USA. lab: +1 (858) 534 0956 home: +1 (858) 453 2577 mobile: +1 (619) 206 5798 |