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

Add a roulette selection function for any population size. #1

Open
akfreed opened this issue Jun 28, 2020 · 0 comments
Open

Add a roulette selection function for any population size. #1

akfreed opened this issue Jun 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@akfreed
Copy link
Owner

akfreed commented Jun 28, 2020

The selection functions currently only handle populations of 20 or 50. This is because the probability for each rank is hard-coded. Create a function that will come up with reasonable selection based on rank for any population size.

In the GeneticAlgorithmPairing .cpp and .h, look for selectIndex20 and selectIndex50 as well as BreedPopChance20 and BreedPopChance50.

@akfreed akfreed added the enhancement New feature or request label Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant