Skip to content

Convergence Issues with Particle Swarm Optimization #87

@SimonBlanke

Description

@SimonBlanke

Following up on issue #84:

PSO fails to fully converge on simple convex problems.

Expected Behavior
PSO should converge effectively on simple convex optimization problems like the sphere function.

Actual Behavior
PSO fails to converge properly. PSO comes close the the global optimum but fails to fully converge.

Test Case

from gradient_free_optimizers import ParticleSwarmOptimizer

opt = ParticleSwarmOptimizer(search_space, population=20)
opt.search(sphere_function, n_iter=10000)
print(f"PSO Best score: {opt.best_score}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions