Skip to content

Commit

Permalink
Improved on performance regression when calculating the AE objective …
Browse files Browse the repository at this point in the history
…with a power of 2
  • Loading branch information
MrUrq committed Mar 12, 2020
1 parent 8553e80 commit 4928185
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/AudzeEglaisObjective.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
end
dist_tmp += dist_comp^2
end
dist += 1/dist_tmp^(ae_power/2)
#This if statement improves a performance regression when running the entire LHCoptim
#with the standard power of 2
if ae_power != 2
dist += 1/dist_tmp^(ae_power/2)
else
dist += 1/dist_tmp
end
end
end
output = 1/dist
Expand Down

0 comments on commit 4928185

Please sign in to comment.