Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions geatpy/Algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ def finishing(self, pop, globalNDSet=None):
NDSet = pop[np.where(levels == 1)[0]] # 只保留种群中的非支配个体,形成一个非支配种群
if NDSet.CV is not None: # CV不为None说明有设置约束条件
NDSet = NDSet[np.where(np.all(NDSet.CV <= 0, 1))[0]] # 最后要彻底排除非可行解
# 排除重复解
NDSet = NDSet[np.unique(NDSet.ObjV,return_index=True,axis=0)[1]]
else:
NDSet = globalNDSet
if self.logTras != 0 and NDSet.sizes != 0 and (
Expand Down
Loading