in src/hpcadvisor/advice_generator.py [0:0]
def calculate_pareto_front(data):
pareto_front = []
for _, (exectime, cost, nnodes, sku) in enumerate(data):
is_pareto = True
for _, (other_exectime, other_cost, other_nnodes, other_sku) in enumerate(data):
if exectime > other_exectime and cost > other_cost:
is_pareto = False
break
if is_pareto:
pareto_front.append((exectime, cost, nnodes, sku))
return np.array(pareto_front)