Skip to content

Commit 05ca000

Browse files
committed
Adapt to the new fast-pareto
1 parent 4adbfc5 commit 05ca000

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

eaf/eaf.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ def _get_pf_set_list(costs: np.ndarray) -> list[np.ndarray]:
2929
pf_set_list: list[np.ndarray] = []
3030
for _costs in _cost_copy:
3131
# Sort by the first objective, then the second objective
32-
order = np.lexsort((-_costs[:, 1], _costs[:, 0]))
33-
_costs = _costs[order]
34-
pf_set_list.append(_costs[is_pareto_front(_costs, filter_duplication=True)])
32+
_costs = np.unique(_costs, axis=0)
33+
pf_set_list.append(_costs[is_pareto_front(_costs)])
3534
return pf_set_list
3635

3736

0 commit comments

Comments
 (0)