# Generating fixtures for a chess league, with a twist

Hello,

I am in the process of building some software to generate fixtures for a chess league. Which has a little twist which complicates matters. I would like to introduce a constraint. Where by a team and the below team from a club are not allowed to play on the same night. e.g. Loughborough 1 is not allowed to play on the same night as Loughborough 2. This help teams share players, therefore play more games.

The league has five divisions, with 8, 7, 8, 7, 7 teams in respectively. The first half of the league is played over 10 weeks. This means that teams do not have to play each week.

A solution would be to brute force all the fixture combinations, for all the divisions. The problem with this approach is that there are way too many combinations!

I am wondering if there are any mathematical techniques that I could use to help me with this problem. I am not wanting to find a unique solution (a combination of fixtures, without violating the constraints). I would be happy with an algorithm which produced 10 violation of constraints in the season.

Any help or pointers would be greatly appreciated.

Can you suggest any areas for me to research.

-
Crossposted to SE: math.stackexchange.com/questions/31996 Michael, you should know that it's considered impolite to post the same question in multiple forums without waiting for an answer in the first one; you don't want to make lots of people work hard to giving you a great answer just to hear you say "thanks, but I've already got it from another forum". – Zev Chonoles Apr 10 '11 at 1:26
I am not a regular user of forums. Forgive me for not understanding the protocol. In hindsight, I do consider it impolite to post in two forums. I will certainly not make this mistake in the future. There doesn't seem an obvious way for me to close the question in the second site that I asked in. – Michael Apr 10 '11 at 9:49
I have undertaken this challenge as I see it as interesting cross between computer science and mathematics. I haven't done any mathematical programming since the days of my degree. At this stage in my question. I would be really happy if someone would say, go and take a look at x, y, z branch of mathematics. – Michael Apr 10 '11 at 9:52