DimaKudosh / pydfs-lineup-optimizer

Daily Fantasy Sports lineup optimzer for all popular daily fantasy sports sites
MIT License
424 stars 157 forks source link

Omit player based on inclusion of other player #403

Open GoSpinBoy opened 1 year ago

GoSpinBoy commented 1 year ago

Omitting players by position is straight forward. If I want to restrict my lineup so that I don't start two running backs from the same team I enter optimizer.restrict_positions_for_same_team(('RB', 'RB')).

Is there a way to do that by name? For example, not allowing a stack of Eagles RBs Miles Sanders/Boston Scott, but allowing a stack of Miles Sanders/Kenneth Gainwell or Kenneth Gainwell/Boston Scott?

In advance, thanks!

EDIT: Nevermind I think I figured it out

Dr-Two-Inch commented 1 year ago

You may consider closing the request If you found a solution.

BenikaH commented 1 year ago

Use the ungroup feature.