pydfs-lineup-optimizer
pydfs-lineup-optimizer copied to clipboard
UTIL Question
any idea how i can include the util position to be included with the stack? SAMPLE IS 4 PLAYERS BUT USE UTIL FOR THAT STACK
HI @Denwen12. By default, it does include it in the stack. I did a test run for a 4x3 stack and got correct stacks using the UTIL position.
Oh ok
On Sat, Apr 16, 2022, 12:06 PM Benika @.***> wrote:
HI @Denwen12 https://github.com/Denwen12. By default, it does include it in the stack. I did a test run for a 4x3 stack and got correct stacks using the UTIL position.
— Reply to this email directly, view it on GitHub https://github.com/DimaKudosh/pydfs-lineup-optimizer/issues/359#issuecomment-1100698298, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANBWO7UBWBIRX5I2LE5R3ADVFLQRRANCNFSM5TR3H7IQ . You are receiving this because you were mentioned.Message ID: @.***>
For instance,
optimizer.add_stack(TeamStack(4, for_positions = ['1B', '2B', '3B', 'SS', 'OF'],max_exposure =.30)) optimizer.add_stack(TeamStack(3, for_positions = ['1B', '2B', '3B', 'SS', 'OF'],max_exposure =.30))
worked fine for me. I also tested it with GameStack function and the UTIL position was part of the stack.
Were there any other constraints in your code?
how could one go about forcing a certain position into that UTIL spot? like only allow C/1B and OF only in all lineups?