diff --git a/moead_framework/algorithm/abstract_moead.py b/moead_framework/algorithm/abstract_moead.py index 1f8dde5..0d2aed9 100644 --- a/moead_framework/algorithm/abstract_moead.py +++ b/moead_framework/algorithm/abstract_moead.py @@ -55,7 +55,7 @@ def __init__(self, problem, max_evaluation, number_of_objective, number_of_weigh if offspring_generator is None: self.offspring_generator = OffspringGeneratorGeneric(algorithm_instance=self) else: - self.offspring_generator = offspring_generator + self.offspring_generator = offspring_generator(algorithm_instance=self) @abstractmethod def run(self, checkpoint=None): diff --git a/setup.py b/setup.py index d26554b..d958c01 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="moead-framework", - version="0.5.2", + version="0.5.3", author="Geoffrey Pruvost", author_email="geoffrey@pruvost.xyz", description="MOEA/D Framework in Python 3",