DimaKudosh / pydfs-lineup-optimizer

Daily Fantasy Sports lineup optimzer for all popular daily fantasy sports sites
MIT License
418 stars 157 forks source link

Anyone tried the MIPSolver #308

Open mbencho opened 2 years ago

mbencho commented 2 years ago

Has anyone tested the MIPSolver in terms of performance? Looking to see if this could have faster results than the default

https://github.com/DimaKudosh/pydfs-lineup-optimizer/blob/master/docs/performance-and-optimization.rst "Also, the library supports another solver library: mip. It can be faster in some cases, especially if you are using pypy (benchmark). For you using mip you should install it via pip: pip install mip. After that you can replace pulp:

from pydfs_lineup_optimizer.solvers.mip_solver import MIPSolver

optimizer = get_optimizer(Site.DRAFTKINGS, Sport.BASEBALL, solver=MIPSolver)"

DimaKudosh commented 2 years ago

For me it works with the same speed as pulp version, I ran it on cpython probably with pypy should work faster according to their benchmark.