def my_evaluator(candidates, args):
    fitness = []
    for candidate in candidates:
        f = candidate[0] ** 2 + 1
        g = 1 - candidate[0] ** 2
        fitness.append(Lexicographic([f, g], maximize=False))
    return fitness
dataset/ETHPy150Open aarongarrett/inspyred/recipes/lexicographic.py/my_evaluator/swapped operands of `-`