Skip to content

Commit

Permalink
Change particle_swarm test to "batched"
Browse files Browse the repository at this point in the history
  • Loading branch information
sgaure committed Feb 7, 2025
1 parent 4d310b5 commit baecb98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/multivariate/solvers/zeroth_order/particle_swarm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
@test summary(res) == "Particle Swarm"
res = Optim.optimize(rosenbrock_s, initial_x, ParticleSwarm(n_particles = n_particles), options)
@test summary(res) == "Particle Swarm"
res = Optim.optimize(rosenbrock_s, initial_x, ParticleSwarm(n_particles = n_particles, parallel=true), options)
res = Optim.optimize(rosenbrock_s, initial_x, ParticleSwarm(n_particles = n_particles, batched=true), options)
@test summary(res) == "Particle Swarm"
end

0 comments on commit baecb98

Please sign in to comment.