示例#1
0
def bohachevsky_arg0(sol):
    return benchmarks.bohachevsky(sol)[0]
示例#2
0
def bohachevsky_arg0(sol):
    return benchmarks.bohachevsky(sol)[0]
示例#3
0
def bohachevsky_on_cube(u: [float]) -> float:
    # https://deap.readthedocs.io/en/master/api/benchmarks.html#deap.benchmarks.bohachevsky
    u_squished = [10 * (ui**1.1 - 0.5) for ui in u]
    return 1.0 + benchmarks.bohachevsky(u_squished)[0]
示例#4
0
def bohachevsky_arg0(sol):
    return np.nan if w_obstacles and sol[2] == 1 else benchmarks.bohachevsky(sol[:2])[0]