🧩 Constraint Solving POTD:Sports League Scheduling #25647
Closed
Replies: 1 comment
-
|
This discussion has been marked as outdated by Constraint Solving — Problem of the Day. A newer discussion is available at Discussion #25806. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Category: Scheduling · Date: 2026-04-10
Suppose you're tasked with building the fixture list for a professional football (soccer) league. Every club must play every other club exactly once at home and once away — but clubs also demand fairness: no team should play five away games in a row, rival clubs can't clash on the same weekend, and stadiums must be available on assigned dates. Welcome to Sports League Scheduling, one of the most commercially important and combinatorially rich problems in constraint solving.
Problem Statement
Double Round-Robin Tournament Scheduling (DRR)
Given
nteams (assumenis even), schedule a season of2(n−1)rounds such that:(i, j)withi ≠ jappears exactly once (teamihosts teamj).Pconsecutive home games or more thanPconsecutive away games (typicallyP = 3).Small concrete instance — 6 teams, 10 rounds:
Input: number of teams
nOutput: a full schedule matrix
S[i][r]∈{1..n}whereS[i][r]is the opponent of teamiin roundr, plus a home/away indicatorH[i][r]∈{0,1}.Variants add:
Why It Matters
Modeling Approaches
Approach 1 — Constraint Programming (CP)
Decision variables:
Objective (TTP): Minimize
Σ_{i,r} dist[ i ][ S[i][r-1] → S[i][r] ]Trade-offs: ILP benefits from LP relaxation bounds and mature branch-and-bound solvers (CPLEX, Gurobi). Variable count is
O(n2 · rounds), which becomes large quickly, but LP relaxations provide tight lower bounds for TTP.Approach 3 — Local Search / Metaheuristics
Start from a feasible round-robin schedule (easy to construct with a polygon construction) and iteratively swap games between rounds, using simulated annealing or tabu search to escape local optima.
Trade-offs: Cannot prove optimality but scales to
n = 30+teams where exact methods fail. The best known TTP solutions forn = 16were found by metaheuristics, not exact solvers.Example Model — MiniZinc (CP, break minimization)
This enables efficient propagation with sliding window algorithms in
O(n)rather than checking all windows naively inO(n·q).3. Lower Bounds for TTP
For the Traveling Tournament Problem, the independent lower bound (ILB) technique builds a relaxation by solving a separate shortest-path problem for each team independently (ignoring inter-team constraints), then summing the results. This provides tight dual bounds used in branch-and-bound and guides local search neighborhoods. The ILB approach was a breakthrough that brought TTP closer to practical optimality.
Challenge Corner
References
Next up: rotating to a topic we haven't yet visited — stay tuned! 🔔
Beta Was this translation helpful? Give feedback.
All reactions