/lineup-optimization-cookbook

python notebooks explaining lineup optimization concepts

Primary LanguageJupyter NotebookCreative Commons Zero v1.0 UniversalCC0-1.0

lineup-optimization-cookbook

python notebooks explaining lineup optimization concepts

optimization: Stacking is not optimal, but that's OK because projections can't really be optimized

Binder

Shows how stacking often is not optimal when projections are correct (or when looking at 'perfect' lineups), but stacking makes sense given the inaccuracies that plague even the best projections.

pulp: Using PuLP to Optimize a Lineup

Binder

Shows each step of creating an integer program in PuLP to optimize a lineup. Provides code for core constraints (position, salary, # players) and shows how to implement stacking and bring-back rules.

pydfs-lineup-optimizer: Loading Players

Binder

In-depth tutorial of the different ways to create Player objects and load them into the optimizer.