Tennis Lineup Optimizer

Hi all,

I’m putting together a little tennis lineup optimizer program to play some daily fantasy contests during the US Open here.

I’m trying to write a constraint that picks a set of players on the condition that a player and their opponent cannot both be selected in the same lineup.

The path is a csv file that contains a list of the players, their opponents, and other information related to the contest.

Thank you in advance for any guidance you can provide,

Cam

I assume you are using JuMP?

Take a read of the first post of Please read: make it easier to help you - #81. To get help, you will need to formulate a specific question, and ideally provide simplified code demonstrating what you have tried.

You might be interested in
https://github.com/zlisto/Daily-Fantasy-Baseball-Contests-in-DraftKings

1 Like

Hi Oscar,

Thanks for your reply and helpful links. In fact I am working from the zlisto code you linked to, and after going through the specific bits of code again to share here, I was able to find a workaround to constrain players from being chosen in the same lineups as their opponents.