This script uses a python implementation of the 'knapsack problem' to pick the best Fanstasy Premier League team based on 3 different metrics.
- Points last season (position changes factored in ie Rashford points converted from FWD to MID).
- Points last season (value per minute played > 1000mins).
- Expected points (GW range is 1-8) gotten from site fplreview.com.
player_dataset.csv is generated using scripts in the 'database_scripts' directory. Process is outlined in the README in that directory.
Both 'squad_optimiser.ipynb' and 'squad_optimiser.py' do the same thing. A description of the parameters that can be used in the squad optimiser are outlined in both files and a sample output can be seen below.

