Skip to content

Commit 59879a6

Browse files
committed
Borg: test Borg with ParallelEvaluator
1 parent a3cf5b4 commit 59879a6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/test_borg_moea.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
MaxSteps=5000, TraceMode=:silent)
77
@test BlackBoxOptim.IGD(BlackBoxOptim.Schaffer1Family.opt_value, pareto_frontier(res),
88
fitness_scheme(res), Val{length(best_candidate(res))}) < 0.05
9+
10+
@testset "using ParallelEvaluator" begin
11+
opt = bbsetup(BlackBoxOptim.Schaffer1Family; Method=:borg_moea,
12+
FitnessScheme=ParetoFitnessScheme{2}(is_minimizing=true),
13+
SearchRange=(-10.0, 10.0), NumDimensions=2, ϵ=0.01,
14+
MaxSteps=5000, TraceMode=:verbose, TraceInterval=1.0, Workers=workers())
15+
res = bboptimize(opt)
16+
@test isa(BlackBoxOptim.evaluator(lastrun(opt)), BlackBoxOptim.ParallelEvaluator)
17+
@test BlackBoxOptim.IGD(BlackBoxOptim.Schaffer1Family.opt_value, pareto_frontier(res),
18+
fitness_scheme(res), Val{length(best_candidate(res))}) < 0.05
19+
end
920
end
1021
@testset "CEC09_UP8" begin
1122
res = bboptimize(BlackBoxOptim.CEC09_Unconstrained_Set[8]; Method=:borg_moea,

0 commit comments

Comments
 (0)