Giter Site home page Giter Site logo

degenerate's Introduction

Daily fantasy optimizer, built on Google's or-tools

Currently, the Python bindings for or-tools are not easy to install, so that is left as an exercise for the reader :)

Initial inspiration and data model: http://www.barelyknown.com/blog/2014/11/13/d6q2mihtpbtehi3u6sh7z8vc7rnr4f


Linear constraint-based daily fantasy lineup optimizer, with support for position limits, flex spots, and lock/ban. Generates top N lineups, with support for number of unique players per lineup. Fast (sub-second computations).

optimize_cfb.py has the most features :)

Example

>> python optimize_cfb.py
Optimal CFB rosters for: $50000
Unique players per roster: 8

        Roster #1
[QB] Greg Ward Jr.       ($8500, 34.2) LOCK
[QB] Gunner Kiel         ($8000, 36.2) 
[RB] Keith Harrington    ($3200, 11.2) 
[RB] Marteze Waller      ($5000, 17.6) 
[RB] Mike Boone          ($4200, 15.6) 
[RB] Paul Harris         ($4500, 24.8) 
[WR] Rashard Higgins     ($6400, 23.1) 
[WR] Shaq Washington     ($6100, 19.9) LOCK
[WR] Phil Mayhue         ($3800, 12.0) 

Projected Score: 194.6  Cost: $49700 

        Roster #2
[QB] Greg Ward Jr.       ($8500, 34.2) LOCK
[QB] Gunner Kiel         ($8000, 36.2) 
[RB] Dalyn Dawkins       ($4300, 14.0) 
[RB] Daniel Lasco        ($4100, 14.6) 
[RB] Mike Boone          ($4200, 15.6) 
[RB] Paul Harris         ($4500, 24.8) 
[WR] Rashard Higgins     ($6400, 23.1) 
[WR] Shaq Washington     ($6100, 19.9) LOCK
[WR] Phil Mayhue         ($3800, 12.0) 

Projected Score: 194.4  Cost: $49900 

        Roster #3
[QB] Greg Ward Jr.       ($8500, 34.2) LOCK
[QB] Gunner Kiel         ($8000, 36.2) 
[RB] Keith Harrington    ($3200, 11.2) 
[RB] Marteze Waller      ($5000, 17.6) 
[RB] Mike Boone          ($4200, 15.6) 
[RB] Paul Harris         ($4500, 24.8) 
[WR] Austin Hooper       ($4000, 11.4) 
[WR] Rashard Higgins     ($6400, 23.1) 
[WR] Shaq Washington     ($6100, 19.9) LOCK

Projected Score: 194.0  Cost: $49900 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.