Can an individual be a list of fixed sub-lists?

55 views
Skip to first unread message

Jake Cowton

unread,
Jan 3, 2015, 11:08:11 PM1/3/15
to deap-...@googlegroups.com
I have read https://groups.google.com/forum/#!topic/deap-users/BDHB5d791sg but they are looking for something different.

Would it be possible to use a GA on population of individuals who look like this:

[ [x,x], [y,y,y,y], [z] ]

where sub-lists don't change and can be of any length (possibly empty, but this can worked around if not possible)

and where mutations and crossovers affect the order of the list  e.g.

A = [ [x,x], [y,y,y,y], [z] ]
B = [ [n,n,n,n], [y,y,y,y], [x,x,] ]

child = [ [n,n,n,n], [y,y,y,y], [z] ]

IF not, do you have a recommendation as to what I could use to achieve this.

François-Michel De Rainville

unread,
Jan 7, 2015, 8:49:32 PM1/7/15
to deap-...@googlegroups.com

Yes you can. Simply do your initialisation using a custom function as in the PSO example and use a n points crossover and shuffle mutation.


--
You received this message because you are subscribed to the Google Groups "deap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deap-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages