degenerate icon indicating copy to clipboard operation
degenerate copied to clipboard

bug in optimize_nba.py - no guard/forward limits

Open sansbacon opened this issue 9 years ago • 3 comments

I noticed that the optimize_nba.py does not enforce the Guard and Forward requirements. I couldn't figure out how to add the constraints, though.

sansbacon avatar Dec 19 '15 21:12 sansbacon

Can you post a CSV or example that shows it having 3 C? The max for Centers is set at 2 already, so I'm surprised that you saw that.

swanson avatar Dec 20 '15 05:12 swanson

Sorry - I didn't describe the bug correctly. The problem was that it doesn't force you to use a G and a F, so I had 2 C on the roster where the flex spot was already taken by a 3rd PG.

Here is the illegal lineup (I've attached the .csv file): [PG] John Wall ($9300, 54.5) [PG] Jeremy Lin ($5000, 33.42) [PG] Lou Williams ($5300, 32.74) [SG] Rodney Stuckey ($4500, 27.5) [SF] Kevin Durant ($10200, 57.02) [PF] Kris Humphries ($3700, 25.66) [C ] DeAndre Jordan ($6800, 43.66) [C ] Joakim Noah ($5100, 35.1) players.txt

sansbacon avatar Dec 20 '15 14:12 sansbacon

Thanks - I see what you mean now.

swanson avatar Dec 20 '15 19:12 swanson