I want to create a population which consists of chromosomes like:
chrom_1 = [ ["string_1", "string_2", "string_3"], [number_1, number_2] ]
chrom_2 = [ ["string_4", "string_5", "string_6"], [number_3, number_4] ] etc.
Every chromosome consists on two different types as well as lengths of genoms:
genome_1 : list of strings, length = 3
genome_2 : list of numbers, length = 2
Is such a construction possible? Could that be acheaved combining somehow GAlleleList with G1DList?
If so, how would the crossover work?
Would that work between the lists of strings as well as between the lists of numbers?
An alternative way would be to combine strings with numbers such as
pool = [ [str,num] for str in List_of_strings for num in List_of_numbers ]
and after that add it to G1DList. That should do the trick but for reasons of my own would not be acceptable.
Thank you