pydfs-lineup-optimizer
pydfs-lineup-optimizer copied to clipboard
Fanduel Single Game - Optimizer is unaware that certain positions have multipliers
Currently, the Fanduel Single game optimizer is unaware that certain positions have multipliers attached to them
i.e. single game nba slates have an mvp position that is worth double points.
I was wondering how everyone accounts for this, obviously, you could make a duplicate version of each player for each position with the multiplier then use the ungrouping stack feature to ensure only one version of the player can be selected like so--
https://pydfs-lineup-optimizer.readthedocs.io/en/latest/rules.html#group-players
You can use this method for ungrouping players as well. In this example maximum of one player will be in the lineup. group = PlayersGroup(optimizer.player_pool.get_players('MVP PlayerX', 'STAR Player X', 'UTIL Player X'), max_from_group=1) optimizer.add_players_group(group)
Anyone have a better approach for this or is there any intentions of adding this within the optimizer. Since the optimizer already has DK captain mode I wouldn't imagine that adding this would be much more than kind of mishmashing the settings between the two DK and FD single game modes as they currently exist.