/linear-optimization-fantasy-football

Using lpSolve library to find perfect DraftKings lineup

Primary LanguageR

linear-optimization-fantasy-football

Function to convert raw NFL fantasy data from http://Rotoguru1.com in to a DraftKings perfect lineup. See file 2016week8sun.csv for example input data.
Useful for post hoc analysis. Can also be used to construct optimal lineups based on projected points.
Optional parameter to delete players (usually outliers that were projected very low, or to iterate through next best lineups)
Optional parameter to set minimum salary