Skip to content

Commit

Permalink
Enable BBO test and remove EnsembleOptimize commented test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 committed May 1, 2021
1 parent 1b29e07 commit d1583cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Zygote = "0.5, 0.6"
julia = "1.5"

[extras]
BlackBoxOptim = "a134a8b2-14d6-55f6-9291-3336d3ab0209"
CMAEvolutionStrategy = "8d3b24bd-414e-49e0-94fb-163cc3a3e411"
DiffEqFlux = "aae7a2af-3d4f-5e19-a356-7da93b79d9d0"
Evolutionary = "86b6b26d-c046-49b6-aa0b-5f0f74682bd6"
Expand All @@ -61,4 +62,4 @@ SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Evolutionary", "DiffEqFlux", "IterTools", "OrdinaryDiffEq", "NLopt", "CMAEvolutionStrategy", "Pkg", "Random", "SafeTestsets", "Test"]
test = ["BlackBoxOptim", "Evolutionary", "DiffEqFlux", "IterTools", "OrdinaryDiffEq", "NLopt", "CMAEvolutionStrategy", "Pkg", "Random", "SafeTestsets", "Test"]
6 changes: 0 additions & 6 deletions test/rosenbrock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,11 @@ using Evolutionary
sol = solve(prob, CMAES=40 , λ = 100),abstol=1e-15)
@test 10*sol.minimum < l1

#=
using BlackBoxOptim
prob = GalacticOptim.OptimizationProblem(optprob, x0, lb=[-1.0, -1.0], ub=[0.8, 0.8])
sol = solve(prob, BBO())
@test 10*sol.minimum < l1

prob_multi = EnsembleOptimizationProblem([prob, prob])
sol_multi = solve(prob_multi, BBO(:borg_moea), FitnessScheme=ParetoFitnessScheme{2}(is_minimizing=true), ϵ=0.05, MaxSteps=500000)
@test 10*sum(sol_multi.minimum) < l1
=#

using ModelingToolkit
rosenbrock(x, p) = (p[1] - x[1])^2 + p[2] * (x[2] - x[1]^2)^2
x0 = zeros(2)
Expand Down

0 comments on commit d1583cd

Please sign in to comment.