DimaKudosh / pydfs-lineup-optimizer

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

strict_depend=False not working #346

Closed lightninglarry closed 2 years ago

lightninglarry commented 2 years ago

From the docs....

group = PlayersGroup( optimizer.player_pool.get_players('Tyreek Hill', 'Travis Kelce'), max_from_group=1, depends_on=optimizer.player_pool.get_player_by_name('Patrick Mahomes'), strict_depend=False, # if you want to generate lineups with Hill/Kelce but without Mahomes ) optimizer.add_players_group(group).

If i flip that to True, optimizer runs