Optimize a fantasy Model

optimize_generic(data, model, L = 3L, solver = c("glpk", "symphony",
  "cbc"), bans = NULL, locks = NULL, stack_sizes = NULL,
  stack_teams = NULL, min_salary = NULL)

Arguments

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