Skip to content

Commit

Permalink
SMSEMOA: variable 'pop' referenced before assignment in _advance func…
Browse files Browse the repository at this point in the history
…tion #513
  • Loading branch information
blankjul committed Dec 17, 2023
1 parent 03f7da3 commit 67f0c46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pymoo/algorithms/moo/sms.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ def _advance(self, infills=None, **kwargs):
# merge the offsprings with the current population
if infills is not None:
pop = Population.merge(self.pop, infills)
else:
pop = self.pop


self.pop = self.survival.do(self.problem, pop, n_survive=self.pop_size, algorithm=self,
ideal=ideal, nadir=nadir, **kwargs)
Expand Down

0 comments on commit 67f0c46

Please sign in to comment.