# GAMS Support Wiki

### Site Tools

gams:a_team_scheduling_problem

# Differences

This shows you the differences between two versions of the page.

 gams:a_team_scheduling_problem [2007/10/20 07:46]Franz Nelissen gams:a_team_scheduling_problem [2007/10/21 06:30] (current)Franz Nelissen Both sides previous revision Previous revision 2007/10/21 06:30 Franz Nelissen 2007/10/20 07:46 Franz Nelissen 2007/09/27 04:48 external edit 2007/10/21 06:30 Franz Nelissen 2007/10/20 07:46 Franz Nelissen 2007/09/27 04:48 external edit Line 1: Line 1: ====== A Team Scheduling problem ====== ====== A Team Scheduling problem ====== - Q: //I have the following problem.I am trying to organize a schedule for a set of team games. Here are the rules: + <​code>​ + \$ontext + I have the following problem.I am trying to organize a schedule for a set of team games. Here are the rules: * there are 7 teams: A,​B,​C,​D,​E,​F,​G * there are 7 teams: A,​B,​C,​D,​E,​F,​G * a game requires 3 teams * a game requires 3 teams Line 8: Line 10: * one team will play 3 times * one team will play 3 times * and the other 6 teams will each play two games * and the other 6 teams will each play two games - The team that plays 3 times must play each of the other teams the team that plays 3 times changes each week I can iterate all of the required games, but I cannot come up with an algorithm that will solve this problem.// + The team that plays 3 times must play each of the other teams the team that plays 3 times changes each - + week I can iterate all of the required games, but I cannot come up with an algorithm that will - Look at this model: + solve this problem. - + \$offtext - <​code>​ + set t teams /​a,​b,​c,​d,​e,​f,​g/,​ set t teams /​a,​b,​c,​d,​e,​f,​g/,​ n game number /​game-1*game-5/,​ n game number /​game-1*game-5/,​