Skip to content

Commit

Permalink
Fixed U-NSGA-III Verbose=True error anyoptimization#432
Browse files Browse the repository at this point in the history
  • Loading branch information
blankjul committed Jun 12, 2023
1 parent 566a3d7 commit 695cb26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymoo/algorithms/moo/nsga3.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def _set_optimum(self, **kwargs):
if not has_feasible(self.pop):
self.opt = self.pop[[np.argmin(self.pop.get("CV"))]]
else:
self.opt = self.survival.opt
if len(self.survival.opt):
self.opt = self.survival.opt


# =========================================================================================================
Expand Down

0 comments on commit 695cb26

Please sign in to comment.