From 1776c3ef1b60d789b9698d581b1fd86b97d46292 Mon Sep 17 00:00:00 2001 From: Sathvik Bhagavan Date: Sun, 7 Jan 2024 08:45:25 +0000 Subject: [PATCH] fixup! refactor: add points in DYCORS irrespective of best or not --- src/Optimization.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])