pydfs-lineup-optimizer icon indicating copy to clipboard operation
pydfs-lineup-optimizer copied to clipboard

UTIL Question

Open Denwen12 opened this issue 2 years ago • 4 comments

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

Denwen12 avatar Apr 16 '22 05:04 Denwen12

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.

BenikaH avatar Apr 16 '22 16:04 BenikaH

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: @.***>

Denwen12 avatar Apr 16 '22 16:04 Denwen12

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?

BenikaH avatar Apr 16 '22 16:04 BenikaH

how could one go about forcing a certain position into that UTIL spot? like only allow C/1B and OF only in all lineups?

lightninglarry avatar Jul 07 '22 15:07 lightninglarry