8000 Fix divided by zero in selNSGA3 by elimas9 · Pull Request #539 · DEAP/deap · GitHub
[go: up one dir, main page]

Skip to content

Fix divided by zero in selNSGA3 #539

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

Merged
merged 1 commit into from
Nov 13, 2021
Merged

Fix divided by zero in selNSGA3 #539

merged 1 commit into from
Nov 13, 2021

Conversation

elimas9
Copy link
Contributor
@elimas9 elimas9 commented Jan 16, 2021

I had an issue with a division by zero in the find_intercepts function (#534).

Apparently this is caused by numpy.linalg.solve which sometimes does not detect the singularity of the input matrix and thus does not throw an exception (numpy/numpy#10471).

This pull request would fix this issue by detecting solutions with zeros.

@fmder fmder merged commit 204673c into DEAP:master Nov 13, 2021
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.

2 participants
0