Skip to content

Commit fe4d390

Browse files
committed
updated for latest interface
1 parent 91440c1 commit fe4d390

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

examples/modified_langerman.jl

+8-6
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ end
4444

4545
using BlackBoxOptim
4646

47-
p = BlackBoxOptim.fixeddim_problem(modLangerman; range = (0.0, 10.0), dims = 10,
48-
name = "Modified Langerman", fmins = [-0.9650])
47+
mod_lang_problem = BlackBoxOptim.MinimizationProblemFamily(modLangerman, "ModifiedLangerman",
48+
(0.0, 10.0), -0.9650)
4949

50-
BlackBoxOptim.repeated_bboptimize(30, p, 10, [
51-
:generating_set_search,
52-
:adaptive_de_rand_1_bin_radiuslimited],
53-
10.0, 1e-5, {:MinDeltaFitnessTolerance => 1e-50})
50+
BlackBoxOptim.repeated_bboptimize(5, mod_lang_problem, 10, [
51+
:generating_set_search, # GSS not very good on this one
52+
:adaptive_de_rand_1_bin_radiuslimited # While DE is at least better
53+
],
54+
10.0, 1e-5, Dict{Symbol,Any}(
55+
:MinDeltaFitnessTolerance => 1e-50))

0 commit comments

Comments
 (0)