Open chanzer0 opened 1 year ago
I've noticed this, too. It's always a lineup that's generated with 3 center only players...
Do they hace multiple position as in Pf/c
On Wed, Jan 11, 2023, 8:48 PM jbunting7711 @.***> wrote:
I've noted this, too. It's always a lineup that's generated with 3 center only players...
— Reply to this email directly, view it on GitHub https://github.com/DimaKudosh/pydfs-lineup-optimizer/issues/400#issuecomment-1379707639, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANBWO7QFF6JUQRCWAOPUELLWR5PIHANCNFSM6AAAAAATXR3Y3E . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I'm digging into the code a bit, and trying to optimize using local projections:
And I'm met with the following error:
I've looked into the file and added a print statement on line 568 in
lineup_optimizer.py
right at the initial part of thedef _build_lineup()
function. This outputs a lineup result:[Dario Saric C/F/PF (PHX), Duane Washington G/PG/SG (PHX), Hamidou Diallo F/G/SF/SG (DET), Jimmy Butler F/PF (MIA), Jock Landale C (PHX), Joel Embiid C (PHI), Luka Doncic G/PG (DAL), Orlando Robinson C (MIA)]
Obviously this result is infeasible due to the fact that htere are 3 Center-only positions (Landale, Embiid, Robinson), and thus_build_lineup()
is unable to fit them all in a normal roster and raises the Exception.What could be causing this issue that this lineup was produced by the optimizer? Is my input data wrong? Are the opto rules wrong?
here are the files im using: https://gist.github.com/chanzer0/f787c126e42c10d094b94d30863797a4