From cb3f1169846b21d26a042aa71279df171b6e5dee Mon Sep 17 00:00:00 2001 From: Julian Blank Date: Sun, 2 Jun 2024 12:01:53 -0700 Subject: [PATCH] Bug: Random seed incorrectly set for CMAES optimizer #600 --- pymoo/algorithms/soo/nonconvex/cmaes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymoo/algorithms/soo/nonconvex/cmaes.py b/pymoo/algorithms/soo/nonconvex/cmaes.py index 9e88fd029..5dd1d02d3 100755 --- a/pymoo/algorithms/soo/nonconvex/cmaes.py +++ b/pymoo/algorithms/soo/nonconvex/cmaes.py @@ -402,7 +402,7 @@ def _setup(self, problem, **kwargs): self.norm = NoNormalization() self.options['bounds'] = [xl, xu] - self.options['seed'] = self.seed + self.options['seed'] = kwargs.get('seed', self.seed) if isinstance(self.termination, MaximumGenerationTermination): self.options['maxiter'] = self.termination.n_max_gen