diff --git a/pymoo/core/algorithm.py b/pymoo/core/algorithm.py index f3fc071f..a47a165e 100644 --- a/pymoo/core/algorithm.py +++ b/pymoo/core/algorithm.py @@ -138,6 +138,9 @@ def setup(self, problem, **kwargs): def run(self): while self.has_next(): + if 'reconstruct_objs_func' in self.__dict__: + new_objs = self.reconstruct_objs_func() + self.problem.objs = new_objs self.next() return self.result()