Project — 04/08

Turbo Selector

The 8 best possible NBA lineups, in under 500 ms.

Year
2024
Role
Design & development
Stack
Python, FastAPI, PuLP, Docker
Links

A colleague had a problem: his PHP backend took over 3 seconds to generate the best NBA lineup for the Sorare fantasy game. I told him I could do better.

Turbo Selector is a combinatorial optimization API: it uses linear programming (PuLP) to explore the space of possible lineups and return the 8 best teams in under 500 ms — roughly 6× faster than the original solution, with a mathematically optimal result.

Read the journal post ↗