lmataa / pso

PSO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Particle Swarm Optimization (PSO)

The function for algorithm benchmark is the Himmelblau’s function which minimas are at (3,2), (-2.8,3.1), (-3.7, -3.2) and (3.5, -1.8).

https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Himmelblau_contour.svg/472px-Himmelblau_contour.svg.png

Repo organization

  • .ipynb: Notebook for code exploration
  • pso.py: Script that performs the PSO for Himmelblau’s function
  • pyproject.toml: Project information with poetry dependencies
  • shell.nix: Nix shell with system dependencies

To run:

python3 pso.py

About

PSO


Languages

Language:Jupyter Notebook 97.7%Language:Python 2.1%Language:Nix 0.2%