Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit player based on inclusion of other player #403

Open
GoSpinBoy opened this issue Feb 2, 2023 · 2 comments
Open

Omit player based on inclusion of other player #403

GoSpinBoy opened this issue Feb 2, 2023 · 2 comments

Comments

@GoSpinBoy
Copy link

GoSpinBoy commented Feb 2, 2023

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
Copy link

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

@BenikaH
Copy link

BenikaH commented Aug 9, 2023

Use the ungroup feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants