diff --git a/pymoo/core/algorithm.py b/pymoo/core/algorithm.py index 441aef1d..09335e9b 100644 --- a/pymoo/core/algorithm.py +++ b/pymoo/core/algorithm.py @@ -253,6 +253,7 @@ def result(self): res.pop = self.pop res.archive = self.archive + res.data = self.data # get the optimal solution found opt = self.opt diff --git a/pymoo/core/result.py b/pymoo/core/result.py index 300b6bf4..33d2b305 100644 --- a/pymoo/core/result.py +++ b/pymoo/core/result.py @@ -36,6 +36,9 @@ def __init__(self) -> None: # the history of the optimization run is they were saved self.history = [] + # data stored within the algorithm + self.data = None + @property def cv(self): return self.CV[0]