Advanced Sports Logic has a powerful approach for adding multiple teams stacks.

Under Set Pro Options you can set a team stack bonus.

Team Stack1 A19e3913a0

The higher you set the bonus, the more the optimizer will use team stacking in your lineups when generating multiple lineups. It is soft constraint and is more flexible than a rigid 3/2 team stack.

To see the effect of the team stacking bonus, you can generate multiple lineups without loading the player list for FanDuel or DraftKings. When you do this, the output CSV will give the list of players and teams rather than the player IDs for FanDuel or DraftKings.

You can try various settings of the team stacking bonus until you find a setting you like best.

Here are the results with the setting at 0%, 10% and 20% respectively, generating ten lineups for a DraftKings main slate, and with all other options set at default values (no diversity, max or min exposure):

Auto Team Stack Bonus = 0%

Team Stack2 0ed71cd69c

Note, the total fantasy points of all ten lineups is 1106.15, or the average fantasy points of each lineup is 110.6.

Team Stack3 2db6355993

Better teams tend to stack a little bit naturally.

Auto Team Stack Bonus = 10%

Team Stack4 3e6a034446

With the team stacking bonus set to 10%, you can see the average fantasy points per lineup dropped from 110.6 to 107.7, or 2.6%, but there is significantly more stacking in the lineups as shown below:

Team Stack5 A17c84f3f1

Auto Team Stack Bonus = 20%

Team Stack6 E3c998a5ec

Team Stack7 F3cd781429

The trend for a lower average fantasy point per lineup and greater stacking continues.

We believe this soft constraint approach gives a better balance between an average fantasy points per line and the amount of stacking compared with rigid team stack strategies provided with traditional optimizers, and that this results in a higher probability of winning money in contests.