optimize_generic: Optimize a fantasy Model

Description Usage Arguments

View source: R/generic-optimize.r

Description

Optimize a fantasy Model

Usage

1
2
3
4
optimize_generic(data, model, L = 3L, solver = c("glpk", "symphony",
  "cbc"), bans = NULL, locks = NULL, stack_sizes = NULL,
  stack_teams = NULL, min_salary = NULL, max_exposure = 1,
  randomness = 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

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


zamorarr/coach documentation built on Dec. 24, 2021, 3:06 p.m.