Skip to content

Commit f1f9e00

Browse files
committed
Too many model builds for CL (Fixes #248)
1 parent 2817e5d commit f1f9e00

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/proposePointsConstantLiar.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ proposePointsConstantLiar = function(opt.state) {
1919
for (i in 1:npoints) {
2020
# propose point, add to opt.path2 with y = lie, then update model
2121
props[[i]] = proposePointsByInfillOptimization(opt.state, control = control2, opt.path = opt.path2, models = list(model))
22+
if (i==npoints) break # we don't need to update the model when we aleady have the n-th proposal
2223
x = dfRowToList(props[[i]]$prop.points, par.set, 1)
2324
addOptPathEl(opt.path2, x = x, y = lie, dob = dob)
2425
rt = makeTaskSingleObj(opt.path2, control)

0 commit comments

Comments
 (0)