Skip to content

GA.run_completed attribute initializer missing #122

Closed
@FeBe95

Description

@FeBe95

I can't check ga_instance.run_completed == False during runtime because ga_instance.run_completed is initialized to True only after a finished run. It was never initialized to False inside of class GA. This line is missing from pygad.py I suppose (lines 911 - 941):

self.run_completed = False

Workaround for now in example.py:

ga_instance = pygad.GA(
  # [...]
)

ga_instance.run_completed = False

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions