Skip to content

Commit

Permalink
Bug: Random seed incorrectly set for CMAES optimizer #600
Browse files Browse the repository at this point in the history
  • Loading branch information
blankjul committed Jun 2, 2024
1 parent 629666d commit cb3f116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymoo/algorithms/soo/nonconvex/cmaes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb3f116

Please sign in to comment.