/Fantasy-Cricket-team-selection

Using linear programming technique to select a fantasy cricket team

Primary LanguagePython

Making Dream Team

Objective

The objective is to use linear programming in a real world application.
We are trying to make a team that satifies all the constrain and maximise the total expected points

Compile

Make sure to have pulp library installed
To install pulp do:

pip install pulp

After that run the following steps:

git clone git@github.com:Aditya-debug15/Fantasy-Cricket-team-selection.git
cd Fantasy-Cricket-team-selection
python dreamteam.py

Instead of using `python/pip` you can use `python3/pip3`
After running the above command terminal will look like:


For the input give the filelocation it accepts both relative and absolute path
The output will be available in Outputs/results_filename from where you have executed the code

Sample input file must look like this:

Output file will contain the players
Along with selected players,the choice of captain and vice captain will be printed on terminal