| name | pareto-optimization |
| description | Identifying the Pareto frontier in multi-objective optimization. |
Logic
A point is Pareto-optimal if no other point dominates it. In this context, we want to maximize F1 and minimize delta. Point A dominates point B if F1_A >= F1_B and Delta_A <= Delta_B (with at least one inequality strict).
def get_pareto_frontier(points):
pareto = []
for i, p1 in enumerate(points):
is_dominated = False
for j, p2 in enumerate(points):
if i == j: continue
if p2[0] >= p1[0] and p2[1] <= p1[1]:
if p2[0] > p1[0] or p2[1] < p1[1]:
is_dominated = True
break
if not is_dominated:
pareto.append(p1)
return pareto