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

elitism: have at least one individual if user requested more than 0 #67

Closed
wants to merge 1 commit into from

Conversation

ZvikaZ
Copy link
Contributor

@ZvikaZ ZvikaZ commented Jun 21, 2023

e.g., if the population is 100, and user asked for 0.005 elitism, then previously it will be int(100*0.005) which is 0.
But if the user bothered to have a non zero elitism value, he probably expects at least one.

@achiyae
Copy link
Contributor

achiyae commented Jun 21, 2023

I'm not sure that this is a desired behavior. I think that a warning is more appropriate.

@ZvikaZ ZvikaZ changed the base branch from main to develop June 27, 2023 10:02
@itaitzruia4
Copy link
Collaborator

Solved by #113

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.

3 participants