Using mixed integer programming (MIP) to select the optimal 11 players from a squad of ~25 that maximizes total pair synergy while meeting formation constraints (1 GK, N defenders, N midfielders, N forwards). With 25 players, there are ~4.5 million possible lineup combinations. MIP solves this in seconds by formulating team selection as a constrained optimization problem rather than brute-force enumeration. The key advancement over individual-maximizing lineups: the pair-based MIP considers how selected players interact with each other, not just their solo values.
(1) Individual-only MIP (baseline): Maximize Σ V(player_i) × X_i, where X_i is a binary decision variable (1 = selected, 0 = not). Subject to constraints: exactly 11 selected, formation position requirements met. This is fast but ignores pair interactions. (2) Pair-based MIP (advanced): Maximize Σ V(pair_ij) × X_ij, where X_ij = 1 if both players i and j are selected. Add overlap weighting: when a pair shares members with other selected pairs, their combined value increases. Subject to same formation constraints. This requires reformulating with both pair selection variables (X) and individual selection variables (Z) to maintain constraint satisfaction. (3) Validate by backtesting: form optimal teams for historical matches, compare to actual manager selections, measure prediction accuracy.
Results from Premier League backtesting: pair-based MIP produces lineups closer to actual manager selections than individual-based MIP. World Cup data (less rotation, fewer injuries) shows even stronger results. The pair-based method also predicts in-game metrics: 14% improvement on shot prediction, 13% on goals scored, 46% on passes.
The best 11 individuals do not form the best team. Lineup optimization is a mixed-integer programming problem where player-role fit, pair synergy, positional coverage constraints, and game-model compliance interact. A mathematically optimal lineup may exclude the team's highest-rated individual player because their inclusion creates a worse collective configuration.