Install dependencies:
git clone https://github.com/WojtAcht/snake_optimization.git
cd snake_optimization
python -m venv myvenv
myvenv\Scripts\activate.bat
pip install -r requirements.txt
Tasks:
- Run
main.py
, investigate the code inmain.py
andbrain.py
. - Complete the implementation of PSO algorithm (useful links: [1] and [2]).
- Increase the number of epochs, tune PSO hyperparameters:
$w$ ,$c_1$ ,$c_2$ . - Generate random parameters
$r_1$ and$r_2$ for each particle or once per epoch. Compare the results. - Adjust PSO - remove part that uses particle's best position. Compare the results. Why do we need both parts (global and local)?