How to lock genes mutation

19 views
Skip to first unread message

Jo Silva

unread,
Jan 26, 2014, 11:05:23 AM1/26/14
to pyev...@googlegroups.com
Hi,

In order to have some of the genes from chromossome remaining imutable
I'm looking for a way to lock them.

First thing I've tought was passing with getParam the original array and substitute it
inside objective function.

Do anyone knows how to make genes lock using an pyevolve built-in function?

Christian S. Perone

unread,
Jan 26, 2014, 11:29:17 AM1/26/14
to pyev...@googlegroups.com
Hello Jo, there is no such built-in function for this because this is a very specific situation and each representation would behave differently as well as mutation/crossover operators. I think that the right way to solve your problem would be a customization of your mutation/crossover methods in order to avoid changing the genes you want to be immutable, another way would be iterating after each generation using the step callback and then assigning the original value to each immutable gene after the evaluation of the crossover/mutation operators. Another approach would be creating a custom representation that will ensure these fixed genes.


--
 
---
You received this message because you are subscribed to the Google Groups "pyevolve" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyevolve+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
"Forgive, O Lord, my little jokes on Thee, and I'll forgive Thy great big joke on me."
Reply all
Reply to author
Forward
0 new messages