@@ -2,15 +2,6 @@ context("adaptive infill crits")
22
33test_that(" adaptive infill crit works with all termination criteria" , {
44
5- terminations = list (
6- list (iters = 3L ),
7- list (time.budget = 1L ),
8- list (exec.time.budget = 1L , iters = 13 , use.for.adaptive.infill = " exec.time.budget" ),
9- list (target.fun.value = 0.025 , iters = 13 , use.for.adaptive.infill = " target.fun.value" ),
10- list (target.fun.value = - 0.025 , iters = 13 , use.for.adaptive.infill = " target.fun.value" ),
11- list (max.evals = 13L )
12- )
13-
145 f = testf.fsphere.1d
156 f.slow = testf.fsphere.1d.slow
167 f.max = convertToMaximization(f )
@@ -19,6 +10,15 @@ test_that("adaptive infill crit works with all termination criteria", {
1910 design $ y = apply(design , 1 , f )
2011 design.max $ y = apply(design.max , 1 , f.max )
2112
13+ terminations = list (
14+ list (iters = 4L ),
15+ list (time.budget = 2 ),
16+ list (exec.time.budget = 1.5 , iters = 13 , use.for.adaptive.infill = " exec.time.budget" ),
17+ list (target.fun.value = min(design $ y )/ 3 , iters = 13 , use.for.adaptive.infill = " target.fun.value" ),
18+ list (target.fun.value = max(design.max $ y )/ 3 , iters = 13 , use.for.adaptive.infill = " target.fun.value" ),
19+ list (max.evals = nrow(design ) + 4L )
20+ )
21+
2222 ctrl = makeMBOControl()
2323 ctrl = setMBOControlInfill(ctrl , crit = makeMBOInfillCritAdaCB())
2424
0 commit comments