Skip to content
New issue

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

Duplicate children generated by OrderedCrossover #20

Conversation

Ares513
Copy link

@Ares513 Ares513 commented Jul 18, 2017

The original code randomizes only once to generate two children, so this fix refactors it a bit (to prevent duplication) and ensures that randomization occurs once for every child. Otherwise, the output will be two identical twins, unless I'm mistaken.

Fixes #19

…always generate two identical children, instead of each of them being properly crossed over.
@giacomelli
Copy link
Owner

Closing to cleanup, if you answer the question comment on #19 we can open it again.

@giacomelli giacomelli closed this Jan 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Children created in OrderedCrossover are identical
2 participants