From 9e46a40cade72b3321d10b73987bdd5921961ac2 Mon Sep 17 00:00:00 2001 From: Geoffrey Pruvost Date: Fri, 17 Jul 2020 10:52:22 +0200 Subject: [PATCH] v0.5.3 : fix offspring generator --- moead_framework/algorithm/abstract_moead.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",