Skip to content

Commit c20c36e

Browse files
committed
Fix bug in parallel EI
1 parent fd4c81b commit c20c36e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Optimization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ function potential_optimal_points(::EI, strategy, lb, ub, krig, sample_type::Sam
828828
index_max = argmax(evaluations)
829829
x_new = new_sample[index_max] # x point which maximized EI
830830
y_new = maximum(evaluations) # EI at the new point
831-
diff_x = [abs.(prev_point .- x_new) for prev_point in tmp_krig.x]
831+
diff_x = [norm(prev_point .- x_new) for prev_point in tmp_krig.x]
832832
bit_x = [diff_x_point .> dtol for diff_x_point in diff_x]
833833
#new_min_x has to have some distance from tmp_krig.x
834834
if false in bit_x

0 commit comments

Comments
 (0)