set_max_overlap-optimizer-method.Rd
Method to set the max overlap of an optimizer model.
# S4 method for optimizer
set_max_overlap(object, overlap)
An optimizer object
Maximum player overlap across lineups
Updated Optimizer object
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)
}