-
: Set of teams of size -
: The number of weeks where -
: The number of periods where
-
: Array of size where each cell is a couple that represents a match between two teams
- We first initialize a graph where an edge is a team, an edge is a match and its label the week number
- Swap two matches if at least one of them is conflicting with the model (only matches on the same week)
- Tabou list to prevent from swapping two matches that have been swapped recently