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

How to not allow repetitions in individuals #695

Open
aminsagar opened this issue Apr 5, 2023 · 1 comment
Open

How to not allow repetitions in individuals #695

aminsagar opened this issue Apr 5, 2023 · 1 comment

Comments

@aminsagar
Copy link

Dear DEAP users and developers,
This might be trivial but I am not able to find a solution to this problem.
My eaSimple based program works very well to find solutions and I get very good agreement with the data.
The only problem is that the individuals have genes repeated multiple times.
So, the best individuals of size 10, have only 2 or 3 genes repeated multiple times.
Is there a way to not allow for such solutions and only have individuals where none of the genes are repeated.
I would be really grateful for any suggestions.
Best,
Amin.

@ManchaNegra
Copy link

Good morning,
It depends on how you merge sons and population, but you can see if there are sons in the populations that don't have.
Thanks,

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

No branches or pull requests

2 participants