Module org.maxicp

Class SportScheduling

java.lang.Object
org.maxicp.cp.examples.raw.SportScheduling

public class SportScheduling extends Object
The problem is to schedule an even number n of teams over n/2 periods and n - 1 weeks, under the following constraints:
- Each team must play against every other team
- A team plays exactly one game per week
- A team can play at most twice in the same period
Author:
Pierre Schaus pschaus@gmail.com
  • Constructor Details

    • SportScheduling

      public SportScheduling()
  • Method Details

    • main

      public static void main(String[] args)