diff --git a/inspyred/benchmarks.py b/inspyred/benchmarks.py index bf1a13a..b065a51 100644 --- a/inspyred/benchmarks.py +++ b/inspyred/benchmarks.py @@ -447,7 +447,7 @@ def evaluator(self, candidates, args): fitness = [] for c in candidates: f1 = sum([-10 * math.exp(-0.2 * math.sqrt(c[i]**2 + c[i+1]**2)) for i in range(len(c) - 1)]) - f2 = sum([math.pow(abs(x), 0.8) + 5 * math.sin(x)**3 for x in c]) + f2 = sum([math.pow(abs(x), 0.8) + 5 * math.sin(x**3) for x in c]) fitness.append(emo.Pareto([f1, f2])) return fitness