コード例 #1
0
ファイル: planar_h1.py プロジェクト: microprediction/humpday
 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)
コード例 #2
0
ファイル: h1.py プロジェクト: QPanProjects/Surrogate-Model
def h1_arg0(sol):
    return benchmarks.h1(sol)[0]
コード例 #3
0
def evalOneMax(individual):
    return sum(benchmarks.h1(individual)),
コード例 #4
0
ファイル: xw12_3dplot4.py プロジェクト: chiamingyen/mdeCourse
def h1_arg0(sol):
    return benchmarks.h1(sol)[0]
コード例 #5
0
 def evalBenchmark(individual):
     return benchmarks.h1(individual)