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?
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