Calculates optimal pit strategy for simracing events based on data which includes:
- Lap-times with regard to tyre-types and tyre-wear
- Limited driving range because of finite fuel supply
- Duration of pit stops
cd ~
git clone [email protected]:hallgrimur1471/pit_strategy_optimizer
cd pit_strategy_optimizer
python3.7 -m pip install --upgrade --user virtualenv
virtualenv .virtualenv
source .virtualenv/bin/activate
python3.7 -m pip install --upgrade -r requirements.txt
Open this link and click the "Enable the Google Sheets API" button. After accepting the terms click "Download client configuration" and save the file to ~/pit_strategy_optimizer/.credentials.json
Data should be logged to a spreadsheet document, using some predefined setup of the spreadsheet (See this example WIP spreadsheet).
cd ~/pit_strtategy_optimizer
source .virtualenv/bin/activate
./calculate_optimal_strategy.py --help
Fixer: black