-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sports schedule: home/away alternation #65
Comments
In the following script, we restrict each team to play in each stadium at most once every 3 rounds. Thats comes pretty close to what you want. Exactly matching your requirements is probably not possible at the moment.
|
Here might be a better solution for 10 teams:
Note that i am hiding the Team resources in the following plot, the Stadiums are the interesting ones: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi again,
I've been spending my days trying to create a sports schedule with pyschedule, but I cannot implement a home/away alternation constraint. Each matches calendar should get the teams to alternate home and away matches in order not to play e.g. 5 times at home or away in a row.
I know a capacity constraint should do the job, but I don't see how.
Any thoughts about this ?
I would really appreciate any tips or advice.
The text was updated successfully, but these errors were encountered: