Skip to content

Commit

Permalink
fixup! refactor: add points in DYCORS irrespective of best or not
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Jan 7, 2024
1 parent 947455c commit 1776c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Optimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 1776c3e

Please sign in to comment.