Skip to content

RouletteWheelSelection ZeroDivisionError  #54

Description

@badrmada

In line 35 of the class RouletteWheelSelection

wheel = list(accumulate([i/sum_fit for i in fit]))
When all individuals have the same fitnesses the value sum_fit is zero.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions