You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The factory methods for the numeric chromosome, which takes a list of genes doesn't check the domain of the given genes. It assumes that they are the same an takes the range of the first gene for the whole chromosome.
The code snippet above currently doesn't throw an exception. Instead it creates a new IntegerChromosome in the range of [0, 100]. The ranges of the other genes are ignored. This behaviour can lead to surprising results. The new behaviour should be to throw an IAE if the ranges of the given genes are different.
The text was updated successfully, but these errors were encountered:
The factory methods for the numeric chromosome, which takes a list of genes doesn't check the domain of the given genes. It assumes that they are the same an takes the range of the first gene for the whole chromosome.
The code snippet above currently doesn't throw an exception. Instead it creates a new
IntegerChromosome
in the range of [0, 100]. The ranges of the other genes are ignored. This behaviour can lead to surprising results. The new behaviour should be to throw an IAE if the ranges of the given genes are different.The text was updated successfully, but these errors were encountered: