You need to be careful about using sets here. This will require that all individuals be unique, which is usually *not* a property of most GA systems. Imagine, for example, a weird case where you had a 4 bit OnesMax problem and you asked for a population size of 100. Since there aren't 100 *different* 4-bit strings, you could never actually have 100 individuals.