[galib] The size of the first population is twice the defined size
Paul Smith
phhs80 at gmail.com
Tue Sep 6 14:36:55 EDT 2011
On Tue, Sep 6, 2011 at 7:33 PM, Paul Smith <phhs80 at gmail.com> wrote:
> I have the impression that the size of the first population is twice
> the population size defined in the C++ user code; the subsequent
> populations have the expected size. Have you noticed that? And if so,
> can one force the first population to have the defined population
> size?
My code is something like the following:
--------------------------------------------------
while(!ga.done())
{
++ga;
gen++;
if(gen % 1 == 0)
cout << endl << gen << " - " << ga.population().best().score();
}
--------------------------------------------------
Paul
More information about the galib
mailing list