This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ortools.constraint_solver import pywrapcp | |
# Python Implementation of | |
# https://github.com/google/or-tools/blob/master/examples/cpp/sports_scheduling.cc | |
# By Brian Huey | |
# Sports scheduling problem. | |
# | |
# We want to solve the problem of scheduling of team matches in a | |
# double round robin tournament. Given a number of teams, we want | |
# each team to encounter all other teams, twice, once at home, and | |
# once away. Furthermore, you cannot meet the same team twice in the |