Method to set the max overlap of an optimizer model.

# S4 method for optimizer
set_max_overlap(object, overlap)

Arguments

object

An optimizer object

overlap

Maximum player overlap across lineups

Value

Updated Optimizer object

Examples

if (FALSE) {
opt <- create_optimizer(site = 'DRAFTKINGS', sport = 'HOCKEY', contest_type = 'CLASSIC')
opt <- add_players_from_csv(object = opt, filepath = '/Path/to/file.csv')

# update the max overlap
opt <- set_max_overlap(object = opt, overlap = 6)
}