diff --git a/src/Optimization.jl b/src/Optimization.jl index bf2fce59..07b7b42d 100755 --- a/src/Optimization.jl +++ b/src/Optimization.jl @@ -1048,7 +1048,7 @@ function surrogate_optimize(obj::Function, ::DYCORS, lb::Number, ub::Number, x_best = x_new y_best = f_new end - add_point!(surr1, x_best, y_best) + add_point!(surr1, x_new, f_new) end index = argmin(surr1.y) return (surr1.x[index], surr1.y[index])