def dilated_hump(xs, j): """ Loosely based on h1 function """ origin = 0, 0 xs_rotated = rotate(origin=origin, point=xs, angle=j * math.pi / 2) xs_dilated = [(x * 100) * (i + 1) for i, x in enumerate(xs_rotated)] return -h1( individual=xs_dilated)[0] + 0.0005 * np.linalg.norm(xs_dilated)
def h1_arg0(sol): return benchmarks.h1(sol)[0]
def evalOneMax(individual): return sum(benchmarks.h1(individual)),
def h1_arg0(sol): return benchmarks.h1(sol)[0]
def evalBenchmark(individual): return benchmarks.h1(individual)