This repository contains a basic implementation of Particle Swarm Optimization (PSO) in Python. PSO is a computational method used for optimization problems, inspired by the social behavior of birds and fish.
Ensure you have Python instaled (>=3.6). You may need the following dependencies:
pip install numpy matplotlib pygameRun the script with:
python main.pyBy default, the implementation optimizes a sample function, but you can modify it to suit your needs.
- Change the objective function in the code to optimize a different function.
- Adjust hyperparameters such as the number of particles, inertia weight, and acceleration coefficients.
