We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inmap
The combinatorial crossovers CX and OX2 will throw the following error if called on two individuals with no genes in common:
CX
OX2
ERROR: BoundsError: attempt to access n-element Vector{Bool} at index [0]
Minimal reproducing example:
i1, i2 = zeros(Int, 5), ones(Int, 5) Evolutionary.CX(i1, i2) Evolutionary.OX2(i1, i2)
I'm no expert, but I think this is caused by the use of inmap without checking if the resulting index is 0
The text was updated successfully, but these errors were encountered:
Possibly related issue, when OX1 is called with the input example, it results in an infinite loop
OX1
e.g.
i1, i2 = zeros(Int, 5), ones(Int, 5) Evolutionary.OX1(i1, i2) # runs forever
Sorry, something went wrong.
No branches or pull requests
The combinatorial crossovers
CX
andOX2
will throw the following error if called on two individuals with no genes in common:Minimal reproducing example:
I'm no expert, but I think this is caused by the use of
inmap
without checking if the resulting index is 0The text was updated successfully, but these errors were encountered: