View source: R/generic-optimize.r
Optimize a fantasy Model
1 2 3 4 |
data |
projected fantasy points |
model |
optimization model |
L |
total number of lineups |
solver |
ROI solver to use |
bans |
row_ids of players to exclude from all lineups |
locks |
row_ids or players to include in all lineups |
stack_sizes |
size of each stack |
stack_teams |
subset of teams to use to generate stacks. NULL will use all teams. |
min_salary |
minimum salary to use |
max_exposure |
max exposure for all players or a vector of exposures for each player |
randomness |
a function that takes a vector of data and randomly perturbs it |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.