degenerate
degenerate copied to clipboard
bug in optimize_nba.py - no guard/forward limits
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.
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.
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
Thanks - I see what you mean now.