Multiple genomes, or separate ranges for each element?

170 views
Skip to first unread message

Mike

unread,
Feb 5, 2010, 3:27:34 PM2/5/10
to pyevolve
I'm pretty new to GA's, I have PyEvolve working moderately well for my
application right now, but I'm curious if its possible to have
multiple
genomes, each with different min/max ranges, or alternatively a way to
set the min/max range separately for each element in
G1DList.G1DList()?

For example, I would like to find the best fitness score for a list of
input values like:

inputs = {
'param1': {'min': 1, 'max': 10},
'param2': {'min': 50, 'max': 100},
'param3': {'min': 1000, 'max': 10000},
}

Currently I to set the min range to 1, and the max to 10,000, then try
to filter out values that exceed the min/max range for each param in
the fitness function, but it seems like this is a really slow way to
do
it.

Does anyone have some suggestions on how I could do this more
efficiently?

Christian S. Perone

unread,
Feb 5, 2010, 4:21:07 PM2/5/10
to pyev...@googlegroups.com
Hello Mike !
To do this, you must use a genome with alleles, see the Example 11 which shows the use of the Alleles (http://pyevolve.sourceforge.net/examples.html#example-11-the-use-of-alleles).

See the documentation for the GAlleleRange (http://pyevolve.sourceforge.net/module_allele.html). You just need to specify the types which will compose the parameters (GAlleleList or GAlleleRange) and then add them to the GAlleles and use it as you can see in the example 11.

Yours,
- Christian S. Perone
--
"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great big joke on me."
http://pyevolve.sourceforge.net/wordpress/

anandraj raj

unread,
Mar 3, 2014, 5:35:54 PM3/3/14
to pyev...@googlegroups.com
Hi Mike,
i am also interested to work with multiple genome in pyevolve, i have seen your post through google search, have you found method to use multiple genome in pyevolve
Reply all
Reply to author
Forward
0 new messages