[galib] how to make represent a genome of 1000 elements

Hailiang hlshen2005 at gmail.com
Tue Mar 16 20:05:43 EDT 2010


Dear List users,
I am trying to represent 1000 decision variables with GARealAlleleSetArray.
e.g.,


GARealAlleleSet t1(-1, 1);  // Some variales are not between -1, 1, i put
them between (-1, 1) to simplify.

GARealAlleleSetArray allelesArray(t1);

for(i=1; i<=1000; i++)

{

    allelesArray.add(t1);

}



My problem is that it seems allelesArray cannot add 1000 elements, but it
works fine when i add 50 elements.



I appreciate your any help,

Thanks,

Hailiang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20100316/1cd3bd9d/attachment.htm


More information about the galib mailing list