Genetic algorithms: How to do crossover in “subset” problems?
问题 I have a problem which I am trying to solve with genetic algorithms. The problem is selecting some subset (say 4) of 100 integers (these integers are just ids that represent something else). Order does not matter, the solution to the problem is a SET of integers not an ordered list. I have a good fitness function but am having trouble with the crossover function. I want to be able to mate the following two chromosomes: [1 2 3 4] and [3 4 5 6] into something useful. Clearly I cannot use the