Skip to content

Commit 0d77324

Browse files
committed
updated also this example to use latest bboptimize interface
1 parent 1669486 commit 0d77324

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

examples/high_dimensional_rosenbrock.jl

+5-6
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ function fitness_for_opt(problemname, numDimensions, populationSize, numSteps, m
2020

2121
println("\n$(problem.name), n = $(numdims(problem)), optimizer = $(string(method))")
2222

23-
best, fitness = bboptimize(problem; method = method, parameters = {
24-
:NumDimensions => numDimensions,
25-
:PopulationSize => populationSize,
26-
:MaxSteps => numSteps
27-
})
23+
result = bboptimize(problem; Method = method,
24+
NumDimensions = numDimensions, PopulationSize = populationSize,
25+
MaxSteps = numSteps
26+
)
2827

29-
fitness
28+
best_fitness(result)
3029
end
3130

3231
problemname = "Rosenbrock"

0 commit comments

Comments
 (0)