Closed jbytecode closed 3 months ago
The other option is to taking the Individual as an interface (like) and provide 3 classes with names BinaryIndividual, PermutationIndividual, and RealIndividual. It would be more clear in that design. This is up to you.
Thank you! I've reviewed the description and understand it. I'll close the issue now.
This is a description. Please feel free to close the issue when you got the point.
The constructor is
Case 1
When we set ch_size = 5 and gen_type = BINARY, then a chromosome of binaries is created with len = 5
Case 2
When we set ch_size = 5 and gen_type = Permutation, then a chromosome of permutation is created with using numbers from 1 to 5
Case 3
When we set ch_size = 5 and gen_type = REAL, then a chromosome of reals is created with numbers between mins[i] and maxs[i] for i in 1 to 5.
So, we can cover all of the gen types using a single individual with its current form.
fyi.