Skip to content

bug in user-defined parent selection #179

Closed
@pvstorageoptimization

Description

@pvstorageoptimization

Hi,

There seems to be a bug when using user-defined parent selection function. The function should have 3 parameters (or 4 for a method), and that how it is checked when creating the GA instance. But when it runs the algorithm it sends 4 parameters instead of 3 (getting error "_parent_selection_func() takes 3 positional arguments but 4 were given").
As I understand this is due to an extra "self" passed to the parent selection function as a first parameter in line 1750, and removing it should fix it.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions